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

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

body {
    overflow-x: hidden;
}

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite 1s;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(26, 10, 30, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 32, 136, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

::-webkit-scrollbar-track {
    background: #1a0a1e;
}

::-webkit-scrollbar-thumb {
    background: #3d1545;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5c1a66;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f0c94d;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #2d1033 0%, #1a0a1e 100%);
}
