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

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric floating decorations */
.hero-shape {
    animation: float 6s ease-in-out infinite;
}

.hero-shape:nth-child(6) { animation-delay: -1s; animation-duration: 8s; }
.hero-shape:nth-child(7) { animation-delay: -2s; animation-duration: 7s; }
.hero-shape:nth-child(8) { animation-delay: -3s; animation-duration: 9s; }
.hero-shape:nth-child(9) { animation-delay: -4s; animation-duration: 6s; }
.hero-shape:nth-child(10) { animation-delay: -2.5s; animation-duration: 7.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

/* Floating stat cards */
.floating-card {
    animation: cardFloat 4s ease-in-out infinite;
}

.floating-card:nth-child(2) { animation-delay: -1s; }
.floating-card:nth-child(3) { animation-delay: -2s; }
.floating-card:nth-child(4) { animation-delay: -3s; }

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

/* Scroll reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 8, 20, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(91, 44, 111, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0d26;
}
::-webkit-scrollbar-thumb {
    background: #5B2C6F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c084fc;
}

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23c084fc' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}
