@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-cream: #FFF8F3;
    --bg-blush: #FFF0F5;
    --bg-petal: #FFE8EE;
    --sakura-light: #FFD6E0;
    --sakura-pink: #FFB7C5;
    --sakura-medium: #F3A6B8;
    --sakura-deep: #E26D85;
    --sakura-wine: #B83350;
    --gold: #D4AF37;
    --gold-warm: #F59E0B;
    --text-dark: #3D1A2E;
    --text-body: #5C3D4E;
    --text-muted: #8B6B7B;
    --white-glass: rgba(255, 255, 255, 0.7);
    --border-sakura: rgba(255, 183, 197, 0.3);
    --branch: #70243C;
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-body);
    background: var(--bg-cream);
    overscroll-behavior: none;
}

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    font-weight: 600;
}

/* Nav */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255,248,243,0.8);
    transition: background 0.3s ease;
}
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 700;
    color: var(--sakura-wine);
}
.nav-dots {
    display: flex;
    gap: 1rem;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sakura-light);
    transition: background 0.3s ease, transform 0.3s ease;
}
.dot.active {
    background: var(--sakura-wine);
    transform: scale(1.3);
}

/* Container & Sections */
.snap-container {
    height: 100vh;
}

.screen {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

/* Screen Backgrounds */
#hero { background: radial-gradient(circle at center, var(--bg-cream) 0%, var(--bg-blush) 100%); }
#tribute { background: var(--bg-blush); }
#event {
    background: var(--bg-cream);
    background-image: radial-gradient(var(--sakura-pink) 1px, transparent 1px);
    background-size: 20px 20px;
}
#group-a { background: var(--bg-petal); }
#group-b { background: var(--bg-blush); }
#group-c { background: var(--bg-cream); }
#prizes { background: linear-gradient(135deg, var(--bg-cream) 0%, #FFF4DF 100%); }
#register { background: var(--sakura-deep); color: white; }
#register h1, #register h2, #register h3, #register p, #register .site-footer { color: white; }

/* Base Anim Targets */
.anim-target {
    opacity: 0;
    will-change: transform, opacity;
}

/* Petals Setup */
.sakura-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.petal-wrapper {
    position: absolute;
    top: 0;
    left: var(--left, 50%);
    animation: sakura-fall var(--fall-duration, 10s) linear var(--fall-delay, 0s) infinite;
    will-change: transform;
}

.petal {
    width: var(--petal-size, 15px);
    height: var(--petal-size, 15px);
    animation: sakura-flutter var(--flip-speed, 3s) ease-in-out infinite alternate;
    will-change: transform;
}

.petal-type-a { border-radius: 100% 0% 100% 0% / 100% 0% 100% 0%; background: linear-gradient(135deg, #fff 0%, #ffb7c5 45%, #f48fb1 100%); }
.petal-type-b { border-radius: 50% 50% 50% 0% / 60% 60% 40% 0%; background: linear-gradient(120deg, #fff2f5 0%, #ffa5b9 60%, #e06c88 100%); }
.petal-type-c { border-radius: 0% 80% 0% 80% / 0% 80% 0% 80%; background: linear-gradient(145deg, #fff 10%, #ffc0cb 50%, #f06292 100%); }

@keyframes sakura-fall {
  0% { transform: translate3d(0, -10vh, 0); }
  100% { transform: translate3d(var(--sway-x, 50px), 115vh, 0); }
}
@keyframes sakura-flutter {
  0% { transform: perspective(600px) rotateX(0) rotateY(0) rotateZ(0) scale(0.9); }
  50% { transform: perspective(600px) rotateX(180deg) rotateY(45deg) rotateZ(90deg) scale(1.05); }
  100% { transform: perspective(600px) rotateX(360deg) rotateY(180deg) rotateZ(180deg) scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
    .sakura-overlay, .scroll-chevron-icon, .pulse-dot { display: none !important; }
}

/* Decorations */
.deco-branch, .deco-flower, .bg-flower { position: absolute; pointer-events: none; z-index: 1; }
.hero-branch { top: -20px; right: -20px; width: 300px; }
.bottom-left { bottom: -20px; left: -20px; width: 300px; transform: scaleX(-1); }
.right-center { top: 50%; right: -50px; transform: translateY(-50%); width: 250px; }
.absolute-deco { opacity: 0.8; }
.absolute-deco.top-left { top: 15%; left: 10%; }
.absolute-deco.top-right { top: 20%; right: 15%; }
.bg-flower { top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; }

/* Screen 1: Hero */
.hero-content { text-align: center; z-index: 2; position: relative; }
.pill-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--white-glass);
    border: 1px solid var(--border-sakura);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sakura-wine);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(255, 183, 197, 0.2);
}
.hero-title {
    font-size: clamp(5rem, 15vw, 12rem);
    font-style: italic;
    background: linear-gradient(135deg, var(--sakura-wine) 0%, var(--sakura-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.hero-year {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--sakura-medium);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-body);
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--sakura-wine);
    z-index: 2;
}
.scroll-chevron {
    display: block;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Screen 2: Tribute */
.tribute-content { text-align: center; z-index: 2; position: relative; }
.tribute-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--sakura-wine);
    margin-bottom: 1rem;
}
.tribute-name {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.tribute-desc { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 300; }

/* Screen 3: Event */
.glass-card {
    background: var(--white-glass);
    border: 1px solid var(--border-sakura);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    z-index: 2;
    max-width: 900px;
    width: 90%;
    position: relative;
}
.section-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 3rem; color: var(--sakura-wine); }
.info-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; margin-bottom: 3rem; }
.info-item { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.info-item .icon { font-size: 2.5rem; }
.info-item p { font-size: 1.1rem; font-weight: 500; }
.event-desc { font-style: italic; color: var(--text-muted); font-size: 1.2rem; }

/* Screens 4-6: Groups */
.group-content { text-align: center; z-index: 2; position: relative; }
.group-label {
    display: inline-block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--sakura-wine);
    margin-bottom: 1rem;
    font-weight: 600;
}
.group-name { font-size: clamp(3.5rem, 8vw, 6rem); margin-bottom: 1rem; line-height: 1.1; }
.group-age { font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--sakura-deep); font-weight: 500; margin-bottom: 2rem; }
.accent-line { width: 60px; height: 2px; background: var(--gold); margin: 0 auto 2rem; }
.group-desc { font-size: clamp(1rem, 2vw, 1.3rem); max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* Screen 7: Prizes */
.prizes-card {
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    max-width: 800px;
    width: 90%;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2;
    position: relative;
}
.prizes-label { text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-warm); font-weight: 600; margin-bottom: 1rem; }
.prizes-amount { font-size: clamp(3rem, 7vw, 5.5rem); color: var(--gold); margin-bottom: 3rem; line-height: 1; }
.perks-row { display: flex; justify-content: center; gap: 2.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.perk { display: flex; align-items: center; gap: 0.8rem; font-size: 1.2rem; font-weight: 500; }
.perk-icon { font-size: 1.8rem; }
.prizes-footer { font-style: italic; color: var(--text-muted); }

/* Screen 8: Register */
.register-content { text-align: center; z-index: 2; display: flex; flex-direction: column; align-items: center; position: relative; }
.seats-left {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 2rem; background: rgba(0,0,0,0.15); padding: 0.5rem 1rem; border-radius: 30px;
}
.pulse-dot {
    width: 8px; height: 8px; background: #ff5e5e; border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 94, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 94, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 94, 94, 0); }
}
.register-title { font-size: clamp(4rem, 10vw, 7rem); margin-bottom: 1rem; line-height: 1; }
.register-fee { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.register-note { font-size: 1rem; opacity: 0.8; margin-bottom: 3rem; }
.actions { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; justify-content: center; }
.btn {
    padding: 1rem 2.5rem; border-radius: 50px; font-size: 1.1rem; font-weight: 600;
    text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: white; color: var(--sakura-deep) !important; }
.btn-primary:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.btn-outline { background: transparent; color: white !important; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--sakura-deep) !important; }
.whatsapp-link { color: white; text-decoration: none; font-size: 1.1rem; font-weight: 500; opacity: 0.9; transition: opacity 0.3s; }
.whatsapp-link:hover { opacity: 1; text-decoration: underline; }

.site-footer { position: absolute; bottom: 1.5rem; font-size: 0.9rem; opacity: 0.7; z-index: 2; }

/* Lucide Icon Sizing */
.icon {
    width: 28px;
    height: 28px;
    stroke: var(--sakura-deep);
    stroke-width: 1.75;
    flex-shrink: 0;
}
.icon-inline {
    width: 18px;
    height: 18px;
    stroke: var(--sakura-wine);
    stroke-width: 2;
    vertical-align: middle;
    margin-right: 4px;
}
.perk-icon .icon, .perk-icon i {
    width: 32px;
    height: 32px;
    stroke: var(--gold);
    stroke-width: 1.5;
}
.scroll-chevron-icon {
    width: 32px;
    height: 32px;
    stroke: var(--sakura-wine);
    stroke-width: 2;
    display: block;
    animation: bounce 2s infinite;
}

/* Responsive Overrides */
@media (max-width: 639px) {
    .hero-title { font-size: clamp(3.5rem, 18vw, 5rem); }
    .hero-year { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .tribute-name { font-size: clamp(2.5rem, 12vw, 4rem); }
    .group-name { font-size: clamp(2.5rem, 10vw, 4rem); }
    .prizes-amount { font-size: clamp(2rem, 8vw, 3rem); }
    .register-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .nav-dots { display: none; }
    .pill-badge { font-size: 0.75rem; padding: 0.4rem 0.9rem; }
    .glass-card { padding: 2rem 1.25rem; border-radius: 16px; }
    .prizes-card { padding: 2rem 1.25rem; }
    .info-row { flex-direction: column; gap: 1.5rem; }
    .info-item .icon { width: 24px; height: 24px; }
    .perks-row { flex-direction: column; gap: 1rem; }
    .actions { flex-direction: column; width: 100%; gap: 1rem; }
    .btn { width: 100%; padding: 0.9rem 1.5rem; text-align: center; }
    .section-title { font-size: 2rem; }
    .screen { padding: 1.5rem 1rem; }
    .group-label { letter-spacing: 0.15em; font-size: 0.85rem; }
    .accent-line { width: 40px; }
    .scroll-indicator { bottom: 1.5rem; }
    .deco-branch { max-width: 50vw; }
    .bg-flower { width: 180px; height: 180px; }
    .seats-left { font-size: 0.8rem; }
    .register-fee { font-size: 1.2rem; }
    .whatsapp-link { font-size: 0.95rem; }
    .site-footer { font-size: 0.8rem; }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .hero-title { font-size: clamp(4.5rem, 12vw, 7rem); }
    .tribute-name { font-size: clamp(3.5rem, 8vw, 6rem); }
    .group-name { font-size: clamp(3rem, 6vw, 5rem); }
    .dot { width: 8px; height: 8px; }
    .main-nav { padding: 1.25rem 2rem; }
    .info-row { flex-direction: row; gap: 2rem; }
    .glass-card { padding: 3rem 2rem; }
    .prizes-card { padding: 3rem 2rem; }
    .perks-row { flex-direction: row; gap: 2rem; }
    .actions { flex-direction: row; gap: 1rem; }
    .btn { width: auto; padding: 1rem 2rem; text-align: center; }
}

@media (min-width: 1024px) {
    .main-nav { padding: 1.5rem 3rem; }
}
