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

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --primary: #e63946;
    --primary-glow: rgba(230, 57, 70, 0.3);
    --accent: #f4a261;
    --accent-soft: rgba(244, 162, 97, 0.2);
    --rose: #ff6b81;
    --rose-soft: rgba(255, 107, 129, 0.15);
    --gold: #ffd700;
    --text: #f1f1f1;
    --text-muted: rgba(241, 241, 241, 0.6);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-display: 'Dancing Script', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== HEARTS BACKGROUND ===== */
.hearts-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -30px;
    font-size: 16px;
    opacity: 0;
    animation: floatUp linear forwards;
    pointer-events: none;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 0.6rem 3rem;
    background: rgba(10, 10, 15, 0.95);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s;
}

.nav-logo:hover {
    transform: scale(1.1);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--rose));
    transition: width 0.3s;
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.08) 0%, transparent 70%),
                var(--bg-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(230, 57, 70, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 107, 129, 0.05) 0%, transparent 50%);
    animation: pulseOverlay 6s ease-in-out infinite alternate;
}

@keyframes pulseOverlay {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-heart {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    animation: heartBeat 1.2s ease-in-out infinite;
}

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

.hero-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.heart-icon {
    font-size: 0.8rem;
    animation: heartBeat 1.2s ease-in-out infinite;
}

.scroll-down {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
    transition: color 0.3s;
}

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

.scroll-arrow {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

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

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

/* ===== SECTIONS ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text);
    position: relative;
}

.section-title::after {
    content: '♥';
    display: block;
    text-align: center;
    margin-top: 0.8rem;
    color: var(--primary);
    font-size: 1rem;
    animation: heartBeat 1.2s ease-in-out infinite;
}

/* ===== STORY SECTION ===== */
.story {
    background: linear-gradient(180deg, transparent, rgba(230, 57, 70, 0.03), transparent);
}

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

.story-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.story-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.3);
}

.story-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.story-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--rose);
}

.story-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===== TIMELINE ===== */
.timeline-section {
    background: linear-gradient(180deg, transparent, rgba(244, 162, 97, 0.03), transparent);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--rose), var(--accent));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2.5rem;
    opacity: 0;
    transform: translateX(-30px);
}

.timeline-item.right {
    margin-left: 50%;
    transform: translateX(30px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item::before {
    content: '❤️';
    position: absolute;
    top: 1.5rem;
    font-size: 0.8rem;
    z-index: 2;
}

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

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

.timeline-content {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.8rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.1);
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--rose));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

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

/* ===== COUNTER SECTION ===== */
.counter-section {
    background: radial-gradient(circle at center, rgba(230, 57, 70, 0.04) 0%, transparent 70%);
    text-align: center;
}

.counter-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    margin-top: -2.5rem;
}

.counter-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.counter-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 120px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.counter-box:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.1);
}

.counter-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rose);
    font-family: var(--font-body);
}

.counter-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* ===== REASONS SECTION ===== */
.reasons-section {
    background: linear-gradient(180deg, transparent, rgba(244, 162, 97, 0.03), transparent);
}

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

.reason-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.reason-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(244, 162, 97, 0.15);
    border-color: rgba(244, 162, 97, 0.3);
}

.reason-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.3;
    font-weight: 700;
}

.reason-card p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 1rem;
}

/* ===== POEM SECTION ===== */
.poem-section {
    background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.05) 0%, transparent 60%);
}

.poem-card {
    max-width: 650px;
    margin: 0 auto;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    text-align: center;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 80px rgba(230, 57, 70, 0.06);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.poem-card.visible {
    opacity: 1;
    transform: scale(1);
}

.poem-decoration {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    font-family: var(--font-serif);
    line-height: 1;
}

.left-dec {
    top: 1rem;
    left: 1.5rem;
}

.right-dec {
    bottom: 2.5rem;
    right: 1.5rem;
}

.poem-lines {
    position: relative;
    z-index: 1;
}

.poem-line {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text);
    line-height: 2.2;
    opacity: 0;
    transform: translateY(10px);
}

.poem-line.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.poem-author {
    display: block;
    margin-top: 2rem;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* ===== LETTER SECTION ===== */
.letter-section {
    background: linear-gradient(180deg, transparent, rgba(255, 107, 129, 0.03), transparent);
}

.letter-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.letter-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.letter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.03) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.letter-greeting {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--rose);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.letter-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.letter-closing {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.letter-signature {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

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

.footer p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-muted);
}

.footer-small {
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    margin-top: 0.5rem;
    opacity: 0.4;
}

/* ===== MUSIC PLAYER ===== */
.music-player {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.mini-player {
    width: 320px;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    transition: height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.mini-player.open {
    height: 82px;
    opacity: 1;
}

.mini-player iframe {
    border-radius: 12px;
    display: block;
}

.music-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px var(--primary-glow);
}

.music-toggle.playing {
    animation: musicPulse 1s ease-in-out infinite;
    border-color: var(--primary);
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 10px var(--primary-glow); }
    50% { box-shadow: 0 0 25px var(--primary-glow); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero-names {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section {
        padding: 4rem 1.2rem;
    }

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

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

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

    .timeline-item::before {
        left: 12px !important;
        right: auto !important;
    }

    .poem-card {
        padding: 2.5rem 1.5rem;
    }

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

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