:root {
    --bg-color: #FAF6F0; 
    --text-color: #2D2824; 
    --accent-color: #B8965B; 
    --line-color: rgba(45, 40, 36, 0.25); 
    --white: #ffffff;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400; 
}

/* Boríték / Envelope Overlay */
body.no-scroll {
    overflow: hidden !important;
}

#envelope-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Világos bézs vászon/asztal hatású háttér a sötét boríték mögé */
    background: radial-gradient(circle at center, #F8F5F0 0%, #D8D2C8 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

#envelope-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope-wrapper {
    position: relative;
    cursor: pointer;
    perspective: 2000px; /* Nagyobb perspektíva a valósághű térbeliségért */
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(0) scale(1);
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.envelope-wrapper.open {
    transform: translateY(25vh) scale(1.1); /* Lejjebb toljuk, mert a levél sokkal magasabbra jön ki */
}

.envelope {
    position: relative;
    width: 90vw;
    max-width: 480px;
    aspect-ratio: 1.55; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.15), 0 10px 20px rgba(0,0,0,0.1);
}

/* Boríték legbelső része (hátlap) */
.envelope::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #D1C0AA; /* Sötétebb bézs, ami mélységet ad a belsejének */
    z-index: 0; /* Leghátul van! */
}

.envelope-letter {
    position: absolute;
    top: 5px; left: 10px; right: 10px; bottom: 15px;
    background-color: #FFFFFF;
    border: 1px solid rgba(184, 150, 91, 0.3); /* Finom arany keret */
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 2; 
    /* A translateZ(2px) elengedhetetlen, mert Safari/iOS alatt a rotateX(180deg) 
       a fülön egy olyan 3D réteget hoz létre, ami átüti a sima z-indexet! */
    transform: translateZ(2px); 
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.letter-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-color);
    font-style: italic;
    opacity: 0.9;
    text-align: center;
    line-height: 1.1;
}

.envelope-wrapper.open .envelope-letter {
    /* Nem húzzuk ki teljesen, hogy a fül csúcsa (és a kilógó pecsét) szabadon maradjon a levél felett */
    transform: translateY(-190px) translateZ(2px); 
}

/* --- Valósághű matt papír átfedések --- */

/* Papír textúra minden fülre */
.envelope-left, .envelope-right, .envelope-bottom, .envelope-flap {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

.envelope-left {
    position: absolute;
    top: 0; left: 0; width: 50%; height: 100%;
    background-color: #E8D6C3; /* Oldalsó krém fülek */
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    z-index: 3;
    box-shadow: inset -10px 0 20px rgba(0,0,0,0.03);
}

.envelope-right {
    position: absolute;
    top: 0; right: 0; width: 50%; height: 100%;
    background-color: #E8D6C3;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    z-index: 4;
    box-shadow: inset 10px 0 20px rgba(0,0,0,0.03);
}

.envelope-bottom-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5;
    filter: drop-shadow(0 -3px 8px rgba(0,0,0,0.1));
    overflow: hidden; 
}

.envelope-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 70.7106%;
    aspect-ratio: 1;
    background-color: #EDE0CE; /* Picit világosabb alsó fül */
    transform: translate(-50%, 50%) rotate(45deg);
    /* Csak a felső csúcsa legyen lekerekítve, a sarkok élesek maradjanak a tökéletes fedésért */
    border-radius: 12px 0 0 0; 
    box-shadow: inset 0 0 30px rgba(0,0,0,0.05); 
}

.envelope-flap-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 6;
    transform-origin: top;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 5px 12px rgba(0,0,0,0.15));
    overflow: hidden;
}

/* Ez csak forgat, nincs háttérszíne */
.envelope-flap-rotator {
    position: absolute;
    top: 0;
    left: 50%;
    width: 70.7106%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Ez a konkrét papír a forgatón belül */
.envelope-flap-paper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #F4EBE0; 
    /* Csak az alsó csúcsa legyen lekerekítve, a többi sarka éles maradjon, 
       hogy ne kandikáljanak ki a bal és jobb oldali fülek a sarkoknál! */
    border-radius: 0 0 20px 0; 
    box-shadow: inset 0 0 40px rgba(0,0,0,0.04); 
    z-index: 2; /* A papír a 2-es szinten van */
}

/* Kinyitás: a fül a hátlap (0) fölé, de a levél (2) mögé kerül! */
.envelope-wrapper.open .envelope-flap-wrapper {
    transform: rotateX(180deg);
    z-index: 1; 
    filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

/* Valósághű, prémium papírba nyomott monogram (Embossed stamp) */
.envelope-seal {
    position: absolute;
    /* A forgató csúcsánál van (jobb alsó sarok) */
    top: 100%; left: 100%; 
    /* Visszaforgatjuk 45 fokkal, hogy a szöveg vízszintes legyen */
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 65px; height: 65px;
    background-color: #E3D1BB; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    border-radius: 50%;
    z-index: 3; /* Zárva a papír (2) ELŐTT van */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Prémium arany szöveg */
    color: #9C7840; 
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8); 
    
    /* Dombornyomott papír hatás az árnyékokkal (Neumorphism) */
    box-shadow: 
        -2px -2px 5px rgba(255,255,255,0.7), 
        3px 3px 6px rgba(0,0,0,0.1),
        inset 0 0 0 1px rgba(156, 120, 64, 0.15); 
        
    transition: none; /* Nincs animáció, azonnal mögé ugrik! */
}

.envelope-seal::before {
    display: none;
}

/* Amikor kinyílik, a fül hátulját látjuk. A pecsét fizikailag a papír MÖGÉ (1) kerül!
   Így a papír (2) kitakarja a pecsét papíron lévő felét, de a lelógó rész látszik! */
.envelope-wrapper.open .envelope-seal {
    z-index: 1; /* Nyitva a papír (2) MÖGÉ kerül! */
    color: transparent;
    text-shadow: none;
}

.envelope-instruction {
    margin-top: 5rem;
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #A38048; /* Harmonizál a pecséttel */
    font-weight: 600;
    animation: pulse-text 2.5s infinite ease-in-out;
    transition: opacity 0.5s ease;
}

.envelope-wrapper.open .envelope-instruction {
    opacity: 0;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}



/* Remove border frame on mobile for a breathable, elegant layout */
.border-frame {
    display: none;
}

@media (min-width: 1024px) {
    .border-frame {
        display: block;
        position: fixed;
        top: 20px; left: 20px; right: 20px; bottom: 20px;
        border: 1px solid var(--accent-color);
        pointer-events: none;
        z-index: 100;
        opacity: 0.4;
    }
}

/* Typography */
h1, h2, h3, .names, .quote {
    font-family: var(--font-heading);
    font-weight: 400; 
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 8rem 2rem;
    }
}

.section-subtitle {
    display: block;
    font-size: 0.75rem; 
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500; 
}

.decorative-line {
    width: 1px;
    height: 60px;
    background-color: var(--accent-color);
    margin: 2rem auto;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.7;
}

/* Wash out the background image heavily to ensure perfect text contrast */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(250, 246, 240, 0.7) 0%, rgba(250, 246, 240, 0.9) 70%, var(--bg-color) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    gap: 3rem; /* Guarantee minimum distance between countdown and scroll indicator */
    padding: 1rem 1.5rem; 
    text-align: center;
}

.hero-spacer {
    /* Height matches the scroll indicator approximate height to keep hero-center mathematically perfectly centered */
    height: 80px; 
    flex-shrink: 0;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 2.5rem; /* Luxurious but safe gap */
    padding-bottom: 0;
}

.hero .names {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.85;
    margin-bottom: 0; /* Handled by gap */
}

.hero .names .name {
    font-size: clamp(4.5rem, 18vw, 10rem);
    letter-spacing: -2px;
    color: var(--text-color);
}

.hero .names .ampersand {
    font-size: clamp(3rem, 10vw, 5rem);
    font-style: italic;
    color: var(--accent-color);
    margin: 0.5rem 0 -0.5rem 0;
    font-weight: 400;
}

.hero .subtitle {
    font-size: 0.8rem; 
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9; 
    margin-top: 0; /* Handled by gap */
    max-width: 400px;
    font-weight: 500;
}

/* Countdown Timer */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0; /* Handled by gap */
    gap: 1.5rem;
}

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

.countdown-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-color);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 500;
}

.countdown-separator {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: -1.5rem;
    font-weight: 300;
    opacity: 0.6;
}

/* Custom Player Design */
.custom-music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0; /* Handled by gap */
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 400px;
}

.player-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    margin-bottom: 2.5rem;
}

.player-icon-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    padding: 0;
}
.player-icon-btn:hover {
    transform: scale(1.1);
}
.player-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.player-icon-btn.small-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(184, 150, 91, 0.6); /* --accent-color with opacity */
    color: var(--white);
    flex-shrink: 0;
}
.player-icon-btn.small-circle svg {
    width: 18px;
    height: 18px;
}

.player-play-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    z-index: 2;
}
.player-play-btn:hover {
    transform: scale(1.05);
}
.player-play-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    margin-left: 4px; /* offset for optical centering of play icon */
}
.player-play-btn.is-playing svg {
    margin-left: 0; /* pause icon is centered */
}

/* Curved Text SVG */
.curved-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.curved-text text {
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: 2px;
    fill: var(--text-color);
    text-transform: uppercase;
}

/* Progress Bar */
.player-progress-wrapper {
    width: 100%;
    padding: 0 1rem;
}

.player-progress-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.player-progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.player-progress-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.7;
    margin: 0;
    padding-bottom: 2rem;
}

.scroll-indicator span {
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background-color: var(--text-color);
    animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Calendar Section */
.calendar-section {
    background-color: var(--bg-color);
    padding: 5rem 0 2rem;
    overflow: hidden; /* Biztonsági beállítás, hogy biztosan ne csússzon ki */
}
.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.text-center h2 {
    font-size: clamp(3rem, 10vw, 4.5rem);
    line-height: 1;
}
.calendar-wrapper {
    max-width: 400px;
    width: 100%;
    margin: 2rem auto 3rem;
    padding: 0 5px; /* Kisebb margó, hogy minél több hely maradjon */
    box-sizing: border-box;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr)); /* EZ MEGOLDJA A KILÓGÁST! A minmax(0, 1fr) engedi a cellát összemenni */
    gap: 2px; 
    text-align: center;
    width: 100%;
}
@media (min-width: 400px) {
    .calendar-grid {
        gap: 10px; 
    }
}
.day-name {
    font-size: clamp(0.5rem, 2vw, 0.65rem); /* Még egy picit kisebb, hogy a "SZE" kiférjen */
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 0px; /* Betűköz levétele mobilon */
    margin-bottom: 1rem;
    font-weight: 600;
}
.day {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 4vw, 1.3rem); /* Egy hajszállal kisebb betű a számoknak */
    padding: 2px 0;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1; 
    opacity: 0.8;
}
.day.highlighted {
    position: relative;
    /* A keretet nem magára a cellára tesszük, hogy elkerüljük az ovális torzulást */
    color: var(--accent-color);
    font-style: italic;
    font-size: clamp(1.3rem, 6vw, 2rem);
    opacity: 1;
    z-index: 1; /* Hogy a karikák mögötte legyenek */
    
    /* Vizuális korrekció: a Cormorant betűtípus dőlt, nagy mérete miatt a szám "beesik" balra és lefelé. 
       Ezzel a belső margóval toljuk vissza PONTOSAN a kör közepére és a többi szám vonalába! */
    padding: 0 0 6px 4px !important; 
}

/* Ez a statikus, tökéletes kör */
.day.highlighted::before,
.day.highlighted::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto; /* Tökéletes középre igazítás */
    width: clamp(34px, 10vw, 46px); /* Fix szélesség és magasság -> MINDIG tökéletes kör */
    height: clamp(34px, 10vw, 46px);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
}

.day.highlighted::before {
    z-index: -1;
}

/* Ez az animált (ripple) kör */
.day.highlighted::after {
    animation: ripple 3.5s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -2;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
.calendar-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.calendar-btn {
    padding: 1rem 2rem;
    background-color: transparent;
    border: 1px solid var(--line-color);
    color: var(--text-color);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
}
.calendar-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

/* Split Sections (Mobile First: Arched Editorial Images) */
.split-section {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

.split-image {
    width: 85%;
    max-width: 450px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    border-radius: 200px 200px 0 0; /* Elegant Arch Shape */
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.split-section.reverse .split-image {
    border-radius: 0 0 200px 200px; /* Reverse arch for variety */
}

.split-text {
    padding: 3rem 2rem 5rem;
    background-color: var(--bg-color);
    text-align: center; 
    max-width: 600px;
    margin: -3rem auto 0; /* Overlap the image slightly */
    position: relative;
    z-index: 2;
}

.split-text h2 {
    font-size: clamp(3rem, 10vw, 4.5rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.split-text p {
    font-size: 1rem; 
    line-height: 2;
    opacity: 0.9; 
    margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
    .split-section {
        flex-direction: row;
        align-items: center;
        padding: 5rem 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .split-section.reverse {
        flex-direction: row-reverse;
    }
    
    .split-text {
        flex: 1;
        padding: 4rem 6rem;
        text-align: left;
        margin: 0;
    }
    
    .split-text .decorative-line {
        margin: 2rem 0; 
    }
    
    .split-image {
        flex: 1;
        aspect-ratio: 4 / 5;
        margin: 0;
    }
}

/* Timeline Section */
.timeline-section {
    background-color: #F4EFE9;
    text-align: center;
    padding: 6rem 0;
}

h2.section-title {
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 0.9;
    margin-bottom: 4rem;
    color: var(--text-color);
}

h2.section-title span {
    font-style: italic;
    color: var(--accent-color);
    font-size: clamp(2rem, 6vw, 3.5rem);
    display: block;
    margin-bottom: 0.5rem;
}

/* Dark Mode Timeline Section */
.timeline-section {
    background-color: var(--text-color);
    padding: 6rem 0;
}

.timeline-section h2.section-title {
    color: var(--bg-color);
}

.timeline-section .timeline-item .content h3 {
    color: var(--bg-color);
}

.timeline-section .timeline-item .content p {
    color: var(--bg-color);
    opacity: 0.8;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 0 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 30px; 
    width: 2px; 
    height: 100%;
    /* Gradient line fade out */
    background: linear-gradient(to bottom, var(--accent-color) 0%, var(--accent-color) 80%, transparent 100%);
    opacity: 0.6;
}

.timeline-item {
    position: relative;
    padding-left: 50px; 
    margin-bottom: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 26px; top: 8px; 
    width: 10px; height: 10px; 
    border-radius: 50%;
    background-color: var(--accent-color);
}

.timeline-item .time {
    font-family: var(--font-heading);
    font-size: 2.2rem; 
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.timeline-item .content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.timeline-item .content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Details Section */
.details-section {
    background-color: var(--bg-color);
    padding: 4rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.detail-card {
    text-align: center;
    padding: 3rem 1.5rem;
}

.card-subtitle {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.detail-card h3 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.card-line {
    width: 40px; height: 2px;
    background-color: var(--accent-color);
    margin: 0 auto 1.5rem;
}

.detail-card p {
    font-size: 1rem;
    line-height: 2;
    opacity: 0.9;
}

/* RSVP Form Section */
.rsvp-section {
    position: relative;
    background-color: #F4EFE9;
    padding: 6rem 0;
}

.rsvp-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(250, 246, 240, 0.85); 
    z-index: 0;
}

.rsvp-box {
    position: relative;
    z-index: 2;
    background-color: var(--bg-color);
    padding: 4rem 2rem; 
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--line-color);
}

@media (min-width: 768px) {
    .rsvp-box {
        padding: 5rem 4rem;
    }
}

.rsvp-box h2 {
    font-size: clamp(3rem, 10vw, 4rem);
    margin-bottom: 1rem;
}

.rsvp-desc {
    font-size: 1rem; 
    margin-bottom: 3rem;
    opacity: 0.9; 
    line-height: 1.8;
}

#rsvpForm {
    text-align: left;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        margin-bottom: 2rem;
    }
    .form-row.split {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 0 10px; 
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem; 
    font-weight: 500; 
    transition: border-color 0.3s ease;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-color);
}

.form-group label {
    position: absolute;
    top: 15px; left: 0;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7; 
    transition: all 0.3s ease;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select + .select-label,
.form-group select:valid + .select-label {
    top: -5px;
    font-size: 0.65rem;
    opacity: 1;
    color: var(--accent-color);
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--text-color);
    color: var(--white);
    border: none;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.4s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--accent-color);
}

#formSuccess {
    padding: 2rem 0;
}

#formSuccess h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-style: italic;
}

.hidden {
    display: none !important;
}

/* --- TEAM SECTION --- */
.team-section {
    background-color: var(--bg-color);
    padding: 6rem 1.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-color: var(--white);
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 3px solid var(--white);
    position: relative;
}

.team-card h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.team-role {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
}

/* --- ACCOMMODATION SECTION --- */
.accommodation-section {
    background-color: var(--bg-color);
    padding: 6rem 1.5rem;
}

.acc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .acc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.acc-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    border-top: 3px solid var(--accent-color);
    transition: transform 0.4s ease;
}

.acc-card:hover {
    transform: translateY(-5px);
}

.acc-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.acc-distance {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-color);
}

.acc-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- FAQ SECTION --- */
.faq-section {
    background-color: var(--text-color);
    padding: 6rem 1.5rem;
    color: var(--bg-color);
}

.faq-section h2.section-title {
    color: var(--bg-color);
}

.faq-accordion {
    max-width: 700px;
    margin: 4rem auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(248, 245, 240, 0.2);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--bg-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-icon {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    opacity: 0.8;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-color);
}

/* --- MUSIC REQUEST SECTION --- */
.music-section {
    background-color: var(--bg-color);
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.music-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 4rem 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(184, 150, 91, 0.2);
    position: relative;
}

.vinyl-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.music-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.music-box p {
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.music-form .form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.submit-btn.outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    flex-shrink: 0;
    width: auto;
    padding: 1rem 2rem;
    margin-top: 0;
}

.submit-btn.outline:hover {
    background-color: var(--text-color);
    color: var(--white);
}

@media (max-width: 600px) {
    .music-form .form-row {
        flex-direction: column;
    }
    .submit-btn.outline {
        width: 100%;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 5rem 1.5rem;
    background-color: var(--bg-color);
}

.footer-names {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-date {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
}

/* ULTRA PREMIUM REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1.4s cubic-bezier(0.25, 1, 0.5, 1), 
                filter 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Staggering Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; }
.delay-5 { transition-delay: 0.7s; }
.delay-6 { transition-delay: 0.85s; }


