/* ============================================
   Footer Large Text Animation
   ============================================ */

.footer {
    position: relative;
    overflow: hidden;
}

.footer-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.footer-text-large {
    font-size: clamp(8rem, 20vw, 20rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--white);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    line-height: 1;
    text-transform: uppercase;
    background: linear-gradient(180deg, 
        rgba(247, 247, 247, 0.03) 0%, 
        rgba(247, 247, 247, 0.08) 50%, 
        rgba(247, 247, 247, 0.03) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text-overlay.active .footer-text-large {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure footer content is above the overlay */
.footer .container {
    position: relative;
    z-index: 2;
}

/* Add subtle backdrop blur effect when text appears */
.footer-text-overlay.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    animation: subtleBlur 1.5s ease-out forwards;
}

@keyframes subtleBlur {
    0% {
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
    50% {
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
    100% {
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .footer-text-large {
        font-size: clamp(6rem, 18vw, 16rem);
    }
}

@media (max-width: 768px) {
    .footer-text-large {
        font-size: clamp(4rem, 15vw, 12rem);
        letter-spacing: -0.03em;
    }
}

@media (max-width: 480px) {
    .footer-text-large {
        font-size: clamp(3rem, 12vw, 8rem);
    }
}
