/* ================================
   NAVBAR (Glassmorphism & Adaptive Theme)
================================ */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 16px 0 10px;
    display: flex;
    justify-content: center;
}

.navbar {
    width: min(1200px, 92%);
    min-height: 64px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 24px;

    /* Frosted Glass Dark Mode Default */
    background: rgba(14, 14, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.10);

    position: relative;
    z-index: 1000;
    transition: background .35s ease,
                border-color .35s ease,
                box-shadow .35s ease,
                color .35s ease;
}


/* Logo */

.logo a,
.logo {
    color: #ffffff;
    text-decoration: none;
    font-size: 26px;
    font-weight: 700;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    transition: color .35s ease;
}

.logo span {
    color: #ffb000;
}


/* Navigation Links */

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;

    transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffb000;
}


/* Right Side */

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}


/* Theme Button */

.theme-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    outline: none;

    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;

    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffb000 !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    font-size: 16px;

    transition: .3s ease;
}

.theme-btn:hover {
    background: #ffb000 !important;
    color: #111111 !important;
    border-color: #ffb000 !important;
    transform: rotate(18deg) scale(1.05);
}


/* Get Started */

.nav-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 22px;

    border-radius: 30px;

    background: linear-gradient(
        135deg,
        #ffb000,
        #ff7b00
    );

    color: #111111 !important;
    text-decoration: none;

    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;

    transition: .3s ease;
}

.nav-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 176, 0, .40);
}


/* ================================
   STICKY HEADER SCROLLED STATE
================================ */

header.scrolled .navbar {
    background: rgba(10, 10, 15, 0.88);
    border-color: rgba(255, 176, 0, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.50),
                0 0 25px rgba(255, 138, 0, 0.12);
}


/* ================================
   LIGHT THEME ADAPTIVE NAVBAR
================================ */

body.light-theme .navbar {
    background: rgba(255, 248, 241, 0.75);
    border: 1px solid rgba(255, 176, 0, 0.28);
    box-shadow: 0 10px 30px rgba(255, 138, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.light-theme header.scrolled .navbar {
    background: rgba(255, 248, 241, 0.90);
    border-color: rgba(255, 138, 0, 0.40);
    box-shadow: 0 15px 35px rgba(255, 138, 0, 0.18);
}

body.light-theme .logo,
body.light-theme .logo a {
    color: #1F2937;
}

body.light-theme .nav-links a {
    color: #374151;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
    color: #FF8A00;
}

body.light-theme .theme-btn {
    background: rgba(255, 255, 255, 0.80) !important;
    border: 1px solid rgba(255, 138, 0, 0.35) !important;
    color: #FF8A00 !important;
}

body.light-theme .theme-btn:hover {
    background: #FF8A00 !important;
    color: #FFFFFF !important;
}


/* ================================
   RESPONSIVE NAVBAR
================================ */

@media (max-width: 860px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 14px;
        padding: 14px 20px;
        border-radius: 22px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 22px;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: 92%;
    }

    .nav-links {
        gap: 10px 16px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .nav-buttons .btn {
        padding: 10px 18px;
    }
}