/* Modern Navigation Styles */

/* Header container */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Add shadow and deeper color on scroll */
.header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.97);
}

/* Header content wrapper */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    transition: padding 0.3s ease;
}

.header.scrolled .header-content {
    padding: 18px 0;
}

/* Logo styling - more dominant */
.logo a {
    font-size: 2rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.logo a:hover {
    color: #2ecc71;
    transform: translateY(-1px);
}

/* Main navigation */
.main-nav {
    display: flex;
}

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

.nav-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.2px;
}

/* Modern underline effect for nav links */
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #2ecc71, #1abc9c);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-list a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.nav-list a.active {
    color: #fff;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* Mobile menu toggle - more elegant */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-content {
        padding: 18px 0;
    }
    
    .logo a {
        font-size: 1.7rem;
    }
    
    /* Show hamburger menu on mobile */
    .menu-toggle {
        display: flex;
    }
    
    /* Modern mobile menu styling */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 40px 40px;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 999;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 25px;
        align-items: flex-start;
    }
    
    .nav-list a {
        font-size: 1.5rem;
        padding: 10px 0;
        display: block;
        width: 100%;
        font-weight: 400;
        transition: all 0.3s ease;
    }
    
    .nav-list a:hover {
        transform: translateX(8px);
        color: #2ecc71;
    }
    
    /* Clean underline effect for mobile */
    .nav-list a::after {
        height: 1px;
        bottom: 5px;
        background: #2ecc71;
        opacity: 0.5;
    }
    
    /* Dark overlay when menu is open */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Animated hamburger to X transition - more elegant */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background: #2ecc71;
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background: #2ecc71;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .header-content {
        padding: 15px 0;
    }
    
    .logo a {
        font-size: 1.5rem;
    }
    
    .main-nav {
        width: 85%;
        padding: 90px 30px 30px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .nav-list a {
        font-size: 1.3rem;
    }
}