/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}

/* Selection */
::selection {
    background: #f59e0b;
    color: #0a1628;
}

/* Scroll Line Animation */
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}
.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Marquee */
.marquee-track {
    display: flex;
    width: max-content;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-content {
    flex-shrink: 0;
    animation: marquee 25s linear infinite;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(40px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal-state="hidden"] {
        opacity: 0;
        transform: translateY(40px);
    }
}

/* Menu Card Hover */
.menu-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-card:hover {
    transform: translateY(-8px);
}

/* Navbar Glass Effect */
#navbar.scrolled {
    background: rgba(254, 249, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

/* Mobile Menu Active State */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Hamburger Animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Image Placeholder Fallback */
img {
    background: linear-gradient(135deg, #0f2240 0%, #142d54 50%, #0f2240 100%);
}

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

/* Mobile Menu Link Hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}
