/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    /* Prevent layout shift by ensuring fonts load */
    font-feature-settings: "cv11", "ss01";
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #0F172A;
}
::-webkit-scrollbar-thumb:hover {
    background: #2DD4BF;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

.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: visible. JS adds the animated state. */
.reveal-left, .reveal-right, .reveal-up {
    opacity: 1;
    transition: all 0.8s ease-out;
}

.reveal-left { transform: translateX(0); }
.reveal-right { transform: translateX(0); }
.reveal-up { transform: translateY(0); }

/* When JS adds 'is-hidden' initially, we can override if needed, 
   but per rules, we keep visible by default and animate on scroll via JS */

/* Mobile Menu Transition */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Focus States */
input:focus, textarea:focus {
    border-bottom-width: 2px;
    padding-bottom: 1px; /* Adjust for border width change */
}

/* Utility for image aspect ratios to prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}
