/* =====================================================
   FOOTER ANIMATION COMPONENT
   ===================================================== */

   .iyeg-footer-animation {
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.iyeg-footer-animation__wrapper {
    position: relative;
    width: 90%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iyeg-footer-animation__image {
    width: 100%;
    max-width: 1400px;
    transform: scale(2.5);
    transform-origin: center center;
    transition: transform 2.2s cubic-bezier(0.22, 0.61, 0.36, 1);
    filter: brightness(0.7);
    display: block;
    will-change: transform, filter;
}

/* Zoom state - scales down to normal */
.iyeg-footer-animation__image.zoom {
    transform: scale(1);
}

/* Text overlay */
.iyeg-footer-animation__text {
    position: absolute;
    top: 50%;
    /* top: 65%; */
    /* top: 10%; */
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.8s ease;
    text-align: center;
    pointer-events: none;
    z-index: 2;
    width: 90%;
}

.iyeg-footer-animation__tagline {
    font-family: "Barlow Semi Condensed", "Inter", sans-serif;
    font-weight: 700;
    /* font-size: clamp(2rem, 5vw, 4.5rem); */
    font-size: clamp(1.5rem, 3.5vw, 3rem); 
    /* font-size: clamp(1.8rem, 4vw, 3.5rem); */
    /* font-size: clamp(2rem, 4.5vw, 4rem); */

    /* color: #ffffff; */
    color: rgba(255, 255, 255, 0.70);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Show text after zoom completes */
.iyeg-footer-animation__wrapper.show-text .iyeg-footer-animation__text {
    opacity: 1;
}

/* adjust these later once the font-size of the tagline is decided (finalized): */
/* @media (max-width: 1024px) {
    .iyeg-footer-animation__tagline {
        font-size: clamp(1.5rem, 3.5vw, 3rem); 
    }
}

@media (max-width: 768px) {
    .iyeg-footer-animation__tagline {
        font-size: clamp(1.2rem, 3vw, 2.5rem); 
    }
}

@media (max-width: 480px) {
    .iyeg-footer-animation__tagline {
        font-size: clamp(1rem, 2.5vw, 2rem); 
    }
} */

/* Blink animation - only after zoom complete */
@keyframes footerBlink {
    0% {
        filter: brightness(0.7);
    }
    10% {
        filter: brightness(2.4);
    }
    20% {
        filter: brightness(0.7);
    }
    35% {
        filter: brightness(2.4);
    }
    50% {
        filter: brightness(0.7);
    }
    100% {
        filter: brightness(0.7);
    }
}

.iyeg-footer-animation__image.blink {
    animation: footerBlink 0.9s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .iyeg-footer-animation {
        height: 80vh;
        min-height: 500px;
    }

    .iyeg-footer-animation__wrapper {
        width: 85%;
    }

    .iyeg-footer-animation__tagline {
        font-size: clamp(1.8rem, 4vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .iyeg-footer-animation {
        height: 70vh;
        min-height: 400px;
    }

    .iyeg-footer-animation__wrapper {
        width: 92%;
    }
    
    .iyeg-footer-animation__image {
        transform: scale(2.8);
    }
    
    .iyeg-footer-animation__image.zoom {
        transform: scale(1);
    }

    .iyeg-footer-animation__tagline {
        font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    }
}

@media (max-width: 480px) {
    .iyeg-footer-animation {
        height: 60vh;
        min-height: 350px;
    }

    .iyeg-footer-animation__wrapper {
        width: 95%;
    }
    
    .iyeg-footer-animation__image {
        transform: scale(3);
    }
    
    .iyeg-footer-animation__image.zoom {
        transform: scale(1);
    }

    .iyeg-footer-animation__tagline {
        font-size: clamp(1.2rem, 3vw, 2rem);
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .iyeg-footer-animation__image {
        transition: none !important;
        animation: none !important;
        transform: scale(1) !important;
        filter: brightness(1) !important;
    }
    
    .iyeg-footer-animation__image.blink {
        animation: none !important;
    }

    .iyeg-footer-animation__text {
        opacity: 1 !important;
    }
}