/* Custom styles for The Backstage Pass */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
    background: #152A4D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1B3560;
}

/* Navbar transition */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 247, 242, 0.97);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
    backdrop-filter: blur(10px);
}

#navbar.scrolled .nav-text {
    color: #0A1628;
}

#navbar.scrolled .nav-link {
    color: #152A4D;
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #152A4D;
    border: 1px solid transparent;
}

.menu-tab.active {
    background: #0A1628;
    color: #FAF7F2;
}

.menu-tab:hover:not(.active) {
    border-color: #2AA86A;
    color: #2AA86A;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger animation */
#menu-icon.open #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-icon.open #bar2 {
    opacity: 0;
}
#menu-icon.open #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Image hover effects */
.overflow-hidden {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2AA86A;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Selection color */
::selection {
    background: #2AA86A;
    color: #FAF7F2;
}

/* Print styles */
@media print {
    #navbar, #menu-toggle, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
