/* --- CSS Reset & Variables --- */
:root {
    --bg-gradient: linear-gradient(135deg, #0b0716 0%, #150921 40%, #290924 80%, #17051c 100%);
    --primary-color: #ff4d6d;
    --primary-hover: #ff758f;
    --primary-glow: rgba(255, 77, 109, 0.4);
    --secondary-color: #ffb3c1;
    --accent-gold: #f4d068;
    --accent-gold-glow: rgba(244, 208, 104, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --text-main: #f8f9fa;
    --text-muted: #c9b3c4;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-handwritten: 'Dancing Script', cursive;
}

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

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

body {
    font-family: var(--font-body);
    background: 
        linear-gradient(rgba(11, 7, 22, 0.8), rgba(21, 9, 33, 0.9)),
        url('assets/background.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Main Scrollable Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Glassmorphism Card Style --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    border-color: var(--glass-highlight);
    box-shadow: 0 20px 50px 0 rgba(255, 77, 109, 0.15);
}

/* --- Ambient Music Box --- */
.music-box {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(15, 7, 24, 0.7);
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.music-box:hover {
    background: rgba(255, 77, 109, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.vinyl-record {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0d0d0d;
    border: 3px solid #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.vinyl-center {
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid #000;
}

.music-note-icon {
    position: absolute;
    color: #fff;
    font-size: 11px;
    opacity: 0.8;
}

.music-box.playing .vinyl-record {
    animation: rotateVinyl 4s linear infinite;
}

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

.music-tooltip {
    position: absolute;
    bottom: -35px;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.music-box:hover .music-tooltip {
    opacity: 1;
}

.music-status {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

.hero-card {
    width: 100%;
    max-width: 800px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.heart-pulse-container {
    width: 90px;
    height: 90px;
    background: rgba(255, 77, 109, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: pulseGlow 2s infinite alternate;
}

.main-heart-icon {
    font-size: 45px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-color));
    animation: pulseHeart 1.2s infinite cubic-bezier(0.215, 0.610, 0.355, 1);
}

@keyframes pulseHeart {
    0% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 77, 109, 0.2), inset 0 0 10px rgba(255, 77, 109, 0.1);
        border: 1px solid rgba(255, 77, 109, 0.1);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 77, 109, 0.5), inset 0 0 20px rgba(255, 77, 109, 0.3);
        border: 1px solid rgba(255, 77, 109, 0.3);
    }
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 77, 109, 0.25);
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Counter Style */
.counter-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 20px;
    max-width: 550px;
    margin: 0 auto 30px;
}

.counter-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.timer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
}

.time-num {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 5px;
}

.scroll-down-hint {
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-down-hint p {
    margin-bottom: 8px;
}

.bounce-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* --- Section Headers --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color));
}

.section-divider::after {
    background: linear-gradient(-90deg, transparent, var(--primary-color));
}

.section-divider i {
    color: var(--primary-color);
    font-size: 14px;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* --- Memory Lane / Timeline --- */
.timeline-section {
    position: relative;
}

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

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-gold), transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-item {
    width: 50%;
    padding: 20px 40px;
    position: relative;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: 3px solid #11051b;
    top: 38px;
    z-index: 10;
    box-shadow: 0 0 10px var(--accent-gold-glow);
    transition: all 0.3s ease;
}

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

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

.timeline-content {
    padding: 25px 30px;
    position: relative;
    cursor: default;
}

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

.timeline-item:hover .timeline-dot {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.3);
}

.timeline-date {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 77, 109, 0.15);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

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

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* --- Interactive Love Jar --- */
.jar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.jar-wrapper {
    width: 160px;
    height: 230px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jar-wrapper:hover {
    transform: scale(1.05) rotate(2deg);
}

.jar-wrapper:active {
    transform: scale(0.98);
}

.jar-lid {
    width: 100px;
    height: 20px;
    background: linear-gradient(90deg, #c5a059, #e5c385, #c5a059);
    border-radius: 6px 6px 0 0;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
    z-index: 5;
}

.jar-neck {
    width: 80px;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    margin: 0 auto;
    z-index: 4;
    position: relative;
}

.jar-body {
    width: 160px;
    height: 195px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 30px 30px 40px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
                inset 0 0 20px rgba(255, 255, 255, 0.15),
                inset 0 -15px 30px rgba(255, 77, 109, 0.2);
}

.jar-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.3) 0%, transparent 70%);
    opacity: 0.6;
    animation: heartbeatGlow 2.5s infinite alternate;
}

@keyframes heartbeatGlow {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

.inner-heart {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    transform: rotate(45deg);
    border-radius: 3px;
    opacity: 0.8;
}

.inner-heart::before,
.inner-heart::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
}

.inner-heart::before {
    left: -8px;
}

.inner-heart::after {
    top: -8px;
}

.inner-heart.h1 { top: 50%; left: 30%; transform: rotate(15deg) scale(0.8); animation: floatingHeart 4s infinite alternate ease-in-out; }
.inner-heart.h2 { top: 60%; left: 60%; transform: rotate(35deg) scale(0.9); animation: floatingHeart 5s infinite alternate-reverse ease-in-out; }
.inner-heart.h3 { top: 40%; left: 70%; transform: rotate(-25deg) scale(0.7); animation: floatingHeart 4.5s infinite alternate ease-in-out 1s; }
.inner-heart.h4 { top: 75%; left: 45%; transform: rotate(5deg) scale(1.1); animation: floatingHeart 6s infinite alternate-reverse ease-in-out 0.5s; }
.inner-heart.h5 { top: 35%; left: 40%; transform: rotate(50deg) scale(0.6); animation: floatingHeart 3.5s infinite alternate ease-in-out 1.5s; }

@keyframes floatingHeart {
    0% { transform: translateY(0) rotate(15deg); }
    100% { transform: translateY(-12px) rotate(25deg); }
}

.jar-label {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    background: #eed5af;
    color: #4a3416;
    padding: 6px 4px;
    border-radius: 4px;
    font-family: var(--font-handwritten);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: 1px dashed #7a5f39;
    z-index: 10;
}

/* Floating Heart Animation Out of Jar */
.flying-heart {
    position: fixed;
    z-index: 99;
    color: var(--primary-color);
    pointer-events: none;
    font-size: 20px;
    animation: flyUp 1.2s ease-out forwards;
    filter: drop-shadow(0 0 6px var(--primary-color));
}

@keyframes flyUp {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-250px) scale(2.2) rotate(360deg);
        opacity: 0;
    }
}

/* Note Display Panel */
.note-display {
    width: 100%;
    max-width: 480px;
    padding: 35px;
    text-align: center;
    position: relative;
    border-radius: 20px;
}

.pin {
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #ff3355, #bb0022);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.pin::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 10px;
    background: #888;
    bottom: -8px;
    left: 6px;
    transform: rotate(15deg);
}

.note-content {
    font-family: var(--font-handwritten);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.5;
    color: var(--secondary-color);
    transition: opacity 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 77, 109, 0.1);
}

/* --- The Us Quiz --- */
.quiz-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    overflow: hidden;
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    border-radius: 10px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px var(--primary-glow);
}

.quiz-step {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    width: 100%;
}

.quiz-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.quiz-question {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
    color: #fff;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-btn {
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-btn:hover {
    background: rgba(255, 77, 109, 0.08);
    border-color: var(--primary-color);
    padding-left: 32px;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.1);
}

.quiz-btn.correct {
    background: rgba(46, 213, 115, 0.15) !important;
    border-color: #2ed573 !important;
    color: #2ed573;
}

.quiz-btn.wrong {
    background: rgba(255, 71, 87, 0.15) !important;
    border-color: #ff4757 !important;
    color: #ff4757;
}

/* Completion Screen */
.success-icon {
    font-size: 60px;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 20px;
    animation: scaleHeart 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px var(--accent-gold-glow));
}

@keyframes scaleHeart {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

#quiz-result {
    text-align: center;
}

#quiz-result h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

#quiz-result p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.unlock-desc {
    font-size: 0.95rem;
    margin-bottom: 25px !important;
    color: var(--secondary-color) !important;
}

.action-btn {
    padding: 14px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.6);
}

/* --- Sealed Love Letter --- */
.letter-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.letter-section.locked {
    opacity: 0.4;
    pointer-events: none;
}

/* Envelope Container */
.envelope-wrapper {
    position: relative;
    width: 320px;
    height: 220px;
    margin-top: 40px;
    perspective: 1000px;
    cursor: pointer;
}

.envelope {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ef8b8b;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-top: 110px solid #ef8b8b;
    transform-origin: top;
    transition: transform 0.4s ease 0.4s, z-index 0.2s ease 0.4s;
    z-index: 4;
}

.pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 160px solid #f29f9f;
    border-right: 160px solid #f29f9f;
    border-bottom: 110px solid #f09595;
    border-radius: 0 0 10px 10px;
    z-index: 3;
}

/* Love Letter Scroll Card */
.letter {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 300px;
    height: 200px;
    background: #fdfaf2;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                z-index 0.1s ease 0.3s;
    overflow: hidden;
}

.letter-inner {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 77, 109, 0.2) transparent;
}

.letter-inner::-webkit-scrollbar {
    width: 4px;
}
.letter-inner::-webkit-scrollbar-thumb {
    background-color: rgba(255, 77, 109, 0.2);
    border-radius: 10px;
}

.letter-salutation {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: #4a1525;
    margin-bottom: 15px;
}

.letter-body {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: #5d313d;
    line-height: 1.7;
    margin-bottom: 15px;
    text-indent: 15px;
}

.letter-signature {
    font-family: var(--font-handwritten);
    font-size: 1.6rem;
    color: var(--primary-color);
    text-align: right;
    margin-top: 25px;
    line-height: 1.2;
}

.signature-name {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Open Envelope States */
.envelope-wrapper.open .flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.envelope-wrapper.open .letter {
    transform: translateY(-120px);
    height: 380px;
    z-index: 5;
}

.envelope-hint {
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--accent-gold);
    animation: pulseHint 1.5s infinite alternate;
}

@keyframes pulseHint {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Hearts Explosion inside envelope */
.hearts-explosion {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 6;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 8px;
}

.footer-anniversary {
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .music-box {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
    }
    
    .vinyl-record {
        width: 30px;
        height: 30px;
    }

    .music-status {
        display: none;
    }

    .hero-card {
        padding: 40px 20px;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding: 20px 20px 20px 60px;
    }

    .timeline-item.left {
        text-align: left;
        left: 0;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-dot {
        left: 22px !important;
        right: auto !important;
    }

    .envelope-wrapper {
        width: 290px;
        height: 200px;
    }

    .flap {
        border-left: 145px solid transparent;
        border-right: 145px solid transparent;
        border-top: 100px solid #ef8b8b;
    }

    .pocket {
        border-left: 145px solid #f29f9f;
        border-right: 145px solid #f29f9f;
        border-bottom: 100px solid #f09595;
    }

    .letter {
        width: 270px;
        height: 180px;
    }

    .envelope-wrapper.open .letter {
        transform: translateY(-90px);
        height: 320px;
    }
}

/* --- Custom Cursor (Desktop Only) --- */
@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none !important;
    }

    .custom-cursor {
        display: block;
        width: 8px;
        height: 8px;
        background-color: var(--primary-color);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 10000;
        transition: width 0.2s, height 0.2s, background-color 0.2s;
        box-shadow: 0 0 8px var(--primary-color);
    }

    .custom-cursor-ring {
        display: block;
        width: 36px;
        height: 36px;
        border: 2px solid var(--secondary-color);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
    }

    /* Hover States */
    .custom-cursor.hovered {
        width: 12px;
        height: 12px;
        background-color: var(--accent-gold);
        box-shadow: 0 0 12px var(--accent-gold);
    }

    .custom-cursor-ring.hovered {
        width: 52px;
        height: 52px;
        border-color: var(--accent-gold);
        background-color: rgba(244, 208, 104, 0.15);
        box-shadow: 0 0 15px var(--accent-gold-glow);
    }
}

/* Hide cursor elements by default on mobile/touch */
@media (hover: none) or (pointer: coarse) {
    .custom-cursor,
    .custom-cursor-ring {
        display: none !important;
    }
}
