/* ═══════════════════════════════════════════
   WEDDING INVITATION - Rajapandiyan & Gokila
   Theme: Maroon & Gold
   ═══════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: #fdf8f0;
  color: #3d1a1a;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* ─── GOLD SPARKLE OVERLAY ─── */
.sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ─── ANIMATED MANDALA BACKGROUND ─── */
.mandala-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 30%, #d4af37 30.5%, transparent 31%),
    radial-gradient(circle at center, transparent 45%, #d4af37 45.5%, transparent 46%),
    radial-gradient(circle at center, transparent 60%, #d4af37 60.5%, transparent 61%),
    radial-gradient(circle at center, transparent 75%, #d4af37 75.5%, transparent 76%);
  border-radius: 50%;
  animation: mandalaRotate 60s linear infinite;
}

.mandala-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0deg 5deg,
      #d4af37 5deg 5.5deg,
      transparent 5.5deg 15deg
    );
  opacity: 0.6;
  animation: mandalaRotateReverse 45s linear infinite;
}

.mandala-bg::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0deg 8deg,
      #800000 8deg 8.5deg,
      transparent 8.5deg 20deg
    );
  opacity: 0.5;
  animation: mandalaRotate 90s linear infinite;
}

@keyframes mandalaRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes mandalaRotateReverse {
  from { rotate: 0deg; }
  to { rotate: -360deg; }
}

@media (max-width: 600px) {
  .mandala-bg {
    width: 500px;
    height: 500px;
  }
}

/* ─── GOLDEN THREAD + HEARTBEAT ─── */
.thread-heart-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 0;
  height: 40px;
}

.golden-thread {
  width: 200px;
  height: 40px;
  position: absolute;
}

.thread-path {
  fill: none;
  stroke: url(#gold-grad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawThread 2s ease 1.2s forwards;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.5));
}

/* Fallback gold stroke for thread */
.thread-path {
  stroke: #d4af37;
}

@keyframes drawThread {
  to { stroke-dashoffset: 0; }
}

.heartbeat-heart {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  animation: heartbeatPulse 1.5s ease-in-out 2s infinite;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.heartbeat-heart svg {
  width: 100%;
  height: 100%;
  fill: #d4af37;
}

@keyframes heartbeatPulse {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

/* ─── HANDWRITING REVEAL ON NAMES ─── */
.name.handwrite {
  position: relative;
  overflow: hidden;
}

.name.handwrite::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #fdf8f0;
  animation: handwriteReveal 1.5s ease forwards;
  animation-delay: inherit;
}

.name.handwrite.delay-2::after {
  animation-delay: 0.8s;
}

.name.handwrite.delay-4::after {
  animation-delay: 1.4s;
}

@keyframes handwriteReveal {
  0% { width: 100%; left: 0; }
  100% { width: 0%; left: 0; right: 0; }
}


/* ─── SAKURA / FALLING BLOSSOMS ─── */
/* DO NOT add position/sizing to .sakura-falling — the plugin handles it */
.sakura {
  background: #d4af37 !important;
  background-image: none !important;
  pointer-events: none;
  position: absolute;
}

/* ─── ORNATE GOLD FILIGREE CORNERS ─── */
.corner-svg {
  position: fixed;
  width: 280px;
  height: 280px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4))
         drop-shadow(0 0 3px rgba(212, 175, 55, 0.6));
}

.corner-tl { top: -5px; left: -5px; }
.corner-tr { top: -5px; right: -5px; }
.corner-bl { bottom: -5px; left: -5px; }
.corner-br { bottom: -5px; right: -5px; }

@media (max-width: 768px) {
  .corner-svg {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .corner-svg {
    width: 130px;
    height: 130px;
    opacity: 0.8;
  }
}

/* ═══════════════════════════
   SPLASH SCREEN
   ═══════════════════════════ */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #4a0000 0%, #1a0000 70%, #0a0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  animation: splashFadeIn 1.5s ease forwards;
}

.splash-ornament {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #d4af37;
  font-size: 14px;
  letter-spacing: 8px;
  margin: 16px 0;
  opacity: 0.8;
}

.splash-subtitle {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #f0d68a;
  margin-bottom: 8px;
  opacity: 0;
  animation: splashTextIn 1s ease 0.5s forwards;
}

.splash-title {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 42px;
  color: #f0d68a;
  margin: 4px 0;
  opacity: 0;
  animation: splashTextIn 1s ease 0.8s forwards;
}

.splash-names {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 52px;
  background: linear-gradient(90deg, #d4af37 0%, #f5e6a3 40%, #d4af37 60%, #f5e6a3 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 12px 0;
  opacity: 0;
  animation: splashTextIn 1s ease 1.1s forwards, shimmer 3s ease-in-out 2.5s infinite;
}

.splash-tap {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #f0d68a;
  opacity: 0;
  animation: splashPulse 2s ease 2.5s infinite;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes splashPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@media (max-width: 600px) {
  .splash-title { font-size: 30px; }
  .splash-names { font-size: 36px; }
  .splash-subtitle { font-size: 10px; letter-spacing: 4px; }
}

@media (max-width: 380px) {
  .splash-names { font-size: 28px; }
  .splash-title { font-size: 24px; }
}

/* ─── ORNAMENTS ─── */
.ornament {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #d4af37;
  font-size: 14px;
  letter-spacing: 8px;
  text-align: center;
  margin: 12px 0;
  -webkit-user-select: none;
  user-select: none;
}

.ornament-small {
  color: #d4af37;
  font-size: 12px;
  letter-spacing: 6px;
  text-align: center;
  margin: 8px 0;
  opacity: 0.7;
}

/* ═══════════════════════════
   HERO SECTION (compact like original)
   ═══════════════════════════ */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 20px 10px;
}

.invite-text {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #6b4444;
  margin-bottom: 10px;
}

/* ─── NAMES ─── */
.names-section {
  margin: 5px 0 10px;
}

.name {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 72px;
  line-height: 1.2;
  color: #800000;
  margin: 10px 0;
}

/* Shimmer effect */
.name.slide-up {
  background: linear-gradient(
    90deg,
    #800000 0%,
    #a52a2a 40%,
    #d4af37 50%,
    #a52a2a 60%,
    #800000 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

.ampersand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0;
}

.amp-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.ampersand {
  font-family: 'Great Vibes', cursive;
  font-size: 30px;
  color: #d4af37;
  font-weight: 400;
}

.subtitle {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 15px;
  color: #800000;
  margin: 10px 0 5px;
}

/* ═══════════════════════════
   DETAILS - inline like original
   ═══════════════════════════ */
.details {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  padding: 20px 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
}

.detail-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 24px 32px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  box-shadow: 0 4px 24px rgba(128, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(128, 0, 0, 0.12);
}

.detail-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

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

.detail-card h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 6px;
}

.detail-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #800000;
}

.detail-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  color: #6b4444;
  font-style: italic;
  margin-top: 2px;
}

.detail-time {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #d4af37;
  margin-top: 8px;
  letter-spacing: 1px;
}

.detail-time .fa {
  margin-right: 4px;
  font-size: 12px;
}

.detail-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  color: #6b4444;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* ═══════════════════════════
   RECEPTION SECTION
   ═══════════════════════════ */
.reception-section {
  text-align: center;
  padding: 10px 20px 20px;
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reception-card {
  margin-top: 12px;
  max-width: 320px;
  width: 100%;
}

/* ═══════════════════════════
   COUNTDOWN
   ═══════════════════════════ */
.countdown-section {
  text-align: center;
  padding: 20px 20px;
  width: 100%;
  max-width: 800px;
}

.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: 36px;
  color: #800000;
  margin-bottom: 6px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.countdown-item {
  background: linear-gradient(145deg, #800000, #5c0000);
  border-radius: 12px;
  padding: 20px 16px;
  min-width: 90px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(128, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.countdown-item::before {
  content: '';
	position: absolute;
	top: 0;
  left: 0;
	right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f0d68a, transparent);
}

.countdown-number {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
	display: block;
}

.countdown-label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f0d68a;
  margin-top: 6px;
	display: block;
}

.countdown-done {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
  color: #800000;
  padding: 20px;
}

/* ═══════════════════════════
   CELEBRATION TEXT
   ═══════════════════════════ */
.celebration {
  padding: 16px 20px;
  text-align: center;
}

.dance-med {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
	font-size: 32px;
  color: #800000;
}

/* ═══════════════════════════
   ACTION BUTTONS
   ═══════════════════════════ */
.actions-section {
  display: flex;
  gap: 12px;
  padding: 10px 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
	text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #800000, #5c0000);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(128, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(128, 0, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: #800000;
  border: 2px solid #800000;
}

.btn-outline:hover {
  background: #800000;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37, #b8942e);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.5);
}

/* ═══════════════════════════
   FOOTER
   ═══════════════════════════ */
.footer-section {
	text-align: center;
  padding: 30px 20px 20px;
  width: 100%;
  max-width: 600px;
}

.footer-text {
  font-size: 18px;
  font-style: italic;
  color: #6b4444;
  margin: 16px 0 8px;
  line-height: 1.6;
}

.footer-contact {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  color: #6b4444;
  margin-bottom: 16px;
}

.footer-contact a {
  color: #800000;
	text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #d4af37;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #d4af37;
}

.happiness {
  font-family: 'Great Vibes', cursive;
  color: #800000;
  font-size: 28px;
  margin: 12px 0 24px;
}

/* ═══════════════════════════
   MUSIC TOGGLE
   ═══════════════════════════ */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #800000, #5c0000);
  color: #f0d68a;
	display: flex;
  align-items: center;
	justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(128, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.music-toggle:hover {
  transform: scale(1.1);
}

.music-toggle.playing {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ═══════════════════════════
   ANIMATIONS
   ═══════════════════════════ */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }
.delay-5 { animation-delay: 1.6s; }

.name.slide-up.delay-2 {
  animation: slideUp 1s ease 0.6s forwards, shimmer 4s ease-in-out 2s infinite;
}

.name.slide-up.delay-4 {
  animation: slideUp 1s ease 1.2s forwards, shimmer 4s ease-in-out 2.5s infinite;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

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

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Scroll reveal + parallax depth */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(var(--parallax-y, 0px));
}

[data-parallax] {
  will-change: transform;
}

/* Music button glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(128, 0, 0, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(212, 175, 55, 0.5), 0 0 40px rgba(212, 175, 55, 0.2); }
}

/* ═══════════════════════════
   SAKURA PETAL ANIMATIONS
   ═══════════════════════════ */
@keyframes fall {
  0% { opacity: 0.9; top: 0; }
  100% { opacity: 0.2; top: 100%; }
}

@keyframes blow-soft-left { 0% { margin-left: 0; } 100% { margin-left: -50%; } }
@keyframes blow-medium-left { 0% { margin-left: 0; } 100% { margin-left: -100%; } }
@keyframes blow-soft-right { 0% { margin-left: 0; } 100% { margin-left: 50%; } }
@keyframes blow-medium-right { 0% { margin-left: 0; } 100% { margin-left: 100%; } }

@keyframes sway-0 { 0% { transform: rotate(-5deg); } 40% { transform: rotate(28deg); } 100% { transform: rotate(3deg); } }
@keyframes sway-1 { 0% { transform: rotate(10deg); } 40% { transform: rotate(43deg); } 100% { transform: rotate(15deg); } }
@keyframes sway-2 { 0% { transform: rotate(15deg); } 40% { transform: rotate(56deg); } 100% { transform: rotate(22deg); } }
@keyframes sway-3 { 0% { transform: rotate(25deg); } 40% { transform: rotate(74deg); } 100% { transform: rotate(37deg); } }
@keyframes sway-4 { 0% { transform: rotate(40deg); } 40% { transform: rotate(68deg); } 100% { transform: rotate(25deg); } }
@keyframes sway-5 { 0% { transform: rotate(50deg); } 40% { transform: rotate(78deg); } 100% { transform: rotate(40deg); } }
@keyframes sway-6 { 0% { transform: rotate(65deg); } 40% { transform: rotate(92deg); } 100% { transform: rotate(58deg); } }
@keyframes sway-7 { 0% { transform: rotate(72deg); } 40% { transform: rotate(118deg); } 100% { transform: rotate(68deg); } }
@keyframes sway-8 { 0% { transform: rotate(94deg); } 40% { transform: rotate(136deg); } 100% { transform: rotate(82deg); } }

/* ═══════════════════════════
   RESPONSIVE
   ═══════════════════════════ */
@media (max-width: 600px) {
  .name {
    font-size: 48px;
}

  .subtitle {
    font-size: 11px;
    letter-spacing: 4px;
}

  .details {
    flex-direction: column;
    align-items: center;
    padding: 16px;
  }

  .detail-card {
    width: 100%;
    max-width: 300px;
  }

  .reception-card {
    max-width: 300px;
  }

  .countdown-grid {
    gap: 8px;
  }

  .countdown-item {
    min-width: 72px;
    padding: 16px 12px;
  }

  .countdown-number {
    font-size: 28px;
  }

  .section-title {
    font-size: 26px;
  }

  .dance-med {
	font-size: 24px;
}

  .actions-section {
    flex-direction: column;
    align-items: center;
}

  .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .music-toggle {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 16px;
}
}

@media (max-width: 380px) {
  .name {
    font-size: 38px;
}

  .countdown-item {
    min-width: 62px;
    padding: 12px 8px;
  }

  .countdown-number {
    font-size: 24px;
}
}
