/* ===== NAVBAR MAIN ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== NAVBAR SCROLL EFFECT ===== */
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

/* ===== NAVBAR HIDE ON SCROLL DOWN ===== */
.navbar.hide {
    transform: translateY(-100%);
}

/* ===== NAV CONTAINER ===== */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== LOGO ===== */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s;
}

.nav-logo a:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 32px;
    display: inline-block;
    animation: rotateGear 8s linear infinite;
}

@keyframes rotateGear {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-text {
    background: linear-gradient(135deg, #fff 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .highlight {
    background: linear-gradient(135deg, #00D4FF, #FF6B00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAV MENU ===== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #aaa;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.nav-link i {
    font-size: 16px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #fff;
    background: rgba(0, 212, 255, 0.08);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #00D4FF;
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #00D4FF;
    border-radius: 10px;
    animation: pulseLine 2s ease-in-out infinite;
}

@keyframes pulseLine {
    0%,
    100% {
        width: 20px;
        opacity: 1;
    }
    50% {
        width: 40px;
        opacity: 0.5;
    }
}

/* ===== HAMBURGER MENU ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 100;
}

.bar {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: #00D4FF;
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: #00D4FF;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid rgba(0, 212, 255, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 20px;
        padding: 15px 30px;
        width: 200px;
        justify-content: center;
    }

    .nav-link i {
        font-size: 20px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 20px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-icon {
        font-size: 28px;
    }
}