:root {
    /* Colors */
    --color-terracotta: #7A3F27;
    --color-terracotta-dark: #713A25;
    --color-terracotta-light: #82472C;
    --color-cream: #F8F0E3;
    --color-cream-dark: #F4E7D3;
    --color-cream-light: #FFF9EF;
    --color-white-warm: #FFFDF8;
    
    --color-gold: #C99A50;
    --color-gold-dark: #B9893F;
    --color-gold-light: #D5AB65;
    
    /* Fonts */
    --font-calligraphy: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-terracotta-dark);
    font-family: var(--font-serif);
    color: var(--color-cream);
    display: flex;
    justify-content: center;
}

.mobile-container {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    background-color: var(--color-terracotta);
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Typography Classes */
.calligraphic {
    font-family: var(--font-calligraphy);
    font-weight: 400;
}
.serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* =========================================
   ENVELOPE INTRO
   ========================================= */
.no-scroll {
    overflow: hidden !important;
}

.envelope-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    background-color: var(--color-cream);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}

.envelope-section.hidden {
    opacity: 0;
    visibility: hidden;
}

#envelope-canvas {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.envelope-text {
    position: absolute;
    bottom: 15%;
    font-size: 1rem;
    color: var(--color-terracotta-dark);
    letter-spacing: 2px;
    pointer-events: none;
    text-transform: uppercase;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: auto; /* Permite que a altura acompanhe a proporção do vídeo */
    background-color: var(--color-terracotta-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#hero-video {
    width: 100%;
    height: auto; /* Mantém a proporção exata sem cortar as bordas */
    display: block;
}



/* =========================================
   SCRATCH DATE SECTION
   ========================================= */
.scratch-date-section {
    padding: 60px 20px;
    text-align: center;
    background-image: url('assets/images/date_background.jpg');
    background-size: cover;
    background-position: top center;
}

.section-title {
    font-size: 3rem;
    color: var(--color-cream-light);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-cream);
    margin-bottom: 40px;
    font-style: italic;
}

.scratch-cards-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.scratch-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scratch-card {
    position: relative;
    width: 115px; /* Slightly wider */
    height: 160px; /* Much taller */
    background-color: #F5F5DC; /* Bege */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.scratch-value {
    font-size: 1.5rem;
    color: var(--color-terracotta);
    font-family: var(--font-serif);
    font-weight: 600;
    z-index: 1;
}

.scratch-card canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    touch-action: none; /* Prevent scroll while scratching */
    border-radius: 12px;
    transition: opacity 0.8s ease; /* Smoother fade out */
}

.scratch-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-cream);
}

/* =========================================
   INVITATION TEXT
   ========================================= */
.invitation-text-section {
    padding: 0; /* Remove padding for full width image */
    background-color: var(--color-terracotta-dark); /* Fallback */
}

.invitation-text-img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   COUNTDOWN
   ========================================= */
.countdown-section {
    position: relative;
    padding: 0;
    margin: 0;
    background-image: url('assets/images/countdown_bg.jpg');
    background-size: cover;
    background-position: center;
}

.paper-background {
    padding: 120px 20px; 
    text-align: center;
    box-shadow: none;
}

.countdown-title {
    font-size: 2.8rem;
    color: var(--color-terracotta-dark);
    margin-bottom: 30px;
    line-height: 1.1;
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.timer-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-terracotta-dark);
    font-family: var(--font-serif);
}

.timer-label {
    font-size: 0.8rem;
    color: var(--color-terracotta);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-separator {
    font-size: 2rem;
    color: var(--color-terracotta-dark);
    margin-top: -15px;
}

/* =========================================
   SCHEDULE / TIMELINE (VIDEO SCROLL)
   ========================================= */
.schedule-section {
    position: relative;
    width: 100%;
    background-color: var(--color-terracotta-dark);
}

.schedule-sticky-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#schedule-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   LOCATION
   ========================================= */
.location-section {
    padding: 60px 20px;
    text-align: center;
}

.ornament-line {
    width: 80px;
    height: 1px;
    background-color: var(--color-gold);
    margin: 15px auto 30px;
}

.venue-name {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--color-cream-light);
    margin-bottom: 10px;
}

.venue-address {
    font-size: 1rem;
    color: var(--color-cream);
    line-height: 1.5;
    margin-bottom: 30px;
}

.venue-photo-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.venue-photo-container img {
    width: 100%;
    height: auto;
    display: block;
}

.venue-floral-overlay {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    /* Normally would use an image here, using radial gradient to mimic something */
    background: radial-gradient(circle, rgba(201,154,80,0.4) 0%, transparent 70%);
}

.map-container {
    width: 90%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--color-gold);
    position: relative;
}

/* =========================================
   GUEST REMINDER
   ========================================= */
.guest-reminder-section {
    padding: 0;
    background-color: var(--color-terracotta-dark);
    position: relative;
}

.guest-reminder-img {
    width: 100%;
    height: auto;
    display: block;
}

.guest-reminder-buttons {
    position: absolute;
    bottom: 20%; /* Moved up from 12% as requested */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5%;
    padding: 0 10%;
}

.reminder-btn {
    width: 45%;
    max-width: 160px;
    display: block;
    transition: transform 0.3s ease;
}

.reminder-btn:hover {
    transform: scale(1.05);
}

.reminder-btn img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   FINAL PHOTO
   ========================================= */
.final-photo-section {
    padding: 0;
    background-color: var(--color-terracotta-dark);
}

.final-photo-img {
    width: 100%;
    height: auto;
    display: block;
}
