/* 
    GLOBAL RESET & BRANDING
    Ensures consistent layout and typography across all pages.
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: #000;
}

/* 
    MODERN CENTERED NAVBAR
    Responsive with Glassmorphism & Hamburger Menu
*/

.navbar {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: 'Poppins', sans-serif;
}

.nav-brand a {
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.nav-brand span {
    font-weight: 300;
    color: #666;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links li a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links li a:hover {
    opacity: 1;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* THEME TOGGLE */
.nav-links .theme-toggle {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #000;
    font-size: 14px;
    margin-left: 10px;
}

.nav-links .theme-toggle:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: scale(1.1);
}

[data-theme="dark"] .nav-links .theme-toggle {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

[data-theme="dark"] .nav-links .theme-toggle:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* HAMBURGER */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 24px;
    z-index: 5001;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-origin: center;
}

/* HAMBURGER ANIMATION */
.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .navbar {
        width: 95%;
        padding: 0 30px;
    }
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -104%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 80px 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 24px;
        font-weight: 600;
    }
}
