/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette - Sunset Glow & Deep Twilight */
    --clr-twilight-deep: #07090e;      /* Deep midnight space */
    --clr-twilight-dark: #0f121d;      /* Twilight background */
    --clr-twilight-medium: #1a1e2f;    /* Muted card background */
    --clr-gold: #dfa83d;               /* Warm Gold */
    --clr-gold-glow: rgba(223, 168, 61, 0.4);
    --clr-rose: #d2527f;               /* Nostalgic Rose Gold/Pink */
    --clr-rose-glow: rgba(210, 82, 127, 0.4);
    --clr-twilight-blue: #4b7bec;      /* Clear twilight blue */
    --clr-mint: #2bcbba;               /* Soft mint accent */
    
    /* Text Colors */
    --clr-text-light: #f5f6fa;
    --clr-text-muted: #a5b1c2;
    --clr-text-dark: #2d3436;
    
    /* Sticky Note Colors (Pastel) */
    --clr-note-gold: #ffeaa7;
    --clr-note-rose: #ff85a2;
    --clr-note-twilight: #81ecec;
    --clr-note-mint: #7bed9f;

    /* Glassmorphism Styles */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);

    /* Fonts */
    --font-serif: "Playfair Display", Georgia, serif;
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-quick: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--clr-twilight-deep);
    color: var(--clr-text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--clr-twilight-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--clr-gold);
}

/* Canvas Background */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tagline {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--clr-gold);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-gold), var(--clr-rose));
    color: var(--clr-twilight-deep);
    box-shadow: 0 4px 15px var(--clr-gold-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--clr-gold-glow), 0 8px 25px var(--clr-rose-glow);
    color: var(--clr-text-light);
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   FLOATING CONTROLS
   ========================================================================== */
.floating-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(15, 18, 29, 0.75);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    color: var(--clr-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.control-btn:hover {
    border-color: var(--clr-gold);
    color: var(--clr-gold);
    transform: scale(1.1);
}

/* Audio waves animation */
.music-wave-container {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    position: absolute;
    bottom: 8px;
}

.wave-bar {
    width: 2px;
    height: 4px;
    background-color: var(--clr-gold);
    animation: bounce 0.8s ease infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; }

.control-btn.playing i {
    display: none;
}

.control-btn.playing .music-wave-container {
    display: flex;
}

@keyframes bounce {
    0% { height: 3px; }
    100% { height: 12px; }
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    z-index: 90;
    background: rgba(7, 9, 14, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 1rem 3rem;
    background: rgba(7, 9, 14, 0.9);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--clr-gold);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    transition: var(--transition-quick);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-gold);
    transition: var(--transition-quick);
}

.nav-link:hover, .nav-link.active {
    color: var(--clr-text-light);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    text-align: center;
}

.hero-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(223, 168, 61, 0.08) 0%, rgba(210, 82, 127, 0.04) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 6px;
    color: var(--clr-gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--clr-text-light) 30%, var(--clr-text-muted) 60%, var(--clr-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.divider .line {
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--clr-gold), transparent);
}

.divider .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--clr-gold);
    box-shadow: 0 0 10px var(--clr-gold);
}

.hero-description {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--clr-text-muted);
    font-family: var(--font-serif);
    margin-bottom: 3.5rem;
    line-height: 1.8;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition-smooth);
}

.scroll-down-indicator:hover {
    transform: translateX(-50%) translateY(5px);
}

.mouse {
    width: 28px;
    height: 48px;
    border: 2px solid var(--clr-text-muted);
    border-radius: 15px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--clr-gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s ease infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 0; top: 8px; }
    30% { opacity: 1; }
    100% { opacity: 0; top: 24px; }
}

/* ==========================================================================
   TIMELINE SECTION
   ========================================================================== */
.stories-section {
    background-color: var(--clr-twilight-dark);
    position: relative;
}
.stories-text-container {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    text-align: center;
}

.stories-paragraph {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--clr-text-light);
    font-family: var(--font-serif);
    font-style: italic;
}

.stories-paragraph:not(:last-child) {
    margin-bottom: 2rem;
}

/* ==========================================================================
   POLAROID GALLERY SECTION
   ========================================================================== */
.gallery-section {
    background-color: var(--clr-twilight-deep);
}

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

/* Custom Polaroid Design */
.polaroid-card {
    background-color: #f7f5ee; /* Creamy paper tone */
    padding: 1.25rem 1.25rem 2.5rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    color: var(--clr-text-dark);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.polaroid-card:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid-card:nth-child(odd) {
    transform: rotate(-2deg);
}

.polaroid-card:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.03);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5), 0 15px 25px rgba(223, 168, 61, 0.15);
}

.polaroid-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.polaroid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.polaroid-card:hover .polaroid-img-wrapper img {
    transform: scale(1.05);
}

.polaroid-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 18, 29, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-quick);
    color: var(--clr-text-light);
    font-size: 2rem;
    backdrop-filter: blur(2px);
}

.polaroid-card:hover .polaroid-hover {
    opacity: 1;
}

.polaroid-caption {
    padding-top: 1.25rem;
    text-align: center;
}

.caption-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.caption-date {
    font-size: 0.75rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Video Polaroid */
.video-overlay-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: var(--clr-text-light);
    gap: 0.5rem;
}

.video-overlay-placeholder i {
    font-size: 3.5rem;
    color: var(--clr-rose);
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.video-overlay-placeholder span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Instructions card */
.user-info-box {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

.user-info-box i {
    font-size: 2.2rem;
    color: var(--clr-gold);
}

.user-info-box h4 {
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.user-info-box p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   SURAT UNTUKMU (3D ENVELOPE)
   ========================================================================== */
.letter-section {
    background-color: var(--clr-twilight-dark);
}

.envelope-wrapper {
    position: relative;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 3rem 0;
}

.envelope {
    position: relative;
    width: 480px;
    height: 280px;
    background: #4a5568; /* envelope color */
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    z-index: 10;
}

.envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 140px 240px 140px 240px;
    border-color: transparent transparent #2d3748 transparent; /* Left & right shadow look */
    border-radius: 0 0 10px 10px;
    z-index: 12;
}

/* Pocket of the envelope */
.envelope .pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 140px 240px 140px 240px;
    border-color: transparent #3a4454 #3a4454 #3a4454;
    border-radius: 0 0 10px 10px;
    z-index: 13;
}

/* Flap top */
.envelope .flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 140px 240px 0 240px;
    border-color: #4a5568 transparent transparent transparent;
    transform-origin: top;
    transition: var(--transition-smooth);
    z-index: 14;
}

/* Letter sheet inside */
.envelope .letter-card {
    position: absolute;
    bottom: 10px;
    left: 20px;
    width: 440px;
    height: 260px;
    background: #fafaf6;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--clr-text-dark);
    transition: var(--transition-smooth);
    z-index: 11;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.letter-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #2c3e50;
}

.letter-date {
    color: #7f8c8d;
}

.letter-line {
    border: none;
    height: 1px;
    background-color: rgba(0,0,0,0.1);
    margin: 0.75rem 0;
}

.letter-body {
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
    overflow-y: auto;
    padding-right: 0.5rem;
    font-family: var(--font-serif);
    font-style: italic;
}

.letter-footer {
    margin-top: 1rem;
    text-align: right;
    font-size: 0.8rem;
    color: #555;
}

.writer-name {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--clr-rose);
}

/* Envelope Open Animation States */
.envelope.open {
    height: 250px;
}

.envelope.open .flap {
    transform: rotateX(180deg);
    z-index: 9;
}

.envelope.open .letter-card {
    transform: translateY(-200px);
    height: 380px;
    z-index: 15;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.envelope-hint {
    text-align: center;
    color: var(--clr-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
    animation: pulse-hint 2s ease infinite;
}

@keyframes pulse-hint {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* ==========================================================================
   WISHES BOARD (LOCALSTORAGE GUESTBOOK)
   ========================================================================== */
.guestbook-section {
    background-color: var(--clr-twilight-deep);
}

.guestbook-layout {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 3rem;
    align-items: start;
}

/* Guestbook Form */
.wish-form-wrapper h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: var(--clr-gold);
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--clr-text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--clr-text-light);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-quick);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--clr-gold);
    box-shadow: 0 0 10px rgba(223, 168, 61, 0.2);
}

/* Color Palette Picker */
.color-options {
    display: flex;
    gap: 1rem;
}

.color-option-label {
    cursor: pointer;
    position: relative;
}

.color-option-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.color-circle {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition-quick);
}

.color-circle.gold { background-color: var(--clr-note-gold); }
.color-circle.rose { background-color: var(--clr-note-rose); }
.color-circle.twilight { background-color: var(--clr-note-twilight); }
.color-circle.mint { background-color: var(--clr-note-mint); }

.color-option-label input:checked ~ .color-circle {
    border-color: var(--clr-text-light);
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Bulletin Wood Board */
.board-wood-frame {
    background-color: #5d4037; /* Brown border */
    border: 12px solid #3e2723;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,0,0,0.8);
    overflow: hidden;
}

.board-header {
    background-color: #3e2723;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #d7ccc8;
}

.board-header i {
    color: var(--clr-rose);
}

.sticky-board {
    height: 480px;
    background-color: #8d6e63; /* Cork board color */
    background-image: radial-gradient(rgba(0, 0, 0, 0.15) 15%, transparent 16%);
    background-size: 16px 16px;
    padding: 1.5rem;
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1.5rem;
}

/* Sticky note styling */
.sticky-note {
    width: 170px;
    min-height: 160px;
    padding: 1.25rem 1rem 1rem 1rem;
    box-shadow: 2px 8px 15px rgba(0,0,0,0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    color: var(--clr-text-dark);
}

.sticky-note:hover {
    transform: scale(1.08) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 5px 15px 25px rgba(0,0,0,0.35);
}

/* Pins */
.sticky-note::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e74c3c;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
}

.sticky-note.note-gold { background-color: var(--clr-note-gold); }
.sticky-note.note-rose { background-color: var(--clr-note-rose); }
.sticky-note.note-twilight { background-color: var(--clr-note-twilight); }
.sticky-note.note-mint { background-color: var(--clr-note-mint); }

/* Sticky note text */
.sticky-note-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.85rem;
    line-height: 1.4;
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.sticky-note-author {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: right;
    border-top: 1px dashed rgba(0,0,0,0.1);
    padding-top: 0.25rem;
    color: rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   COUNTDOWN TIMER SECTION
   ========================================================================== */
.countdown-section {
    background-color: var(--clr-twilight-dark);
    padding: 6rem 2rem;
    text-align: center;
}

.countdown-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.countdown-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--clr-gold);
}

.countdown-card p {
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-block .number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--clr-text-light);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.time-block .label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 14, 0.95);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-quick);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.lightbox.open .lightbox-content {
    transform: scale(1);
}

.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--clr-text-light);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-quick);
}

.lightbox-close:hover {
    color: var(--clr-rose);
    transform: scale(1.1);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--clr-twilight-deep);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 2rem 3rem 2rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-quote {
    margin-bottom: 3.5rem;
}

.footer-quote i {
    font-size: 2rem;
    color: var(--clr-gold);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.footer-quote p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--clr-text-muted);
    max-width: 700px;
    margin: 0 auto 1rem auto;
}

.footer-quote cite {
    display: block;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--clr-gold);
    letter-spacing: 1px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
    margin-bottom: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-meta {
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.25rem;
}

.instagram-info {
    font-size: 0.85rem;
}

.instagram-link {
    color: var(--clr-gold);
    transition: var(--transition-quick);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.instagram-link:hover {
    color: var(--clr-rose);
    transform: translateY(-1px);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    transition: var(--transition-quick);
}

.footer-link:hover {
    color: var(--clr-gold);
}

/* Empty Board Message */
.empty-board-msg {
    width: 100%;
    color: var(--clr-text-muted);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    text-align: center;
    padding: 3rem 1rem;
    opacity: 0.6;
    align-self: center;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers for sequential reveal */
.scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.45s; }

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Tablet (Under 992px) */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }

    .main-header {
        padding: 1.5rem 2rem;
    }



    .guestbook-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .envelope-wrapper {
        height: 380px;
    }

    .envelope {
        width: 100%;
        max-width: 440px;
    }

    .envelope::before, .envelope .pocket {
        border-width: 120px 220px 120px 220px;
    }

    .envelope .flap {
        border-width: 120px 220px 0 220px;
    }

    .envelope .letter-card {
        width: 400px;
    }

    .envelope.open .letter-card {
        width: 400px;
        transform: translateY(-160px);
    }
}

/* Mobile Devices (Under 768px) */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem 1.5rem;
    }
    
    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(7, 9, 14, 0.95);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        overflow: hidden;
        transition: var(--transition-smooth);
        z-index: 85;
    }

    .nav-menu.mobile-open {
        height: 250px;
        border-bottom: 1px solid var(--glass-border);
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-container {
        padding: 3rem 1.25rem;
    }

    .countdown-card {
        padding: 2.5rem 1.25rem;
    }

    .countdown-timer {
        gap: 0.75rem;
    }

    .time-block {
        min-width: 55px;
    }

    .time-block .number {
        font-size: 2.2rem;
    }

    .footer-info {
        flex-direction: column;
        text-align: center;
    }

    .floating-controls {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .envelope-wrapper {
        height: 340px;
    }

    .envelope {
        width: 100%;
        max-width: 320px;
        height: 200px;
    }

    .envelope::before, .envelope .pocket {
        border-width: 100px 160px 100px 160px;
    }

    .envelope .flap {
        border-width: 100px 160px 0 160px;
    }

    .envelope .letter-card {
        width: 290px;
        height: 180px;
        left: 15px;
        padding: 1rem 1.25rem;
    }

    .envelope.open .letter-card {
        width: 290px;
        transform: translateY(-140px);
        height: 300px;
    }
}

/* Small Screens (Under 360px) */
@media (max-width: 360px) {
    .envelope .letter-card {
        width: 260px;
        left: 10px;
    }

    .envelope.open .letter-card {
        width: 260px;
    }
}
