@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Orbitron:wght@700&display=swap');

/* Header Styling - Modernized & Glassmorphic */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    
    /* Modern Dark Mode (Default) - Lighter than the body to stand out */
    background-color: rgba(31, 41, 55, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #374151; /* Stronger border for separation */
    color: #f3f4f6;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light header {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

.header-container {
    display: flex;
    flex-direction: row; /* Modern layout: Row on desktop */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 80rem; /* Matches Tailwind max-w-7xl */
    margin: 0 auto;
    gap: 1.5rem;
}

/* Logo */
.logo-container {
    margin: 0; 
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem); 
    font-weight: 700;
    color: #3b82f6; /* Matches brand-500 */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    text-decoration: none;
    margin: 0 !important; 
    transition: color 0.3s ease;
}

body.light .logo-text {
    color: #2563eb; /* Matches brand-600 */
}

/* Navigation & Toggles */
.nav-toggle-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem; 
    width: auto;
}

.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.nav-container a {
    font-family: 'Inter', sans-serif;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-container a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

body.light .nav-container a {
    color: #4b5563;
}

body.light .nav-container a:hover {
    color: #111827;
    background-color: rgba(0, 0, 0, 0.05);
}

/* CTA Button */
.purchase-button {
    font-family: 'Inter', sans-serif;
    background-color: #3b82f6; /* brand-500 */
    color: #ffffff;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}

.purchase-button:hover {
    background-color: #2563eb; /* brand-600 */
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

body.light .purchase-button {
    background-color: #2563eb;
}

body.light .purchase-button:hover {
    background-color: #1d4ed8;
}

/* Theme Toggle Switch */
.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.checkbox {
    display: none;
}

.checkbox-label {
    background-color: #1F2937;
    width: 52px;
    height: 28px;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid #374151;
}

body.light .checkbox-label {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.checkbox-label .ball {
    background-color: #ffffff;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.checkbox:checked + .checkbox-label .ball {
    transform: translateX(24px);
}

.fa-moon {
    color: #fcd34d;
    font-size: 12px;
}

.fa-sun {
    color: #f59e0b;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .logo-text {
        font-size: 2rem;
        text-align: center;
    }

    .nav-toggle-container {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .purchase-button {
        width: 100%;
        text-align: center;
    }
}