/* GSAP Animation Classes */
.split-text {
    overflow: hidden;
    display: block;
}

.split-text span {
    display: inline-block;
    /* Remove initial transform to prevent text being hidden */
}

.fade-up {
    /* Initial state for animation - removed to prevent content being hidden if JS fails */
    /* opacity: 0; */
    /* transform: translateY(30px); */
}

/* Loading State */
.loading {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading__text {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 700;
}

/* Parallax Layers */
[data-speed] {
    will-change: transform;
}

/* Hover Effects */
[data-cursor="pointer"] {
    cursor: pointer;
}

[data-cursor="view"]::after {
    content: 'View';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    transition: transform 0.3s var(--transition);
}

[data-cursor="view"]:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Reveal Effects */
.reveal {
    position: relative;
    overflow: hidden;
}

.reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
}

.reveal.active::after {
    animation: reveal 1s var(--transition) forwards;
}

@keyframes reveal {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    50.1% { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.3s var(--transition);
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

/* Smooth Scroll */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}
