/* Navbar styling */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    z-index: 1000;
    border-bottom: none;
}

/* Prevent body scrolling when nav is open */
body.nav-open {
    overflow: hidden;
}

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

/* Logo styling */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.82);
}

/* Nav logo image */
.nav-logo {
    height: 30px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .nav-logo {
    transform: rotate(360deg);
}

/* Nav links container */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Nav links styling */
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #4b8aff;
}

/* Dropdown container */
.dropdown {
    position: relative;
    padding: 0.5rem 0;
    text-align: center;
}

/* Dropdown arrow */
.dropdown > a::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 0.5em;
    display: inline-block;
    transition: transform 0.2s;
}

/* Dropdown arrow animation when open */
.dropdown.open > a::after {
    transform: rotate(180deg);
}

/* Dropdown content */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border: 1px solid transparent;
}

/* Dropdown content when open */
.dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    border: 1px solid rgba(43, 58, 226, 0.1);
}

/* Dropdown links */
.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
}

/* Dropdown links hover effect */
.dropdown-content a:hover {
    background: rgba(43, 67, 226, 0.2);
    color: #4b8aff;
}
/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(13, 14, 16, 0.51);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

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

    /* Dropdown styling for mobile */
    .dropdown {
        position: relative;
        text-align: center;
    }

    .dropdown > a::after {
        content: '▼';
        font-size: 0.8em;
        margin-left: 0.5em;
        display: inline-block;
        transition: transform 0.3s;
    }

    .dropdown.open > a::after {
        transform: rotate(180deg);
    }
    .dropdown-content {
        position: static;
        transform: translateX(0);
        background: transparent;
        backdrop-filter: none;
        border: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding-left: 1rem;
    }

    .dropdown.open .dropdown-content {
        display: block;
        border: none;
    }
    .dropdown-content a {
        padding: 0.5rem 0;
    }
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
