/* Mobile Menu Styles */
/* Ensure menu toggle is hidden on desktop */
@media screen and (min-width: 769px) {
    .header .menu-toggle {
        display: none !important;
    }
    
    /* Desktop header positioning */
    .header {
        justify-content: flex-start !important;
        padding-left: 2rem !important;
    }
    
    .desktop-nav {
        display: flex !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        padding-left: 2rem !important;
    }
    
    .logo {
        margin-right: 0 !important;
    }
}

/* Header styles */
.header {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    z-index: 1000;
}

/* Desktop hide utility class */
.desktop-hide {
    display: none !important;
}

/* Desktop Navigation Styles */
.desktop-nav {
    display: flex;
}

.desktop-nav .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav .nav-links li {
    margin: 0 1rem;
}

.desktop-nav .nav-links li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.desktop-nav .nav-links li a:hover {
    color: var(--accent-color);
}

/* Mobile Navigation Styles */
.menu-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.98);
    z-index: 990;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.mobile-nav.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.8);
}

.mobile-nav.active .mobile-nav-close {
    opacity: 1;
    transform: scale(1);
    animation: fadeIn 0.5s 0.3s forwards;
}

.mobile-nav-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.mobile-brand {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-nav.active .mobile-brand {
    animation: slideDown 0.5s 0.2s forwards;
}

.mobile-brand h2 {
    font-size: 3rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

@media screen and (max-width: 768px) {
    .desktop-hide {
        display: block !important;
    }
    
    /* Hide desktop nav and show mobile toggle */
    .desktop-nav {
        display: none;
    }
    
    /* Mobile Navigation */
    .menu-toggle {
        display: flex !important;
    }
    
    .header {
        position: relative;
        justify-content: center;
    }
    
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(17, 24, 39, 0.98);
        z-index: 990;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 20px; /* Add padding at the bottom to ensure all menu items fit */
        overflow-y: auto; /* Allow scrolling if content is too tall */
    }
    
    .mobile-nav.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 0;
    }
    
    .nav-links li {
        margin: 0.8rem 0; /* Reduce vertical spacing between menu items */
        width: 100%;
        opacity: 0;
        transform: translateY(10px);
    }
    
    .mobile-nav.active .nav-links li {
        animation: slideIn 0.4s ease forwards;
    }
    
    .mobile-nav.active .nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .mobile-nav.active .nav-links li:nth-child(2) { animation-delay: 0.2s; }
    .mobile-nav.active .nav-links li:nth-child(3) { animation-delay: 0.3s; }
    .mobile-nav.active .nav-links li:nth-child(4) { animation-delay: 0.4s; }
    .mobile-nav.active .nav-links li:nth-child(5) { animation-delay: 0.5s; }
    
    .nav-links li a {
        display: block;
        padding: 0.8rem 0; /* Reduce padding for each link */
        font-size: 1.3rem;
        transition: all 0.3s ease;
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    
    .nav-links li a:hover {
        color: var(--accent-color);
        transform: scale(1.05);
    }
} 