/* Base Reset & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    /* Prevent flash of unstyled content on load */
    background-color: #020617;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden, JS or animation handles reveal */
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll Reveal Classes (Progressive Enhancement) */
/* Default state is visible for accessibility/no-JS */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* If JS runs, we can add classes to trigger animations for below-fold elements */
.reveal-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Initial states for JS-triggered animations (hidden by default for below-fold) */
/* These are overridden by the default visible state above if JS fails, 
   but JS will add 'animated' class to trigger them */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Focus Styles */
button:focus, a:focus, input:focus, textarea:focus {
    outline: none;
}
