/* Custom Styles for Upper One */

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

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

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

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

/* Scroll Reveal Utility (Progressive Enhancement) */
/* Default state: visible. JS adds 'is-revealed' or we just leave it visible for no-JS users. */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* If we wanted to hide initially for JS reveal, we'd do this, but rules say visible by default: */
/* .scroll-reveal { opacity: 0.95; transform: translateY(10px); } */

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #03543b;
}

/* Image Hover Effects */
img {
    display: block;
    max-width: 100%;
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #046c4e;
    outline-offset: 2px;
}
