/* --- Global Preloader & Animation Styles --- */

/* Preloader */
#global-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0b0b0b;
    /* Match site dark theme */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-content {
    text-align: center;
    color: #fff;
}

.loader-logo {
    font-family: 'Helvetica', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0;
    /* Animate in */
}

.loader-line-mask {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateX(-101%);
}

/* Lenis Recommended Styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Base Animation States (Hidden initially) */
/* We use opacity: 0 and will let GSAP handle the reveal */
.reveal-text,
.reveal-img,
.reveal-section {
    opacity: 0;
    /* No transition here, GSAP handles it for better performance */
    will-change: transform, opacity;
}

/* Utility to force visibility if JS fails (optional fallback could be added via noscript) */

/* Specific overrides */
body {
    overflow-x: hidden;
    /* Prevent horizontal scroll triggers */
}