/* 
  Theme: Classic Romantic
  Colors: Dark Elegant (#130c10), Soft Rose (#e8b4b8), Gold (#d4af37)
*/

:root {
    --bg-dark: #130c10;
    --bg-light: #21161d;
    --text-primary: #fdfbf7;
    --text-muted: #e8b4b8;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Utilities */
.screen {
    min-height: 100vh;
    width: 100%;
}
.hidden {
    display: none !important;
}
.active {
    display: flex;
}

/* --- LANDING SECTION --- */
#landing {
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, var(--bg-light) 0%, var(--bg-dark) 100%);
    position: fixed;
    top: 0; left: 0; z-index: 100;
    transition: opacity 1.5s ease-in-out;
}
.landing-content {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    background: rgba(20, 12, 16, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(212, 175, 55, 0.05);
    animation: floatBox 4s ease-in-out infinite;
}
@keyframes floatBox {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.landing-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-style: italic;
}
.landing-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.gold-btn {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.gold-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--gold-glow);
}

/* --- MAIN CONTENT & HERO --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle at center top, var(--bg-light) 0%, var(--bg-dark) 80%);
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    max-width: 600px;
}
.fade-in-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}
.fade-in-text.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.5s; }
.delay-2 { transition-delay: 1.5s; }
.delay-3 { transition-delay: 2.5s; }

.scroll-indicator {
    margin-top: 4rem;
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}
.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    margin: 10px auto;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* --- SECTION SHARED --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    color: var(--gold);
    margin-bottom: 4rem;
    font-style: italic;
}

/* --- TIMELINE (10 Photos) --- */
.timeline-section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.timeline {
    position: relative;
}
/* Center Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--gold);
    top: 0; bottom: 0; left: 50%;
    margin-left: -1px;
    opacity: 0.3;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.timeline-item::after {
    content: '♥';
    position: absolute;
    width: 30px;
    height: 30px;
    right: -15px;
    background-color: var(--bg-dark);
    border: 2px solid var(--gold);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.left { left: 0; }
.right { left: 50%; }
.right::after { left: -15px; }

.timeline-content {
    padding: 20px;
    background: rgba(33, 22, 29, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
}
.img-container {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 3/4; /* Great for portraits */
}
.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.img-container:hover img {
    transform: scale(1.05);
}
.timeline-content h3 {
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Mobile Timeline */
@media screen and (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; }
    .timeline-item::after { left: 15px; }
    .right { left: 0; }
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.2rem; }
}

/* --- REASONS SECTION --- */
.reasons-section {
    padding: 6rem 2rem;
    background: var(--bg-light);
}
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.reason-card {
    background: var(--bg-dark);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    width: 250px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}
.reason-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 15px rgba(212,175,55,0.1);
}
.reason-card p {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem; /* Made larger because cursive fonts run small */
    line-height: 1.4;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* subtle shadow for readability */
}

/* --- FINAL LETTER --- */
.letter-section {
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at bottom, var(--bg-light) 0%, var(--bg-dark) 100%);
}
.letter-paper {
    background: rgba(253, 251, 247, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 4rem 3rem;
    max-width: 700px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}
.letter-paper::before {
    content: '';
    position: absolute;
    top: 10px; bottom: 10px; left: 10px; right: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    pointer-events: none;
}
.letter-paper h2 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.letter-paper p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0d5dc;
}
.signature {
    margin-top: 3rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gold) !important;
}

/* --- FINAL SURPRISE & SCRATCH CARD --- */
.final-surprise-section {
    padding: 6rem 2rem 8rem 2rem;
    text-align: center;
    background: var(--bg-dark);
}
.surprise-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.scratch-instruction {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-style: italic;
    animation: bounce 2s infinite;
}
.scratch-card-wrapper {
    position: relative;
    width: 300px;
    height: 150px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px var(--gold-glow);
    background: var(--bg-light);
    user-select: none;
}
.scratch-message {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: radial-gradient(circle, #2a1b24 0%, #130c10 100%);
    color: var(--gold);
    z-index: 1;
}
.scratch-message h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #e8b4b8; /* Soft Rose */
}
.scratch-message p {
    font-size: 1.1rem;
    color: var(--text-primary);
}
.scratch-message strong {
    color: var(--gold);
    font-size: 1.3rem;
    font-family: var(--font-heading);
}
#scratchCanvas {
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    cursor: pointer;
    touch-action: none; /* Prevent scroll while scratching on mobile */
}
