/* Navbar Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    transition: all 0.3s ease;
}

nav:not(.scrolled) .hamburger span {
    background: var(--pure-white);
}

nav.scrolled {
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--primary-black);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
}

nav:not(.scrolled) .nav-menu > li > a {
    color: var(--pure-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--energy-yellow);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--pure-white);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0;
    margin-top: 10px;
    border-radius: 5px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--primary-black);
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--energy-yellow);
    color: var(--primary-black);
    padding-left: 30px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--primary-black);
    transition: all 0.3s ease;
    border-radius: 2px;
}

nav.scrolled .hamburger span {
    background: var(--primary-black);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a {
    color: var(--primary-black);
    text-decoration: none;
    font-size: 2rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--energy-yellow);
}

/* Mobile dropdown */
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown-menu.active {
    max-height: 500px;
}

.mobile-dropdown-menu a {
    font-size: 1.3rem;
    margin: 15px 0;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 20px;
    }

    nav.scrolled {
        padding: 15px 20px;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}
