/* ============================================
   QIBRA & ARYAN - ANNIVERSARY WEBSITE
   Soft Pink Romance Theme 💕
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Soft Pink Palette */
    --pink-50: #fff5f7;
    --pink-100: #ffecf0;
    --pink-200: #ffd6e0;
    --pink-300: #ffb3c6;
    --pink-400: #ff8fab;
    --pink-500: #ff6b8a;
    --pink-600: #f24976;
    --pink-700: #e0245e;
    --pink-800: #c71f5c;

    /* Rose */
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-300: #fda4af;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;

    /* Warm Creams */
    --cream: #fff8f3;
    --cream-pink: #fff0f3;
    --warm-white: #fffbfc;
    --blush: #ffeef2;

    /* Text Colors */
    --text-dark: #4a2c3d;
    --text-medium: #7a5068;
    --text-light: #b8899e;
    --text-muted: #d4a8bb;

    /* Gradients */
    --gradient-bg: linear-gradient(180deg, #fff0f3 0%, #ffe8ec 30%, #fce4ec 60%, #f8d7e0 100%);
    --gradient-hero: linear-gradient(135deg, #fff5f7 0%, #ffeef2 25%, #ffe4ec 50%, #fdd6e1 75%, #f8c8d8 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,240,243,0.8));
    --gradient-accent: linear-gradient(135deg, #ff8fab, #ff6b8a, #f24976);
    --gradient-soft: linear-gradient(135deg, #ffb3c6, #ff8fab);
    --gradient-warm: linear-gradient(135deg, #ffd6e0, #ffb3c6, #ff8fab);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-script: 'Dancing Script', cursive;
    --font-fancy: 'Great Vibes', cursive;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: clamp(4rem, 10vh, 8rem);
    --container-max: 1100px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(244, 114, 182, 0.08);
    --shadow-md: 0 4px 20px rgba(244, 114, 182, 0.12);
    --shadow-lg: 0 8px 40px rgba(244, 114, 182, 0.15);
    --shadow-xl: 0 16px 60px rgba(244, 114, 182, 0.18);
    --shadow-key: 0 4px 12px rgba(244, 114, 182, 0.15);

    /* Animation */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--pink-400) var(--pink-50);
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: var(--pink-50); }
html::-webkit-scrollbar-thumb { background: var(--pink-300); border-radius: 3px; }

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

/* =========================================
   LOCK SCREEN
   ========================================= */
#lock-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow: hidden;
}

#lock-screen.unlocking {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

#lock-screen.hidden {
    display: none;
}

/* Background Blobs */
.lock-bg-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 400px; height: 400px;
    background: rgba(255, 179, 198, 0.4);
    top: -100px; left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px; height: 350px;
    background: rgba(255, 214, 224, 0.5);
    bottom: -80px; right: -80px;
    animation-delay: -3s;
}

.blob-3 {
    width: 300px; height: 300px;
    background: rgba(253, 164, 175, 0.3);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* Lock Floating Hearts */
.lock-floating-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.lock-float-heart {
    position: absolute;
    bottom: -30px;
    animation: lockHeartFloat linear infinite;
    opacity: 0;
}

@keyframes lockHeartFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* Lock Content */
.lock-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 380px;
}

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

.lock-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    animation: lockPulse 2s ease-in-out infinite;
}

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

.lock-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.lock-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.2em;
    font-weight: 400;
}

/* Heart Dots */
.lock-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.dot-group {
    display: flex;
    gap: 0.15rem;
}

.dot-separator {
    color: var(--pink-300);
    font-size: 1.2rem;
    margin: 0 0.2rem;
    font-weight: 300;
}

.heart-dot {
    font-size: 1.3rem;
    transition: all 0.3s var(--ease-bounce);
    filter: grayscale(100%) opacity(0.3);
}

.heart-dot.filled {
    filter: grayscale(0%) opacity(1);
    animation: heartPop 0.3s var(--ease-bounce);
}

@keyframes heartPop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Date Display */
.lock-date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.date-char {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    width: 1.2em;
    text-align: center;
    transition: color 0.3s;
}

.date-char.active {
    color: var(--pink-600);
}

.date-sep {
    color: var(--pink-300);
    font-size: 1.1rem;
    margin: 0 0.1rem;
}

/* Lock Hint */
.lock-hint {
    font-family: var(--font-script);
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
    min-height: 1.5em;
    transition: all 0.3s ease;
}

.lock-hint.error {
    color: var(--rose-500);
    animation: headShake 0.5s ease-in-out;
}

.lock-hint.success {
    color: #4ade80;
    font-size: 1.1rem;
}

@keyframes headShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Keypad */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    width: 100%;
    max-width: 320px;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.key {
    height: 56px;
    border: none;
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--pink-100);
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255, 179, 198, 0.3);
}

.key:hover {
    background: var(--pink-200);
    transform: scale(1.05);
    box-shadow: var(--shadow-key);
}

.key:active {
    transform: scale(0.95);
    background: var(--pink-300);
}

.key-empty {
    background: transparent;
    border: none;
    cursor: default;
}

.key-empty:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.key-delete {
    color: var(--text-medium);
    background: var(--pink-200);
}

.key-delete:hover {
    background: var(--pink-300);
}

.key-delete svg {
    width: 22px;
    height: 22px;
}

/* =========================================
   MAIN SITE - HIDDEN UNTIL UNLOCKED
   ========================================= */
.site-locked {
    display: none;
}

.site-unlocked {
    display: block;
    animation: siteReveal 1s var(--ease-out-expo);
}

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

/* ---------- Glass Card ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-smooth);
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--pink-200);
}

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

.floating-heart {
    position: absolute;
    bottom: -30px;
    animation: floatUp linear infinite;
    opacity: 0;
}

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

/* ---------- Sparkles ---------- */
#sparkles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 0.8; transform: scale(1); }
}

/* ---------- Navigation ---------- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 245, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 179, 198, 0.2);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-smooth);
    box-shadow: 0 2px 16px rgba(244, 114, 182, 0.06);
}

#main-nav.visible {
    transform: translateY(0);
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 0.45rem 0.9rem;
    border-radius: 100px;
    transition: all 0.3s var(--ease-smooth);
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--pink-600);
    background: var(--pink-100);
}

.nav-link.active {
    color: white;
    background: var(--gradient-accent);
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(255, 107, 138, 0.3);
}

/* ---------- Hero Section ---------- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 2;
    background: var(--gradient-hero);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 179, 198, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(253, 164, 175, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 143, 171, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 179, 198, 0.4);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--pink-600);
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 1s var(--ease-out-expo) 0.3s both;
}

.hero-names {
    font-family: var(--font-fancy);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.2s var(--ease-out-expo) 0.5s both;
}

.name {
    display: inline-block;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-1 { animation: shimmer 3s ease-in-out infinite; }
.name-2 { animation: shimmer 3s ease-in-out 1.5s infinite; }

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

.hero-inlove {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    color: var(--pink-500);
    -webkit-text-fill-color: var(--pink-500);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    margin: 0.2em 0;
    animation: fadeInUp 1.2s var(--ease-out-expo) 0.6s both;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

.hero-date {
    font-family: var(--font-script);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--pink-600);
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s var(--ease-out-expo) 0.7s both;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-medium);
    max-width: 500px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1.2s var(--ease-out-expo) 0.9s both;
}

.scroll-down {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--pink-500);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 1.2s var(--ease-out-expo) 1.1s both;
    transition: color 0.3s;
}

.scroll-down:hover { color: var(--pink-700); }

.scroll-arrow { animation: bounceDown 2s ease-in-out infinite; }

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ---------- Section Common ---------- */
section {
    position: relative;
    padding: var(--section-padding) 2rem;
    z-index: 2;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3.5rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.title-accent {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--pink-500);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Countdown Section ---------- */
#countdown {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 179, 198, 0.15) 0%, transparent 60%);
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.countdown-card {
    position: relative;
    width: clamp(80px, 18vw, 140px);
    padding: clamp(1rem, 3vw, 2rem) clamp(0.5rem, 2vw, 1.5rem);
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 179, 198, 0.3);
    overflow: hidden;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    font-weight: 400;
}

.countdown-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(255, 107, 138, 0.4);
}

.countdown-separator {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--pink-400);
    opacity: 0.5;
    animation: pulse 1s ease-in-out infinite;
    align-self: flex-start;
    margin-top: clamp(1rem, 3vw, 2rem);
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.countdown-message {
    text-align: center;
    font-family: var(--font-script);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--pink-500);
}

/* ---------- Timeline ---------- */
#story {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(255, 214, 224, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(253, 164, 175, 0.15) 0%, transparent 60%);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent,
        var(--pink-300) 10%,
        var(--pink-400) 50%,
        var(--pink-300) 90%,
        transparent
    );
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 0;
}

.timeline-item.left { padding-right: 3rem; text-align: right; }
.timeline-item.right { margin-left: 50%; padding-left: 3rem; text-align: left; }

.timeline-dot {
    position: absolute;
    top: 2rem;
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid var(--pink-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 5;
    box-shadow: 0 0 20px rgba(255, 143, 171, 0.25);
}

.timeline-item.left .timeline-dot { right: -22px; }
.timeline-item.right .timeline-dot { left: -22px; }

.timeline-card { padding: 1.5rem 2rem; }

.timeline-date {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--pink-500);
    margin-bottom: 0.5rem;
}

.timeline-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.timeline-poem {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.9rem !important;
    line-height: 1.8 !important;
    color: var(--text-medium);
    margin-bottom: 1rem;
    opacity: 0.95;
}

.timeline-author {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--pink-600);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ---------- Poetry Section ---------- */
#poetry {
    background:
        radial-gradient(ellipse at 40% 40%, rgba(255, 179, 198, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 60%, rgba(253, 164, 175, 0.08) 0%, transparent 60%);
}

.poetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.poem-card {
    padding: 2rem 2rem 1.5rem;
    position: relative;
    text-align: center;
    cursor: default;
    overflow: hidden;
}

.poem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

.poem-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

.poem-quote-mark {
    font-family: var(--font-fancy);
    font-size: 4rem;
    line-height: 1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    margin-bottom: -0.5rem;
    user-select: none;
}

.poem-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    border: none;
}

.poem-author {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.poem-dash {
    color: var(--pink-400);
    font-size: 1rem;
}

.poem-name {
    font-family: var(--font-script);
    font-size: 1.15rem;
    color: var(--pink-600);
    font-weight: 600;
}

.poem-work {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    display: block;
    width: 100%;
    margin-top: 0.15rem;
}

@media (max-width: 768px) {
    .poetry-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Reasons Grid ---------- */
#reasons {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 179, 198, 0.12) 0%, transparent 60%);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.reason-card {
    padding: 2rem;
    text-align: center;
    cursor: default;
}

.reason-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.reason-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.reason-card:nth-child(2) .reason-emoji { animation-delay: 0.5s; }
.reason-card:nth-child(3) .reason-emoji { animation-delay: 1s; }
.reason-card:nth-child(4) .reason-emoji { animation-delay: 1.5s; }
.reason-card:nth-child(5) .reason-emoji { animation-delay: 2s; }
.reason-card:nth-child(6) .reason-emoji { animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Thumbnail images for reasons/qualities card */
.reason-image-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--pink-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.reason-card:hover .reason-image-container {
    border-color: var(--pink-400);
    transform: scale(1.08);
}

.reason-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.reason-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.reason-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ---------- Video Section ---------- */
#video-section {
    background: radial-gradient(ellipse at 70% 30%, rgba(255, 214, 224, 0.15) 0%, transparent 60%);
}

.video-wrapper {
    max-width: 750px;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 179, 198, 0.3);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s var(--ease-smooth);
}

.video-wrapper:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--pink-400);
    transform: translateY(-2px);
}

.romance-video {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
    box-shadow: var(--shadow-sm);
}


/* ---------- Love Letter ---------- */
#letter {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 179, 198, 0.1) 0%, transparent 60%);
}

.letter-wrapper { max-width: 700px; margin: 0 auto; }

.letter-card {
    padding: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 179, 198, 0.3);
}

.letter-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

.letter-seal {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.letter-greeting {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--pink-600);
    margin-bottom: 1.5rem;
}

.letter-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 1.2rem;
    line-height: 1.9;
}

.letter-signature {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--pink-500);
    margin-top: 2rem;
    text-align: right;
}

.signature-name {
    font-family: var(--font-fancy);
    font-size: 2.2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Footer ---------- */
#footer {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(255, 214, 224, 0.15));
    border-top: 1px solid rgba(255, 179, 198, 0.2);
    z-index: 2;
}

.footer-hearts {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-names {
    font-family: var(--font-fancy);
    font-size: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.footer-date {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--pink-500);
    margin-bottom: 1.5rem;
}

.footer-infinity {
    font-size: 2.5rem;
    background: var(--gradient-soft);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

/* ---------- Music Button ---------- */
.music-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 179, 198, 0.3);
    border-radius: 100px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    color: var(--text-medium);
    font-family: var(--font-body);
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.music-btn:hover {
    background: rgba(255, 240, 243, 0.95);
    border-color: var(--pink-300);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.music-btn.playing .music-icon {
    animation: musicBounce 0.6s ease-in-out infinite alternate;
}

@keyframes musicBounce {
    from { transform: scale(1); }
    to { transform: scale(1.2) rotate(15deg); }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    #main-nav {
        gap: 0.2rem;
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }

    .timeline-line { left: 22px; }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        margin-left: 0;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 0;
        right: auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery-item:nth-child(1) { grid-row: span 1; }
    .gallery-item:nth-child(4) { grid-column: span 1; }

    .reasons-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 160px;
    }

    .countdown-separator { display: none; }
    .countdown-wrapper { gap: 0.8rem; }

    .keypad {
        padding: 1.3rem;
        gap: 0.5rem;
    }

    .key { height: 50px; font-size: 1.1rem; }
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(255, 143, 171, 0.3);
    color: var(--text-dark);
}
