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

:root {
    --bg: #07050d;
    --bg2: #0e0b16;
    --bg3: #150f20;
    --accent: #c7607d;
    --accent-light: #efa0b8;
    --accent-glow: rgba(199,96,125,0.3);
    --pink-soft: #dfa0b4;
    --pink-dim: rgba(199,96,125,0.12);
    --white: #edeaf0;
    --white-dim: #a8a0b4;
    --text: #d0c8d8;
    --font: 'Cormorant Garamond', Georgia, serif;
    --ease: cubic-bezier(0.4,0,0.2,1);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* ===== OLD PAGE LINK ===== */
#old-page-link {
    position: fixed;
    top: 1.2rem;
    left: 1.4rem;
    z-index: 10000;
    color: var(--white-dim);
    font-family: var(--font);
    font-size: 0.75rem;
    font-style: italic;
    letter-spacing: 0.08em;
    text-decoration: none;
    opacity: 0.4;
    transition: all 0.4s var(--ease);
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 20px;
}

#old-page-link:hover {
    opacity: 1;
    color: var(--accent-light);
    border-color: rgba(199,96,125,0.2);
}

/* ===== FLOATING HEARTS ===== */
#floating-hearts {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    color: var(--accent);
    opacity: 0;
    font-size: 14px;
    animation: floatHeart 7s ease-in forwards;
    pointer-events: none;
}

@keyframes floatHeart {
    0% { opacity: 0; transform: translateY(100vh) scale(0.4) rotate(0deg); }
    12% { opacity: 0.35; }
    80% { opacity: 0.15; }
    100% { opacity: 0; transform: translateY(-8vh) scale(0.8) rotate(25deg); }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    opacity: 0;
    animation: fadeIn 1.5s ease 0.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 25% 15%, rgba(199,96,125,0.035), transparent 45%),
        radial-gradient(ellipse at 75% 85%, rgba(80,40,100,0.025), transparent 45%);
    pointer-events: none;
    z-index: -1;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    text-align: center;
}

.hero-pre {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--accent-light);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0;
    animation: riseIn 1s var(--ease) 0.6s forwards;
}

.hero-name {
    font-size: clamp(4rem, 14vw, 10rem);
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: riseIn 1.2s var(--ease) 0.9s forwards;
    text-shadow: 0 0 80px var(--accent-glow);
}

.hero-text {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--white-dim);
    font-weight: 300;
    font-style: italic;
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0;
    animation: riseIn 1.2s var(--ease) 1.2s forwards;
}

.hero-btn {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent-light);
    font-family: var(--font);
    font-size: 1.1rem;
    font-style: italic;
    padding: 14px 40px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    opacity: 0;
    animation: riseIn 1s var(--ease) 1.6s forwards;
}

.hero-btn:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.03);
}

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

/* ===== WHY YOU ===== */
.why-you { text-align: center; }

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--accent-light);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 3.5rem;
}

.cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
}

.card {
    background: linear-gradient(145deg, var(--bg2), var(--bg3));
    border: 1px solid rgba(199,96,125,0.12);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    max-width: 260px;
    flex: 1 1 220px;
    text-align: left;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 30%, var(--accent-glow), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(199,96,125,0.08);
}

.card:hover::before { opacity: 0.25; }

.card-num {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.card-title {
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 400;
    margin-bottom: 0.6rem;
}

.card-text {
    font-size: 0.88rem;
    color: var(--white-dim);
    font-style: italic;
    line-height: 1.65;
}

/* ===== QUOTES SECTION ===== */
.quotes-section {
    text-align: center;
    min-height: 60vh;
}

.quotes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    max-width: 900px;
    margin-top: 2.5rem;
}

.quote-pill {
    background: var(--bg2);
    border: 1px solid rgba(199,96,125,0.1);
    border-radius: 30px;
    padding: 0.6rem 1.4rem;
    color: var(--pink-soft);
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease);
}

.quote-pill:hover {
    border-color: var(--accent);
    background: rgba(199,96,125,0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(199,96,125,0.08);
}

/* ===== QUOTE ===== */
.quote-section {
    min-height: 70vh;
    text-align: center;
}

.quote-deco {
    width: 1px;
    height: 70px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    margin: 1rem auto;
}

.quote {
    font-size: clamp(1.4rem, 3.8vw, 2.6rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.6;
    max-width: 650px;
    padding: 2rem;
}

.accent {
    color: var(--accent-light);
    font-style: italic;
}

/* ===== STAR MAP ===== */
.map-section {
    min-height: 100vh;
    padding: 4rem 1rem 2rem;
}

.map-title { margin-bottom: 0.6rem; }

.map-hint {
    color: var(--white-dim);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    opacity: 0.6;
}

.star-map {
    width: 100%;
    max-width: 850px;
    aspect-ratio: 16 / 10;
    margin: 0 auto;
    position: relative;
}

/* Background dust layer */
.star-map-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Constellation group */
.constellation {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
}

.constellation-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}

.constellation:hover .constellation-glow {
    opacity: 0.6;
}

.constellation-stars {
    position: relative;
    width: 0; height: 0;
}

.star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px var(--accent-glow), 0 0 18px rgba(199,96,125,0.1);
    animation: twinkle 3s ease-in-out infinite;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.constellation:hover .star {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 0 12px var(--accent-glow), 0 0 28px rgba(199,96,125,0.15);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

/* Constellation lines (SVG) */
.constellation-lines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: visible;
}

.constellation-lines line {
    stroke: var(--accent);
    stroke-width: 0.7;
    opacity: 0.2;
    transition: opacity 0.4s var(--ease);
}

.constellation:hover .constellation-lines line {
    opacity: 0.45;
}

/* Constellation label — CLICKABLE */
.constellation-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--pink-soft);
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.6;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    padding: 4px 10px;
}

.constellation:hover .constellation-label {
    opacity: 1;
    text-shadow: 0 0 14px var(--accent-glow);
}

/* ===== EXPANDED CONSTELLATION ===== */
.expanded-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(7,5,13,0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    padding: 2rem;
}

.expanded-overlay.visible {
    opacity: 1;
}

.expanded-view {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 1 / 1;
    position: relative;
}

.expanded-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199,96,125,0.06), transparent 60%);
    pointer-events: none;
}

.expanded-title {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 5;
    white-space: nowrap;
}

/* Stars inside expanded view */
.expanded-star {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 3;
}

.expanded-star-dot {
    width: 9px;
    height: 9px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow), 0 0 28px rgba(199,96,125,0.12);
    transition: all 0.3s var(--ease);
    animation: twinkle 3s ease-in-out infinite;
}

.expanded-star:hover .expanded-star-dot {
    transform: scale(1.8);
    box-shadow: 0 0 20px var(--accent-glow), 0 0 44px rgba(199,96,125,0.2);
}

.expanded-star-label {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    color: var(--pink-soft);
    font-size: clamp(0.7rem, 1.1vw, 0.9rem);
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s var(--ease);
    text-align: center;
}

.expanded-star-tag {
    display: block;
    color: var(--white-dim);
    font-size: clamp(0.55rem, 0.9vw, 0.72rem);
    font-style: italic;
    margin-top: 3px;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.expanded-star:hover .expanded-star-label { opacity: 1; }
.expanded-star:hover .expanded-star-tag { opacity: 0.8; }

/* Lines inside expanded view */
.expanded-lines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.expanded-lines line {
    stroke: var(--accent);
    stroke-width: 0.5;
    opacity: 0.15;
}

/* Back button */
.expanded-back {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent-light);
    font-family: var(--font);
    font-size: 0.95rem;
    font-style: italic;
    padding: 10px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    z-index: 10;
    white-space: nowrap;
}

.expanded-back:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== PLACE MODAL ===== */
.place-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(7,5,13,0.94);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.place-modal.visible {
    opacity: 1;
}

.place-modal-content {
    background: linear-gradient(160deg, var(--bg2), var(--bg3));
    border: 1px solid rgba(199,96,125,0.18);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(24px) scale(0.95);
    transition: transform 0.5s var(--ease);
    box-shadow: 0 0 60px rgba(199,96,125,0.06);
}

.place-modal.visible .place-modal-content {
    transform: translateY(0) scale(1);
}

.place-modal-close {
    position: absolute;
    top: 1rem; right: 1.2rem;
    background: none;
    border: none;
    color: var(--white-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s var(--ease);
    font-family: var(--font);
    line-height: 1;
}

.place-modal-close:hover {
    color: var(--accent-light);
}

.place-modal-name {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--white);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.place-modal-tag {
    font-size: 1rem;
    color: var(--accent-light);
    font-style: italic;
    margin-bottom: 0.3rem;
}

.place-modal-date {
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.place-modal-desc {
    font-size: 1.05rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.85;
}

/* ===== FUTURE ===== */
.future-section {
    min-height: 55vh;
    text-align: center;
}

.future-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.future-list li {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--pink-soft);
    font-style: italic;
    padding: 0.8rem 0;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.6s ease;
}

.future-list li.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ===== COUNTER — DUAL ===== */
.counter-section {
    min-height: 50vh;
    text-align: center;
}

.counter-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.counter-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-number {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 0 80px var(--accent-glow);
}

.counter-label {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--white-dim);
    font-weight: 300;
    margin-top: 0.5rem;
}

.counter-sub {
    font-size: 0.9rem;
    color: var(--accent-light);
    font-style: italic;
    margin-top: 0.6rem;
}

.counter-divider {
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity: 0.3;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 4rem 2rem 3rem;
    border-top: 1px solid rgba(199,96,125,0.08);
}

.footer p:first-child {
    font-size: 1.1rem;
    color: var(--white-dim);
    font-style: italic;
}

.footer-hearts {
    font-size: 1.3rem;
    color: var(--accent);
    margin-top: 1rem;
    letter-spacing: 0.3em;
}

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section {
        padding: 4rem 1.2rem;
        min-height: 80vh;
    }
    .hero-name { font-size: clamp(3rem, 12vw, 6rem); }
    .cards {
        gap: 1rem;
    }
    .card {
        max-width: 100%;
        padding: 1.5rem 1.2rem;
    }
    .star-map { aspect-ratio: 4 / 3; }
    .constellation-label { font-size: clamp(0.6rem, 1.5vw, 0.8rem); }
    .expanded-star-label { font-size: clamp(0.55rem, 1.2vw, 0.72rem); }
    .expanded-star-tag { font-size: clamp(0.45rem, 0.8vw, 0.58rem); }
    .quote {
        font-size: clamp(1.1rem, 3.5vw, 1.7rem);
        padding: 1.5rem;
    }
    .place-modal-content {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }
    .map-section { padding: 3rem 0.5rem 2rem; }
    .counter-pair { gap: 2rem; }
    .counter-number { font-size: clamp(3rem, 8vw, 5rem); }
    .counter-divider { height: 80px; }
    .quotes-grid { gap: 0.6rem; }
    .quote-pill { font-size: 0.78rem; padding: 0.5rem 1rem; }
}

@media (max-width: 480px) {
    .section { padding: 3rem 1rem; }
    .hero-name { font-size: clamp(2.5rem, 14vw, 4rem); }
    .counter-number { font-size: clamp(2.5rem, 10vw, 4rem); }
    .counter-label { font-size: clamp(1rem, 2.5vw, 1.3rem); }
    .constellation-label { font-size: 0.55rem; letter-spacing: 0.1em; }
    .expanded-star-label { font-size: 0.5rem; }
    .expanded-star-tag { font-size: 0.4rem; }
    .star { width: 4px; height: 4px; }
    .expanded-star-dot { width: 7px; height: 7px; }
    .counter-pair { flex-direction: column; gap: 1.5rem; }
    .counter-divider { width: 80px; height: 1px; background: linear-gradient(to right, transparent, var(--accent), transparent); }
}