/* ----------------------------------------------------
   ROOT VARIABLES
---------------------------------------------------- */
:root {
    --bg-gradient: radial-gradient(circle at top, #24141C 0%, #1A0F14 40%, #140A0E 75%, #0D0608 100%);

    --card-bg: rgba(36, 20, 28, 0.85);
    --card-bg-strong: rgba(26, 15, 20, 0.92);

    --accent: #B86A78;
    --accent-soft: #A77C8A;
    --accent-muted: #8A4A57;

    --highlight: #D9B48F;
    --highlight-soft: #E3C7C2;

    --text-main: #FFFFFF;
    --text-soft: #F2E9E7;
    --text-muted: #C9B8B5;

    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 22px rgba(184, 106, 120, 0.35);

    --radius-lg: 18px;
    --radius-md: 12px;

    --transition-fast: 0.25s ease;
    --transition-med: 0.45s ease;

    --max-width: 900px;
}

/* ----------------------------------------------------
   GLOBAL
---------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-gradient);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    scroll-behavior: smooth;
}

section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.section-heading {
    font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
    text-align: center;
    margin-right: 45px;
    margin-bottom: 32px;
    color: var(--text-main);
}

/* ----------------------------------------------------
   HERO
---------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 90px;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    padding: 28px 26px;
    background: linear-gradient(
        135deg,
        rgba(36, 20, 28, 0.92),
        rgba(26, 15, 20, 0.96)
    );
    border-radius: 24px;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(1.9rem, 2.6vw + 1rem, 2.8rem);
    line-height: 1.3;
    margin: 0;
    color: var(--text-main);
}

.scroll-indicator {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-soft);
    opacity: 0.8;
}

.scroll-arrow {
    width: 12px;
    height: 12px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
    margin: 10px auto 0;
    animation: arrowBounce 1.4s infinite ease-in-out;
    opacity: 0.8;
}

@keyframes arrowBounce {
    0% { transform: translateY(0) rotate(-45deg); opacity: 0.6; }
    50% { transform: translateY(6px) rotate(-45deg); opacity: 1; }
    100% { transform: translateY(0) rotate(-45deg); opacity: 0.6; }
}

/* ----------------------------------------------------
   GROWTH CARDS
---------------------------------------------------- */
.growth-cards {
    max-width: var(--max-width);
    width: 100%;
    display: grid;
    gap: 18px;
}

.growth-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
    color: var(--text-soft);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--transition-med), transform var(--transition-med);
}

.growth-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------
   MEMORY REFLECTION (REPLACES PHOTO GRID)
---------------------------------------------------- */
.memory-reflection {
    max-width: 640px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--transition-med), transform var(--transition-med);
}

.memory-reflection.in-view {
    opacity: 1;
    transform: translateY(0);
}

.memory-reflection p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

/* ----------------------------------------------------
   WISHES
---------------------------------------------------- */
.wishes-list {
    max-width: 640px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 24px 26px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--transition-med), transform var(--transition-med);
}

.wishes-list.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------
   REVEAL BUTTON + PROGRESS RING
---------------------------------------------------- */
.reveal-container {
    background: var(--card-bg-strong);
    border-radius: 999px;
    padding: 18px 26px;
    box-shadow: var(--shadow-soft);
}

.hold-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    flex-wrap: nowrap;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.progress-ring {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-muted);
    position: relative;
    overflow: visible;
    transition: box-shadow 0.3s ease;
    flex-shrink: 0;
    touch-action: manipulation;
}

.progress-ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 3px solid var(--highlight);
    border-top-color: transparent;
    border-left-color: transparent;
    opacity: 0;
    transform: rotate(0deg);
}

.progress-ring.holding {
    box-shadow:
        0 0 14px rgba(255, 180, 200, 0.55),
        0 0 28px rgba(255, 150, 170, 0.35),
        0 0 45px rgba(255, 200, 220, 0.25);
    animation: softGlowPulse 1.6s ease-in-out infinite;
}

@keyframes softGlowPulse {
    0% { box-shadow: 0 0 12px rgba(255,160,180,0.45); }
    50% { box-shadow: 0 0 20px rgba(255,190,210,0.75); }
    100% { box-shadow: 0 0 12px rgba(255,160,180,0.45); }
}

.progress-ring.holding::after {
    opacity: 1;
    animation: holdProgress 2.8s linear forwards;
}

@keyframes holdProgress {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, #fff, rgba(255,255,255,0));
    border-radius: 50%;
    animation: sparklePop 0.8s ease-out forwards;
}

@keyframes sparklePop {
    0% { transform: scale(0.2); opacity: 1; }
    80% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(0); opacity: 0; }
}

.balloon {
    position: absolute;
    bottom: -5px;
    width: 9px;
    height: 12px;
    background: var(--accent);
    border-radius: 50% 50% 45% 45%;
    opacity: 0.9;
    animation: balloonRise 2.2s ease-out forwards;
}

@keyframes balloonRise {
    0% { transform: translateY(0) scale(1); opacity: 0.9; }
    100% { transform: translateY(-35px) scale(1.15); opacity: 0; }
}

/* ----------------------------------------------------
   LETTER SECTION
---------------------------------------------------- */
.letter-section {
    display: none;
    justify-content: center;
    padding: 40px 20px;
}

.letter-section.letter-open {
    display: flex;
}

.letter-card {
    max-width: 720px;
    background: var(--card-bg-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 28px 26px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-med), transform var(--transition-med);
}

.letter-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.signature {
    margin-top: 18px;
    font-weight: 600;
    color: var(--highlight-soft);
}
