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

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

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

::-webkit-scrollbar-track {
    background: #fdfcf8;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

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

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-iteration-count: 1;
}

.animate-scroll-down {
    animation-name: scrollDown;
    animation-duration: 1.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

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

/* If JS is disabled, content is still visible (progressive enhancement handled in JS) */
.no-js .scroll-reveal {
    opacity: 1;
    transform: none;
}

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

/* Form Focus States */
input:focus, textarea:focus {
    outline: none;
}

/* Print Styles */
@media print {
    nav, .scroll-indicator, #contact-form button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-emerald-950, .bg-emerald-900 {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #ccc;
    }
}
