:root {
    --bg-color: #fdfbf7;
    --text-color: #4a3b32;
    /* Dark Coffee */
    --accent-color: #c17c5b;
    /* Terra cotta / Warm Brown */
    --envelope-color: #d6cfb8;
    /* Slightly darker/warmer for contrast */
    /* Paper-like envelope color */
    --envelope-shadow: rgba(0, 0, 0, 0.1);
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-serif);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Beautiful subtle texture background */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* --- NEW HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darker overlay for text readability */
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 10;
    padding: 20px;
    animation: fadeIn 2s ease-out;
}

.hero-content .intro-text {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-content .names {
    color: white;
    font-size: 5rem;
    margin: 10px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content .ampersand {
    color: #e6dfc8;
    /* Lighter elegant accent for dark background */
}

.date-hero {
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* --- COUNTDOWN --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cd-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cd-box span {
    font-size: 2.2rem;
    font-weight: 600;
    font-family: var(--font-serif);
    display: block;
    line-height: 1;
}

.cd-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 5px 0 0 0;
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- NEW PREMIUM CLASSES & GLASSMORPHISM --- */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.invitation-container {
    background-color: transparent;
    /* Remove solid background */
    width: 100%;
    max-width: 900px;
    padding: 80px 20px;
    text-align: center;
    margin: 0 auto;
}

/* Typography Refinements */
h1,
h2,
.signature-names {
    font-family: var(--font-script);
    font-weight: 400;
    color: #4a4a4a;
}

p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* Header */
.intro-text {
    font-family: var(--font-script);
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 60px;
    /* Push down to avoid floral overlap */
    color: #6b6b6b;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    /* Ensure text is above flowers if they do touch */
}

.sub-intro {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 50px;
    border-bottom: 1px solid #dcdcdc;
    display: inline-block;
    padding-bottom: 12px;
    color: #888;
}

/* Names */
.names-section {
    margin-bottom: 70px;
}

.names {
    font-size: 5rem;
    line-height: 1.1;
    margin: 25px 0;
    color: #4a3b32;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.03);
}

.ampersand {
    font-size: 3rem;
    color: var(--accent-color);
    display: inline-block;
    margin: 0 15px;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
}

/* Details & Maps */
.date-time {
    font-size: 1.4rem;
    margin: 30px auto;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    color: #555;
    background: transparent;
}

/* Gift Info */
.gift-info {
    font-size: 1.1rem;
    margin-bottom: 60px;
    color: #777;
    font-style: italic;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
}

.signature-intro {
    font-family: var(--font-script);
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #666;
}

.signature-names {
    font-size: 3rem;
    margin-bottom: 30px;
}

.final-msg {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 80px;
    /* Push up from bottom flower */
    font-size: 0.8rem;
    color: #999;
    position: relative;
    z-index: 2;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    color: #555;
    border: 1px solid #ccc;
    padding: 14px 28px;
    border-radius: 30px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-solid {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 16px 35px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(193, 124, 91, 0.4);
    transition: all 0.3s ease;
}

.btn-solid:hover {
    background-color: #a66548;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(193, 124, 91, 0.5);
}

.btn-outline {
    text-decoration: none;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Floral Corners */
.floral-corner {
    position: absolute;
    width: 350px;
    height: 350px;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 999;
    filter: sepia(1) hue-rotate(-30deg) saturate(1.5) contrast(0.9);
}

.top-left {
    top: -40px;
    left: -40px;
    background-image: url('assets/floral_top_left.png');
}

.top-right {
    display: none;
}

.bottom-left {
    display: none;
}

.bottom-right {
    bottom: -40px;
    right: -40px;
    background-image: url('assets/floral_bottom_right.png');
}

/* Responsive */
@media (max-width: 768px) {
    .names {
        font-size: 3rem;
    }

    .hero-content .names {
        font-size: 3.5rem;
    }

    .cd-box {
        padding: 10px;
        min-width: 60px;
    }

    .cd-box span {
        font-size: 1.5rem;
    }

    .invitation-container {
        padding: 40px 15px;
    }

    .floral-corner {
        width: 200px;
        height: 200px;
    }

    .top-left {
        top: -20px;
        left: -20px;
    }

    .bottom-right {
        bottom: -20px;
        right: -20px;
    }

    .date-time {
        flex-direction: column;
        gap: 15px;
    }

    .timeline {
        margin-left: 20px;
    }
}

/* --- New Section Styles for Eder & Raquel --- */

.section-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    margin-top: 50px;
    font-weight: 400;
}

/* Itinerary Timeline */
.timeline {
    text-align: left;
    max-width: 320px;
    margin: 30px auto;
    border-left: 2px solid #e0e0e0;
    padding-left: 25px;
    position: relative;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    /* Adjust to sit on the line */
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e0e0e0;
}

.timeline .time {
    display: block;
    font-weight: 600;
    color: #5a5a5a;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: var(--font-serif);
}

.timeline .event {
    color: #777;
    font-style: italic;
    font-size: 1rem;
}

/* Dress Code */
.code-type {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.dress-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dress-item {
    text-align: center;
}

.dress-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #444;
}

.dress-desc {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.4;
}

/* Guest Panel */
.guest-panel {
    background: linear-gradient(135deg, rgba(141, 163, 153, 0.15) 0%, rgba(193, 124, 91, 0.1) 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.guest-name {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-family: var(--font-serif);
}

.passes-info {
    font-size: 1.2rem;
    color: #666;
}

.passes-count {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.4rem;
}

/* Photo Gallery */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.grid-img {
    width: 100%;
    height: 300px;
    /* Uniform height */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.grid-img:hover {
    transform: scale(1.03);
}

/* Dress Code Override */
.icon-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(193, 124, 91, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin: 0 auto 15px auto;
}

.color-restriction {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.04);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    margin-top: 20px;
}

/* Gifts */
.gift-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.gift-card {
    border: 1px solid #e6dfc8;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    border-radius: 16px;
    width: auto;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.gift-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.account-number {
    font-family: monospace;
    font-size: 1.3rem;
    margin-top: 15px;
    font-weight: bold;
    color: var(--accent-color);
    background: rgba(193, 124, 91, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.account-number:hover {
    background: rgba(193, 124, 91, 0.2);
}

.copy-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-family: sans-serif;
    white-space: nowrap;
}

.account-number:hover .copy-tooltip {
    opacity: 1;
}

/* Music Control Button (Adjusted for Hero layout) */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 2px solid transparent;
}

.music-control.visible {
    opacity: 1;
    pointer-events: auto;
}

.music-control.playing {
    border-color: var(--accent-color);
    animation: pulse 2s infinite;
}

.music-control:hover {
    transform: scale(1.1);
    background-color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(193, 124, 91, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(193, 124, 91, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(193, 124, 91, 0);
    }
}

/* Hidden but rendered player for mobile */
.hidden-player {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0.001;
    pointer-events: none;
    z-index: -9999;
    visibility: hidden;
    /* Added visibility hidden as well for good measure, though verify if it stops playback */
}

.btn-small:hover {
    background-color: var(--accent-color);
    color: white !important;
}