html, body{
    overflow-x: hidden;
    width: 100%;
    overflow-x: clip;

}

section, .hero, .overlay, .overlay-fotos, .contador-layout, .carrossel, .card, .tickets-page{
    max-width: 100%;
}

*{
    box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", serif;
  background: #0F172A;
  color: #F8FAFC;
  text-align: center;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    background:rgba(15,23,42,0.65);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 100;
}

.navbar{
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.navbar a{
    color: #F8FAFC;
    transition: 0.3s;
    text-decoration: none;
}

.navbar a:hover{
    color: #38BDF8;
}

.cadeado{
    position: absolute;
    right: 30px;
    display: flex;
    align-items: center;
}

#cad{
    width: 26px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

#cad:hover{
    transform: scale(1.12);
    filter: drop-shadow(0 0 10px rgba(56,189,248,0.5));
}

/* Títulos das seções */
.section-title{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 25px;
    color: #F8FAFC;
    letter-spacing: 0.5px;
}

section{
    position: relative;
}

section::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background:rgba(255,255,255,0.05);
}

/* Hero */
.hero{
    min-height: 100%;
    background: linear-gradient(to bottom, rgba(15,23,42,0.15), rgba(15,23,42,0.55)), url('../imagens/principal.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero .overlay{
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    background:rgba(15,23,42,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 35px;
    width: min(90%, 750px);
    padding: clamp(25px, 5vw, 50px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    overflow: hidden;
}

.hero .overlay::before{
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200px;
    height: 200%;
    background: linear-gradient(to right, transparent,rgba(255,255,255,0.08),transparent);
    transform: rotate(25deg);
    animation: shine 8s linear infinite;
}

@keyframes shine{

    from{
        left: -60%;
    }

    to{
        left: 140%;
    }
}

.overlay{
    position: relative;
    z-index: 2;
}

.hero h1{
    font-size: clamp(3rem, 8vw, 6rem);
    color: #F8FAFC;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

section {
  padding: 60px 20px;
}

.hero p{
    color: rgba(255,255,255,0.8);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.hero-text{
    margin-top: 18px;
    font-size: 1.15rem;
    color:rgba(255,255,255,0.78);
    line-height: 1.6;
    letter-spacing: 0.4px;
}

.hero span{
    font-size: 2rem;
}

.hero::before{
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background:rgba(56,189,248,0.12);
    border-radius: 50%;
    filter: blur(140px);
    animation: heroGlow 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroGlow{

    0%,100%{
        transform: scale(1);
        opacity: 0.6;
    }

    50%{
        transform: scale(1.08);
        opacity: 1;
    }
}

.contador-layout{
    display: flex;
    gap: 30px;
    align-items: stretch;
    justify-content: center;
    max-width: 1400px;
    margin: auto;
}

/* Casal */

.couple-card{
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;
    overflow: hidden;
    width: 420px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    transition: 0.3s;
    position: relative;
    flex-shrink: 0;
}

.couple-card:hover{
    transform: translateY(-5px);
}

.couple-card img{
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    background: #0f172a;
}

.couple-info{
    padding: 18px 25px 22px;
    text-align: left;
}

.couple-info h3{
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
    opacity: 0.8;
}

.couple-info p{
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0px;
    line-height: 1.1;
}

.couple-info span{

    color:rgba(255,255,255,0.7);
    font-size: 0.95rem;
    display: block;
    margin-top: 0;
}


.couple-card:hover img{
    transform: scale(1.03);
}

.couple-card::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to top,rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

/* Contador */
.contador {
    min-height: 100vh;
    background:linear-gradient(135deg,#111827,#1f2937,#0f172a);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}


/* Partículas flutuantes */
.particles{
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particles span{
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    animation: floatParticle linear infinite;
    bottom: -20px;
}

.particles::before, .particles::after{
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    box-shadow:
    100px 200px rgba(255,255,255,0.5),
    300px 100px rgba(255,255,255,0.6),
    500px 400px rgba(255,255,255,0.4),
    700px 250px rgba(255,255,255,0.7),
    900px 150px rgba(255,255,255,0.5),
    1200px 350px rgba(255,255,255,0.6);
    animation: floatParticles 12s linear infinite;
}

.particles::after{
    animation-duration: 18s;
    opacity: 0.5;
}

.particles span:nth-child(1){
    left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.particles span:nth-child(2){
    left: 15%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.particles span:nth-child(3){
    left: 25%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.particles span:nth-child(4){
    left: 35%;
    animation-duration: 14s;
    animation-delay: 3s;
}

.particles span:nth-child(5){
    left: 50%;
    animation-duration: 9s;
    animation-delay: 2s;
}

.particles span:nth-child(6){
    left: 65%;
    animation-duration: 13s;
    animation-delay: 1s;
}

.particles span:nth-child(7){

    left: 75%;
    animation-duration: 11s;
    animation-delay: 4s;
}

.particles span:nth-child(8){
    left: 85%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.particles span:nth-child(9){
    left: 92%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.particles span:nth-child(10){
    left: 98%;
    animation-duration: 12s;
    animation-delay: 5s;
}

@keyframes floatParticle{

    from{
        transform:
        translateY(0)
        scale(1);
        opacity: 0;
    }

    20%{
        opacity: 1;
    }

    to{
        transform:
        translateY(-110vh)
        scale(0.5);
        opacity: 0;
    }
}

/* Galeria de partículas para a galeria */
.particles-gallery{
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particles-gallery span{
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background:rgba(255,255,255,0.15);
    filter: blur(2px);
    animation: floatGallery linear infinite;
    bottom: -50px;
}

.particles-gallery span:nth-child(1){
    left: 10%;
    animation-duration: 14s;
}

.particles-gallery span:nth-child(2){
    left: 30%;
    animation-duration: 18s;
}

.particles-gallery span:nth-child(3){
    left: 55%;
    animation-duration: 16s;
}

.particles-gallery span:nth-child(4){
    left: 75%;
    animation-duration: 20s;
}

.particles-gallery span:nth-child(5){
    left: 90%;
    animation-duration: 15s;
}

@keyframes floatGallery{

    from{
        transform:
        translateY(0)
        scale(1);
        opacity: 0;
    }

    20%{
        opacity: 1;
    }

    to{
        transform:
        translateY(-110vh)
        scale(1.4);
        opacity: 0;
    }
}

/* container dos quadrados */

.tempo{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
    height: 100%;
}

.time-card{
    background:rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.time-card:hover{
    transform: translateY(-5px);
    background: rgba(255,255,255,0.12);
}

.time-card span{
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    display: block;
}

.time-card p{
    margin-top: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* hover */

.box:hover{
    transform: translateY(-5px);
}

/* números */

.box span{
    font-size: 2.5rem;
    font-weight: bold;
    color: #38BDF8;
}

/* textos */

.box p{
    margin: 8px 0 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
}



/* Galeria */

#fotos{
    min-height: 100vh;
    background: linear-gradient(135deg,#111827,#1e293b,#0f172a);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.overlay-fotos {
  background: rgba(255, 255, 255, 0.7);
  width: 90%;
  height: auto;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  
}

.overlay h2{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 25px;
}

.overlay-fotos, .box, .hero .overlay{
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    border:1px solid rgba(255,255,255,0.1);
}

.carrossel{
    display: flex;
    gap: 1.2rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.card{
    width: 715px;
    height: 450px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 25px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    scroll-snap-align: center;
    transition:  0.3s ease, box-shadow 0.3s ease;
}

.card:hover{
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Camada escura */
.card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: 0.3s;
}

/* Escurece no hover */
.card:hover::before{
  background: rgba(0, 0, 0, 0.45);
}

/* Mensagem */
.mensagem{
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 25px;
    color: white;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.7;
    text-align: left;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    max-height: 75%;
    overflow-y: auto;
    padding-right: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.mensagem p{
    margin-top: 14px;
}

/* Aparecer mensagem */
.card:hover .mensagem{
  opacity: 1;
  transform: translateY(0);
}

/* responsividade: botões menor em telas pequenas */
.card{

    width: clamp(220px, 80vw, 715px);
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
    border-radius: 25px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    scroll-snap-align: center;

}

::-webkit-scrollbar{
    height: 10px;
    width: 10px;
}

/* trilho */
::-webkit-scrollbar-track{
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
}

/* barra */
::-webkit-scrollbar-thumb{
    background: rgba(56,189,248,0.5);
    border-radius: 999px;
}

/* hover */
::-webkit-scrollbar-thumb:hover{ 
    background: rgba(56,189,248,0.8);
}

/* Para destacar a imagem ativa */
.card.active::before{
    background: rgba(0,0,0,0.45);
}

.card.active .mensagem{
    opacity: 1;
    transform: translateY(0);
}

/* Música */
#musicas{
    min-height: 100vh;
    position: relative;
    background:linear-gradient(rgba(15,23,42,0.55),rgba(15,23,42,0.78)),url('../imagens/musica-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    overflow: hidden;
}

#musicas::before{
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background:rgba(56,189,248,0.06);
    filter: blur(180px);
    z-index: 1;
    animation: pulseGlow 6s ease-in-out infinite;
}

#musicas iframe{
    position: relative;
    z-index: 2;
    width: min(100%, 900px);
    height: 600px;
    border: none;
    border-radius: 30px;
    background:rgba(15,23,42,0.18);
    opacity: 0.60;
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    transition:
    0.4s ease,
    opacity 1.2s ease,
    transform 1.2s ease;
}

#musicas.show iframe{
    opacity: 1;
    transform: translateY(0) scale(1);
}

#musicas iframe:hover{
    transform: translateY(-5px);
    opacity: 0.85;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

@keyframes pulseGlow{

    0%,100%{
        transform:
        scale(1);
        opacity: 0.7;
    }

    50%{
        transform:
        scale(1.08);
        opacity: 1;
    }
}

/* Rodapé */
footer{
    background: rgba(15,23,42,0.95);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 30px 20px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

footer p{
    margin: 0;
    letter-spacing: 1px;
}

/* Responsividade */

@media (max-width: 580px) {

  .carrossel{
    flex-direction: column;
    align-items: center;

    overflow-x: hidden;
    overflow-y: visible;
  }

  .mensagem{
    bottom: 30px;
  }
  .box{
    width: 120px;
    height: 120px;
  }
}



/* Para telas menores, ajustar o layout do contador */
@media (max-width: 700px){

    .tempo{
        grid-template-columns:
        repeat(2, 1fr);
    }

    #musicas::before{
        width: 320px;
        height: 320px;
    }

    .mensagem{
        max-width: 80%;
        font-size: 1rem;
        padding: 30px 15px;
    }

    #musicas iframe{
        height: 480px;
        opacity: 0.72;
    }

    .hero{
        align-items: flex-start;
        padding: 15px;
        min-height: 100vh;
        background-position: center 15%;
    }

    .hero .overlay{
        padding: 35px 25px;
        margin-top: 90px;
        width: 100%;
        border-radius: 28px;
        backdrop-filter: blur(10px);
        background:rgba(15,23,42,0.45);
    }

    .overlay-fotos{
        width: 100%;
        padding: 15px 8px;
        border-radius: 0;
    }

    .carrossel{
        gap: 18px;
        padding-inline: 6px;
    }

    .card{
        width: 96vw;
        max-width: none;
        margin: 0 auto;
        border-radius: 22px;
        aspect-ratio: 9 / 13;
    }

    .foto-1{
        background-position: center 95%;
    }
}

@media (max-width: 362px){

    .mensagem{
        font-size: 1rem;
        padding: 0px 15px;
    }
}

@media (max-width: 332px){

    .mensagem{
        font-size: 1rem;
        padding: 10px 15px;
    }
}

@media (max-width: 422px){

    .cadeado{
        position: static;
        margin-left: 20px;
    }
}

@media (max-width: 1100px){

    .contador-layout{
        flex-direction: column;
        align-items: center;
    }

    .couple-card{
        width: 100%;
        max-width: 700px;
    }

    .tempo{
        width: 100%;
    }
}

@media (min-width: 1101px){

    .tempo{
        height: 100%;
    }

    .time-card{
        min-height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

