/* ========================================
   ANIMATED MENU FOR REVVENIC THEME
   ======================================== */

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --text-light: #eaeaea;
    --text-muted: #b0b0b0;
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ========================================
   ANIMATED NAVBAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    text-decoration: none;
    position: relative;
}

.logo:hover {
    transform: scale(1.05) translateY(-2px);
}

.logo-icon {
    font-size: 1.8rem;
    animation: pulseIcon 2s cubic-bezier(0.4, 0.0, 0.6, 1.0) infinite;
    display: inline-block;
}

@keyframes pulseIcon {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15) rotate(10deg);
    }
}

/* ========================================
   ANIMATED NAV MENU
   ======================================== */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    overflow: hidden;
}

/* Animated underline effect */
.nav-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-link:hover::before {
    left: 100%;
}

/* Background glow effect */
.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.nav-link:hover::after {
    width: 200px;
    height: 200px;
}

.nav-link:hover {
    color: var(--highlight-color);
    transform: translateY(-2px);
}

/* Active state animation */
.nav-link.active {
    color: var(--highlight-color);
    background: rgba(233, 69, 96, 0.1);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
    animation: activeGlow 0.5s ease;
}

@keyframes activeGlow {
    0% {
        box-shadow: 0 0 0 rgba(233, 69, 96, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
    }
}

/* ========================================
   ANIMATED HAMBURGER MENU
   ======================================== */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

/* ========================================
   MOBILE MENU ANIMATION
   ======================================== */

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 26, 46, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 1rem;
        backdrop-filter: blur(10px);
        border-top: 2px solid rgba(233, 69, 96, 0.3);
    }

    .nav-menu.active {
        left: 0;
        animation: slideInMenu 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    @keyframes slideInMenu {
        from {
            left: -100%;
            opacity: 0;
        }
        to {
            left: 0;
            opacity: 1;
        }
    }

    .nav-menu li {
        animation: slideInMenuItem 0.3s ease forwards;
        opacity: 0;
    }

    .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu li:nth-child(5) { animation-delay: 0.5s; }

    @keyframes slideInMenuItem {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-link {
        padding: 1rem;
        font-size: 1.2rem;
    }

    .nav-link::before {
        height: 3px;
        bottom: 0;
    }
}

/* ========================================
   SUBMENU ANIMATION (if needed)
   ======================================== */

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.nav-item:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu li {
    padding: 0;
}

.nav-submenu .nav-link {
    padding: 0.75rem 1.5rem;
    display: block;
    font-size: 0.95rem;
}

/* ========================================
   SCROLL EFFECT
   ======================================== */

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
}

/* ========================================
   MENU INDICATORS
   ======================================== */

.menu-indicator {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.nav-link:hover .menu-indicator,
.nav-link.active .menu-indicator {
    width: 100%;
}

/* ========================================
   ANIMATION DELAYS
   ======================================== */

.nav-link {
    position: relative;
    animation: fadeInNavLink 0.6s ease forwards;
    opacity: 0;
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-link:nth-child(4) { animation-delay: 0.4s; }
.nav-link:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInNavLink {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   NEON EFFECT (Optional)
   ======================================== */

.nav-link.neon {
    text-shadow: 0 0 5px var(--highlight-color);
    transition: all 0.3s ease;
}

.nav-link.neon:hover {
    text-shadow: 0 0 10px var(--highlight-color), 0 0 20px var(--highlight-color);
}

/* ========================================
   SMOOTH TRANSITION ON PAGE SCROLL
   ======================================== */

.navbar-smooth {
    transition: all 0.2s ease;
}

/* ========================================
   LOGO ANIMATION VARIANTS
   ======================================== */

.logo.animated-logo .logo-icon {
    animation: rotateIcon 3s linear infinite;
}

@keyframes rotateIcon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo.bounce-logo .logo-icon {
    animation: bounceIcon 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo-text {
        display: none;
    }

    .nav-menu {
        top: 60px;
    }

    .nav-link {
        padding: 0.75rem;
        font-size: 1.1rem;
    }

    .hamburger span {
        width: 20px;
        height: 2.5px;
        margin: 4px 0;
    }
}
