/* navigation.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Navigation */
.nav-container {
    background: rgba(0, 10, 20, 0.95);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 247, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Scrolled state for navbar */
.nav-container.scrolled {
    background: rgba(0, 10, 20, 0.98);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    flex-wrap: wrap;
    max-width: 1200px;
    position: relative;
}

/* Navigation Items */
.nav-item {
    position: relative;
}

/* Navigation Links */
.nav-link {
    color: white;
    text-decoration: none;
    padding: 20px 25px;
    display: block;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Gradient hover effect */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 247, 255, 0.1) 0%, 
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

/* Underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #00f7ff, #0088ff);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

/* Hover effects */
.nav-link:hover {
    color: #00f7ff;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.nav-link:hover::after {
    width: calc(100% - 40px);
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #00f7ff;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

/* Active menu item */
.nav-item.active .nav-link {
    color: #00f7ff;
    background: rgba(0, 247, 255, 0.1);
}

.nav-item.active .nav-link::after {
    width: calc(100% - 40px);
}

/* Desktop hover effects */
@media (hover: hover) {
    .nav-link:hover {
        transform: translateY(-1px);
    }
}

/* Large screens */
@media screen and (min-width: 1201px) {
    .nav-menu {
        padding: 0 20px;
    }
}

/* Medium screens */
@media screen and (max-width: 1024px) {
    .nav-link {
        padding: 15px 20px;
        font-size: 13px;
    }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        width: 100%;
        text-align: left;
        padding: 20px;
        background: rgba(0, 10, 20, 0.98);
        border-bottom: 1px solid rgba(0, 247, 255, 0.1);
        z-index: 1001;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 0;
        background: rgba(0, 10, 20, 0.98);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-item {
        width: 100%;
        border-top: 1px solid rgba(0, 247, 255, 0.1);
    }

    .nav-link {
        padding: 20px;
        width: 100%;
        text-align: left;
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-item.active .nav-link {
        background: rgba(0, 247, 255, 0.1);
        padding-left: 25px;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Animation keyframes */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu scrollbar */
.nav-menu::-webkit-scrollbar {
    width: 4px;
}

.nav-menu::-webkit-scrollbar-track {
    background: rgba(0, 10, 20, 0.95);
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 247, 255, 0.2);
    border-radius: 4px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 247, 255, 0.3);
}

/* Touch device optimization */
@media (hover: none) {
    .nav-link::before {
        display: none;
    }
}