@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --deep-space: #050a1a;
  --cosmic-navy: #0a0e27;
  --nebula-dark: #0d1b3e;
  --nebula-purple: #1a0533;
  --star-white: #f0f0ff;
  --gold-accent: #ffd700;
  --cyan-glow: #00e5ff;
  --purple-glow: #b388ff;
  --pink-nebula: #ff6ec7;
  --blue-accent: #4fc3f7;
  --card-bg: rgba(13, 27, 62, 0.6);
  --card-border: rgba(79, 195, 247, 0.2);
  --glass-bg: rgba(10, 14, 39, 0.7);
  --text-primary: #e8eaf6;
  --text-secondary: #b0bec5;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--deep-space);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== STAR BACKGROUND ===== */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stars-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background-repeat: repeat;
  will-change: transform;
}

.stars-layer.layer-1 {
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 25% 50%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 40% 15%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 55% 75%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 50% 30%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 90% 10%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 35% 90%, rgba(255, 255, 255, 0.6), transparent);
  background-size: 300px 300px;
  animation: scrollStars 80s linear infinite;
}

.stars-layer.layer-2 {
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(79, 195, 247, 0.8), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(179, 136, 255, 0.7), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(255, 215, 0, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 45% 55%, rgba(0, 229, 255, 0.8), transparent),
    radial-gradient(2px 2px at 10% 65%, rgba(255, 110, 199, 0.5), transparent);
  background-size: 400px 400px;
  animation: scrollStars 120s linear infinite;
}

.stars-layer.layer-3 {
  background-image:
    radial-gradient(2.5px 2.5px at 30% 45%, rgba(255, 255, 255, 1), transparent),
    radial-gradient(3px 3px at 75% 25%, rgba(79, 195, 247, 0.9), transparent),
    radial-gradient(2.5px 2.5px at 50% 80%, rgba(255, 215, 0, 0.8), transparent);
  background-size: 500px 500px;
  animation: twinkle 4s ease-in-out infinite alternate, scrollStars 150s linear infinite;
}

@keyframes scrollStars {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

/* ===== METEOR / KOMET ===== */
.meteor {
  position: fixed;
  width: 2px;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  border-radius: 50% 50% 0 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.8));
  will-change: transform, opacity;
}

.meteor::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 15px 3px rgba(0, 229, 255, 1);
}

.meteor:nth-child(4) {
  top: -100px;
  right: 15%;
  animation: meteorFall 7s linear infinite 1s;
}

.meteor:nth-child(5) {
  top: -100px;
  right: 45%;
  animation: meteorFall 9s linear infinite 4s;
}

.meteor:nth-child(6) {
  top: -100px;
  right: 75%;
  animation: meteorFall 11s linear infinite 7s;
}

.meteor:nth-child(7) {
  top: -100px;
  right: 5%;
  animation: meteorFall 8s linear infinite 12s;
}

@keyframes meteorFall {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(225deg);
  }

  10% {
    opacity: 1;
  }

  20% {
    opacity: 0;
    transform: translate(-600px, 600px) rotate(225deg);
  }

  100% {
    opacity: 0;
    transform: translate(-600px, 600px) rotate(225deg);
  }
}

/* ===== NEBULA EFFECT ===== */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.nebula-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
  top: -200px;
  right: -200px;
  animation: nebulaPulse 8s ease-in-out infinite alternate;
}

.nebula-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: nebulaPulse 10s ease-in-out infinite alternate-reverse;
}

.nebula-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--pink-nebula), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: nebulaPulse 12s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
  0% {
    opacity: 0.08;
    transform: scale(1);
  }

  100% {
    opacity: 0.2;
    transform: scale(1.15);
  }
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--deep-space);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-rocket-container {
  animation: rocketFloat 2s ease-in-out infinite;
}

.loading-rocket-svg {
  filter: drop-shadow(0 0 20px rgba(255, 111, 0, 0.4));
}

.flame-main {
  animation: flameFlicker 0.3s ease-in-out infinite alternate;
}

.flame-inner {
  animation: flameFlicker 0.2s ease-in-out infinite alternate-reverse;
}

.flame-side {
  animation: flameFlicker 0.25s ease-in-out infinite alternate;
}

@keyframes rocketFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes flameFlicker {
  from {
    transform: scaleY(0.9) scaleX(0.95);
  }

  to {
    transform: scaleY(1.1) scaleX(1.05);
  }
}

.loading-text {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--cyan-glow);
  margin-top: 1.5rem;
  letter-spacing: 4px;
}

.loading-dots {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--cyan-glow);
  margin-top: 0.3rem;
}

.loading-dots span {
  animation: dotPulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.3s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes dotPulse {

  0%,
  60%,
  100% {
    opacity: 0.2;
  }

  30% {
    opacity: 1;
  }
}

/* ===== COVER SECTION ===== */
.cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center bottom, #0d1b3e 0%, #050a1a 70%);
  transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.8s ease;
  overflow: hidden;
  padding: 1rem;
}

.cover.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Orbit rings */
.orbit-ring {
  position: absolute;
  border: 1px solid rgba(79, 195, 247, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-1 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbitSpin 30s linear infinite;
}

.orbit-2 {
  width: 550px;
  height: 550px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbitSpin 45s linear infinite reverse;
  border-style: dashed;
  border-color: rgba(179, 136, 255, 0.06);
}

@keyframes orbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.cover-planet {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: planetGlow 4s ease-in-out infinite alternate;
}

.cover-planet-1 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 30% 30%, #ff9e80, #e65100);
  top: 8%;
  right: -20px;
  box-shadow: inset -15px -10px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 158, 128, 0.3);
  animation: planetFloat1 12s ease-in-out infinite;
}

.cover-planet-2 {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, #b388ff, #4a148c);
  bottom: 20%;
  left: 5%;
  box-shadow: inset -10px -8px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(179, 136, 255, 0.3);
  animation: planetFloat2 10s ease-in-out infinite;
}

.cover-planet-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 35% 35%, #4fc3f7, #01579b);
  bottom: -80px;
  right: -50px;
  box-shadow: inset -20px -15px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(79, 195, 247, 0.2);
  animation: planetFloat1 15s ease-in-out infinite, planetSpin 40s linear infinite;
}

.cover-planet-3::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 25px;
  background: linear-gradient(180deg, transparent 25%, rgba(79, 195, 247, 0.25) 50%, transparent 75%);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
}

@keyframes planetFloat1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-8px, 12px);
  }
}

@keyframes planetFloat2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(10px, -8px);
  }
}

@keyframes planetGlow {
  0% {
    filter: brightness(1) drop-shadow(0 0 5px rgba(79, 195, 247, 0.2));
  }

  100% {
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(79, 195, 247, 0.5));
  }
}

@keyframes planetSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Cover astronaut */
.cover-astronaut {
  margin-bottom: 0.5rem;
  animation: floatAstronaut 6s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.25));
}

@keyframes floatAstronaut {

  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  25% {
    transform: translateY(-12px) rotate(0deg);
  }

  50% {
    transform: translateY(-4px) rotate(3deg);
  }

  75% {
    transform: translateY(-16px) rotate(0deg);
  }
}

.cover-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  color: var(--cyan-glow);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0.9;
}

.cover-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-accent);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
  direction: rtl;
}

.cover-subtitle {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.5), 0 0 60px rgba(0, 229, 255, 0.2);
  margin-bottom: 0.4rem;
  letter-spacing: 3px;
}

.cover-date {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--blue-accent);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.date-icon {
  opacity: 0.7;
  font-size: 0.75rem;
}

.cover-guest {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.cover-guest-name {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-accent);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.btn-open {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--deep-space);
  background: linear-gradient(135deg, var(--cyan-glow), var(--blue-accent));
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), 0 0 40px rgba(0, 229, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-open:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.6), 0 0 60px rgba(0, 229, 255, 0.2);
}

.btn-open:active {
  transform: scale(0.98);
}

.btn-rocket {
  font-size: 1.1rem;
  display: inline-block;
  animation: rocketPulse 2s ease-in-out infinite;
}

@keyframes rocketPulse {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(3px);
  }
}

.btn-open::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(45deg);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0% {
    transform: translateX(-200%) rotate(45deg);
  }

  30%,
  100% {
    transform: translateX(200%) rotate(45deg);
  }
}

/* ===== MAIN CONTENT ===== */
.main-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease 0.5s, visibility 0s linear 0s;
}

.main-content.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== COMMON SECTION STYLES ===== */
.section {
  padding: 70px 20px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.section-icon {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.3));
}

/* ===== MOON ASTRONAUT SCENE ===== */
.moon-astronaut-scene {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem auto;
  animation: floatMoon 6s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.25));
}

.astro-wave {
  transform-origin: 40px 30px;
  animation: waveHand 1.5s ease-in-out infinite alternate;
}

@keyframes floatMoon {

  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@keyframes waveHand {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-15deg);
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: center;
  color: var(--gold-accent);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
  margin: 0.5rem auto 2rem;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for cards */
.fade-in[data-delay="150"] {
  transition-delay: 0.15s;
}

.fade-in[data-delay="300"] {
  transition-delay: 0.3s;
}

/* ===== OPENING SECTION ===== */
.section-opening {
  text-align: center;
  padding-top: 60px;
}

.bismillah {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--gold-accent);
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
  direction: rtl;
}

.salam {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.opening-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto;
}

.child-name-highlight {
  display: inline-block;
  padding: 14px 30px;
  margin: 1.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(179, 136, 255, 0.12));
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.08), inset 0 0 30px rgba(0, 229, 255, 0.03);
  backdrop-filter: blur(12px);
  position: relative;
}

.star-decor {
  color: var(--gold-accent);
  font-size: 1rem;
  vertical-align: middle;
  margin: 0 4px;
  opacity: 0.8;
}

.parents-info {
  margin-top: 1.5rem;
}

.parents-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.parent-card {
  padding: 1rem;
  background: rgba(13, 27, 62, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(79, 195, 247, 0.08);
}

.parent-name {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan-glow);
  margin-bottom: 0.2rem;
}

.parent-alias {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.parent-family {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.parents-separator {
  padding: 0.5rem 0;
}

.amp-glow {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--purple-glow);
  text-shadow: 0 0 10px rgba(179, 136, 255, 0.3);
}

/* ===== EVENT DETAILS ===== */
.event-cards {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.event-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.3rem;
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), var(--purple-glow), transparent);
}

.event-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
}

.event-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.event-card-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  color: var(--cyan-glow);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.event-card-value {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.event-card-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.event-card-hijri {
  font-size: 0.75rem;
  color: var(--purple-glow);
  margin-top: 0.3rem;
  font-style: italic;
}

/* ===== GALLERY (Single Photo) ===== */
.gallery-single {
  text-align: center;
}

.gallery-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--card-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 229, 255, 0.06);
  position: relative;
  max-width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.1);
}

.gallery-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-frame:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 1rem;
  letter-spacing: 1px;
}

/* ===== ENTERTAINMENT ===== */
.entertainment-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 110, 199, 0.06));
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.entertainment-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), transparent 50%, rgba(255, 110, 199, 0.2));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.entertainment-card:hover::before {
  opacity: 1;
}

.entertainment-badge {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  letter-spacing: 3px;
  color: var(--gold-accent);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
}

.entertainment-emoji {
  font-size: 3rem;
  margin-bottom: 0.8rem;
  animation: floatAstronaut 4s ease-in-out infinite;
}

.entertainment-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  line-height: 1.5;
}

.entertainment-divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 215, 0, 0.3);
  margin: 0 auto 0.8rem;
}

.entertainment-from {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  justify-content: center;
}

.turut-mengundang {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

.turut-name {
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.3rem;
  font-style: normal;
}

/* ===== COUNTDOWN ===== */
.countdown-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}

.countdown-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem 0.4rem;
  text-align: center;
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.countdown-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-glow), var(--purple-glow));
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan-glow);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
  line-height: 1;
  display: block;
  transition: transform 0.3s ease;
}

.countdown-number.tick {
  animation: countTick 0.4s ease;
}

@keyframes countTick {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.countdown-label {
  font-family: var(--font-accent);
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.3rem;
  display: block;
}

.countdown-message {
  text-align: center;
  margin-top: 1.2rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--purple-glow);
  font-style: italic;
}

/* ===== LOCATION ===== */
.location-address {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(15px);
  margin-bottom: 1rem;
}

.location-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-top: 0.5rem;
}

.location-text strong {
  color: var(--cyan-glow);
  font-weight: 600;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-bottom: 1rem;
}

.map-container iframe {
  border-radius: 16px;
}

.location-buttons {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-location {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--card-border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--card-bg);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-location:hover {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
  transform: translateY(-2px);
}

.btn-copy-location.copied {
  border-color: #4caf50;
  color: #81c784;
}

/* ===== RSVP / UCAPAN ===== */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  position: relative;
}

.form-group label {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  color: var(--cyan-glow);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(13, 27, 62, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(176, 190, 197, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300e5ff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-group select option {
  background: var(--cosmic-navy);
  color: var(--text-primary);
}

.btn-submit {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--purple-glow), var(--cyan-glow));
  color: var(--deep-space);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(179, 136, 255, 0.25);
  align-self: center;
}

.btn-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(179, 136, 255, 0.4);
}

.btn-submit:active {
  transform: scale(0.97);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Ucapan List */
.ucapan-list {
  margin-top: 2rem;
}

.ucapan-list-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--gold-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ucapan-count {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-secondary);
  background: rgba(0, 229, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.ucapan-container {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
}

.ucapan-container::-webkit-scrollbar {
  width: 3px;
}

.ucapan-container::-webkit-scrollbar-track {
  background: rgba(13, 27, 62, 0.5);
  border-radius: 3px;
}

.ucapan-container::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 3px;
}

.ucapan-item {
  background: rgba(13, 27, 62, 0.4);
  border: 1px solid rgba(79, 195, 247, 0.08);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 0.6rem;
  animation: fadeInUp 0.5s ease;
}

.ucapan-item:first-child {
  border-color: rgba(0, 229, 255, 0.15);
  background: rgba(13, 27, 62, 0.6);
}

.ucapan-name {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan-glow);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ucapan-name .badge {
  font-size: 0.55rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 500;
  font-family: var(--font-body);
}

.badge-hadir {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.badge-tidak {
  background: rgba(244, 67, 54, 0.15);
  color: #e57373;
  border: 1px solid rgba(244, 67, 54, 0.25);
}

.badge-ragu {
  background: rgba(255, 193, 7, 0.15);
  color: #ffd54f;
  border: 1px solid rgba(255, 193, 7, 0.25);
}

.ucapan-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ucapan-time {
  font-size: 0.65rem;
  color: rgba(176, 190, 197, 0.4);
  margin-top: 0.3rem;
}

.no-ucapan {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-style: italic;
  padding: 2rem;
  opacity: 0.5;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CLOSING ===== */
.section-closing {
  text-align: center;
  padding-bottom: 100px;
}

.closing-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.closing-salam {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.closing-family {
  padding: 1.5rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(15px);
  display: inline-block;
}

.closing-hormat {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.closing-family-name {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan-glow);
}

.closing-amp {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--purple-glow);
  margin: 0.2rem 0;
  display: block;
}

.closing-family-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ===== SHARE BUTTONS ===== */
.share-section {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-share {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--card-border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--card-bg);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-share:hover {
  transform: translateY(-2px);
}

.btn-share.whatsapp:hover {
  border-color: #25d366;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
  color: #25d366;
}

.btn-share.calendar:hover {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

/* ===== AUDIO BUTTON ===== */
.audio-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 8000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(15px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.1);
  opacity: 0;
  visibility: hidden;
}

.audio-btn.show {
  opacity: 1;
  visibility: visible;
}

.audio-btn:hover {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
  transform: scale(1.08);
}

.audio-btn.playing {
  animation: pulseAudio 2s ease-in-out infinite;
}

@keyframes pulseAudio {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.1);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35), 0 0 35px rgba(0, 229, 255, 0.08);
  }
}

/* ===== NAV DOTS ===== */
.nav-dots {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-dots.show {
  opacity: 1;
  visibility: visible;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.2);
  border: 1px solid rgba(79, 195, 247, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.nav-dot.active {
  background: var(--cyan-glow);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  transform: scale(1.3);
}

.nav-dot:hover {
  background: rgba(0, 229, 255, 0.5);
  transform: scale(1.2);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(79, 195, 247, 0.08);
  position: relative;
  z-index: 2;
}

.footer-rocket {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  animation: floatAstronaut 4s ease-in-out infinite;
}

.footer-text {
  font-size: 0.68rem;
  color: rgba(176, 190, 197, 0.35);
  letter-spacing: 1px;
}

.footer-year {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: rgba(176, 190, 197, 0.2);
  margin-top: 0.3rem;
  letter-spacing: 2px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card-bg);
  border: 1px solid var(--cyan-glow);
  color: var(--text-primary);
  padding: 11px 22px;
  border-radius: 12px;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.15);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== PARTICLE CANVAS ===== */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .cover-astronaut svg {
    width: 90px;
    height: 112px;
  }

  .cover-title {
    font-size: 1.2rem;
  }

  .cover-subtitle {
    font-size: 1.7rem;
  }

  .cover-label {
    font-size: 0.65rem;
    letter-spacing: 4px;
  }

  .btn-open {
    padding: 12px 24px;
    font-size: 0.72rem;
  }

  .section {
    padding: 55px 16px;
  }

  .section-title {
    font-size: 0.95rem;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .countdown-wrapper {
    gap: 7px;
  }

  .countdown-item {
    padding: 0.8rem 0.3rem;
  }

  .child-name-highlight {
    font-size: 1.3rem;
    padding: 10px 20px;
  }

  .event-card {
    padding: 1rem;
  }

  .entertainment-card {
    padding: 1.5rem 1rem;
  }

  .nav-dots {
    right: 6px;
    gap: 8px;
  }

  .nav-dot {
    width: 6px;
    height: 6px;
  }

  .share-section {
    flex-direction: column;
    align-items: center;
  }

  .location-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 375px) {
  .cover-astronaut svg {
    width: 75px;
    height: 95px;
  }

  .cover-title {
    font-size: 1.05rem;
  }

  .cover-subtitle {
    font-size: 1.5rem;
  }

  .countdown-number {
    font-size: 1.3rem;
  }

  .countdown-label {
    font-size: 0.5rem;
  }

  .section {
    padding: 45px 14px;
  }

  .bismillah {
    font-size: 1.4rem;
  }
}

@media (min-width: 768px) {
  .section {
    max-width: 650px;
  }

  .cover-astronaut svg {
    width: 140px;
    height: 175px;
  }

  .cover-title {
    font-size: 1.8rem;
  }

  .cover-subtitle {
    font-size: 2.6rem;
  }

  .event-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .event-card {
    flex: 1;
    min-width: 180px;
  }

  .countdown-number {
    font-size: 2.2rem;
  }
}

@media (min-width: 1024px) {
  .section {
    max-width: 700px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .stars-layer {
    animation: none !important;
  }

  .nebula {
    animation: none !important;
  }

  .shooting-star {
    display: none !important;
  }
}