/* --- 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;
    }
}

/* ===========================
   ETHEREAL DREAM THEME
   Design System: Romantic Glassmorphism
   Typography: Cormorant Garamond, Dancing Script, Quicksand
   Colors: Cherry Blossom + Sunset Warmth
   Mood: Dreamy, Romantic, Ethereal
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Dancing+Script:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Ethereal Dream */
    --ed-primary: #F8BBD9;
    /* Cherry Blossom */
    --ed-secondary: #E1BEE7;
    /* Soft Orchid */
    --ed-cta: #FF8A9B;
    /* Coral Heart */
    --ed-accent-gold: #FFE4B5;
    /* Honeyed Light */
    --ed-text: #4A3728;
    /* Warm Espresso */
    --ed-text-soft: #6D5D4B;
    /* Soft Mocha */
    --ed-text-light: #FFFFFF;
    /* Pure White */

    /* Gradients */
    --ed-gradient-bg: linear-gradient(135deg, #FFECD2 0%, #FCB69F 30%, #F8BBD9 60%, #E1BEE7 100%);
    --ed-gradient-sunset: linear-gradient(135deg, #FFE5D0 0%, #FFC8A2 25%, #FFB6C1 50%, #DDA0DD 100%);

    /* Glass Effects */
    --ed-glass: rgba(255, 255, 255, 0.25);
    --ed-glass-strong: rgba(255, 255, 255, 0.4);
    --ed-glass-romantic: rgba(248, 187, 217, 0.15);
    --ed-border: rgba(255, 255, 255, 0.4);
    --ed-blur: 20px;

    /* Effects */
    --ed-glow-soft: 0 0 40px rgba(248, 187, 217, 0.4);
    --ed-shadow-dreamy: 0 20px 60px rgba(248, 187, 217, 0.3);
    --ed-shadow-float: 0 30px 80px rgba(0, 0, 0, 0.1);

    /* Typography */
    --ed-font-display: 'Cormorant Garamond', serif;
    --ed-font-script: 'Dancing Script', cursive;
    --ed-font-body: 'Quicksand', sans-serif;

    /* Spacing */
    --ed-gap-sm: 16px;
    --ed-gap-md: 24px;
    --ed-gap-lg: 48px;
    --ed-gap-xl: 80px;

    /* Transitions */
    --ed-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --ed-transition-float: all 0.8s ease-out;
}

/* ===========================
   GLOBAL RESET & BASE
   =========================== */

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

body {
    font-family: var(--ed-font-body);
    background: var(--ed-gradient-bg);
    background-attachment: fixed;
    color: var(--ed-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ===========================
   DREAMY BACKGROUND
   =========================== */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--ed-gradient-bg);
    overflow: hidden;
}

/* Floating petal orbs */
#particles-js::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 25%, rgba(248, 187, 217, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(225, 190, 231, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 228, 181, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 182, 193, 0.3) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 20%, rgba(252, 182, 159, 0.3) 0%, transparent 45%);
    animation: dreamyFloat 20s ease-in-out infinite;
}

/* Cherry blossom petals decoration */
#particles-js::after {
    content: '✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    font-size: 2rem;
    color: rgba(248, 187, 217, 0.15);
    letter-spacing: 60px;
    white-space: nowrap;
    animation: floatingPetals 60s linear infinite;
    pointer-events: none;
}

@keyframes dreamyFloat {

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

    33% {
        opacity: 0.9;
        transform: scale(1.05) translateY(-10px);
    }

    66% {
        opacity: 0.95;
        transform: scale(1.02) translateY(5px);
    }
}

@keyframes floatingPetals {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(-50%) translateY(100vh);
    }
}

/* ===========================
   MUSIC PLAYER - Rose Gold Vinyl
   =========================== */

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

.vinyl-record {
    width: 65px;
    height: 65px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(248, 187, 217, 0.3));
    backdrop-filter: blur(var(--ed-blur));
    -webkit-backdrop-filter: blur(var(--ed-blur));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        var(--ed-shadow-dreamy),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    transition: var(--ed-transition);
    border: 2px solid var(--ed-border);
    position: relative;
}

.vinyl-record::before {
    content: '♫';
    position: absolute;
    font-size: 10px;
    color: var(--ed-cta);
    opacity: 0;
    transition: var(--ed-transition);
    top: -8px;
    right: -8px;
}

.vinyl-record:hover {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 138, 155, 0.3));
    box-shadow:
        0 25px 70px rgba(248, 187, 217, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.4);
}

.vinyl-record:hover::before {
    opacity: 1;
    transform: translateY(-5px);
}

.vinyl-record i {
    font-size: 26px;
    color: var(--ed-cta);
    text-shadow: 0 2px 10px rgba(255, 138, 155, 0.5);
}

.vinyl-record.playing {
    animation: gentleSpin 4s ease-in-out infinite;
}

.vinyl-record.playing::after {
    content: '♥';
    position: absolute;
    font-size: 12px;
    color: var(--ed-cta);
    animation: heartBeat 1.5s ease-in-out infinite;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes gentleSpin {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes heartBeat {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scale(1.3);
        opacity: 0.8;
    }
}

/* ===========================
   HERO SECTION - Romantic Welcome
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--ed-gap-md);
    position: relative;
}

/* Floating hearts decoration */
.hero::before {
    content: '❦';
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 3rem;
    color: rgba(255, 138, 155, 0.2);
    animation: floatHeart 6s ease-in-out infinite;
}

.hero::after {
    content: '✿';
    position: absolute;
    bottom: 25%;
    right: 15%;
    font-size: 2.5rem;
    color: rgba(248, 187, 217, 0.25);
    animation: floatHeart 8s ease-in-out infinite reverse;
}

@keyframes floatHeart {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
        opacity: 0.15;
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.25;
    }
}

/* ============================================
   MOBILE OPTIMIZATION (Timeline Specific)
   ============================================ */
@media (max-width: 768px) {

    /* Slow down card appearance and transitions */
    .timeline-content {
        transition-duration: 1.2s !important;
        transform: none !important;
        /* Stop movement on mobile */
    }

    .timeline-content:hover {
        transform: none !important;
    }

    /* Slow down image transitions */
    .timeline-content img {
        transition-duration: 1.2s !important;
        transform: none !important;
    }
}



.hero .content {
    max-width: 850px;
    animation: dreamyFadeIn 1.5s ease-out;
    position: relative;
}

.title {
    font-family: var(--ed-font-display);
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 600;
    font-style: italic;
    color: var(--ed-text);
    margin-bottom: var(--ed-gap-md);
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-shadow:
        0 4px 20px rgba(248, 187, 217, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.title::before {
    content: '~ ';
    font-style: normal;
    color: var(--ed-cta);
}

.title::after {
    content: ' ~';
    font-style: normal;
    color: var(--ed-cta);
}

.subtitle {
    font-family: var(--ed-font-script);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 500;
    color: var(--ed-text-soft);
    margin-bottom: var(--ed-gap-lg);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--ed-cta);
    animation: gentleBounce 3s ease-in-out infinite;
    cursor: pointer;
    transition: var(--ed-transition);
    text-shadow: 0 0 20px rgba(255, 138, 155, 0.5);
}

.scroll-down::before {
    content: '♥';
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
    animation: heartPulse 2s ease-in-out infinite;
}

.scroll-down:hover {
    color: var(--ed-primary);
    transform: translateX(-50%) scale(1.2);
}

@keyframes gentleBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}

@keyframes heartPulse {

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

    50% {
        transform: scale(1.2);
    }
}

@keyframes dreamyFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(10px);
    }

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

/* ===========================
   STORY SECTION - Memory Card
   =========================== */

.story-section {
    padding: var(--ed-gap-xl) var(--ed-gap-md);
    max-width: 1100px;
    margin: 0 auto;
}

.glass-card {
    background: var(--ed-glass-strong);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: var(--ed-gap-lg);
    border-radius: 32px;
    box-shadow:
        var(--ed-shadow-dreamy),
        var(--ed-shadow-float),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid var(--ed-border);
    transition: var(--ed-transition-float);
    position: relative;
    overflow: hidden;
}

/* Romantic corner flourishes */
.glass-card::before {
    content: '❦';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 1.5rem;
    color: rgba(255, 138, 155, 0.3);
    transition: var(--ed-transition);
}

.glass-card::after {
    content: '❦';
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 1.5rem;
    color: rgba(255, 138, 155, 0.3);
    transform: rotate(180deg);
    transition: var(--ed-transition);
}

.glass-card:hover {
    transform: translateY(-12px) rotate(0.5deg);
    box-shadow:
        0 35px 80px rgba(248, 187, 217, 0.4),
        0 15px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
}

.glass-card:hover::before,
.glass-card:hover::after {
    color: rgba(255, 138, 155, 0.5);
    transform: scale(1.1);
}

.glass-card:hover::after {
    transform: scale(1.1) rotate(180deg);
}

.glass-card h2 {
    font-family: var(--ed-font-display);
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 600;
    font-style: italic;
    color: var(--ed-text);
    margin-bottom: var(--ed-gap-md);
    display: flex;
    align-items: center;
    gap: 16px;
}

.glass-card h2 i {
    color: var(--ed-cta);
    text-shadow: 0 0 20px rgba(255, 138, 155, 0.5);
}

.story-text {
    font-family: var(--ed-font-body);
    font-size: 1.2rem;
    line-height: 2;
    color: var(--ed-text-soft);
}

.story-text strong {
    font-family: var(--ed-font-script);
    color: var(--ed-cta);
    font-weight: 600;
    font-size: 1.3em;
}

/* ===========================
   TIMELINE - Floating Memory Clouds
   =========================== */

.timeline-section {
    padding: var(--ed-gap-xl) var(--ed-gap-md);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline-section h2 {
    font-family: var(--ed-font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 600;
    font-style: italic;
    color: var(--ed-text);
    text-align: center;
    margin-bottom: var(--ed-gap-xl);
    position: relative;
}

.timeline-section h2::before {
    content: '✿ ';
    color: var(--ed-primary);
}

.timeline-section h2::after {
    content: ' ✿';
    color: var(--ed-primary);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--ed-gap-lg);
}

/* Romantic ribbon timeline line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
            rgba(248, 187, 217, 0.6) 0%,
            rgba(255, 138, 155, 0.4) 50%,
            rgba(225, 190, 231, 0.6) 100%);
    border-radius: 4px;
    box-shadow:
        0 0 20px rgba(248, 187, 217, 0.4),
        0 0 40px rgba(248, 187, 217, 0.2);
}

.timeline-container {
    position: relative;
    width: 100%;
}

/* Memory cloud cards */
.timeline-content {
    background: var(--ed-glass-strong);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: var(--ed-gap-md);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    gap: var(--ed-gap-md);
    transition: var(--ed-transition-float);
    border: 1px solid var(--ed-border);
    width: calc(50% - 50px);
    box-shadow:
        var(--ed-shadow-dreamy),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
}

/* Cloud-like shape enhancement */
.timeline-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    right: 20px;
    height: 16px;
    background: inherit;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.5;
}

.timeline-container.left .timeline-content {
    margin-right: auto;
    border-radius: 28px 28px 28px 8px;
}

.timeline-container.right .timeline-content {
    margin-left: auto;
    border-radius: 28px 28px 8px 28px;
}

.timeline-content:hover {
    transform: scale(1.04) translateY(-8px);
    box-shadow:
        0 40px 100px rgba(248, 187, 217, 0.5),
        0 20px 50px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.55);
}

/* Polaroid-style photos */
.timeline-content img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    border: 6px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 15px 40px rgba(248, 187, 217, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--ed-transition);
}

.timeline-content:hover img {
    transform: rotate(-1deg);
    box-shadow:
        0 20px 50px rgba(255, 138, 155, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline-text h3 {
    font-family: var(--ed-font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ed-text);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.timeline-text h3::after {
    content: ' ♥';
    color: var(--ed-cta);
    font-size: 0.8em;
}

.timeline-text p {
    font-family: var(--ed-font-body);
    font-size: 1rem;
    color: var(--ed-text-soft);
    line-height: 1.8;
}

/* Heart timeline dots */
.timeline-container::before {
    content: '♥';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--ed-cta) 0%, var(--ed-primary) 100%);
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    line-height: 36px;
    text-align: center;
    box-shadow:
        0 0 30px rgba(255, 138, 155, 0.6),
        var(--ed-glow-soft);
    animation: heartGlow 3s ease-in-out infinite;
}

@keyframes heartGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 30px rgba(255, 138, 155, 0.6),
            0 0 40px rgba(248, 187, 217, 0.4);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow:
            0 0 40px rgba(255, 138, 155, 0.8),
            0 0 60px rgba(248, 187, 217, 0.6);
    }
}

/* ===========================
   VIDEO SECTION - Cinema Moment
   =========================== */

.video-section {
    padding: var(--ed-gap-xl) var(--ed-gap-md);
    max-width: 1100px;
    margin: 0 auto;
}

.video-wrapper {
    overflow: hidden;
    position: relative;
}

.video-wrapper h2 {
    font-family: var(--ed-font-display);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: var(--ed-gap-md);
    color: var(--ed-text);
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    max-width: 900px;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 24px;
    box-shadow:
        var(--ed-shadow-dreamy),
        var(--ed-shadow-float);
    border: 6px solid rgba(255, 255, 255, 0.6);
    transition: var(--ed-transition);
}

.video-wrapper video:hover,
.video-wrapper iframe:hover {
    transform: scale(1.02);
    box-shadow:
        0 40px 100px rgba(248, 187, 217, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===========================
   COUNTER SECTION - Love Counter
   =========================== */

.counter-section {
    padding: var(--ed-gap-xl) var(--ed-gap-md);
    text-align: center;
    background: var(--ed-glass-strong);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    margin: var(--ed-gap-xl) var(--ed-gap-md);
    border-radius: 40px;
    box-shadow:
        var(--ed-shadow-dreamy),
        var(--ed-shadow-float),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid var(--ed-border);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

/* Decorative corners */
.counter-section::before {
    content: '✿';
    position: absolute;
    top: 25px;
    left: 30px;
    font-size: 2rem;
    color: rgba(248, 187, 217, 0.4);
}

.counter-section::after {
    content: '✿';
    position: absolute;
    bottom: 25px;
    right: 30px;
    font-size: 2rem;
    color: rgba(248, 187, 217, 0.4);
}

.counter-section h2 {
    font-family: var(--ed-font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    font-style: italic;
    color: var(--ed-text);
    margin-bottom: var(--ed-gap-md);
}

/* Original HTML template class names */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.time-box {
    min-width: 110px;
    padding: var(--ed-gap-md);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(248, 187, 217, 0.15));
    backdrop-filter: blur(var(--ed-blur));
    -webkit-backdrop-filter: blur(var(--ed-blur));
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--ed-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.time-box:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 138, 155, 0.2));
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--ed-shadow-dreamy);
}

.time-box span {
    font-family: var(--ed-font-script);
    font-size: 3rem;
    font-weight: 700;
    color: var(--ed-cta);
    display: block;
    text-shadow: 0 2px 15px rgba(255, 138, 155, 0.4);
}

.time-box p {
    font-family: var(--ed-font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ed-text-soft);
    font-weight: 600;
    margin: 8px 0 0 0;
}

/* Heart Container & Love Button */
.heart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--ed-gap-xl) var(--ed-gap-md);
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.love-btn {
    font-family: var(--ed-font-body);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(248, 187, 217, 0.3));
    backdrop-filter: blur(var(--ed-blur));
    -webkit-backdrop-filter: blur(var(--ed-blur));
    color: var(--ed-text);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px 45px;
    border: 2px solid rgba(255, 138, 155, 0.4);
    border-radius: 50px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: var(--ed-shadow-dreamy);
    transition: var(--ed-transition);
    position: relative;
    overflow: hidden;
    z-index: 100;
}

.love-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 138, 155, 0.3), transparent);
    transition: left 0.5s;
}

.love-btn:hover::before {
    left: 100%;
}

.love-btn:hover {
    background: linear-gradient(145deg, var(--ed-cta), var(--ed-primary));
    color: white;
    border-color: var(--ed-cta);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 138, 155, 0.5);
}

.counter-container {
    display: flex;
    justify-content: center;
    gap: var(--ed-gap-lg);
    flex-wrap: wrap;
}

.counter-item {
    min-width: 130px;
    padding: var(--ed-gap-md);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(248, 187, 217, 0.15));
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--ed-transition);
    position: relative;
}

.counter-item::before {
    content: '♥';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--ed-cta);
    opacity: 0;
    transition: var(--ed-transition);
}

.counter-item:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 138, 155, 0.2));
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--ed-shadow-dreamy);
}

.counter-item:hover::before {
    opacity: 1;
    top: -15px;
}

.counter-value {
    font-family: var(--ed-font-script);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ed-cta);
    margin-bottom: 8px;
    text-shadow: 0 2px 15px rgba(255, 138, 155, 0.4);
}

.counter-label {
    font-family: var(--ed-font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ed-text-soft);
    font-weight: 600;
}

/* ===========================
   HEART BUTTON - Love Burst
   =========================== */

.heart-button {
    position: fixed;
    bottom: 115px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(248, 187, 217, 0.3));
    backdrop-filter: blur(var(--ed-blur));
    -webkit-backdrop-filter: blur(var(--ed-blur));
    color: var(--ed-cta);
    border: 2px solid var(--ed-border);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    box-shadow:
        var(--ed-shadow-dreamy),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    transition: var(--ed-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-button::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ed-cta), var(--ed-primary));
    opacity: 0;
    z-index: -1;
    transition: var(--ed-transition);
}

.heart-button:hover {
    transform: scale(1.15);
    background: linear-gradient(145deg, rgba(255, 138, 155, 0.4), rgba(248, 187, 217, 0.5));
    color: var(--ed-text-light);
    box-shadow:
        0 25px 70px rgba(255, 138, 155, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.4);
}

.heart-button:hover::before {
    opacity: 0.3;
    animation: heartRipple 1s ease-out infinite;
}

@keyframes heartRipple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
        filter: blur(15px);
    }

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

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

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

/* ===========================
   ACCESSIBILITY
   =========================== */

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

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --ed-text: #2D1810;
        --ed-border: rgba(74, 55, 40, 0.5);
    }

    .glass-card,
    .timeline-content,
    .counter-section {
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--ed-cta);
    outline-offset: 3px;
    box-shadow:
        0 0 0 6px rgba(255, 138, 155, 0.25),
        var(--ed-glow-soft);
}

/* Focus visible for better UX */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--ed-cta);
    outline-offset: 3px;
    box-shadow:
        0 0 0 6px rgba(255, 138, 155, 0.25),
        var(--ed-glow-soft);
}

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

/* Tablet - 768px */
@media (max-width: 768px) {
    :root {
        --ed-gap-lg: 36px;
        --ed-gap-xl: 60px;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-container.left .timeline-content,
    .timeline-container.right .timeline-content {
        width: calc(100% - 65px);
        margin-left: 65px;
        border-radius: 24px;
    }

    .timeline-container::before {
        left: 24px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .hero::before,
    .hero::after {
        font-size: 2rem;
    }

    .glass-card::before,
    .glass-card::after {
        font-size: 1.2rem;
    }

    /* Counter/Timer responsive */
    .countdown-container {
        gap: 15px;
    }

    .time-box {
        min-width: 80px;
        padding: 15px 12px;
    }

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

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

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

    .love-btn {
        padding: 15px 35px;
        font-size: 1rem;
        width: 90%;
        max-width: 320px;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    :root {
        --ed-gap-md: 18px;
        --ed-gap-lg: 28px;
        --ed-gap-xl: 45px;
    }

    .glass-card {
        padding: var(--ed-gap-md);
        border-radius: 24px;
    }

    .glass-card::before,
    .glass-card::after {
        display: none;
    }

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

    .vinyl-record {
        width: 55px;
        height: 55px;
    }

    .vinyl-record i {
        font-size: 22px;
    }

    .heart-button {
        bottom: 95px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .counter-container,
    .countdown-container {
        gap: var(--ed-gap-md);
    }

    .counter-item,
    .time-box {
        padding: var(--ed-gap-sm);
        min-width: 70px;
    }

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

    .time-box p {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }

    .counter-value {
        font-size: 2.5rem;
    }

    .timeline-content img {
        height: 220px;
        border-width: 4px;
    }

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

    .counter-section::before,
    .counter-section::after {
        display: none;
    }

    .counter-section {
        border-radius: 28px;
    }

    .heart-container {
        padding: 30px 15px;
    }

    .love-btn {
        padding: 14px 25px;
        font-size: 0.95rem;
        width: 95%;
        max-width: 280px;
    }
}

/* Small mobile - 360px */
@media (max-width: 360px) {
    .counter-container {
        flex-direction: column;
        align-items: center;
    }

    .counter-item {
        width: 100%;
        max-width: 200px;
    }
}

/* Support for older browsers without backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {

    .glass-card,
    .timeline-content,
    .counter-section,
    .vinyl-record,
    .heart-button {
        background: rgba(255, 245, 248, 0.95);
    }

    #particles-js {
        background: linear-gradient(135deg, #FFECD2 0%, #F8BBD9 50%, #E1BEE7 100%);
    }
}

/* Compact mobile layout for counter section */
@media (max-width: 768px) {
    .counter-section {
        padding: 12px;
        margin: 12px;
        border-radius: 24px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .countdown-container,
    .counter-container {
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0 auto;
    }

    .time-box,
    .counter-item {
        min-width: 80px;
        padding: 10px;
        margin: 0;
        border-radius: 16px;
    }

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

    .time-box p,
    .counter-label {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }
}

/* 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;
    }
}