/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Variáveis CSS */
:root {
    --primary-color: #556B2F;
    --secondary-color: #eaf5dc;
    --accent-color: #253f1f;
    --white: #FFFFFF;
    --light-gray: #D3D3D3;
    --dark-gray: #666;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Tipografia */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Controle de Música */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.music-control:hover {
    transform: scale(1.1);
    background-color: #B8860B; /* Cor dourada do hover do botão RSVP */
}

.music-control i {
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(85, 107, 47, 0.3), rgba(85, 107, 47, 0.3)), url('../img/kamillykendycasadosbg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(85, 107, 47, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
    
}

.wedding-date {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Contagem Regressiva */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Fundo de Folhas Romântico */
.nossa-historia,
.dress-code {
    position: relative; /* Necessário para o pseudo-elemento */
    z-index: 1;
}

.nossa-historia::before,
.dress-code::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/fundofolhasverdes.png'); /* Caminho para sua imagem */
    background-repeat: repeat;
    opacity: 0.15; /* Opacidade bem baixa para ser sutil */
    z-index: -1; /* Coloca o padrão atrás do conteúdo */
}

/* Nossa História */
.nossa-historia {
    padding: 100px 0;
    background: var(--secondary-color);
}

.historia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.historia-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    text-align: justify;
}

.couple-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.couple-photo:hover {
    transform: scale(1.05);
}

/* Galeria */
.galeria {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(85, 107, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(85, 107, 47, 0.8);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary-color);
}

/* Detalhes do Evento */
.evento {
    padding: 100px 0;
    background: var(--primary-color);
    color: var(--white);
}

.evento .section-title {
    color: var(--white);
}

.evento .section-title::after {
    background: var(--accent-color);
}

.evento-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.evento-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.evento-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.evento-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.evento-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.evento-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.map-link:hover {
    color: var(--white);
}

/* RSVP */
.rsvp {
    padding: 100px 0;
    background: var(--secondary-color);
}

.rsvp-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1);
}

.rsvp-button {
    width: 100%;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rsvp-button:hover {
    background: #B8860B;
    transform: translateY(-2px);
}

.rsvp-success {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.rsvp-success i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.rsvp-success h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Lista de Presentes */
.presentes {
    padding: 100px 0;
    background: var(--white);
}

.presentes-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

.presentes-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.presente-item {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--secondary-color);
    border-radius: 15px;
    transition: var(--transition);
}

.presente-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.presente-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.presente-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.presente-item p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.presente-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.presente-link:hover {
    background: #4a5d29;
    transform: translateY(-2px);
}

/* Contato */
.contato {
    padding: 100px 0;
    background: var(--primary-color);
    color: var(--white);
}

.contato .section-title {
    color: var(--white);
}

.contato .section-title::after {
    background: var(--accent-color);
}

.contato-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contato-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contato-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Rodapé */
.footer {
    background: #2c3e1a;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer i {
    color: var(--accent-color);
}

/*------------------------------------*\
    #DRESS CODE
\*------------------------------------*/
.dress-code {
    padding: 100px 0;
    background: var(--secondary-color); /* Usa a cor de fundo suave, como a da seção "Nossa História" */
}

.dress-code-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dress-code-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dois cards lado a lado */
    gap: 3rem;
    align-items: stretch; /* Garante que os cards tenham a mesma altura */
}

.dress-code-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.dress-code-card:hover {
    transform: translateY(-10px);
}

.dress-code-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.dress-code-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dress-code-description {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1; /* Faz a descrição ocupar o espaço disponível, alinhando os botões */
}

.dress-code-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto; /* Empurra o botão para a base do card */
}

.dress-code-button:hover {
    background: #4a5d29; /* Um tom um pouco mais claro do verde */
    transform: scale(1.05);
}

.dress-code-button i {
    margin-right: 0.5rem;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .dress-code-content {
        grid-template-columns: 1fr; /* Coloca os cards um abaixo do outro */
    }
}



/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .wedding-date {
        font-size: 1.5rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        padding: 1rem;
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .historia-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .evento-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .presentes-options {
        grid-template-columns: 1fr;
    }
    
    .contato-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .rsvp-form {
        margin: 0 20px;
        padding: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .countdown-item {
        padding: 0.8rem;
        min-width: 70px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .rsvp-form {
        margin: 0 10px;
        padding: 1.5rem;
    }
}

