/* ============================================
   ROMANTIC WEBSITE - STYLE
   Theme: Dark Elegant with Rose Gold Accents
   ============================================ */

/* === CSS Variables === */
:root {
    --bg-dark: #120304;      /* Deep dark reddish-black */
    --bg-dark-2: #1a0709;    /* Slightly lighter dark red */
    --bg-dark-3: #260a0f;    /* Dark burgundy */
    
    --rose: #cc1224;         /* Rich elegant red */
    --rose-light: #f53145;   /* Brighter red for highlights */
    --rose-dark: #910815;    /* Deep crimson */
    
    --gold: #d4a853;         /* Elegant gold */
    --gold-light: #f0d48a;   /* Bright gold */
    
    --purple: #820412;       /* Burgundy (Replacing purple accent) */
    --purple-soft: #b01c2d;  /* Soft maroon */
    
    --pink-gradient: linear-gradient(135deg, #cc1224 0%, #910815 50%, #5c040b 100%);
    --rose-gradient: linear-gradient(135deg, #f53145, #cc1224, #d4a853);
    
    --text-primary: #fdf5f5; /* Off-white with a hint of red */
    --text-secondary: #d6bcbe; /* Muted rosy white */
    --text-muted: #8c7375;   /* Muted greyish red */
    
    --font-heading: 'Playfair Display', serif;
    --font-cursive: 'Great Vibes', cursive;
    --font-body: 'Inter', sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--rose-dark);
    border-radius: 3px;
}

/* === Splash Screen === */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    z-index: 2;
    animation: splashFadeIn 1.2s ease forwards;
}

@keyframes splashFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.splash-hearts {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.splash-hearts span {
    animation: heartBeat 1.5s ease-in-out infinite;
}
.splash-hearts span:nth-child(2) { animation-delay: 0.3s; }
.splash-hearts span:nth-child(3) { animation-delay: 0.6s; }

.splash-title {
    font-family: var(--font-cursive);
    font-size: clamp(2.5rem, 7vw, 5rem);
    background: var(--rose-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.splash-subtitle {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.enter-btn {
    position: relative;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    background: linear-gradient(135deg, var(--rose), var(--purple));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 107, 157, 0.4);
}

.btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--rose), var(--purple), var(--gold), var(--rose));
    background-size: 400%;
    border-radius: 50px;
    z-index: -1;
    filter: blur(8px);
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.splash-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.splash-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* === Music Button === */
.music-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: rgba(255, 107, 157, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: var(--rose-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.music-btn.visible {
    opacity: 1;
    visibility: visible;
}

.music-btn:hover {
    background: rgba(255, 107, 157, 0.25);
    transform: scale(1.05);
}

.music-btn.muted .music-icon {
    opacity: 0.4;
}

/* === Section Base === */
.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
}

/* === Section Header === */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-cursive);
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: var(--rose-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.title-decoration span:first-child,
.title-decoration span:last-child {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    display: block;
}

/* === Floating Hearts === */
.floating-hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    opacity: 0.15;
    animation: floatUp linear infinite;
    font-size: 1.2rem;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 107, 157, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
                var(--bg-dark);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 30px 30px;
    opacity: 0.3;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--rose);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0; transform: translate(0, 0) scale(0); }
    25% { opacity: 0.6; }
    50% { opacity: 0.8; transform: translate(var(--tx), var(--ty)) scale(1); }
    75% { opacity: 0.4; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--rose-light);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    opacity: 0;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--text-primary);
    opacity: 0;
}

.title-name {
    font-family: var(--font-cursive);
    font-size: clamp(3.5rem, 9vw, 7rem);
    background: var(--rose-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0.5rem 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 3rem;
    opacity: 0;
}

/* Scroll indicator */
.scroll-indicator {
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-arrow span {
    display: block;
    width: 15px;
    height: 15px;
    border-right: 2px solid var(--rose);
    border-bottom: 2px solid var(--rose);
    transform: rotate(45deg);
    margin: -5px;
    animation: scrollArrow 2s infinite;
}

.scroll-arrow span:nth-child(2) { animation-delay: 0.2s; }
.scroll-arrow span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(10px, 10px); }
}

/* ========== STORY / TIMELINE SECTION ========== */
.story-section {
    background: var(--bg-dark-2);
    padding: 8rem 2rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--rose), var(--purple), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item .timeline-card {
    width: 45%;
    margin-right: auto;
    text-align: right;
    padding-right: 2rem;
}

.timeline-item.right .timeline-card {
    width: 45%;
    margin-left: auto;
    margin-right: 0;
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background: var(--bg-dark-3);
    border: 2px solid var(--rose);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.timeline-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 107, 157, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.1);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.timeline-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.timeline-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== GALLERY SECTION ========== */
.gallery-section {
    background: var(--bg-dark);
    padding: 8rem 2rem;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    opacity: 0;
    cursor: pointer;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.gallery-item.ratio-1-1 { aspect-ratio: 1 / 1; }
.gallery-item.ratio-4-5 { aspect-ratio: 4 / 5; }
.gallery-item.ratio-16-9 { aspect-ratio: 16 / 9; }

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-caption {
    font-family: var(--font-cursive);
    font-size: 1.3rem;
    color: white;
}

/* ========== LETTER SECTION (SCRApBOOK STYLE) ========== */
.letter-section {
    background: url('https://www.transparenttextures.com/patterns/cream-paper.png'), var(--bg-dark-2);
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scrapbook-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    opacity: 0; /* Untuk GSAP animation */
}

.scrap-letter {
    background: #fdfbf7;
    background-image: linear-gradient(#eee .1em, transparent .1em);
    background-size: 100% 1.8em;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    padding: 4rem 3rem 4rem 4.5rem;
    border-radius: 2px;
    max-width: 550px;
    width: 100%;
    position: relative;
    transform: rotate(-2deg);
    color: #333;
}

.scrap-tape {
    position: absolute;
    background: rgba(220, 180, 150, 0.85);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    width: 130px;
    height: 35px;
    top: -15px;
    left: 40%;
    transform: translateX(-50%) rotate(-4deg);
    border-radius: 2px;
}

.polaroid-tape {
    position: absolute;
    background: rgba(220, 180, 150, 0.85);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    width: 80px;
    height: 25px;
    z-index: 5;
}

.polaroid-tape-1 {
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
}

.polaroid-tape-2 {
    top: -12px;
    right: 10%;
    transform: rotate(-6deg);
}

.scrap-title {
    margin-bottom: 2.5rem;
    line-height: 1.2;
    padding-top: 1rem;
}

.scrap-title .small-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #555;
    font-weight: 400;
}

.scrap-title .highlight-text {
    font-family: var(--font-cursive);
    font-size: 3.8rem;
    color: #a31d2a;
    display: inline-block;
}

.scrap-body p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #3a3a3a;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.scrap-body strong {
    color: #a31d2a;
    font-weight: 600;
}

.scrap-signature {
    margin-top: 3.5rem;
    text-align: right;
}

.scrap-signature .sig-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: #555;
}

.scrap-signature .signature-name {
    font-family: var(--font-cursive);
    font-size: 2.8rem;
    color: #910815;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Polaroids Area */
.scrap-photos {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 600px;
}

.polaroid {
    background: #fff;
    padding: 12px 12px 40px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    position: absolute;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.polaroid:hover {
    z-index: 10 !important;
    transform: scale(1.08) translateZ(0) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
}

.polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-1 {
    width: 250px;
    height: 280px;
    top: 20px;
    left: 20px;
    transform: rotate(-6deg);
    z-index: 3;
}

.photo-2 {
    width: 280px;
    height: 320px;
    top: 150px;
    right: 0px;
    transform: rotate(8deg);
    z-index: 1;
}

.photo-3 {
    width: 230px;
    height: 260px;
    bottom: 0px;
    left: 40px;
    transform: rotate(-3deg);
    z-index: 2;
}

.scrap-flower {
    position: absolute;
    font-size: 9rem;
    top: 35%;
    left: -40px;
    transform: rotate(15deg);
    z-index: 4;
    filter: drop-shadow(10px 15px 10px rgba(0,0,0,0.5));
    pointer-events: none;
}

@media (max-width: 968px) {
    .scrapbook-wrapper {
        flex-direction: column;
        gap: 0rem;
    }
    .scrap-photos {
        height: 500px;
        margin-top: 3rem;
    }
    .photo-1 { width: 180px; height: 210px; left: 10px; }
    .photo-2 { width: 220px; height: 260px; top: 100px; right: 10px; }
    .photo-3 { width: 180px; height: 210px; left: 50px; bottom: 30px; }
    .scrap-flower { font-size: 6rem; left: 0px; }
}

@media (max-width: 480px) {
    .scrap-letter {
        padding: 3rem 1.5rem 2rem 2.5rem;
    }
}

/* ========== QUESTION SECTION ========== */
.question-section {
    background: radial-gradient(ellipse at center, rgba(255, 107, 157, 0.1) 0%, var(--bg-dark) 70%);
    position: relative;
    overflow: hidden;
}

.question-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.question-content {
    text-align: center;
    z-index: 2;
    opacity: 0;
}

.question-hearts {
    margin-bottom: 2rem;
}

.big-heart {
    font-size: 5rem;
    display: inline-block;
    animation: heartBeat 1.2s ease-in-out infinite;
}

.question-title {
    margin-bottom: 1rem;
}

.q-line {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    font-weight: 400;
}

.q-highlight {
    font-family: var(--font-cursive);
    font-size: clamp(4rem, 10vw, 7rem);
    background: var(--rose-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.question-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    letter-spacing: 3px;
}

.response-btn {
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.yes-btn {
    background: linear-gradient(135deg, var(--rose), var(--purple));
    color: white;
    box-shadow: 0 5px 30px rgba(255, 107, 157, 0.3);
}

.yes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 50px rgba(255, 107, 157, 0.5);
}

.btn-icon {
    font-size: 1.4rem;
}

/* ========== SIGNING CEREMONY ========== */
.signing-section {
    background: var(--bg-dark-2);
    padding: 6rem 2rem;
}

.certificate-preview {
    max-width: 550px; /* Reduced for portrait layout */
    width: 100%;
    margin: 0 auto 2rem;
    opacity: 0;
}

.cert-inner {
    background: linear-gradient(145deg, #f8f4e8, #f0e8d8);
    border-radius: 4px; /* Shaper corners typical of paper */
    padding: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cert-border {
    border: 3px double var(--gold);
    border-radius: 2px;
    padding: 2rem 1.5rem; /* Adjusted padding */
    position: relative;
    background: linear-gradient(145deg, #faf6ee, #f5efe3);
}

.cert-ornament {
    position: absolute;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.4;
}

.cert-ornament.top-left { top: 10px; left: 15px; transform: scaleX(-1); }
.cert-ornament.top-right { top: 10px; right: 15px; }
.cert-ornament.bottom-left { bottom: 10px; left: 15px; transform: scale(-1, -1); }
.cert-ornament.bottom-right { bottom: 10px; right: 15px; transform: scaleY(-1); }

.cert-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #2c1810;
    margin-bottom: 0.3rem;
}

.cert-subtitle {
    font-size: 0.85rem;
    color: #8a7060;
    letter-spacing: 2px;
}

.cert-line {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto 0;
}

.cert-body {
    color: #3a2a1a;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 1.5rem;
}

.cert-parties {
    display: flex;
    flex-direction: column; /* Stacked vertically for portrait */
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.cert-party {
    text-align: center;
}

.party-label {
    display: block;
    font-size: 0.8rem;
    color: #8a7060;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.cert-name-input {
    background: transparent;
    border: none;
    border-bottom: 2px dotted var(--gold);
    font-family: var(--font-cursive);
    font-size: 1.5rem;
    color: #2c1810;
    text-align: center;
    width: 200px;
    padding: 0.3rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.cert-name-input:focus {
    border-bottom-color: var(--rose-dark);
}

.cert-name-input::placeholder {
    color: #c0a890;
    font-size: 1rem;
}

.cert-and {
    font-family: var(--font-cursive);
    font-size: 2rem;
    color: var(--rose-dark);
}

.cert-signatures {
    display: flex;
    flex-direction: column; /* Stacked vertically for portrait */
    align-items: center;
    gap: 2.5rem;
    margin: 2rem 0;
}

.cert-sig-block {
    text-align: center;
    flex: 1;
}

.sig-label {
    display: block;
    font-size: 0.75rem;
    color: #8a7060;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.sig-pad-wrapper {
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed #c0a890;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.sig-pad {
    width: 100%;
    height: 120px;
    display: block;
    cursor: crosshair;
}

.clear-sig-btn {
    background: none;
    border: 1px solid #c0a890;
    color: #8a7060;
    font-size: 0.75rem;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.clear-sig-btn:hover {
    background: #c0a890;
    color: white;
}

.sig-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #5a4a3a;
    margin-top: 0.5rem;
}

.cert-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(192, 168, 144, 0.3);
}

.cert-date {
    font-size: 0.85rem;
    color: #8a7060;
    font-style: italic;
}

.cert-seal {
    font-size: 2rem;
    margin-top: 0.5rem;
}

/* Signing Actions */
.signing-actions {
    text-align: center;
    margin-top: 2rem;
}

.generate-pdf-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold), #b8902e);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(212, 168, 83, 0.3);
}

.generate-pdf-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(212, 168, 83, 0.5);
}

.generate-pdf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.signing-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ========== CELEBRATION SECTION ========== */
.celebration-section {
    background: radial-gradient(ellipse at center, rgba(255, 107, 157, 0.15) 0%, var(--bg-dark) 70%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    top: -20px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.celebration-content {
    text-align: center;
    z-index: 2;
}

.celebration-emoji {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.celebration-title {
    font-family: var(--font-cursive);
    font-size: clamp(4rem, 10vw, 8rem);
    background: var(--rose-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.celebration-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

.celebration-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 16px;
}

.date-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.date-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--rose-light);
    font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .timeline-line {
        left: 25px;
    }

    .timeline-item,
    .timeline-item.right {
        flex-direction: row;
    }

    .timeline-item .timeline-card,
    .timeline-item.right .timeline-card {
        width: calc(100% - 60px);
        margin-left: auto;
        margin-right: 0;
        text-align: left;
        padding-left: 1.5rem;
        padding-right: 0;
    }

    .timeline-dot {
        left: 25px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .gallery-grid {
        column-count: 2;
    }

    .cert-parties {
        flex-direction: column;
        gap: 1rem;
    }

    .cert-signatures {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cert-border {
        padding: 1.5rem;
    }

    .cert-name-input {
        width: 160px;
    }

    .letter-paper {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }

    .section {
        padding: 4rem 1rem;
    }
}
