/* ============================================
   Cecilia Valentina XV
   Minimalist · Disney Princess · Mobile-First
   ============================================ */

:root {
    --gold: #C9A84C;
    --gold-soft: #E6D5A0;
    --gold-glow: rgba(201, 168, 76, 0.25);
    --blush: #F7E8E8;
    --lavender: #EDE4F3;
    --bg: #FDFAFC;
    --bg-alt: #FAF5F7;
    --text: #3D2E3C;
    --text-soft: #8B7A89;
    --white: #FFFFFF;

    --font-script: 'Great Vibes', cursive;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: url('images/fondo.png') center center / cover no-repeat fixed;
    background-color: var(--bg);
    overflow-x: hidden;
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.scroll-anim {
    opacity: 0;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-out);
}

/* fade-up */
.scroll-anim[data-anim="fade-up"] {
    transform: translateY(40px);
}
.scroll-anim[data-anim="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

/* fade-down */
.scroll-anim[data-anim="fade-down"] {
    transform: translateY(-40px);
}
.scroll-anim[data-anim="fade-down"].visible {
    opacity: 1;
    transform: translateY(0);
}

/* fade-left */
.scroll-anim[data-anim="fade-left"] {
    transform: translateX(-50px);
}
.scroll-anim[data-anim="fade-left"].visible {
    opacity: 1;
    transform: translateX(0);
}

/* fade-right */
.scroll-anim[data-anim="fade-right"] {
    transform: translateX(50px);
}
.scroll-anim[data-anim="fade-right"].visible {
    opacity: 1;
    transform: translateX(0);
}

/* fade-in */
.scroll-anim[data-anim="fade-in"] {
    transform: none;
}
.scroll-anim[data-anim="fade-in"].visible {
    opacity: 1;
}

/* zoom-in */
.scroll-anim[data-anim="zoom-in"] {
    transform: scale(0.8);
}
.scroll-anim[data-anim="zoom-in"].visible {
    opacity: 1;
    transform: scale(1);
}

/* scale-x (lines) */
.scroll-anim[data-anim="scale-x"] {
    transform: scaleX(0);
}
.scroll-anim[data-anim="scale-x"].visible {
    opacity: 1;
    transform: scaleX(1);
}

/* Re-hide on scroll out for bidirectional animations */
.scroll-anim.exiting[data-anim="fade-up"] {
    opacity: 0;
    transform: translateY(-20px);
}
.scroll-anim.exiting[data-anim="fade-down"] {
    opacity: 0;
    transform: translateY(20px);
}
.scroll-anim.exiting[data-anim="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
}
.scroll-anim.exiting[data-anim="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
}
.scroll-anim.exiting[data-anim="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
}
.scroll-anim.exiting[data-anim="fade-in"] {
    opacity: 0;
}
.scroll-anim.exiting[data-anim="scale-x"] {
    opacity: 0;
    transform: scaleX(0);
}

/* ============================================
   POPUP OVERLAY
   ============================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(245, 200, 210, 0.85) 0%, rgba(240, 180, 195, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.popup-overlay.closing {
    animation: popupFadeOut 0.6s var(--ease) forwards;
}

@keyframes popupFadeOut {
    to { opacity: 0; transform: scale(1.02); }
}

.popup-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.popup-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold-soft);
    border-radius: 50%;
    animation: floatParticle 4s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
    50% { opacity: 0.7; transform: translateY(-60px) scale(1); }
}

.popup-card {
    position: relative;
    text-align: center;
    padding: 48px 32px;
    max-width: 360px;
    width: 90%;
    animation: popupEnter 0.8s var(--ease-out) forwards;
}

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

.popup-sparkle-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.1; }
}

.popup-prelude {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
}

.popup-logo {
    width: 200px;
    max-width: 80%;
    margin: 16px auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.15));
    opacity: 0;
}

.popup-quince {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 8px;
    color: var(--gold);
    opacity: 0;
}

.popup-line {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    margin: 20px auto;
    opacity: 0;
}

.popup-tagline {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    opacity: 0;
}

.popup-btn {
    margin-top: 28px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 100px;
    padding: 14px 32px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    opacity: 0;
}

.popup-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #D4758C;
    text-shadow: none;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.btn-sparkle {
    font-size: 0.55rem;
    vertical-align: middle;
    margin: 0 6px;
    opacity: 0.7;
    color: #FFFFFF;
}

/* Popup entrance animations */
.anim-text.show {
    animation: textReveal 0.7s var(--ease-out) forwards;
}

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

/* ============================================
   FLOATING CONTROLS
   ============================================ */
.floating-controls {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 8888;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.floating-controls.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.float-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: rgba(253, 250, 252, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.15);
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.theme-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.music-bars span {
    display: block;
    width: 2.5px;
    background: var(--gold);
    border-radius: 2px;
    height: 4px;
    transition: height 0.3s ease;
}

.music-toggle.playing .music-bars span {
    animation: bar 0.6s ease-in-out infinite alternate;
}

.music-toggle.playing .music-bars span:nth-child(1) { height: 5px; animation-delay: 0s; }
.music-toggle.playing .music-bars span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.music-toggle.playing .music-bars span:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.music-toggle.playing .music-bars span:nth-child(4) { height: 10px; animation-delay: 0.45s; }

@keyframes bar {
    0% { height: 4px; }
    100% { height: 14px; }
}



/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 70svh;
    min-height: 400px;
    overflow: hidden;
    background: transparent;
}

.hero::after {
    display: none;
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-logo {
    width: 280px;
    max-width: 85%;
    margin: 0 auto 8px;
    filter: drop-shadow(0 2px 12px rgba(201, 168, 76, 0.3));
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--gold);
}

.hero-scroll-hint {
    margin-top: 28px;
}

.scroll-arrow {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--gold);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section {
    padding: 72px 0;
    text-align: center;
}

.script-title {
    font-family: var(--font-script);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 24px;
}

.body-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-soft);
    line-height: 1.9;
    margin-bottom: 12px;
}

.highlight-text {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--gold);
    margin: 16px 0;
}

/* ============================================
   QUOTE (Fantasy)
   ============================================ */
.section-quote {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(160deg, #D4758C 0%, #E8A0B0 30%, #F2C4D0 60%, #F7D6DF 100%);
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.quote-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.quote-star {
    position: absolute;
    font-size: 0.7rem;
    opacity: 0;
    animation: starFloat 5s ease-in-out infinite;
}

@keyframes starFloat {
    0% { opacity: 0; transform: translateY(20px) scale(0.5) rotate(0deg); }
    30% { opacity: 0.8; }
    70% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-60px) scale(1) rotate(180deg); }
}

.quote-inner {
    position: relative;
    z-index: 3;
    padding: 0 24px;
    max-width: 520px;
    margin: 0 auto;
}

.quote-crown {
    display: block;
    font-size: 2.4rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.5));
    animation: crownGlow 3s ease-in-out infinite alternate;
}

@keyframes crownGlow {
    0% { filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.7)); }
}

.quote-line-1,
.quote-line-2,
.quote-line-3 {
    font-family: var(--font-display);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.quote-line-1 {
    font-size: 1rem;
}

.quote-line-2 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 8px 0;
}

.quote-line-3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
}

.quote-highlight {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--white);
    margin-top: 16px;
    text-shadow: 0 2px 20px rgba(201, 168, 76, 0.4);
}

.quote-wand {
    margin-top: 24px;
    transform-origin: center;
}

.quote-wand span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--white);
    opacity: 0.6;
}

@media (min-width: 768px) {
    .quote-line-1 { font-size: 1.1rem; }
    .quote-line-2 { font-size: 1.1rem; }
    .quote-line-3 { font-size: 1.1rem; }
    .quote-highlight { font-size: 3.4rem; }
}

/* ============================================
   INVITATION
   ============================================ */
.section-invitation {
    background: var(--bg-alt);
}

/* ============================================
   PHOTO SECTIONS
   ============================================ */
.section-photo {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.photo-parallax {
    position: relative;
    width: 100%;
    z-index: 1;
}

.photo-img {
    width: 100%;
    height: auto;
    display: block;
    object-position: center center;
}



/* Desktop / Tablet: framed with margins */
@media (min-width: 768px) {
    .section-photo {
        max-width: 720px;
        margin: 40px auto;
        border-radius: 20px;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
    }

    .photo-parallax {
        border-radius: 20px;
        overflow: hidden;
    }

    .section-photo .photo-overlay-text {
        border-radius: 20px;
    }
}

@media (min-width: 1024px) {
    .section-photo {
        max-width: 800px;
        margin: 56px auto;
    }
}


.photo-overlay-msg {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.photo-overlay-msg--large {
    font-size: 1.25rem;
    line-height: 2;
    font-weight: 400;
}

@media (min-width: 768px) {
    .photo-overlay-msg--large {
        font-size: 1.45rem;
    }
}

/* ============================================
   COUNTDOWN
   ============================================ */
.section-countdown {
    background: rgba(253, 250, 252, 0.7);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    margin-top: 20px;
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}

.cd-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.cd-label {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-top: 6px;
}

.cd-sep {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--gold-soft);
    opacity: 0.4;
    line-height: 1;
    padding-top: 2px;
}

/* ============================================
   EVENT DETAILS
   ============================================ */
.section-event {
    background: rgba(250, 245, 247, 0.75);
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 18px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.event-item:last-of-type {
    border-bottom: none;
}

.event-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.event-info h3 {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.event-info p {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
}

.venue-name {
    font-family: var(--font-script) !important;
    font-size: 1.5rem !important;
    color: var(--gold) !important;
}

.venue-addr {
    font-size: 0.85rem !important;
    color: var(--text-soft) !important;
    margin-top: 2px;
}

.btn-primary {
    display: inline-block;
    margin-top: 24px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 100px;
    padding: 12px 32px;
    transition: all 0.3s var(--ease);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 20px var(--gold-glow);
}

/* ============================================
   DRESS CODE
   ============================================ */
.section-dresscode {
    background: rgba(253, 250, 252, 0.7);
}

.dresscode-images {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    margin-top: 24px;
}

.dresscode-img-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 120px;
}

.dresscode-svg {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.dresscode-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.dresscode-note {
    margin-top: 24px;
    padding: 0 10px;
}

.note-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 8px;
}

.note-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.note-item p {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-soft);
    text-align: left;
}

.note-item strong {
    color: var(--gold);
    font-weight: 500;
}

.gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 100px;
    margin-top: 8px;
    background: rgba(201, 168, 76, 0.05);
}

.gift-icon {
    font-size: 1.3rem;
}

.gift-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-soft);
}

/* ============================================
   RSVP
   ============================================ */
.section-rsvp {
    background: rgba(250, 245, 247, 0.75);
    padding-bottom: 56px;
}

.rsvp-gift-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 12px 24px;
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 100px;
    background: rgba(201, 168, 76, 0.05);
}

.rsvp-gift-icon {
    font-size: 1.2rem;
}

.rsvp-gift-note p {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

.rsvp-form {
    margin-top: 8px;
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text);
    background: var(--white);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    outline: none;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-input::placeholder {
    color: var(--text-soft);
    opacity: 0.5;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.pass-selector {
    display: flex;
    gap: 10px;
}

.pass-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.25);
    background: var(--white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.pass-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.08);
}

.pass-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 12px var(--gold-glow);
    transform: scale(1.08);
}

.pass-hint {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--text-soft);
    margin-top: 8px;
    opacity: 0.6;
}

.btn-whatsapp {
    display: inline-block;
    width: 100%;
    margin-top: 8px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--white);
    background: #25D366;
    border: none;
    border-radius: 100px;
    padding: 16px 36px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 48px 0 56px;
    text-align: center;
    background: rgba(253, 250, 252, 0.7);
}

.footer-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 24px;
    transform-origin: center;
}

.footer-love {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-soft);
}

.footer-name {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--gold);
    margin-top: 4px;
}

.footer-year {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: var(--text-soft);
    margin-top: 12px;
}

/* ============================================
   MAGICAL FLOATING PARTICLES
   ============================================ */
.magic-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    overflow: hidden;
}

.magic-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold-soft);
    border-radius: 50%;
    opacity: 0;
    animation: magicFloat 6s ease-in-out infinite;
}

@keyframes magicFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.5; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* Small phones */
@media (max-width: 360px) {
    .popup-card { padding: 36px 20px; }
    .popup-logo { width: 160px; }
    .script-title { font-size: 1.8rem; }
    .highlight-text { font-size: 2.4rem; }
    .cd-num { font-size: 2rem; }
    .cd-item { min-width: 46px; }
    .hero-logo { width: 180px; }
    .quote-line-1 { font-size: 0.88rem; }
    .quote-line-2 { font-size: 0.88rem; }
    .quote-line-3 { font-size: 0.88rem; }
    .quote-highlight { font-size: 2.4rem; }
}

/* Tablets */
@media (min-width: 768px) {
    .container { max-width: 520px; }
    .section { padding: 96px 0; }
    .script-title { font-size: 2.8rem; }
    .hero-logo { width: 300px; }
    .cd-num { font-size: 3.2rem; }
    .cd-item { min-width: 80px; }
    .highlight-text { font-size: 3.6rem; }
    .body-text { font-size: 1rem; }
}

/* Large screens */
@media (min-width: 1024px) {
    .container { max-width: 560px; }
    .hero { height: 100vh; }
}

/* Safe area insets for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }
    .hero-content {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-anim,
    .scroll-anim.visible,
    .scroll-anim.exiting {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .magic-dot,
    .popup-particle,
    .scroll-arrow {
        animation: none !important;
    }
}


