/* style.css */
:root {
    --primary-color: #007bff; /* Bright blue */
    --primary-hover: #0056b3;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa; /* Light grey for sections */
    --border-color: #e5e5e5;
    --footer-bg: #1a1a1a;
    --footer-text: #cccccc;
    
    /* OS Colors */
    --windows-color: #00a4ef;
    --mac-color: #555555;
    --linux-color: #f5a900;
    --android-color: #a4c639;
    --ios-color: #007aff;
    --nas-color: #ff6b6b;

    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================
   Header & Navbar
   ================== */
.navbar {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

/* ==================
   Buttons
   ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: var(--bg-alt);
    color: var(--text-main);
}

/* ==================
   Hero Section
   ================== */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-main) 100%);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #111;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================
   Downloads Section
   ================== */
.downloads-section {
    padding: 20px 0 80px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.download-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-alt);
}

.windows-icon i { color: var(--windows-color); }
.mac-icon i { color: var(--mac-color); }
.linux-icon i { color: var(--linux-color); }
.android-icon i { color: var(--android-color); }
.ios-icon i { color: var(--ios-color); }
.nas-icon i { color: var(--nas-color); }

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.os-version {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    min-height: 22px; /* keep height consistent */
}

.btn-download {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    margin-bottom: 15px;
}

.btn-download:hover {
    background-color: var(--primary-hover);
    color: white;
}

.alt-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: underline;
}

.alt-link:hover {
    color: var(--primary-color);
}

/* Dropdown for Linux */
.dropdown-download {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.os-select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #fff;
}

/* ==================
   Features Section
   ================== */
.features-section {
    background-color: var(--bg-alt);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================
   Footer
   ================== */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col .logo {
    color: white;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    color: var(--footer-text);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #888;
}

/* ==================
   Responsive
   ================== */
@media (max-width: 900px) {
    .nav-links {
        display: none; /* simple hidden for mobile just as demo */
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}
