
/* --- UNIVERSAL MOBILE CENTER FIX: Counter Title + 2x2 Grid --- */
@media (max-width: 768px) {
    .counter-section { display: block !important; }

    .countdown-container,
    .counter-container,
    #countdown,
    .stats-container,
    .counter-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 15px !important;
        width: 100% !important;
        max-width: 360px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-items: center !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
    }

    .counter-section h2,
    .stats-container h2,
    .counter-wrapper h2 {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        justify-self: center !important;
        text-align: center !important;
        margin: 0 0 12px 0 !important;
        background: transparent !important;
        border: none !important;
    }

    .time-box,
    .counter-item,
    .counter-box,
    .countdown-item,
    .stat-item {
        width: 100% !important;
        max-width: 160px !important;
        min-width: 140px !important;
        min-height: 100px !important;
        padding: 12px !important;
        border-radius: 16px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .time-box span,
    .counter-value,
    .counter-number,
    .time-value,
    .stat-number {
        font-size: 2.2rem !important;
        line-height: 1 !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
    }

    .time-box p,
    .counter-label,
    .time-label,
    .stat-label,
    .label {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        opacity: 0.9 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
}

/* --- GLOBAL MOBILE FIX: 2x2 Grid Layout (Forced Standard) --- */
@media (max-width: 768px) {
    /* 1. Force Container to 2-Column Grid */
    .counter-section, 
    .counter-wrapper, 
    .stats-container, 
    #countdown,
    .countdown-container { 
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 Equal Columns */
        gap: 15px !important;
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        justify-content: center !important;
        height: auto !important; /* Allow height to grow */
    }

    /* 2. Standardize Box Sizing */
    .counter-box, 
    .stat-item, 
    .time-box,
    .countdown-item {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 5px !important;
        min-height: 100px !important; /* Standard height */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        border-radius: 15px !important; /* Soft corners */
    }

    /* 3. Typography: Big Numbers */
    .count, 
    .number, 
    .stat-number,
    .counter-number,
    .time-value {
        font-size: 2.2rem !important;
        line-height: 1 !important;
        margin-bottom: 5px !important;
        font-weight: 700 !important;
    }

    /* 4. Typography: Small Labels */
    .label, 
    .stat-label,
    .counter-label,
    .time-label {
        font-size: 0.8rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        opacity: 0.9 !important;
        white-space: nowrap !important;
    }
}

/* Mobile grid title span fix */
@media (max-width: 768px) {
    .counter-section h2,
    .stats-container h2,
    .counter-wrapper h2 {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }
}
/* ═══════════════════════════════════════════════════════════════════════════
   ✧ ROMANTIC NOSTALGIA THEME ✧
   A treasured love letter & vintage photo album aesthetic
   ═══════════════════════════════════════════════════════════════════════════ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    /* ❦ Color Palette - Romantic Nostalgia ❦ */
    --rn-primary: #8B6B4A;
    /* Antique Gold */
    --rn-secondary: #F5E6D0;
    /* Aged Paper */
    --rn-cta: #C17F59;
    /* Terracotta Heart */
    --rn-accent: #A67B5B;
    /* Warm Sepia */
    --rn-background: #FDF8F0;
    /* Warm Ivory */
    --rn-surface: #FFFEF5;
    /* Cream */
    --rn-text: #4A3C2A;
    /* Espresso */
    --rn-text-soft: #6B5B4A;
    /* Warm Brown */

    /* Extended Romantic Palette */
    --rn-rose-dust: #C9A89C;
    /* Dusty Rose */
    --rn-love-letter: #D4A574;
    /* Love Letter Tan */
    --rn-pressed-flower: #B8967A;
    /* Pressed Flower */
    --rn-ink: #3D2E1F;
    /* Fountain Pen Ink */
    --rn-ribbon: #9E7B65;
    /* Vintage Ribbon */
    --rn-gold-leaf: #D4AF37;
    /* Gold Leaf Accent */

    /* Typography */
    --rn-font-display: 'Playfair Display', Georgia, serif;
    --rn-font-script: 'Dancing Script', cursive;
    --rn-font-body: 'Lora', 'Times New Roman', serif;

    /* Shadows & Effects */
    --rn-shadow-soft: 0 4px 20px rgba(139, 107, 74, 0.15);
    --rn-shadow-paper: 4px 4px 0 rgba(139, 107, 74, 0.1),
        8px 8px 0 rgba(139, 107, 74, 0.05);
    --rn-shadow-polaroid: 0 8px 25px rgba(74, 60, 42, 0.2);

    /* Transitions */
    --rn-transition-gentle: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --rn-transition-romantic: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Legacy variable mapping for compatibility */
    --primary-color: var(--rn-primary);
    --secondary-color: var(--rn-secondary);
    --accent-color: var(--rn-cta);
    --text-dark: var(--rn-text);
    --font-script: var(--rn-font-script);
    --font-main: var(--rn-font-body);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ BASE STYLES ✧
   ═══════════════════════════════════════════════════════════════════════════ */

body {
    margin: 0;
    padding: 0;
    font-family: var(--rn-font-body);
    background-color: var(--rn-background);
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png');
    color: var(--rn-text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* Vintage page edge effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none !important; /* Must be click-through */
    background:
        radial-gradient(ellipse at top left, transparent 70%, rgba(139, 107, 74, 0.08) 100%),
        radial-gradient(ellipse at bottom right, transparent 70%, rgba(139, 107, 74, 0.08) 100%);
    z-index: 100; /* Keep low so button can be above it */
}

#particles-js {
    display: none;
}

[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* CRITICAL: Force heart-container and love-btn to ALWAYS be clickable */
.heart-container[data-aos],
.heart-container[data-aos].aos-animate,
.heart-container {
    pointer-events: auto !important;
}

.love-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Selection styling */
::selection {
    background: var(--rn-rose-dust);
    color: var(--rn-surface);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ HERO SECTION - Love Letter Opening ✧
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 40px 20px;
    position: relative;
}

/* Decorative flourish before hero */
.hero::before {
    content: '❦';
    position: absolute;
    top: 40px;
    font-size: 2rem;
    color: var(--rn-accent);
    opacity: 0.6;
    animation: gentlePulse 3s ease-in-out infinite;
}

.title {
    font-family: var(--rn-font-display);
    font-size: 4.5rem;
    color: var(--rn-primary);
    text-shadow: 2px 2px 0px rgba(139, 107, 74, 0.15),
        4px 4px 8px rgba(74, 60, 42, 0.1);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
}

/* Script accent under title */
.title::after {
    content: '~ forever yours ~';
    display: block;
    font-family: var(--rn-font-script);
    font-size: 1.2rem;
    color: var(--rn-cta);
    font-weight: 400;
    margin-top: 10px;
    letter-spacing: 0.1em;
}

.subtitle {
    font-size: 1.25rem;
    font-style: italic;
    max-width: 600px;
    line-height: 1.8;
    color: var(--rn-text-soft);
    font-family: var(--rn-font-body);
    position: relative;
    padding: 0 20px;
}

/* Decorative quotes around subtitle */
.subtitle::before,
.subtitle::after {
    font-family: var(--rn-font-display);
    font-size: 3rem;
    color: var(--rn-accent);
    opacity: 0.3;
    position: absolute;
    line-height: 1;
}

.subtitle::before {
    content: '"';
    left: -10px;
    top: -15px;
}

.subtitle::after {
    content: '"';
    right: -10px;
    bottom: -25px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ STORY SECTION - Love Letter Card ✧
   ═══════════════════════════════════════════════════════════════════════════ */

.story-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Decorative corner flourishes */
.story-section::before {
    content: '✧ ❦ ✧';
    position: absolute;
    top: 30px;
    font-size: 1.2rem;
    color: var(--rn-accent);
    opacity: 0.5;
    letter-spacing: 1em;
}

.glass-card {
    background: linear-gradient(145deg, var(--rn-surface) 0%, #FFF9ED 100%);
    border: none;
    padding: 50px 45px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    box-shadow: var(--rn-shadow-paper),
        0 15px 40px rgba(139, 107, 74, 0.12);
    transform: rotate(-0.5deg);
    margin: 0 auto;
    position: relative;
    border-radius: 2px;
    transition: var(--rn-transition-romantic);
}

/* Vintage paper corner fold effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 35px 35px 0;
    border-color: transparent var(--rn-secondary) transparent transparent;
    filter: drop-shadow(-2px 2px 2px rgba(0, 0, 0, 0.1));
}

/* Wax seal decoration */
.glass-card::after {
    content: '❦';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--rn-cta) 0%, #A66B4A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rn-surface);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(193, 127, 89, 0.4);
}

.glass-card:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: var(--rn-shadow-paper),
        0 20px 50px rgba(139, 107, 74, 0.18);
}

.story-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--rn-text-soft);
    font-family: var(--rn-font-body);
    font-style: italic;
}

.glass-card h2 {
    font-family: var(--rn-font-script);
    font-size: 2.8rem;
    color: var(--rn-primary);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

/* Underline flourish */
.glass-card h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rn-accent), transparent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ COUNTER SECTION - Time Capsule ✧
   ═══════════════════════════════════════════════════════════════════════════ */

.counter-section {
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.counter-section h2 {
    font-family: var(--rn-font-display);
    font-size: 2.2rem;
    color: var(--rn-primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
    max-width: 900px;
    width: 100%;
}

.time-box {
    background: linear-gradient(180deg, var(--rn-surface) 0%, #FDF5E6 100%);
    border: 2px solid var(--rn-accent);
    border-radius: 4px;
    padding: 25px 20px;
    min-width: 110px;
    margin: 10px;
    flex: 1;
    max-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--rn-shadow-soft);
    transition: var(--rn-transition-gentle);
}

/* Decorative corner accents */
.time-box::before,
.time-box::after {
    content: '✦';
    position: absolute;
    font-size: 0.7rem;
    color: var(--rn-accent);
    opacity: 0.6;
}

.time-box::before {
    top: 5px;
    left: 8px;
}

.time-box::after {
    bottom: 5px;
    right: 8px;
}

.time-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 107, 74, 0.2);
}

.time-box span {
    font-size: 2.5rem;
    font-family: var(--rn-font-display);
    color: var(--rn-primary);
    display: block;
    font-weight: 600;
    line-height: 1;
}

.time-box p {
    margin: 10px 0 0;
    font-family: var(--rn-font-script);
    font-size: 1.1rem;
    color: var(--rn-text-soft);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ LOVE BUTTON - Antique Style ✧
   ═══════════════════════════════════════════════════════════════════════════ */

.heart-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2147483646 !important; /* Force above ALL overlays */
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto !important; /* Override AOS pointer-events:none */
}

.love-btn {
    background: linear-gradient(145deg, var(--rn-cta) 0%, #A66B4A 100%);
    color: var(--rn-surface);
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-family: var(--rn-font-display);
    font-size: 1.1rem;
    cursor: pointer !important;
    text-transform: none;
    letter-spacing: 0.05em;
    font-weight: 500;
    position: relative !important;
    overflow: hidden;
    z-index: 2147483647 !important; /* MAX z-index - force above everything */
    box-shadow: 0 6px 20px rgba(193, 127, 89, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: var(--rn-transition-gentle);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto !important; /* Always clickable */
}

.love-btn::before {
    content: '❦ ';
}

.love-btn::after {
    content: ' ❦';
}

.love-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(193, 127, 89, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, #D08A65 0%, var(--rn-cta) 100%);
}

.love-btn:focus {
    outline: 3px solid var(--rn-gold-leaf);
    outline-offset: 3px;
}

.love-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ MUSIC PLAYER - Vintage Vinyl ✧
   ═══════════════════════════════════════════════════════════════════════════ */

.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
}

.vinyl-record {
    width: 65px;
    height: 65px;
    background: linear-gradient(145deg, var(--rn-ink) 0%, #2A1F14 100%);
    border: 3px solid var(--rn-love-letter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(61, 46, 31, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    transition: var(--rn-transition-gentle);
    position: relative;
}

/* Vinyl grooves effect */
.vinyl-record::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(212, 175, 116, 0.2);
    border-radius: 50%;
}

.vinyl-record::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--rn-love-letter);
    border-radius: 50%;
}

.vinyl-record i {
    color: var(--rn-secondary);
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

.vinyl-record:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(61, 46, 31, 0.5);
}

.vinyl-record:focus {
    outline: 3px solid var(--rn-gold-leaf);
    outline-offset: 3px;
}

.rotating {
    animation: spin 6s linear infinite;
    /* GPU Acceleration */
    will-change: transform;
    transform-origin: center center;
    backface-visibility: hidden;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ FOOTER - Signed with Love ✧
   ═══════════════════════════════════════════════════════════════════════════ */

footer {
    padding: 50px 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--rn-primary) 0%, #6B5340 100%);
    color: var(--rn-secondary);
    margin-top: 60px;
    font-family: var(--rn-font-body);
    position: relative;
}

footer::before {
    content: '✧ ❦ ✧';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0.5;
    letter-spacing: 0.5em;
}

footer p {
    font-family: var(--rn-font-script);
    font-size: 1.3rem;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ PHOTO SCRAPBOOK TIMELINE ✧
   ═══════════════════════════════════════════════════════════════════════════ */

.timeline-section {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, transparent 0%, rgba(245, 230, 208, 0.3) 50%, transparent 100%);
}

.timeline-section h2 {
    font-family: var(--rn-font-display);
    font-size: 2.5rem;
    color: var(--rn-primary);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-section h2::after {
    content: '~ our journey ~';
    display: block;
    font-family: var(--rn-font-script);
    font-size: 1.3rem;
    color: var(--rn-accent);
    margin-top: 10px;
    font-weight: 400;
}

.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

/* Decorative ribbon timeline line */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(180deg,
            var(--rn-ribbon) 0%,
            var(--rn-accent) 25%,
            var(--rn-ribbon) 50%,
            var(--rn-accent) 75%,
            var(--rn-ribbon) 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(158, 123, 101, 0.3);
}

.timeline-container {
    padding: 15px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

/* Romantic pin/button on timeline */
.timeline-container::after {
    content: '❦';
    position: absolute;
    width: 30px;
    height: 30px;
    right: -17px;
    background: linear-gradient(145deg, var(--rn-cta) 0%, #A66B4A 100%);
    top: 25px;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--rn-surface);
    box-shadow: 0 3px 10px rgba(193, 127, 89, 0.4);
    transition: var(--rn-transition-gentle);
}

.right::after {
    left: -17px;
}

.timeline-container:hover::after {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(193, 127, 89, 0.5);
}

/* Polaroid-style photo cards */
.timeline-content {
    padding: 15px 15px 25px 15px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FEFCF8 100%);
    border: none;
    box-shadow: var(--rn-shadow-polaroid);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    border-radius: 3px;
    transition: var(--rn-transition-romantic);
}

/* Alternating rotations for scrapbook feel */
.left .timeline-content {
    transform: rotate(-2deg);
}

.right .timeline-content {
    transform: rotate(1.5deg);
}

/* Photo corner tape effect */
.timeline-content::before,
.timeline-content::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 12px;
    background: rgba(212, 175, 116, 0.6);
    z-index: 3;
}

.timeline-content::before {
    top: -6px;
    left: 20px;
    transform: rotate(-5deg);
}

.timeline-content::after {
    top: -6px;
    right: 20px;
    transform: rotate(5deg);
}

.timeline-content:hover {
    transform: scale(1.03) rotate(0deg) translateY(-5px);
    z-index: 5;
    box-shadow: 0 15px 40px rgba(74, 60, 42, 0.25);
}

/* Photo styling with sepia warmth */
.timeline-content img {
    width: 100%;
    height: 220px !important;
    object-fit: cover;
    border: none;
    box-shadow: inset 0 0 30px rgba(139, 107, 74, 0.1);
    margin-bottom: 15px;
    filter: sepia(0.35) saturate(1.1) contrast(1.05);
    display: block;
    border-radius: 2px;
    transition: var(--rn-transition-gentle);
}

.timeline-content:hover img {
    filter: sepia(0.2) saturate(1.2) contrast(1.08);
}

/* Handwritten-style captions */
.timeline-text {
    padding: 0 5px;
    text-align: center;
}

.timeline-text h3 {
    margin: 0 0 8px 0;
    color: var(--rn-primary);
    font-family: var(--rn-font-script);
    font-size: 1.6rem;
    font-weight: 600;
}

.timeline-text p {
    margin: 0;
    color: var(--rn-text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: var(--rn-font-body);
    font-style: italic;
}

/* Date badge */
.timeline-text .date {
    display: inline-block;
    font-family: var(--rn-font-script);
    font-size: 0.9rem;
    color: var(--rn-accent);
    margin-top: 8px;
    padding: 3px 12px;
    background: rgba(166, 123, 91, 0.1);
    border-radius: 15px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ VIDEO SECTION - Film Reel Style ✧
   ═══════════════════════════════════════════════════════════════════════════ */

.video-wrapper {
    margin: 0 auto;
    max-width: 650px;
    padding: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FEFCF8 100%);
    border: none;
    transform: rotate(0.5deg);
    box-shadow: var(--rn-shadow-polaroid);
    border-radius: 3px;
    position: relative;
    transition: var(--rn-transition-romantic);
}

/* Film strip perforations */
.video-wrapper::before,
.video-wrapper::after {
    content: '❧ ❧ ❧';
    position: absolute;
    font-size: 0.8rem;
    color: var(--rn-accent);
    opacity: 0.4;
    letter-spacing: 0.5em;
}

.video-wrapper::before {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.video-wrapper::after {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.video-wrapper:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 60, 42, 0.22);
}

.video-wrapper video {
    width: 100%;
    max-height: 400px;
    border: none;
    border-radius: 2px;
    box-shadow: inset 0 0 30px rgba(139, 107, 74, 0.1);
    filter: sepia(0.15) saturate(1.1);
    background: #000;
    transition: var(--rn-transition-gentle);
}

.video-wrapper:hover video {
    filter: sepia(0.08) saturate(1.15);
}

.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: inset 0 0 30px rgba(139, 107, 74, 0.1);
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: sepia(0.15) saturate(1.1);
    transition: var(--rn-transition-gentle);
}

.youtube-container:hover iframe {
    filter: sepia(0.05) saturate(1.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ ROMANTIC ANIMATIONS ✧
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes gentlePulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ ACCESSIBILITY - Reduced Motion ✧
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .rotating {
        animation: none;
    }

    .floating-heart {
        display: none;
    }

    .hero::before {
        animation: none;
        opacity: 0.6;
    }

    .timeline-content,
    .glass-card,
    .video-wrapper {
        transform: none !important;
    }

    .timeline-content:hover,
    .glass-card:hover,
    .video-wrapper:hover {
        transform: none !important;
    }
}

/* Focus visible styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--rn-gold-leaf);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--rn-gold-leaf);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.2);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --rn-primary: #6B4B2A;
        --rn-text: #2A1C0A;
        --rn-cta: #A15F39;
    }

    .timeline-content,
    .glass-card {
        border: 2px solid var(--rn-primary);
    }

    .love-btn {
        border: 2px solid var(--rn-ink);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ MOBILE RESPONSIVENESS ✧
   ═══════════════════════════════════════════════════════════════════════════ */

@media screen and (max-width: 768px) {

    /* Timeline mobile adjustments */
    .timeline::after {
        left: 20px;
        width: 4px;
        margin-left: 0;
    }

    .timeline-container {
        width: 100%;
        padding-left: 55px;
        padding-right: 15px;
        margin-bottom: 30px;
    }

    .timeline-container::after {
        left: 6px;
        right: auto;
        top: 20px;
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .left::after,
    .right::after {
        left: 6px;
    }

    .right {
        left: 0%;
    }

    .left .timeline-content,
    .right .timeline-content {
        transform: none;
    }

    .timeline-content:hover {
        transform: translateY(-3px);
    }

    .timeline-content img {
        height: 180px !important;
    }

    /* Hero mobile */
    .title {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .title::after {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .subtitle::before,
    .subtitle::after {
        display: none;
    }

    .hero::before {
        top: 20px;
        font-size: 1.5rem;
    }

    /* Story card mobile */
    .glass-card {
        padding: 35px 25px 45px;
        transform: none;
    }

    .glass-card h2 {
        font-size: 2.2rem;
    }

    .story-text {
        font-size: 1.1rem;
    }

    /* Video mobile */
    .video-wrapper {
        padding: 15px;
        transform: none;
    }

    .video-wrapper::before,
    .video-wrapper::after {
        display: none;
    }

    /* Button mobile */
    .love-btn {
        padding: 16px 35px;
        font-size: 1rem;
        width: auto;
        max-width: 280px;
    }

    .heart-container {
        padding: 50px 20px;
    }

    /* Music player mobile */
    .vinyl-record {
        width: 50px;
        height: 50px;
    }

    .vinyl-record::before {
        width: 40px;
        height: 40px;
    }

    .vinyl-record i {
        font-size: 1rem;
    }

    .music-player {
        bottom: 20px;
        right: 20px;
    }

    /* Counter mobile */
    .time-box {
        min-width: 90px;
        max-width: 120px;
        padding: 20px 15px;
    }

    .time-box span {
        font-size: 2rem;
    }

    .time-box p {
        font-size: 0.95rem;
    }

    /* Footer mobile */
    footer {
        padding: 40px 25px;
    }

    footer p {
        font-size: 1.1rem;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }

    .title::after {
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 30px 20px 40px;
    }

    .glass-card h2 {
        font-size: 1.9rem;
    }

    .countdown-container {
        gap: 10px;
    }

    .time-box {
        min-width: 75px;
        max-width: 100px;
        padding: 15px 10px;
        margin: 5px;
    }

    .time-box span {
        font-size: 1.6rem;
    }

    .time-box p {
        font-size: 0.85rem;
    }

    .timeline-container {
        padding-left: 45px;
        padding-right: 10px;
    }

    .timeline-content {
        padding: 12px 12px 20px;
    }

    .timeline-content img {
        height: 150px !important;
    }

    .timeline-text h3 {
        font-size: 1.3rem;
    }

    .timeline-text p {
        font-size: 0.9rem;
    }

    .love-btn {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
}

/* Landscape orientation on mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 30px 20px;
    }

    .title {
        font-size: 2.5rem;
    }

    .hero::before {
        top: 15px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ PRINT STYLES ✧
   ═══════════════════════════════════════════════════════════════════════════ */

@media print {

    body::before,
    .music-player,
    .floating-heart,
    #particles-js {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .timeline-content,
    .glass-card,
    .video-wrapper {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .timeline-content img {
        filter: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ✧ VINTAGE HEART ANIMATION FIX ✧
   Ensures hearts are visible and match the theme
   ═══════════════════════════════════════════════════════════════════════════ */
.floating-heart {
    display: block !important;
    position: fixed !important;
    z-index: 2147483647 !important; /* Max Z-Index */
    color: var(--rn-cta) !important; /* Terracotta Color */
    font-size: 24px !important;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4) !important;
    pointer-events: none !important;
    /* Animation must come from global.css, but we redefine properties just in case */
    opacity: 1; 
}
