/* ===========================
   Valentine's Day Theme
   Apurva & Ranjit
   =========================== */

/* ---------- CSS Variables ---------- */
:root {
    --pink-100: #fff0f3;
    --pink-200: #ffd6e0;
    --pink-300: #ffb3c6;
    --pink-400: #ff8fab;
    --pink-500: #ff6b8a;
    --pink-600: #e84578;
    --pink-700: #c9184a;
    --pink-800: #a4133c;
    --pink-900: #800f2f;

    --rose-gold: #b76e79;
    --champagne: #f7e7ce;
    --blush: #de6fa1;
    --deep-rose: #8b1a4a;

    --bg-gradient: linear-gradient(135deg, #1a0011 0%, #2d0a1e 25%, #3d0f2a 50%, #1a0011 100%);
    --card-bg: rgba(255,255,255,0.06);
    --card-border: rgba(255,143,171,0.2);
    --text-primary: #fff0f3;
    --text-secondary: #ffb3c6;

    --font-display: 'Great Vibes', cursive;
    --font-body: 'Outfit', sans-serif;
}

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

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

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

/* ---------- Navigation ---------- */
.main-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(45, 10, 30, 0.7);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.nav-link {
    text-decoration: none;
    color: var(--pink-200);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,107,138,0.15);
    color: var(--pink-100);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--pink-600), var(--pink-700));
    color: var(--pink-100);
    box-shadow: 0 2px 12px rgba(232,69,120,0.3);
}

.nav-logout {
    opacity: 0.5;
    font-size: 0.78rem;
}

.nav-logout:hover {
    opacity: 1;
    background: rgba(255,80,80,0.15);
    color: #ff8a8a;
}

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

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

.floating-heart svg {
    fill: var(--pink-500);
    filter: drop-shadow(0 0 6px rgba(255,107,138,0.4));
}

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

/* ---------- Sparkle Particles ---------- */
.sparkles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--pink-300);
    border-radius: 50%;
    opacity: 0;
    animation: twinkle ease-in-out infinite;
    box-shadow: 0 0 6px 2px rgba(255,179,198,0.5);
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* =============================
   HERO SECTION
   ============================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    overflow: hidden;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255,107,138,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(185,26,74,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(222,111,161,0.08) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

/* Pre-text */
.hero-pretext {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--pink-300);
    margin-bottom: 12px;
}

/* Title */
.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--pink-200), var(--pink-400), var(--rose-gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

.ampersand {
    display: inline-block;
    margin: 0 12px;
    font-size: 0.7em;
    opacity: 0.8;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Heart divider */
.heart-divider {
    margin: 8px auto 32px;
    width: 45px;
    height: 42px;
}

.heart-icon {
    width: 45px;
    height: 42px;
    fill: var(--pink-500);
    filter: drop-shadow(0 0 12px rgba(255,107,138,0.6));
}

.animate-pulse-heart {
    animation: pulseHeart 1.5s ease-in-out infinite;
}

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

/* =============================
   PHOTO FRAME
   ============================= */
.photo-frame {
    position: relative;
    display: inline-block;
    margin: 0 auto 36px;
}

.photo-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,138,0.25) 0%, transparent 70%);
    z-index: 0;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.photo-border {
    position: relative;
    z-index: 1;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--pink-400), var(--rose-gold), var(--pink-600), var(--pink-300));
    background-size: 300% 300%;
    animation: borderRotate 6s ease-in-out infinite;
    box-shadow:
        0 0 30px rgba(255,107,138,0.3),
        0 0 60px rgba(255,107,138,0.15),
        inset 0 0 20px rgba(255,107,138,0.1);
}

@keyframes borderRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.couple-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Love quote */
.love-quote {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--pink-200);
    font-style: italic;
    max-width: 500px;
    margin: 0 auto 8px;
}

.quote-author {
    font-size: 0.85rem;
    color: var(--pink-400);
    margin-bottom: 32px;
    font-weight: 400;
}

/* Date badge */
.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 28px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--pink-200);
    text-transform: uppercase;
}

.mini-heart {
    width: 16px;
    height: 14px;
    fill: var(--pink-500);
    animation: pulseHeart 2s ease-in-out infinite;
}

/* =============================
   HERO ANIMATIONS
   ============================= */
.animate-fade-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeDown 1s ease-out 0.3s forwards;
}

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

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 0.5s forwards;
}

.animate-fade-up-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out 1.2s forwards;
}

.animate-fade-up-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out 1.5s forwards;
}

.animate-fade-up-delay-3 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out 1.8s forwards;
}

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

.animate-scale-in {
    opacity: 0;
    transform: scale(0.7);
    animation: scaleIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

@keyframes scaleIn {
    to { opacity: 1; transform: scale(1); }
}

/* =============================
   LOVE LETTER SECTION
   ============================= */
.love-letter {
    position: relative;
    padding: 100px 24px;
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.letter-bg-hearts {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(255,107,138,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(222,111,161,0.06) 0%, transparent 50%);
}

.letter-container {
    position: relative;
    max-width: 560px;
    width: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 48px 40px;
    backdrop-filter: blur(16px);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.3),
        0 0 40px rgba(255,107,138,0.08);
    text-align: center;
}

.letter-seal {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--pink-600), var(--pink-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(232,69,120,0.4);
}

.seal-heart {
    width: 28px;
    height: 26px;
    fill: var(--pink-100);
}

.letter-content {
    font-family: var(--font-body);
}

.letter-greeting {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--pink-300);
    margin-bottom: 20px;
}

.letter-body {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--pink-200);
    margin-bottom: 24px;
}

.letter-closing {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--pink-400);
}

/* =============================
   MILESTONES / TIMELINE
   ============================= */
.milestones {
    position: relative;
    padding: 80px 24px 100px;
    z-index: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--pink-200), var(--pink-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--pink-600), var(--pink-400), var(--pink-600));
    opacity: 0.4;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
}

.timeline-heart {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-600), var(--pink-700));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(232,69,120,0.3);
    z-index: 1;
}

.timeline-heart svg {
    width: 18px;
    height: 16px;
    fill: var(--pink-100);
}

.timeline-card {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px 28px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255,107,138,0.15);
}

/* Heart-hover burst on timeline cards */
.heart-hover {
    position: relative;
    overflow: visible;
}

.heart-hover .hover-heart {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    fill: var(--pink-500);
    filter: drop-shadow(0 0 4px rgba(255,107,138,0.5));
    animation: hoverHeartBurst 1s ease-out forwards;
}

@keyframes hoverHeartBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(var(--hx), var(--hy)) scale(0) rotate(var(--hr));
    }
}

.timeline-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--pink-300);
    margin-bottom: 8px;
}

.timeline-card p {
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--pink-200);
    opacity: 0.85;
}

/* =============================
   SCROLL ANIMATIONS
   ============================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================
   FOOTER
   ============================= */
.footer {
    position: relative;
    text-align: center;
    padding: 60px 24px 40px;
    z-index: 1;
    border-top: 1px solid rgba(255,143,171,0.1);
}

.footer-hearts {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-heart {
    width: 20px;
    height: 18px;
    fill: var(--pink-500);
    opacity: 0.6;
    animation: pulseHeart 2s ease-in-out infinite;
}

.footer-heart:nth-child(2) { animation-delay: 0.3s; }
.footer-heart:nth-child(3) { animation-delay: 0.6s; }


.footer-year {
    font-size: 0.85rem;
    color: var(--pink-400);
    opacity: 0.6;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 600px) {
    .photo-border {
        width: 220px;
        height: 220px;
    }

    .letter-container {
        padding: 40px 24px;
    }

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

    .timeline-heart {
        width: 36px;
        height: 36px;
    }

    .timeline-card {
        padding: 20px;
    }

    .date-badge {
        font-size: 0.8rem;
        padding: 8px 20px;
        gap: 8px;
    }
}
