/* ============================================================
   VICTORIA RAMIREZ — 15 AÑOS
   Alicia en el País de las Maravillas (Disney 1951)
   Design System & Styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0A0F1D;
  --bg-secondary: #1A0B2E;
  --glass-bg: rgba(0, 0, 0, 0.4);
  --glass-border: rgba(255, 215, 0, 0.3);
  --gold: #FFD700;
  --gold-aged: #DAA520;
  --gold-dark: #B8860B;
  --white: #FFFFFF;
  --magenta: #FF007F;
  --magenta-dark: #CC0066;
  --biolum: #00FFCC;
  --biolum-dim: rgba(0, 255, 204, 0.3);
  --font-title: 'Cinzel Decorative', serif;
  --font-subtitle: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --blur: 14px;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

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

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

a { color: var(--gold); text-decoration: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--magenta));
  border-radius: 3px;
}

/* --- Utility --- */
.section-padding { padding: 100px 24px; }
.container { max-width: 1100px; margin: 0 auto; width: 100%; }

/* --- Glassmorphism Card --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

/* --- Filigree Divider --- */
.divider {
  text-align: center;
  padding: 20px 0;
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 12px;
  opacity: 0.6;
  user-select: none;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#preloader .loader-text {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 24px;
  animation: pulse-gold 1.5s ease-in-out infinite;
}
.loader-rabbit {
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--magenta);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-gold {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

/* Parallax Layers */
.parallax-layer {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform 0.1s linear;
}
.layer-far {
  background-image: url('../assets/images/bg-layer-far.png');
  filter: brightness(0.5) blur(1px);
}
.layer-mid {
  background-image: url('../assets/images/bg-layer-mid.png');
  filter: brightness(0.6);
  animation: drift-fog 20s ease-in-out infinite alternate;
}
.layer-overlay {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 15, 29, 0.3) 50%,
    rgba(10, 15, 29, 0.85) 100%
  );
}

@keyframes drift-fog {
  0% { transform: translateX(-10px) scale(1.02); }
  100% { transform: translateX(10px) scale(1.05); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px 24px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-badge {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--biolum);
  margin-top: 10px;
  margin-bottom: 8px;
  animation: fadeInDown 1s ease 0.3s both;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.2;
  background: linear-gradient(90deg, var(--gold) 0%, #FFF8DC 25%, var(--gold) 50%, #FFF8DC 75%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease 0.5s both, shimmer 4s linear 2s infinite;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

.hero-name {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--white);
  line-height: 1.1;
  margin: 8px 0;
  text-shadow: 0 0 60px rgba(255, 0, 127, 0.3), 0 4px 8px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease 0.7s both;
}

.hero-subtitle {
  font-family: var(--font-subtitle);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  animation: fadeInUp 1s ease 0.9s both;
}

.hero-typing {
  min-height: 1.8em;
  border-right: 2px solid var(--gold);
  display: inline-block;
  padding-right: 4px;
  animation: blink-caret 0.7s step-end infinite;
}
@keyframes blink-caret {
  50% { border-color: transparent; }
}

/* Victoria Portrait (Hero Center Piece) */
.hero-portrait {
  position: relative;
  margin: 0 auto 0;
  /* Use vh so it doesn't grow too tall on landscape/short screens */
  width: clamp(140px, 30vh, 260px); 
  animation: float-gentle 5s ease-in-out infinite, fadeIn 1.5s ease 0.2s both;
  z-index: 10;
  flex-shrink: 0;
}
.portrait-img {
  width: 100%;
  height: auto;
  display: block;
  /* White bg removal via mix-blend-mode so it blends into dark background */
  mix-blend-mode: multiply;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.55)) drop-shadow(0 0 60px rgba(255, 0, 127, 0.3)) drop-shadow(0 0 80px rgba(0, 255, 204, 0.15));
}
.portrait-sparkles {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
}
.portrait-sparkles::before,
.portrait-sparkles::after {
  content: '✦';
  position: absolute;
  color: var(--gold);
  font-size: 1.2rem;
  animation: sparkle-orbit 6s linear infinite;
  text-shadow: 0 0 10px var(--gold);
}
.portrait-sparkles::before {
  top: 10%;
  left: 50%;
}
.portrait-sparkles::after {
  bottom: 10%;
  right: 15%;
  animation-delay: -3s;
  font-size: 0.9rem;
  color: var(--biolum);
  text-shadow: 0 0 10px var(--biolum);
}
@keyframes sparkle-orbit {
  0% { transform: rotate(0deg) translateX(30px) rotate(0deg); opacity: 0.8; }
  50% { opacity: 0.3; }
  100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); opacity: 0.8; }
}

/* Floating Elements */
.floating-element {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  will-change: transform; /* Promotes to GPU layer for smooth animation */
}
/* All floating elements are now SVGs — no blend mode needed */
.floating-element svg {
  overflow: visible;
}
.float-cards {
  width: clamp(90px, 14vw, 180px);
  top: 8%;
  right: 5%;
  animation: float-drift-1 8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
  opacity: 0.75;
}
.float-teacup {
  width: clamp(80px, 12vw, 160px);
  bottom: 12%;
  left: 4%;
  animation: float-drift-2 7s ease-in-out infinite 1s;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.3));
  opacity: 0.75;
}
.float-clock {
  width: clamp(70px, 11vw, 140px);
  top: 12%;
  left: 6%;
  animation: float-drift-3 9s ease-in-out infinite 0.5s;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
  opacity: 0.7;
}
.float-rose {
  width: clamp(50px, 7vw, 90px);
  bottom: 20%;
  right: 8%;
  animation: float-drift-4 10s ease-in-out infinite 2s;
  filter: drop-shadow(0 0 10px rgba(255, 0, 127, 0.3));
  opacity: 0.7;
}

@keyframes float-drift-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  75% { transform: translateY(15px) rotate(-3deg); }
}
@keyframes float-drift-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-25px) rotate(-4deg); }
  66% { transform: translateY(10px) rotate(6deg); }
}
@keyframes float-drift-3 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-30px) rotate(8deg) scale(1.05); }
}
@keyframes float-drift-4 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-18px) rotate(-6deg); }
  80% { transform: translateY(12px) rotate(4deg); }
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s ease 2s both;
}
.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: bounce-arrow 2s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes bounce-arrow {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
#countdown {
  padding: 60px 24px;
  text-align: center;
  position: relative;
}
.countdown-label {
  font-family: var(--font-subtitle);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--biolum);
  margin-bottom: 24px;
  opacity: 0.8;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.countdown-item {
  padding: 20px 24px;
  min-width: 90px;
  text-align: center;
}
.countdown-number {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.countdown-item:hover .countdown-number {
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 0, 127, 0.3);
}
.countdown-unit {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}
.countdown-done {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* ============================================================
   EVENT INFO CARDS
   ============================================================ */
#event-info {
  padding: 40px 24px 80px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.info-card {
  padding: 32px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2), 0 0 60px rgba(0, 255, 204, 0.08);
  border-color: rgba(255, 215, 0, 0.6);
}
.info-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: inline-block;
  animation: float-gentle 3s ease-in-out infinite;
}
.info-label {
  font-family: var(--font-subtitle);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.info-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* ============================================================
   CHARACTERS SECTION
   ============================================================ */
#characters {
  padding: 40px 24px;
  text-align: center;
  position: relative;
}
.characters-img {
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 2px solid var(--glass-border);
  filter: drop-shadow(0 0 40px rgba(0, 255, 204, 0.2));
  animation: float-gentle 6s ease-in-out infinite;
  transition: transform var(--transition), filter var(--transition);
}
.characters-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 60px rgba(0, 255, 204, 0.4)) brightness(1.1);
}

/* ============================================================
   MESSAGE SECTION
   ============================================================ */
#message {
  padding: 80px 24px;
  display: flex;
  justify-content: center;
}
.message-card {
  max-width: 650px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
}
.message-card::before,
.message-card::after {
  content: '❦';
  position: absolute;
  font-size: 1.8rem;
  color: var(--gold);
  opacity: 0.4;
}
.message-card::before { top: 12px; left: 20px; }
.message-card::after { bottom: 12px; right: 20px; transform: rotate(180deg); }

.message-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.message-text {
  font-family: var(--font-subtitle);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.message-signature {
  margin-top: 28px;
  font-family: var(--font-subtitle);
  color: var(--gold-aged);
  letter-spacing: 1px;
  font-size: 0.95rem;
}

/* ============================================================
   PHOTO SECTION
   ============================================================ */
#photo {
  padding: 60px 24px;
  text-align: center;
}
.photo-frame {
  display: inline-block;
  position: relative;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark), var(--gold));
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}
.photo-frame:hover {
  transform: scale(1.03);
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.4);
}
.photo-frame img {
  width: clamp(180px, 30vw, 280px);
  height: clamp(180px, 30vw, 280px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-primary);
}
.photo-label {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 20px;
}

/* ============================================================
   RSVP SECTION
   ============================================================ */
#rsvp {
  padding: 80px 24px;
  display: flex;
  justify-content: center;
}
.rsvp-card {
  max-width: 500px;
  width: 100%;
  padding: 48px 36px;
}
.rsvp-title {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.4;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--font-subtitle);
  font-size: 0.9rem;
  color: var(--gold-aged);
  margin-bottom: 8px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
}
.form-group select option {
  background: var(--bg-primary);
  color: var(--white);
}

/* CTA Button */
.btn-cta {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 28px;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dark));
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-cta:hover::before { transform: translateX(100%); }
.btn-cta:hover {
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.5), 0 0 60px rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}
.btn-cta:active { transform: translateY(0); }
.btn-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* RSVP Response Messages */
.rsvp-response {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-subtitle);
  display: none;
}
.rsvp-response.success {
  display: block;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.4);
  color: var(--biolum);
}
.rsvp-response.error {
  display: block;
  background: rgba(255, 0, 127, 0.1);
  border: 1px solid rgba(255, 0, 127, 0.4);
  color: var(--magenta);
}

/* ============================================================
   MUSIC BUTTON
   ============================================================ */
#music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dark));
  border: 2px solid var(--gold);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(255, 0, 127, 0.4);
}
#music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 30px rgba(255, 0, 127, 0.6);
}
#music-btn.playing {
  animation: pulse-music 2s ease-in-out infinite;
}
@keyframes pulse-music {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 0, 127, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(255, 0, 127, 0.7), 0 0 60px rgba(255, 215, 0, 0.2); }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}
.footer-love {
  font-family: var(--font-subtitle);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.footer-private {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
}
.footer-suits {
  margin-top: 16px;
  font-size: 1.2rem;
  letter-spacing: 12px;
  color: var(--gold);
  opacity: 0.4;
}

/* ============================================================
   PARTICLES CANVAS
   ============================================================ */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

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

/* General keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Shimmer keyframe (used by hero title) --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- Ambient Glow Blobs (placed via HTML/JS) --- */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.2); }
  100% { transform: translate(-20px, 15px) scale(0.9); }
}

/* --- Enhanced Divider with animated line --- */
.divider {
  position: relative;
}
.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-aged), transparent);
  opacity: 0.4;
}
.divider::before { right: calc(50% + 60px); }
.divider::after { left: calc(50% + 60px); }

/* --- Sections get relative position for ambient effects --- */
#countdown, #event-info, #message, #rsvp {
  position: relative;
  z-index: 2;
}

/* --- Info card icon bounce on hover --- */
.info-card:hover .info-icon {
  animation: bounce-icon 0.5s ease;
}
@keyframes bounce-icon {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-4px); }
}

/* --- RSVP card ambient border glow --- */
.rsvp-card {
  transition: box-shadow var(--transition);
}
.rsvp-card:focus-within {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.15), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

/* --- Footer golden line animation --- */
#footer {
  position: relative;
  overflow: hidden;
}
#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--magenta), transparent);
  animation: slide-line 6s linear infinite;
}
@keyframes slide-line {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ============================================================
   CHARACTERS
   ============================================================ */
#characters {
  padding: 40px 16px;
  text-align: center;
  overflow: hidden;
}
.characters-img {
  width: 100%;
  max-width: 600px; /* Restricts the max size on desktop */
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 30px rgba(0, 255, 204, 0.15));
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section-padding { padding: 60px 16px; }
  
  .hero-content { padding: 30px 16px; }
  
  .countdown-grid { gap: 10px; }
  .countdown-item { padding: 14px 16px; min-width: 70px; }
  
  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  
  .message-card { padding: 32px 24px; }
  
  .rsvp-card { padding: 32px 24px; }

  /* Reduce floating element opacity and disable will-change on mobile to save GPU memory */
  .float-cards, .float-teacup, .float-clock, .float-rose {
    opacity: 0.35;
    will-change: auto;
  }
  
  /* Disable expensive CSS animations on mobile for smoother scroll */
  .layer-mid { animation: none; }
  
  #music-btn { width: 44px; height: 44px; font-size: 1rem; bottom: 16px; right: 16px; }
}

@media (max-width: 400px) {
  .countdown-grid { gap: 6px; }
  .countdown-item { min-width: 60px; padding: 10px 8px; }
  .countdown-number { font-size: 1.8rem; }
}
