*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

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

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(4, 11, 22, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(72, 187, 120, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.hamburger-active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
    margin-left: 0;
    margin-right: 0;
}

/* Scroll reveal base — content is VISIBLE by default */
.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.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Only apply hidden state when JS is active via .js class */
.html-js .reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .html-js .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .animate-marquee {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Selection color */
::selection {
    background: rgba(72, 187, 120, 0.3);
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #040B16;
}

::-webkit-scrollbar-thumb {
    background: rgba(72, 187, 120, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(72, 187, 120, 0.5);
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 100%);
}
