﻿@import url('"'"'https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@300;400;500;600;700&display=swap'"'"');

:root {
    --bg: #fff7f8;
    --bg-accent: #ffe9ec;
    --primary: #e26a8b;
    --primary-dark: #c94f73;
    --text: #3b2e2f;
    --muted: #836a6b;
    --card: rgba(255, 255, 255, 0.6);
    --shadow: 0 15px 40px rgba(226, 106, 139, 0.2);
    --glass: rgba(255, 255, 255, 0.55);
}

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

body {
    font-family: '"'"'Poppins'"'"', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fff9fb, #ffeef3, #ffe1ea);
    background-size: 400% 400%;
    min-height: 100vh;
    line-height: 1.7;
    letter-spacing: 0.01em;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
    opacity: 0;
    animation: pageFade 0.9s ease forwards, gradientDrift 26s ease-in-out infinite;
}

body::before {
    content: ''"'"''; 
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 192, 203, 0.12), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(255, 182, 193, 0.12), transparent 32%),
                radial-gradient(circle at 50% 80%, rgba(226, 106, 139, 0.12), transparent 40%);
    z-index: -1;
    animation: pulseGlow 18s ease-in-out infinite alternate;
}

body::after {
    content: ''"'"''; 
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-opacity='0.08' stroke='%23e26a8b' stroke-width='1.2'%3E%3Cpath d='M31 44c6-9 20-9 26 0 6 9 1 21-13 30-14-9-19-21-13-30z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.25;
    z-index: -2;
    animation: driftVeil 40s linear infinite;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 16px;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    font-family: '"'"'Great Vibes'"'"', cursive;
    font-size: 32px;
    color: var(--primary);
    letter-spacing: 0.05em;
    text-shadow: 0 6px 18px rgba(226, 106, 139, 0.18);
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 500;
    position: relative;
}

.nav-links a.active {
    color: var(--primary-dark);
    background: rgba(226, 106, 139, 0.12);
    font-weight: 700;
}

.nav-links a::after {
    content: ''"'"'';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #f7a3b7);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--primary-dark);
    background: rgba(226, 106, 139, 0.08);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--glass);
    border: 1px solid rgba(226, 106, 139, 0.35);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: radial-gradient(circle at 20% 20%, rgba(226, 106, 139, 0.18), transparent 38%),
                radial-gradient(circle at 80% 30%, rgba(255, 192, 203, 0.24), transparent 40%),
                linear-gradient(135deg, #fff3f7, #ffe6ed);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 720px;
    background: rgba(255, 255, 255, 0.72);
    padding: 40px 32px;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(226, 106, 139, 0.28);
    backdrop-filter: blur(12px);
    animation: floatPulse 8s ease-in-out infinite;
}

.hero h1 {
    font-family: '"'"'Great Vibes'"'"', cursive;
    font-size: clamp(42px, 6vw, 68px);
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.hero p {
    color: var(--muted);
    margin-bottom: 26px;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.scroll-cue {
    margin-top: 10px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.08em;
    animation: pulseDown 2.6s infinite ease-in-out;
}

.floating-aurora {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(226, 106, 139, 0.18), transparent 38%),
                radial-gradient(circle at 70% 60%, rgba(255, 182, 193, 0.2), transparent 42%),
                radial-gradient(circle at 40% 80%, rgba(255, 206, 213, 0.2), transparent 40%);
    filter: blur(30px);
    pointer-events: none;
    animation: sway 10s ease-in-out infinite alternate;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--primary), #f59ab2);
    color: #fff;
    box-shadow: 0 14px 28px rgba(226, 106, 139, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 32px rgba(226, 106, 139, 0.38);
}

.btn-ghost {
    background: rgba(226, 106, 139, 0.08);
    color: var(--primary-dark);
    border: 1px solid rgba(226, 106, 139, 0.3);
}

.btn-ghost:hover {
    transform: translateY(-1px);
    background: rgba(226, 106, 139, 0.12);
}

section {
    padding: 80px 20px;
}

section[id] {
    scroll-margin-top: 90px;
}

.section-heading {
    text-align: center;
    margin-bottom: 32px;
}

.section-heading h2 {
    font-family: '"'"'Great Vibes'"'"';
    font-size: clamp(32px, 5vw, 52px);
    color: var(--primary);
}

.section-heading p {
    color: var(--muted);
}

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

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

.card {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 24px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.card p {
    color: var(--muted);
}

.card::after {
    content: ''"'"''; 
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(226, 106, 139, 0.12);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px rgba(226, 106, 139, 0.25);
}

.card:hover::after {
    opacity: 1;
}

.icon-circle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(226, 106, 139, 0.12);
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 18px;
}

.letter-card {
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 20px 60px rgba(226, 106, 139, 0.25);
    position: relative;
}

.letter-card::before {
    content: ''"'"'';
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px dashed rgba(226, 106, 139, 0.4);
    pointer-events: none;
}

.letter-body {
    position: relative;
    z-index: 1;
    font-size: 17px;
    color: var(--muted);
}

.typing-line {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 14px;
    min-height: 28px;
}

.read-more {
    margin-top: 18px;
}

.expandable {
    max-height: 220px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.35s ease;
}

.expandable::after {
    content: ''"'"'';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.9), transparent);
    pointer-events: none;
}

.expandable.open {
    max-height: 2000px;
}

.expandable.open::after {
    opacity: 0;
}

.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.song-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.song-card::before {
    content: ''"'"''; 
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(226, 106, 139, 0.12), transparent 38%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-card:hover::before {
    opacity: 1;
}

.song-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(226, 106, 139, 0.2);
}

.song-card h3 {
    font-size: 18px;
    color: var(--primary-dark);
}

.song-meta {
    color: var(--muted);
    font-size: 14px;
}

.song-card audio {
    width: 100%;
    margin-top: 6px;
    filter: drop-shadow(0 8px 14px rgba(226, 106, 139, 0.08));
}

.solo-song {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.solo-song audio {
    flex: 1;
    min-width: 220px;
}

.sparkle-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

.sparkle-field span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
    animation: sparklePop 6s linear infinite;
}

.sparkle-field span:nth-child(odd) {
    animation-duration: 8s;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
}

.music-player {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.8);
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
}

.progress {
    flex: 1;
    height: 7px;
    background: rgba(226, 106, 139, 0.15);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.progress span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, var(--primary), #f7a3b7);
    border-radius: inherit;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 18px 40px rgba(226, 106, 139, 0.18);
}

.gallery-grid img:hover {
    transform: translateY(-4px) scale(1.01);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 10, 0.75);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    width: min(900px, 92vw);
    max-height: 78vh;
}

.lightbox img {
    width: 100%;
    max-height: 78vh;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lightbox button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.76);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.lightbox .prev { left: -18px; }
.lightbox .next { right: -18px; }

.lightbox .close {
    top: -16px;
    right: -16px;
    transform: none;
    width: 40px;
    height: 40px;
}

.proposal-wrap {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.proposal-wrap h2 {
    font-family: '"'"'Great Vibes'"'"';
    font-size: clamp(36px, 6vw, 60px);
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.proposal-wrap p {
    color: var(--muted);
    margin-bottom: 24px;
}

.proposal-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.message-box {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 18px;
    min-height: 54px;
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.music-toggle {
    margin-top: 18px;
}

.floating-heart {
    position: absolute;
    bottom: -40px;
    font-size: 18px;
    color: rgba(226, 106, 139, 0.85);
    opacity: 0.9;
    animation: floatUp linear forwards;
    filter: drop-shadow(0 8px 14px rgba(226, 106, 139, 0.4));
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.playable .reveal {
    transition-delay: 0.05s;
}

.footer {
    text-align: center;
    padding: 26px 20px 40px;
    color: var(--muted);
    font-size: 14px;
}

.signature {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.signature a {
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px dotted rgba(226, 106, 139, 0.5);
}

.signature:hover {
    opacity: 1;
}

.watermark {
    position: absolute;
    bottom: 20px;
    right: 24px;
    opacity: 0.2;
    font-size: 12px;
    letter-spacing: 0.08em;
}

@keyframes pageFade {
    from { opacity: 0; filter: blur(4px); }
    to { opacity: 1; filter: blur(0); }
}

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

@keyframes pulseGlow {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

@keyframes driftVeil {
    from { transform: translateY(0); }
    to { transform: translateY(-60px); }
}

@keyframes pulseDown {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(5px); opacity: 1; }
}

@keyframes sway {
    from { transform: translateY(-8px) scale(1.02); }
    to { transform: translateY(12px) scale(1.05); }
}

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

@keyframes floatUp {
    from { transform: translateY(0) scale(1); opacity: 0.9; }
    to { transform: translateY(-160px) scale(1.2); opacity: 0; }
}

@keyframes sparklePop {
    0% { transform: translateY(0) scale(0.7); opacity: 0; }
    25% { opacity: 0.9; }
    50% { transform: translateY(-40px) scale(1); opacity: 0.8; }
    100% { transform: translateY(-80px) scale(0.5); opacity: 0; }
}

.flow-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 40px auto 0;
    max-width: 760px;
}

.flow-nav a {
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    background: linear-gradient(120deg, rgba(226, 106, 139, 0.12), rgba(245, 154, 178, 0.14));
    border: 1px solid rgba(226, 106, 139, 0.2);
    color: var(--primary-dark);
    font-weight: 600;
    flex: 1;
    text-align: center;
    transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.flow-nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(226, 106, 139, 0.2);
}

.flow-nav .spacer {
    flex: 1;
    visibility: hidden;
}

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 74px;
        right: 20px;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hamburger { display: flex; }
}

@media (max-width: 640px) {
    .hero-content { padding: 32px 24px; }
    .nav-container { padding: 14px 16px; }
    .hero h1 { font-size: clamp(38px, 10vw, 56px); }
    .proposal-actions { flex-direction: column; }
    .lightbox .prev { left: 4px; }
    .lightbox .next { right: 4px; }
}

.creator-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 240, 244, 0.95);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    animation: pageFade 0.6s ease forwards;
}

.creator-card {
    max-width: 460px;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    padding: 36px 28px;
    box-shadow: 0 30px 80px rgba(226, 106, 139, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.creator-card h2 {
    font-family: '"'"'Great Vibes'"'"', cursive;
    font-size: 54px;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.creator-card p {
    color: var(--muted);
    margin-bottom: 18px;
}

.creator-card a {
    color: var(--primary-dark);
    font-weight: 600;
}

.creator-overlay .btn {
    margin-top: 12px;
}

.creator-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
