/* -------------------------------------------------------------
   SYSTEM DESIGN SYSTEM & VARIABLES
------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg: #f5f2eb; /* Light warm off-white */
  --color-surface: #ffffff; /* Cards container */
  --color-primary: #dca2b5; /* Soft dusty rose pink */
  --color-primary-dark: #b87a8e; /* Darker pink for text and contrast */
  --color-primary-light: #fbeff2; /* Super soft rose tint for text boxes */
  --color-accent: #c5869a; /* High-contrast accents */
  --color-text: #4e4849; /* Soft charcoal (avoid pure black) */
  --color-text-muted: #8e8587; /* Secondary details */

  /* Fonts */
  --font-title: "Alex Brush", cursive;
  --font-body: "Montserrat", sans-serif;

  /* Card and Border Styles */
  --radius-card: 24px;
  --radius-pill: 50px;
  --shadow-soft: 0 4px 20px rgba(184, 122, 142, 0.08);
  --shadow-premium: 0 12px 30px rgba(78, 72, 73, 0.08);

  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

/* -------------------------------------------------------------
   RESET & BASE STYLES
------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(245, 242, 235, 0.7), rgba(251, 239, 242, 0.75)),
    url("assets/theme/paper-texture.png");
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App Center Layout (max width for mobile focus) */
.app-container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 480px; /* Focus on vertical mobile layout */
  min-height: 100vh;
  position: relative;
  width: 100%;
}

/* Loader Screen */
.loader-container {
  align-items: center;
  background-color: var(--color-bg);
  background-image: url("assets/theme/paper-texture.png");
  background-repeat: repeat;
  background-size: auto;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 9999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.loader-container.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  border: 3px solid rgba(220, 162, 181, 0.2);
  border-radius: 50%;
  border-top: 3px solid var(--color-primary);
  height: 50px;
  width: 50px;
  animation: spin 1s linear infinite;
}

.loader-text {
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-top: 20px;
  text-transform: uppercase;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------------------
   GLITTER SIDE DECORATIONS (MOBILE-OPTIMIZED)
------------------------------------------------------------- */
.glitter-border {
  background-image: url("assets/theme/glitter-side-overlay.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  height: 100vh;
  mix-blend-mode: multiply;
  opacity: 0.4; /* Reduced to look elegant, not harsh */
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 18px; /* Slimmer on mobile to maximize viewport area */
  z-index: 100;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 50%,
    rgba(0, 0, 0, 0.2) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 50%,
    rgba(0, 0, 0, 0.2) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.border-left {
  left: 0;
}

.border-right {
  right: 0;
  transform: scaleX(-1);
}

/* Hide on desktop sides, but keep on the app container bounds if wider */
@media (min-width: 480px) {
  .glitter-border {
    position: absolute;
    height: 100%;
    width: 22px;
  }
  .border-left {
    left: calc(50% - 240px);
  }
  .border-right {
    right: calc(50% - 240px);
  }
}

/* -------------------------------------------------------------
   FLOATING SOUND BUTTON
------------------------------------------------------------- */
.music-floating-btn {
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid rgba(184, 122, 142, 0.15);
  border-radius: 50%;
  box-shadow: var(--shadow-premium);
  cursor: pointer;
  display: flex;
  height: 50px;
  justify-content: center;
  position: fixed;
  right: 20px;
  top: 20px;
  width: 50px;
  z-index: 990;
  transition: var(--transition-fast);
}

.music-floating-btn:hover {
  transform: scale(1.08);
}

.music-floating-btn:active {
  transform: scale(0.95);
}

.music-icon {
  fill: var(--color-primary-dark);
  height: 24px;
  width: 24px;
}

.hidden {
  display: none !important;
}

/* -------------------------------------------------------------
   1. HERO SECTION
------------------------------------------------------------- */
.hero-section {
  align-items: center;
  display: flex;
  height: 95vh;
  justify-content: center;
  min-height: 550px;
  padding: 40px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.sakura {
  height: auto;
  opacity: 0; /* Animated in JS / CSS */
  pointer-events: none;
  position: absolute;
  width: 220px;
  z-index: 5;
  transition: transform 0.2s ease-out; /* Parallax support */
}

.sakura-top-left {
  left: 0;
  top: 0;
  transform: translate(-30px, -30px) rotate(-10deg);
  animation: enterSakuraTL 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
}

.sakura-bottom-right {
  bottom: 0;
  right: 0;
  transform: translate(30px, 30px) rotate(190deg);
  animation: enterSakuraBR 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
}

@keyframes enterSakuraTL {
  to {
    opacity: 0.95;
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes enterSakuraBR {
  to {
    opacity: 0.95;
    transform: translate(0, 0) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  color: var(--color-primary-dark);
  font-family: var(--font-title);
  font-size: 88px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUpHero 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 7px;
  text-indent: 7px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpHero 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInUpHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------
   2. COUNTDOWN BANNER (PREMIUM GRADIENT)
------------------------------------------------------------- */
.countdown-bar {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin: -35px 24px 0 24px;
  padding: 20px 10px;
  position: relative;
  z-index: 20;
}

.countdown-timer {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.timer-segment {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 68px;
}

.timer-segment span {
  color: var(--color-surface);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.12);
}

.timer-segment label {
  color: var(--color-primary-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 4px;
}

.timer-colon {
  color: var(--color-surface);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  opacity: 0.8;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.9;
  }
}

/* -------------------------------------------------------------
   3. DETAILS SECTION
------------------------------------------------------------- */
.details-section {
  padding: 70px 30px;
  text-align: center;
}

.intro-phrase {
  color: var(--color-text-muted);
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 45px;
}

.date-badge {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-premium);
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 45px;
  padding: 28px 35px;
  width: 100%;
}

.date-badge-day-name {
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.date-badge-row {
  align-items: center;
  border-bottom: 1px solid rgba(184, 122, 142, 0.15);
  border-top: 1px solid rgba(184, 122, 142, 0.15);
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
}

.date-badge-month,
.date-badge-year {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
}

.date-badge-number {
  color: var(--color-primary-dark);
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
}

.date-badge-time {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 14px;
}

.toast-icon-container {
  color: var(--color-primary);
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
}

.toast-svg {
  height: 64px;
  width: 64px;
  animation: pulse-slow 3.5s infinite ease-in-out;
}

@keyframes pulse-slow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.salon-details {
  margin-bottom: 40px;
}

.salon-name {
  color: var(--color-primary-dark);
  font-family: var(--font-title);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 8px;
}

.salon-address {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Pill buttons stylings */
.action-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pill-btn {
  align-items: center;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 2px;
  padding: 18px 28px;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.pill-btn-primary {
  background-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  color: var(--color-surface);
  border: 1px solid var(--color-primary);
}

.pill-btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184, 122, 142, 0.2);
}

.pill-btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
  box-shadow: none;
}

.pill-btn-outline:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-3px);
}

.pill-btn-white {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-soft);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-surface);
}

.pill-btn-white:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pill-btn-pulse {
  animation: pulse-btn 2.5s infinite;
}

@keyframes pulse-btn {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 162, 181, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(220, 162, 181, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 162, 181, 0);
  }
}

/* -------------------------------------------------------------
   4. PHOTO CARD STYLING (ROTATED SCRAPBOOK STYLE)
------------------------------------------------------------- */
.photo-section {
  display: flex;
  justify-content: center;
  padding: 30px;
}

.photo-card-frame {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-card);
  box-shadow: 0 15px 35px rgba(78, 72, 73, 0.12);
  overflow: hidden;
  padding: 14px;
  width: 100%;
  transition: var(--transition-smooth);
  position: relative;
}

/* Premium transparent background style for cutout photos */
.photo-card-frame.transparent-frame {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.photo-card-frame.transparent-frame::after {
  display: none; /* Remove blend overlay on the cutout image */
}

.photo-card-frame.transparent-frame .photo-card-img {
  filter: drop-shadow(
    0 15px 25px rgba(184, 122, 142, 0.22)
  ); /* Elegant drop-shadow directly on subject */
  height: 480px; /* Slightly taller since no card padding */
  object-fit: contain; /* Do not crop the cutout */
  border-radius: 0;
  transition: var(--transition-smooth);
}

.photo-card-frame.transparent-frame:hover {
  transform: translateY(-8px) scale(1.04) !important;
}

.photo-card-frame.transparent-frame:hover .photo-card-img {
  filter: drop-shadow(0 20px 35px rgba(184, 122, 142, 0.35));
}

/* Alternating card tilts for organic scrapbook look */
.photo-section:nth-of-type(odd) .photo-card-frame {
  transform: rotate(-1.5deg);
}
.photo-section:nth-of-type(even) .photo-card-frame {
  transform: rotate(1.5deg);
}

.photo-card-frame:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(184, 122, 142, 0.18);
}

/* Soft overlay to blend image bottom */
.photo-card-frame::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  height: 80px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.photo-card-img {
  border-radius: 12px;
  display: block;
  height: 400px;
  object-fit: cover;
  width: 100%;
}

/* -------------------------------------------------------------
   5. DRESS CODE & GIFTS
------------------------------------------------------------- */
.dress-gifts-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 70px 30px;
  text-align: center;
}

.info-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-premium);
  padding: 45px 30px;
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card-icon-container {
  color: var(--color-primary);
  display: inline-flex;
  justify-content: center;
  margin-bottom: 22px;
}

.info-card-icon {
  height: 48px;
  width: 48px;
}

.info-card-title {
  color: var(--color-primary-dark);
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 10px;
}

.info-card-text {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.info-card-desc {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Wave divider */
.wave-divider-container {
  color: var(--color-primary);
  display: flex;
  justify-content: center;
  margin: 10px 0;
  opacity: 0.6;
}

.heart-divider-svg {
  height: 40px;
  width: 200px;
}

/* Bank info box */
.bank-details-box {
  background-color: var(--color-primary-light);
  border-radius: 16px;
  padding: 26px;
  position: relative;
  border: 1px solid rgba(184, 122, 142, 0.1);
}

.bank-alias-label {
  color: var(--color-primary-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.bank-alias-value {
  color: var(--color-text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
  word-break: break-all;
}

.copy-alias-btn {
  background-color: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  color: var(--color-primary-dark);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 10px 22px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(184, 122, 142, 0.05);
}

.copy-alias-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.copy-alias-btn.copied {
  background-color: #55a87e;
  border-color: #55a87e;
  color: var(--color-surface);
}

.bank-holder-info {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 18px;
}

/* -------------------------------------------------------------
   6. RIPPED PAPER DIVIDERS (DROP SHADOW DEPTH)
------------------------------------------------------------- */
.torn-paper-divider {
  color: var(--color-primary);
  height: 25px;
  overflow: visible; /* Show drop shadows */
  position: relative;
  width: 100%;
  z-index: 10;
  filter: drop-shadow(0 -4px 5px rgba(78, 72, 73, 0.08));
}

.torn-paper-svg {
  display: block;
  height: 100%;
  transform: translateY(1px);
  width: 100%;
}

.torn-paper-invert {
  transform: scaleY(-1);
  filter: drop-shadow(0 -4px 5px rgba(78, 72, 73, 0.08));
}

/* -------------------------------------------------------------
   7. PINK THEME WRAPPER (PREMIUM CSS TEXTURED GRADIENT)
------------------------------------------------------------- */
.pink-theme-wrapper {
  background: linear-gradient(
    180deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 70px;
  padding: 60px 30px;
  position: relative;
  z-index: 5;
}

/* White pattern overlay for high-end look */
.pink-theme-wrapper::before {
  content: "";
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.12) 1.5px,
    transparent 1.5px
  );
  background-size: 24px 24px;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}

.pink-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pink-section-icon {
  color: var(--color-surface);
  height: 52px;
  margin-bottom: 22px;
  opacity: 0.95;
  width: 52px;
}

.pink-section-icon svg {
  height: 100%;
  width: 100%;
}

.pink-section-text {
  color: var(--color-surface);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 320px;
}

.music-stave-container {
  color: var(--color-surface);
  margin-top: 30px;
  width: 100%;
}

.music-stave-svg {
  height: 40px;
  width: 200px;
}

/* -------------------------------------------------------------
   8. RSVP & CENTRED CARDS (VARIED LAYOUT DESIGN)
------------------------------------------------------------- */
.info-section-centered {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 70px 30px;
  text-align: center;
}

/* Specific styling variations to avoid repetitive cards */
#shared-album {
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
  margin: 30px 24px;
}

#guest-book {
  background: transparent;
  margin: 30px 24px;
}

#rsvp {
  background: rgba(251, 239, 242, 0.6);
  border-radius: var(--radius-card);
  border: 1px solid rgba(184, 122, 142, 0.15);
  box-shadow: var(--shadow-premium);
  margin: 30px 24px 50px 24px;
}

.icon-primary {
  background-color: var(--color-surface);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  color: var(--color-primary-dark);
  height: 80px;
  padding: 16px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-icon-pulsing {
  animation: pulse-icon 2.5s infinite ease-in-out;
}

@keyframes pulse-icon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.rsvp-title {
  color: var(--color-primary-dark) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
}

/* -------------------------------------------------------------
   FOOTER SECTION
------------------------------------------------------------- */
.app-footer {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 20px 90px 20px;
  position: relative;
  text-align: center;
  border-top: 1px solid rgba(184, 122, 142, 0.12);
  margin-top: 30px;
}

.footer-signature {
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.footer-signature::after {
  content: "❀";
  color: var(--color-primary);
  display: block;
  font-size: 16px;
  margin-top: 12px;
  animation: rotateSlow 10s infinite linear;
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------------------
   MICRO ANIMATIONS (SCROLL ENTRANCE EFFECTS)
------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transition: opacity 1.4s ease;
}

.fade-in.animated {
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.fade-in-up.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Premium CSS Stagger Delays for Scroll Entrances */
.stagger-1 {
  transition-delay: 0.15s !important;
}

.stagger-2 {
  transition-delay: 0.3s !important;
}

.stagger-3 {
  transition-delay: 0.45s !important;
}

/* Music play button pulsing invitation */
.music-pulse {
  animation: musicPulseBtn 2s infinite ease-in-out;
}

@keyframes musicPulseBtn {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 162, 181, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 162, 181, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 162, 181, 0);
  }
}

/* -------------------------------------------------------------
   FALLING PETALS STYLING (DUAL NESTED ANIMATION)
------------------------------------------------------------- */
.petals-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px; /* Centered matching the app-container exactly */
  height: 100vh;
  pointer-events: none;
  z-index: 99;
  overflow: hidden;
}

.petal-wrapper {
  position: absolute;
  top: -40px;
  pointer-events: none;
  will-change: transform;
  animation: fall-vertical linear infinite;
}

.petal {
  pointer-events: none;
  will-change: transform;
  transform-origin: center;
  animation: sway-horizontal ease-in-out infinite alternate;
}

@keyframes fall-vertical {
  0% {
    transform: translateY(-15vh);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  90% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(115vh);
    opacity: 0;
  }
}

@keyframes sway-horizontal {
  0% {
    transform: translateX(calc(var(--sway-x, 50px) * -1)) rotate(0deg)
      rotateY(0deg);
  }
  100% {
    transform: translateX(var(--sway-x, 50px)) rotate(360deg) rotateY(360deg);
  }
}

/* -------------------------------------------------------------
   RESPONSIVE & MOBILE OPTIMIZATIONS
------------------------------------------------------------- */
@media (max-width: 380px) {
  .glitter-border {
    width: 15px;
    opacity: 0.3;
  }

  .music-floating-btn {
    top: 15px;
    right: 15px;
    height: 44px;
    width: 44px;
  }

  .hero-title {
    font-size: 68px;
  }

  .hero-subtitle {
    letter-spacing: 5px;
    text-indent: 5px;
  }

  .sakura {
    width: 150px;
  }

  .countdown-bar {
    margin: -25px 15px 0 15px;
    padding: 15px 5px;
  }

  .timer-segment {
    width: 52px;
  }

  .timer-segment span {
    font-size: 20px;
  }

  .timer-colon {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .details-section,
  .dress-gifts-section,
  .info-section-centered {
    padding: 45px 20px;
  }

  .salon-name {
    font-size: 42px;
  }

  .photo-card-img {
    height: 340px;
  }

  .info-card {
    padding: 30px 20px;
  }

  .bank-details-box {
    padding: 18px;
  }

  .bank-alias-value {
    font-size: 18px;
  }
}

@media (max-width: 320px) {
  .hero-title {
    font-size: 58px;
  }

  .sakura {
    width: 110px;
  }

  .countdown-bar {
    margin: -25px 10px 0 10px;
  }

  .timer-segment {
    width: 45px;
  }

  .timer-segment span {
    font-size: 16px;
  }

  .timer-colon {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .photo-card-img {
    height: 280px;
  }
}

/* -------------------------------------------------------------
   PREMIUM ART-DIRECTION PASS 2026
   Objetivo: más jerarquía, mejor legibilidad y una portada memorable.
------------------------------------------------------------- */
:root {
  --color-bg: #f4efe7;
  --color-surface: #fffdf9;
  --color-primary: #d99aad;
  --color-primary-dark: #a85f76;
  --color-primary-deep: #88435a;
  --color-primary-light: #fff1f5;
  --color-accent: #c08d62;
  --color-accent-soft: #f4ddcb;
  --color-text: #41383a;
  --color-text-muted: #7b7072;
  --font-title: "Alex Brush", cursive;
  --font-serif: "Cormorant Garamond", serif;
  --font-body: "Montserrat", sans-serif;
  --radius-card: 28px;
  --shadow-soft: 0 10px 28px rgba(105, 73, 67, 0.08);
  --shadow-premium: 0 24px 60px rgba(105, 73, 67, 0.12);
}

body {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 244, 247, 0.9) 0%,
      rgba(244, 239, 231, 0) 34rem
    ),
    linear-gradient(
      180deg,
      rgba(255, 253, 249, 0.54),
      rgba(244, 239, 231, 0.82)
    ),
    url("assets/theme/paper-texture.png");
  color: var(--color-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(192, 141, 98, 0.06),
      transparent 18%,
      transparent 82%,
      rgba(192, 141, 98, 0.06)
    ),
    radial-gradient(
      circle at 50% 8%,
      rgba(217, 154, 173, 0.12),
      transparent 38%
    );
  z-index: 0;
}

.app-container {
  isolation: isolate;
}

.loader-text,
.hero-subtitle,
.date-badge-day-name,
.timer-segment label,
.pill-btn,
.copy-alias-btn,
.footer-signature {
  letter-spacing: 1.6px;
}

/* Hero editorial premium */
.hero-section {
  min-height: 680px;
  height: 100svh;
  padding: 54px 28px 92px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 253, 249, 0.18),
      rgba(255, 241, 245, 0.34)
    ),
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 253, 249, 0.44) 36%,
      transparent 72%
    );
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 62px;
  width: min(58%, 260px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(192, 141, 98, 0.42),
    transparent
  );
  z-index: 6;
}

.hero-vignette {
  position: absolute;
  inset: 64px 34px 96px;
  border: 1px solid rgba(192, 141, 98, 0.22);
  border-radius: 42px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 253, 249, 0.34),
      rgba(255, 241, 245, 0.14)
    ),
    radial-gradient(
      circle at 50% 28%,
      rgba(255, 255, 255, 0.7),
      transparent 62%
    );
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.hero-kicker,
.section-eyebrow,
.priority-eyebrow {
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--color-primary-dark);
  padding-top: 15px;
  text-shadow: 0 0 10px rgba(255, 253, 249, 0.95), 0 0 5px rgba(255, 253, 249, 0.95);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUpHero 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
  margin-bottom: 18px;
}

.hero-title {
  color: var(--color-primary-deep);
  font-size: clamp(86px, 27vw, 132px);
  line-height: 0.84;
  margin-bottom: 18px;
  text-shadow:
    0 8px 24px rgba(255, 255, 255, 0.75),
    0 18px 40px rgba(168, 95, 118, 0.1);
}

.hero-title::first-letter {
  letter-spacing: -0.03em;
}

.hero-subtitle {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 7px;
  text-indent: 7px;
}

.hero-divider {
  width: 74px;
  height: 1px;
  margin: 26px auto 18px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 95, 118, 0.65),
    transparent
  );
  opacity: 0;
  transform: scaleX(0.4);
  animation: heroLine 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.75s;
}

@keyframes heroLine {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hero-date-line {
  color: var(--color-primary-deep);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUpHero 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.92s;
}

.hero-cta {
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 34px rgba(168, 95, 118, 0.24);
  color: var(--color-surface);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 1.4px;
  margin-top: 26px;
  min-width: 230px;
  padding: 16px 24px;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUpHero 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.05s;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(168, 95, 118, 0.3);
}

.scroll-cue {
  bottom: 28px;
  color: var(--color-text-muted);
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  left: 50%;
  opacity: 0.72;
  position: absolute;
  transform: translateX(-50%);
  z-index: 8;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 24px;
  margin: 8px auto 0;
  background: linear-gradient(180deg, rgba(168, 95, 118, 0.68), transparent);
  animation: scrollCue 1.8s infinite ease-in-out;
}

@keyframes scrollCue {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

.sakura {
  width: 210px;
  filter: drop-shadow(0 18px 22px rgba(168, 95, 118, 0.08));
}

.sakura-top-left {
  left: 12px;
  top: -10px;
}

.sakura-bottom-right {
  bottom: 56px;
  right: -13px;
}

/* Countdown with stronger hierarchy */
.countdown-bar {
  background: linear-gradient(
    135deg,
    var(--color-primary-deep) 0%,
    var(--color-primary-dark) 52%,
    var(--color-primary) 100%
  );
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 38px rgba(136, 67, 90, 0.22);
  margin: -54px 24px 0 24px;
  padding: 18px 8px 17px;
}

.timer-segment span {
  color: #fffaf8;
  font-size: 28px;
  font-weight: 700;
}

.timer-segment label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 700;
}

/* High-priority summary card */
.priority-actions-section {
  padding: 28px 24px 20px;
  text-align: center;
}

.priority-card {
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  box-shadow: var(--shadow-premium);
  padding: 28px 22px 24px;
  position: relative;
  overflow: hidden;
}

.priority-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(217, 154, 173, 0.14),
      transparent 36%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(192, 141, 98, 0.12),
      transparent 36%
    );
}

.priority-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.priority-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.priority-item {
  background: rgba(255, 241, 245, 0.58);
  border: 1px solid rgba(168, 95, 118, 0.12);
  border-radius: 18px;
  padding: 14px 13px;
  text-align: left;
}

.priority-item-wide {
  grid-column: 1 / -1;
}

.priority-item span {
  color: var(--color-accent);
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.priority-item strong {
  color: var(--color-text);
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.priority-rsvp-btn {
  position: relative;
  z-index: 1;
  width: 100%;
}

.section-eyebrow {
  margin-bottom: 18px;
}

/* Content rhythm and readability */
.details-section {
  padding: 62px 30px;
}

.intro-phrase {
  color: var(--color-text-muted);
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 40px;
}

.date-badge {
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-premium);
  margin-bottom: 38px;
  padding: 30px 28px;
}

.date-badge-day-name {
  color: var(--color-primary-deep);
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 5px;
}

.date-badge-number {
  color: var(--color-primary-deep);
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 600;
}

.date-badge-month,
.date-badge-year {
  font-size: 11px;
  font-weight: 700;
}

.date-badge-time {
  color: var(--color-text);
  font-size: 14px;
}

.salon-name,
.info-card-title {
  color: var(--color-primary-deep);
  text-shadow: 0 12px 28px rgba(255, 255, 255, 0.6);
}

.salon-name {
  font-size: 58px;
  margin-bottom: 12px;
}

.salon-address,
.info-card-desc,
.info-card-text,
.pink-section-text {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Buttons: less template, more editorial */
.pill-btn {
  font-size: 11px;
  letter-spacing: 1.2px;
  min-height: 52px;
  padding: 16px 26px;
}

.pill-btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 14px 30px rgba(168, 95, 118, 0.18);
}

.pill-btn-outline {
  background-color: rgba(255, 253, 249, 0.58);
  border: 1px solid rgba(168, 95, 118, 0.45);
  color: var(--color-primary-deep);
}

.pill-btn-white {
  color: var(--color-primary-deep);
}

/* Cards and sections */
.photo-section {
  padding: 24px 30px 36px;
}

.photo-card-frame {
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  box-shadow: 0 26px 54px rgba(105, 73, 67, 0.12);
  padding: 12px;
}

.photo-card-img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.dress-gifts-section {
  gap: 34px;
  padding: 62px 30px;
}

.info-card,
#shared-album,
#rsvp {
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px;
  box-shadow: var(--shadow-premium);
}

.info-card {
  padding: 42px 28px;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(192, 141, 98, 0.42),
    transparent
  );
}

.info-card-icon-container {
  color: var(--color-primary-dark);
}

.info-card-icon {
  height: 42px;
  width: 42px;
}

.info-card-title {
  font-size: 46px;
}

.bank-details-box {
  background: linear-gradient(
    180deg,
    rgba(255, 241, 245, 0.9),
    rgba(244, 221, 203, 0.28)
  );
  border: 1px solid rgba(168, 95, 118, 0.12);
  border-radius: 22px;
}

.bank-alias-value {
  color: var(--color-primary-deep);
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
}

/* Pink block integrated with rest of art direction */
.torn-paper-divider {
  filter: drop-shadow(0 -10px 14px rgba(105, 73, 67, 0.06));
}

.pink-theme-wrapper {
  background:
    linear-gradient(
      180deg,
      rgba(136, 67, 90, 0.94) 0%,
      rgba(168, 95, 118, 0.9) 55%,
      rgba(217, 154, 173, 0.94) 100%
    ),
    url("assets/theme/paper-texture.png");
  gap: 62px;
  padding: 70px 30px;
}

.pink-theme-wrapper::before {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.18) 1.2px, transparent 1.2px),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07),
      transparent 45%,
      rgba(255, 255, 255, 0.05)
    );
  background-size:
    26px 26px,
    100% 100%;
}

.pink-section-text {
  color: rgba(255, 250, 248, 0.9);
  font-size: 15px;
}

#shared-album,
#rsvp {
  margin: 28px 24px;
}

#guest-book {
  margin: 28px 24px;
}

#rsvp {
  background: linear-gradient(
    180deg,
    rgba(255, 241, 245, 0.86),
    rgba(255, 253, 249, 0.82)
  );
  margin-bottom: 58px;
}

.rsvp-title {
  color: var(--color-primary-deep) !important;
  font-family: var(--font-serif);
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.35;
}

.icon-primary {
  background: var(--color-surface);
  color: var(--color-primary-deep);
  box-shadow: 0 14px 34px rgba(168, 95, 118, 0.12);
}

/* Accessibility and motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 380px) {
  .hero-section {
    min-height: 620px;
    padding-inline: 22px;
  }

  .hero-vignette {
    inset: 58px 22px 92px;
    border-radius: 34px;
  }

  .hero-title {
    font-size: clamp(74px, 26vw, 96px);
  }

  .hero-kicker,
  .section-eyebrow,
  .priority-eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 5px;
    text-indent: 5px;
  }

  .hero-date-line {
    font-size: 15px;
  }

  .hero-cta {
    min-width: 210px;
    padding: 14px 20px;
  }

  .sakura {
    width: 170px;
  }

  .countdown-bar {
    margin: -46px 16px 0;
  }

  .priority-actions-section {
    padding-inline: 16px;
  }

  .priority-card {
    padding: 24px 18px 20px;
  }

  .priority-grid {
    grid-template-columns: 1fr;
  }

  .priority-item strong {
    font-size: 17px;
  }

  .intro-phrase {
    font-size: 17px;
  }

  .date-badge-number {
    font-size: 48px;
  }

  .salon-name {
    font-size: 46px;
  }

  .info-card-title {
    font-size: 40px;
  }
}
