:root {
    --gold: #ffebc4;
    --off-white: #FDFCF8;
    --text: #2D2D2D;
}

body, html {
    margin: 0;
    height: 100%;
    /* Garante que nada saia da tela, nem para o lado nem para baixo */
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

main{
    width: 500px;
    display: grid;
    gap: 20px;
    padding: 0px 20px;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('./imagens/Mikaely\ e\ Talyson\ fundo.JPG') center/cover no-repeat fixed;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 10vw, 5rem);
    letter-spacing: 5px;
    font-weight: 400; /* Fontes cursivas geralmente ficam melhores mais finas */
}

.divider {
    width: 100px;
    height: 2px;
    background: var(--gold);
    margin: 20px auto;
}

.counter-minimal {
    display: flex;
    gap: 15px;
    justify-content: space-evenly;
}


.unit{width: 70px;}
.unit span { font-family: 'Cinzel', serif; font-size: 2rem; font-weight: bold; }
.unit label { display: block; font-size: 1rem; color: var(--gold); letter-spacing: 2px; }

/* Estilo do Slider */
.slider-container {
    position: relative;
    max-width: 800px;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: #fff;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active { opacity: 1; }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botões do Slider */
.slider-container button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255 255 255 / 22%);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.next { right: 0; border-radius: 5px 0 0 5px; }
.prev { left: 0; border-radius: 0 5px 5px 0; }

.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    /* Evita que o navegador crie scroll se o coração balançar para fora */
    overflow: hidden; 
}

.heart {
    position: absolute;
    will-change: transform; /* Otimização de performance */
    pointer-events: none;
    user-select: none;
    z-index: 10;
    /* Força o uso da GPU */
    transform: translate3d(0,0,0); 
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translate3d(0, -10vh, 0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translate3d(0, 110vh, 0) rotate(360deg);
        opacity: 0;
    }
}

/* Novo Card de Vídeo */
.video-link-card {
    position: relative;
    display: block;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-link-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn::after {
    content: '';
    border-left: 15px solid #2D2D2D;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px;
}

.video-link-card:hover img {
    transform: scale(1.1);
}

.music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
}

/* Tela Cheia */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1B263B 0%, #0d131d 100%); /* Azul profundo da paleta */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000; /* Acima de tudo */
    transition: opacity 1.5s ease, visibility 1.5s;
    color: white;
    text-align: center;
}

.welcome-content {
    animation: fadeIn 2s ease-out;
}

.welcome-subtitle {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.welcome-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3.5rem, 12vw, 6rem); /* Aumentei um pouco para dar impacto */
    color: var(--gold);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    margin: 10px 0;
    font-weight: 400; /* Fontes cursivas geralmente ficam melhores mais finas */
}

.welcome-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 30px auto;
}

.start-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 15px 40px;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.5s ease;
    border-radius: 50px;
}

.start-btn:hover {
    background: var(--gold);
    color: #1B263B;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

/* Esconder a tela ao clicar */
.welcome-hidden {
    opacity: 0;
    visibility: hidden;
}

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

/* Classe para quando a música estiver tocando (opcional: animação de balanço) */
.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

@media screen and (max-width: 926px) {
    .hero {
        display: grid;
        height: auto;
        padding-top: 20px;
    }

    .hero-content{
        display: grid;
        justify-items: center;
          p{ 
            width: 80%;
            text-align: center;
         }
    }
    .counter-minimal{
        flex-wrap: wrap;
        width: 80%;
        padding: 20px;
    }
    main{
        width: auto;
        padding: 0px 30px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 430px){
    .slider-container{
        height: 150px;
    }
    .heart {
        text-shadow: none !important; /* Sombras pesam muito no processamento mobile */
        filter: none !important;
    }
}