/* Custom transitions and scroll animations for MAHAVELO */

.radar-point {
    position: relative;
    width: 8px;
    height: 8px;
    background-color: #59C13D; /* Vert MAHAVELO */
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(89, 193, 61, 0.4);
    z-index: 10;
}

/* Staggered Reveals (GSAP fallback) */
.reveal-item {
    opacity: 1;
    transform: none;
}

@media (min-width: 1024px) {
    body:not(.accessible-mode) .reveal-item {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 1.0s cubic-bezier(0.25, 1, 0.5, 1), transform 1.0s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    body:not(.accessible-mode) .active .reveal-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger delays trigger after the giant title moves up */
    body:not(.accessible-mode) .reveal-delay-1 { transition-delay: 1.3s; }
    body:not(.accessible-mode) .reveal-delay-2 { transition-delay: 1.45s; }
    body:not(.accessible-mode) .reveal-delay-3 { transition-delay: 1.6s; }
    body:not(.accessible-mode) .reveal-delay-4 { transition-delay: 1.8s; }
    body:not(.accessible-mode) .reveal-delay-5 { transition-delay: 2.0s; }

    /* Giant background watermark titles */
    body:not(.accessible-mode) .watermark-title {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 11vw;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: -0.05em;
        pointer-events: none;
        user-select: none;
        z-index: 0;
        white-space: nowrap;
        opacity: 0;
    }
    
    body:not(.accessible-mode) .active .watermark-title.title-dark {
        animation: bitfalk-title-dark 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    body:not(.accessible-mode) .active .watermark-title.title-light {
        animation: bitfalk-title-light 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

/* Fallback for mobile and accessible mode */
@media (max-width: 1023px) {
    .watermark-title {
        display: none;
    }
}
body.accessible-mode .watermark-title {
    display: none;
}

@keyframes bitfalk-title-dark {
    0% {
        opacity: 0;
        transform: translate(-50%, -45%) scale(1.3);
        filter: blur(8px);
    }
    25% {
        opacity: 0.30;
        transform: translate(-50%, -50%) scale(1.0);
        filter: blur(0px);
    }
    65% {
        opacity: 0.30;
        transform: translate(-50%, -50%) scale(1.0);
        filter: blur(0px);
    }
    100% {
        opacity: 0.04;
        transform: translate(-50%, -70%) scale(0.85);
        filter: blur(0px);
    }
}

@keyframes bitfalk-title-light {
    0% {
        opacity: 0;
        transform: translate(-50%, -45%) scale(1.3);
        filter: blur(8px);
    }
    25% {
        opacity: 0.20;
        transform: translate(-50%, -50%) scale(1.0);
        filter: blur(0px);
    }
    65% {
        opacity: 0.20;
        transform: translate(-50%, -50%) scale(1.0);
        filter: blur(0px);
    }
    100% {
        opacity: 0.03;
        transform: translate(-50%, -70%) scale(0.85);
        filter: blur(0px);
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
