/*===== Entrada Geral========*/
.container {
    animation: fadeInPage 1.2s ease-out both;
}

@keyframes fadeInPage{
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/*=======Coração===========*/

.heart {
    animation: heartFloat 4s ease-in-out infinite;
}

.heart img{
    animation: heartPulse 2.4s ease-in-out infinite;
}

@keyframes heartPulse {
    0%,100%{
        transform:scale(1);

        filter: drop-shadow(0 0 8px rgba(255,111,174,0.35));
    }

    50%{
        transform: scale(1.08);

        filter: drop-shadow( 0 0 16px rgba(255,111,174,0.65));
    }
}

@keyframes heartFloat{
    0%,
    100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-4px);
    }
}

/*==========titulo===========*/

h1{
    animation: titleReveal 1.2s ease-out 0.2s both;
}

@keyframes titleReveal{
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/*===========Contador========*/

.time-box{
    animation: counterReveal 0.9s ease-out both;
}

.time-box:nth-child(1) {
    animation-delay: 0.3s;
}

.time-box:nth-child(2) {
    animation-delay: 0.4s;
}

.time-box:nth-child(3) {
    animation-delay: 0.5s;
}

.time-box:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes counterReveal{
    from{
        opacity: 0;
        transform:translateY(12px) scale(0.98);
    
    }
    to{
        opacity: 1;
        transform: translateY(0) scale(1);

    }
}

/*===========Brilho suave nas caixar===========*/
.time-box {
    position: relative;
    overflow:hidden
}

.time-box::before{
    content:"";

    position: absolute;

    top: -60%;
    left: -60%;

    width: 60%;
    height: 220%;

    background: linear-gradient(120deg, transparent,rgba(255,255,255,0.08), transparent);

    transform: rotate(18deg);

    animation: glassShine 8s ease-in-out infinite;
    
    pointer-events: none;
}

@keyframes glassShine{
    0%, 70%{
        transform:translateX(-180%) rotate(18deg);
    }
    100%{
        transform: translateX(420%) rotate(18deg);
    }
}

/*=========Mensagem========*/
.message{
    animation: messageReveal 1s ease-out 0.8s both;
}

@keyframes messageReveal{
    from{
        opacity: 0;
        transform: translateY(8px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/*=======Player=======*/
.music-player{
    animation: playerReveal 1s ease-out 1s both;
}

@keyframes playerReveal{
    from{
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/*=======Botoes========*/
.musis-player button, #openGift{
    transition: 
            transform 0.18s ease,
            box-shadow 0.25s ease,
            background 0.25s ease,
            border-color 0.25s ease;
}

.music-player button:hover, #openGift:hover{
    box-shadow: 0 8px 24px rgba(0,0,0,0.22),0 0 18px rgba(109,94,247,0.16);
}

.music-player button:active, #openGift:active{
    transform: scale(0.96);
}

/*=============Botão da homenagem============*/

#unlockSection:not(.hidden) {
    animation:unlockReveal 1s ease-out both;
}

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

#openGift{
    animation: giftPulse 2.8s ease-in-out infinite;
}

@keyframes giftPulse{
    0%, 100%{
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 0 rgba(255, 111, 174, 0);
    }
    50%{
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 22px rgba(255, 111, 174, 0.28);
    }
}

/*======rodapé==========*/
footer{
    animation: footerReveal 1.2s ease-out 1.2s both;
}

@keyframes footerReveal{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

/* =========================================
   CORAÇÃO AO DESBLOQUEAR
========================================= */

.heart-unlocked img {
    animation:
        unlockedHeartPulse 1.4s ease-in-out infinite;
}

@keyframes unlockedHeartPulse {

    0%,
    100% {
        transform: scale(1);

        filter:
            drop-shadow(
                0 0 12px rgba(255, 111, 174, 0.5)
            );
    }

    50% {
        transform: scale(1.18);

        filter:
            drop-shadow(
                0 0 28px rgba(255, 111, 174, 0.9)
            );
    }

}
/*==========Acessibilidade / Redução de movimento===============*/
/*
@media (prefers-reduced-motion: reduce){
    *,
    *::before,
    *::after{
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}*/