/* Custom base styles and overrides */
html {
    scroll-behavior: smooth;
}

body {
    /* Ensures text color is readable across the dark background */
    color: #f3f4f6;
}

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

::-webkit-scrollbar-track {
    background: #09090b;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f43f5e;
}

/* Reveal Animation Classes */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1; /* Default visible for no-JS fallback */
    transform: none;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When JS is active, we add a class to hide them initially or just use the transition */
/* The JS handles adding the 'active' state */

/* Animation Initial States (handled by JS mostly, but good for fallback) */
.reveal-up {
    transform: translateY(30px);
    opacity: 0;
}

.reveal-left {
    transform: translateX(-30px);
    opacity: 0;
}

.reveal-right {
    transform: translateX(30px);
    opacity: 0;
}

/* Active State (added by JS) */
.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    transform: translateY(0) translateX(0);
    opacity: 1;
}

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

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

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

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #f43f5e;
    outline-offset: 4px;
    border-radius: 4px;
}
