/* ================================================================
   KHITANAN INVITATION — style.css
   Islamic Modern Minimalist Theme
   Author: Generated for Muhammad Mashendri & Wantu Priliyanti
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ---------------------------------------------------------------- */
:root {
  /* Colors */
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-200: #a7f3d0;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-emerald-700: #047857;
  --color-emerald-800: #065f46;
  --color-emerald-900: #064e3b;

  --color-gold-100: #fef9c3;
  --color-gold-300: #fde047;
  --color-gold-400: #facc15;
  --color-gold-500: #c9a84c;
  --color-gold-600: #b7922c;
  --color-gold-700: #92400e;

  --color-white: #ffffff;
  --color-off-white: #fafafa;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-arabic: 'Amiri', 'Times New Roman', serif;
  --font-body: 'Poppins', -apple-system, sans-serif;

  /* Font Sizes (fluid clamp) */
  --fs-xs: clamp(0.7rem, 1.5vw, 0.75rem);
  --fs-sm: clamp(0.8rem, 2vw, 0.875rem);
  --fs-base: clamp(0.9rem, 2.5vw, 1rem);
  --fs-lg: clamp(1rem, 3vw, 1.125rem);
  --fs-xl: clamp(1.1rem, 3.5vw, 1.25rem);
  --fs-2xl: clamp(1.25rem, 4vw, 1.5rem);
  --fs-3xl: clamp(1.5rem, 5vw, 1.875rem);
  --fs-4xl: clamp(1.75rem, 6vw, 2.25rem);
  --fs-5xl: clamp(2rem, 7vw, 3rem);
  --fs-6xl: clamp(2.5rem, 9vw, 4rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-emerald: 0 8px 30px rgba(16, 185, 129, 0.25);
  --shadow-gold: 0 8px 30px rgba(201, 168, 76, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index layers */
  --z-base: 1;
  --z-float: 10;
  --z-nav: 50;
  --z-overlay: 100;
  --z-modal: 200;
  --z-toast: 300;
  --z-top: 400;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-gray-700);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: var(--font-body);
}

/* Utility */
.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ----------------------------------------------------------------
   3. GEOMETRIC BACKGROUND PATTERN (SVG-based)
   ---------------------------------------------------------------- */
.section-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%2310b981' stroke-width='0.4' opacity='0.12'/%3E%3Ccircle cx='40' cy='40' r='15' fill='none' stroke='%2310b981' stroke-width='0.4' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* ----------------------------------------------------------------
   4. OPENING SCREEN
   ---------------------------------------------------------------- */
.opening-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg,
      var(--color-emerald-900) 0%,
      var(--color-emerald-800) 40%,
      var(--color-emerald-700) 100%);
  z-index: var(--z-top);
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.opening-screen.closing {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

/* Geometric animated circles */
.geometric-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.geo-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  animation: geoRotate 20s linear infinite;
}

.geo-circle--1 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 30s;
}

.geo-circle--2 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(201, 168, 76, 0.15);
  animation-duration: 20s;
  animation-direction: reverse;
}

.geo-circle--3 {
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(201, 168, 76, 0.08);
  animation-duration: 40s;
}

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

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Ornaments */
.ornament {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
}

.ornament--top {
  top: 0;
}

.ornament--bottom {
  bottom: 0;
  transform: scaleY(-1);
}

.ornament svg {
  width: 100%;
  display: block;
}

/* Floating Lanterns */
.lanterns {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lantern {
  position: absolute;
  color: var(--color-gold-500);
  font-size: 1.5rem;
  opacity: 0.5;
  animation: floatLantern 6s ease-in-out infinite;
}

.lantern--1 {
  top: 15%;
  left: 8%;
  font-size: 1.2rem;
  animation-delay: 0s;
  animation-duration: 7s;
}

.lantern--2 {
  top: 20%;
  right: 10%;
  font-size: 1.8rem;
  animation-delay: 2s;
  animation-duration: 9s;
}

.lantern--3 {
  bottom: 20%;
  left: 12%;
  font-size: 1rem;
  animation-delay: 4s;
  animation-duration: 6s;
}

@keyframes floatLantern {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.8;
  }
}

/* Opening Content */
.opening-content {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.bismillah-text {
  font-family: var(--font-arabic);
  font-size: var(--fs-2xl);
  color: var(--color-gold-500);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.opening-label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--color-emerald-200);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.opening-title {
  font-family: var(--font-display);
  font-size: var(--fs-6xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.opening-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 280px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-500), transparent);
}

.divider-icon {
  color: var(--color-gold-500);
  font-size: var(--fs-base);
}

.opening-name {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 600;
  font-style: italic;
  color: var(--color-gold-400);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.opening-date {
  font-size: var(--fs-sm);
  color: var(--color-emerald-200);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  letter-spacing: 0.05em;
}

/* Guest Greeting */
.guest-greeting {
  margin-top: var(--space-4);
  animation: fadeInUp 1s ease both 0.3s;
}

.guest-label {
  font-size: var(--fs-xs);
  color: var(--color-emerald-200);
  margin-bottom: var(--space-1);
}

.guest-name {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-gold-400);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.guest-disclaimer {
  font-size: 0.75rem;
  color: var(--color-emerald-200);
  opacity: 0.8;
  margin-top: var(--space-2);
  font-style: italic;
  max-width: 80%;
  margin-inline: auto;
}

.btn-open {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-600));
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold), 0 0 0 0 rgba(201, 168, 76, 0.4);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  animation: pulse 2.5s ease infinite;
}

.btn-open:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-gold), 0 8px 40px rgba(201, 168, 76, 0.45);
  animation: none;
}

.btn-open:active {
  transform: translateY(0) scale(0.98);
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: var(--shadow-gold), 0 0 0 0 rgba(201, 168, 76, 0.4);
  }

  50% {
    box-shadow: var(--shadow-gold), 0 0 0 12px rgba(201, 168, 76, 0);
  }
}

/* ----------------------------------------------------------------
   5. MAIN CONTENT
   ---------------------------------------------------------------- */
.main-content {
  position: relative;
  z-index: var(--z-base);
}

/* ----------------------------------------------------------------
   6. FLOATING UI ELEMENTS
   ---------------------------------------------------------------- */

/* Music Player */
.music-player {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  z-index: var(--z-float);
}

.music-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-emerald-600), var(--color-emerald-700));
  color: var(--color-white);
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-emerald);
}

.music-btn.playing #music-icon {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Share Button */
.share-btn {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-float);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-600));
  color: var(--color-white);
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.45);
}

/* Navigation Tabs (Floating Bottom) */
.nav-dots {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-nav);
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  gap: 0.5rem;
  align-items: center;
  border: 1px solid rgba(16, 185, 129, 0.1);
  width: max-content;
  max-width: 95%;
}

@media (max-width: 767px) {
  .nav-dots {
    width: 95%;
    max-width: 500px;
    justify-content: space-between;
    padding: 0.4rem 0.5rem;
    gap: 0;
  }
  .music-player {
    bottom: 90px;
    left: var(--space-4);
  }
  .share-btn {
    bottom: 90px;
    right: var(--space-4);
  }
}

.nav-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--color-gray-400);
  transition: color var(--transition-base), transform var(--transition-base);
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0 0.4rem;
  flex: 1;
}

.nav-dot i {
  font-size: 1.15rem;
  margin-bottom: 0;
}

.nav-dot span {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-dot.active {
  color: var(--color-emerald-600);
  transform: translateY(-2px);
  background: transparent;
}

.nav-dot:hover {
  color: var(--color-gold-500);
  transform: translateY(-2px);
  background: transparent;
}

/* ----------------------------------------------------------------
   7. SECTIONS — SHARED STYLES
   ---------------------------------------------------------------- */
.section {
  position: relative;
  padding: var(--space-20) 0;
  overflow: hidden;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-emerald-600);
  margin-bottom: var(--space-2);
}

.section-label.light {
  color: var(--color-emerald-200);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--color-gray-800);
  line-height: 1.2;
}

.section-title.light {
  color: var(--color-white);
}

.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.title-divider span {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--color-emerald-400);
}

.title-divider i {
  color: var(--color-gold-500);
  font-size: var(--fs-sm);
}

.title-divider.light span {
  background: rgba(255, 255, 255, 0.4);
}

.title-divider.light i {
  color: var(--color-gold-400);
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   8. HERO SECTION
   ---------------------------------------------------------------- */
.hero-section {
  background: var(--color-off-white);
  text-align: center;
}

.hero-section .container {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.arabic-greeting {
  font-family: var(--font-arabic);
  font-size: var(--fs-3xl);
  color: var(--color-emerald-700);
  line-height: 1.8;
  text-align: center;
}

.greeting-translation {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
  font-style: italic;
  margin-top: calc(-1 * var(--space-4));
}

/* Photo Frame */
.hero-photo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
}

.photo-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
  animation: ringRotate 8s linear infinite;
}

.photo-ring--outer {
  inset: -12px;
  border-width: 2px;
  border-top-color: var(--color-gold-500);
  border-right-color: var(--color-gold-500);
  animation-duration: 12s;
}

.photo-ring--inner {
  inset: -6px;
  border-width: 1px;
  border-bottom-color: var(--color-emerald-500);
  border-left-color: var(--color-emerald-500);
  animation-direction: reverse;
  animation-duration: 8s;
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-xl), 0 0 0 6px var(--color-emerald-100);
}

.photo-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-600));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--color-white);
}

/* Hero Text */
.hero-text {
  max-width: 540px;
}

.hero-label {
  font-size: var(--fs-sm);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-parents {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--color-gray-700);
  margin-top: var(--space-1);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-4) auto;
  max-width: 240px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: 700;
  color: var(--color-emerald-700);
  line-height: 1.1;
}

.hero-welcome {
  margin-top: var(--space-5);
  color: var(--color-gray-500);
  font-size: var(--fs-sm);
  line-height: 1.9;
  max-width: 460px;
  margin-inline: auto;
}

/* ----------------------------------------------------------------
   9. EVENT DETAILS SECTION
   ---------------------------------------------------------------- */
.event-section {
  background: var(--color-white);
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.event-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-emerald-100);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--color-emerald-200);
}

.event-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-emerald-500), var(--color-emerald-600));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  box-shadow: var(--shadow-emerald);
}

.event-card-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gray-400);
  margin-bottom: var(--space-2);
}

.event-card-value {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-gray-800);
  line-height: 1.4;
}

.event-card-sub {
  font-size: var(--fs-xs);
  color: var(--color-gray-400);
  margin-top: var(--space-1);
}

/* Quranic Verse */
.quran-verse {
  margin-top: var(--space-12);
  text-align: center;
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--color-emerald-50), var(--color-gold-100));
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-emerald-100);
}

.arabic-verse {
  font-family: var(--font-arabic);
  font-size: var(--fs-2xl);
  color: var(--color-emerald-800);
  line-height: 2;
}

.verse-translation {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-gray-600);
  font-style: italic;
  max-width: 500px;
  margin-inline: auto;
}

.verse-source {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-emerald-600);
  letter-spacing: 0.1em;
}

/* ----------------------------------------------------------------
   10. COUNTDOWN SECTION
   ---------------------------------------------------------------- */
.countdown-section {
  background: linear-gradient(160deg, var(--color-emerald-900), var(--color-emerald-800));
  color: var(--color-white);
  padding: var(--space-20) 0;
}

.countdown-bg {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  min-width: 70px;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  min-width: 70px;
  line-height: 1;
  display: block;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}

.countdown-number.bump {
  transform: scale(1.08);
}

.countdown-label {
  margin-top: var(--space-2);
  font-size: clamp(0.6rem, 1.2vw, 0.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-emerald-200);
}

.countdown-separator {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--color-gold-400);
  line-height: 1;
  margin-bottom: var(--space-4);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.countdown-message {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--fs-lg);
  color: var(--color-gold-400);
  font-style: italic;
  font-family: var(--font-display);
}

/* ----------------------------------------------------------------
   11. LOCATION SECTION
   ---------------------------------------------------------------- */
.location-section {
  background: var(--color-gray-50);
}

.location-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-emerald-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.location-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-emerald-500), var(--color-emerald-600));
  color: var(--color-white);
  font-size: var(--fs-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-emerald);
}

.location-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-gray-800);
  margin-bottom: var(--space-2);
}

.location-address {
  font-size: var(--fs-base);
  color: var(--color-gray-600);
  line-height: 1.7;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* Map Placeholder */
.map-embed-wrapper {
  margin-top: var(--space-8);
}

.map-placeholder {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px dashed var(--color-emerald-200);
  background: var(--color-emerald-50);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder-inner {
  text-align: center;
  color: var(--color-gray-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.map-placeholder-icon {
  font-size: 3rem;
  color: var(--color-emerald-400);
}

/* ----------------------------------------------------------------
   12. BUTTONS — SHARED SYSTEM
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-emerald-500), var(--color-emerald-600));
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-emerald);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-emerald-600), var(--color-emerald-700));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-emerald-600);
  border-color: var(--color-emerald-400);
}

.btn--outline:hover {
  background: var(--color-emerald-50);
  transform: translateY(-2px);
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-600));
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  background: linear-gradient(135deg, var(--color-gold-600), var(--color-gold-700));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.4);
}

.btn--whatsapp {
  background: linear-gradient(135deg, var(--color-whatsapp), var(--color-whatsapp-dark));
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.btn--full {
  width: 100%;
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
}

.btn:active {
  transform: scale(0.97);
}

/* ----------------------------------------------------------------
   13. GALLERY SECTION
   ---------------------------------------------------------------- */
.gallery-section {
  background: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.gallery-item-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.gallery-item-inner:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 78, 59, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--fs-2xl);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-lg);
}

.gallery-item-inner:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  color: var(--color-white);
  font-size: 2.5rem;
  line-height: 1;
  padding: var(--space-2);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }
}

/* ----------------------------------------------------------------
   13.5. GIFT SECTION
   ---------------------------------------------------------------- */
.gift-section {
  background: var(--color-white);
  text-align: center;
}

.gift-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gold-100);
}

.gift-text {
  font-size: var(--fs-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.bank-details {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-gold-300);
}

.gift-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bank-logo {
  height: 96px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  margin-inline: auto;
}

.bank-name {
  font-family: var(--font-display);
  color: var(--color-emerald-800);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bank-account {
  font-family: monospace;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--color-gray-900);
  font-weight: 600;
  margin: 0.5rem 0;
}

.bank-holder {
  font-size: var(--fs-sm);
  color: var(--color-gray-600);
}

.gift-copy-btn {
  margin-top: 1rem;
}

/* ----------------------------------------------------------------
   14. WISHES SECTION
   ---------------------------------------------------------------- */
.wishes-section {
  background: var(--color-gray-50);
}

/* Form */
.wish-form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-emerald-100);
  max-width: 620px;
  margin-inline: auto;
}

.form-group {
  margin-bottom: var(--space-5);
  position: relative;
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-gray-800);
  background: var(--color-gray-50);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-emerald-500);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.char-count {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--color-gray-400);
  pointer-events: none;
}

/* Wishes List */
.wishes-list {
  margin-top: var(--space-10);
  max-width: 620px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.wish-item {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  border-left: 4px solid var(--color-emerald-400);
  animation: slideInWish 0.4s ease both;
}

@keyframes slideInWish {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wish-item-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.wish-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-emerald-500), var(--color-emerald-700));
  color: var(--color-white);
  font-size: var(--fs-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wish-name {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-gray-800);
}

.wish-time {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--color-gray-400);
  white-space: nowrap;
}

.wish-message {
  font-size: var(--fs-sm);
  color: var(--color-gray-600);
  line-height: 1.7;
}

.wishes-empty {
  text-align: center;
  color: var(--color-gray-400);
  font-style: italic;
  padding: var(--space-8);
}

/* ----------------------------------------------------------------
   15. RSVP SECTION
   ---------------------------------------------------------------- */
.rsvp-section {
  background: linear-gradient(160deg, var(--color-emerald-900), var(--color-emerald-800));
  color: var(--color-white);
}

.rsvp-bg {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

.rsvp-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 520px;
  margin-inline: auto;
  backdrop-filter: blur(12px);
}

.rsvp-card .form-label {
  color: rgba(255, 255, 255, 0.85);
}

.rsvp-card .form-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.rsvp-card .form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.rsvp-card .form-input:focus {
  border-color: var(--color-gold-400);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2);
}

/* Attendance options */
.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.attendance-option {
  cursor: pointer;
}

.attendance-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.attendance-option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
  text-align: center;
}

.attendance-option input[type="radio"]:checked+.attendance-option-content {
  border-color: var(--color-gold-400);
  background: rgba(201, 168, 76, 0.15);
}

.attendance-option:hover .attendance-option-content {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.attendance-icon {
  font-size: var(--fs-2xl);
  color: var(--color-gold-400);
}

.attendance-text {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-white);
}

/* RSVP Stats */
.rsvp-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.rsvp-stat {
  text-align: center;
}

.rsvp-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--color-gold-400);
  line-height: 1;
}

.rsvp-stat-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-emerald-200);
  margin-top: var(--space-1);
  display: block;
}

.rsvp-stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------------------------------
   16. CONTACT SECTION
   ---------------------------------------------------------------- */
.contact-section {
  background: var(--color-white);
}

.contact-card {
  max-width: 500px;
  margin-inline: auto;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-emerald-100);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.contact-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-emerald-500), var(--color-emerald-700));
  color: var(--color-white);
  font-size: var(--fs-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-emerald);
}

.contact-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-gray-800);
}

.contact-role {
  font-size: var(--fs-sm);
  color: var(--color-gray-400);
}

.contact-number {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-emerald-600);
  font-weight: 500;
  margin-top: var(--space-2);
}

/* ----------------------------------------------------------------
   17. CLOSING SECTION
   ---------------------------------------------------------------- */
.closing-section {
  background: linear-gradient(160deg, var(--color-emerald-900), var(--color-emerald-800) 60%, var(--color-emerald-700));
  color: var(--color-white);
  text-align: center;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.closing-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%23c9a84c' stroke-width='0.5' opacity='0.12'/%3E%3Ccircle cx='40' cy='40' r='20' fill='none' stroke='%23c9a84c' stroke-width='0.4' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

.closing-lanterns {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.closing-lanterns .lantern--1 {
  top: 5%;
  left: 5%;
}

.closing-lanterns .lantern--2 {
  top: 10%;
  right: 8%;
}

.closing-lanterns .lantern--3 {
  bottom: 25%;
  left: 15%;
}

.closing-content {
  position: relative;
  z-index: var(--z-base);
  padding: var(--space-20) 0 var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.closing-arabic {
  font-family: var(--font-arabic);
  font-size: var(--fs-3xl);
  color: var(--color-gold-400);
  line-height: 1.8;
}

.closing-title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--color-white);
}

.closing-message {
  max-width: 560px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
}

.closing-family {
  margin-top: var(--space-4);
  padding: var(--space-6) var(--space-10);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

.closing-family-label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.closing-family-name {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-gold-400);
  margin-top: var(--space-1);
}

.closing-family-sub {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-1);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.2);
  padding: var(--space-5) var(--space-6) 100px var(--space-6);
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
}

.footer .fa-heart {
  color: #f87171;
  font-size: 0.8em;
}

.footer-year {
  margin-top: var(--space-1);
}

/* ----------------------------------------------------------------
   18. TOAST NOTIFICATION
   ---------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: var(--z-toast);
  background: var(--color-gray-800);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: calc(100vw - 2rem);
  white-space: normal;
  text-align: center;
}

.toast.hidden {
  display: none !important;
}

.toast.toast--success {
  background: linear-gradient(135deg, var(--color-emerald-600), var(--color-emerald-700));
}

.toast.toast--error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.toast--info {
  background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-600));
}

/* ----------------------------------------------------------------
   19. RESPONSIVE — TABLET (≥ 640px)
   ---------------------------------------------------------------- */
@media (min-width: 640px) {
  .hero-photo-frame {
    width: 260px;
    height: 260px;
  }

  .hero-photo {
    width: 260px;
    height: 260px;
  }

  .location-card {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    align-items: center;
  }

  .location-icon {
    flex-shrink: 0;
  }

  .location-info {
    flex: 1;
    text-align: left;
  }

  .location-actions {
    width: 100%;
  }
}

/* ----------------------------------------------------------------
   20. RESPONSIVE — DESKTOP (≥ 1024px)
   ---------------------------------------------------------------- */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }

  .hero-section .container {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: var(--space-16);
  }

  .hero-section .reveal-on-scroll:first-child {
    display: none;
  }

  .hero-text {
    text-align: left;
  }

  .hero-divider {
    margin-inline: 0;
  }

  .hero-welcome {
    margin-inline: 0;
  }

  .arabic-greeting {
    text-align: left;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
  }
}

/* ----------------------------------------------------------------
   21. PRINT STYLES
   ---------------------------------------------------------------- */
@media print {

  .opening-screen,
  .music-player,
  .scroll-top,
  .share-btn,
  .nav-dots {
    display: none !important;
  }

  .main-content {
    display: block !important;
  }

  .section {
    padding: 1rem 0;
  }
}

/* ----------------------------------------------------------------
   22. ACCESSIBILITY — Reduced Motion
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   19. MINIGAME EASTER EGG
   ================================================================ */
.minigame-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minigame-container {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.minigame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.minigame-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--color-emerald-700);
}

.minigame-close {
  font-size: var(--fs-xl);
  color: var(--color-gray-500);
  transition: color var(--transition-fast);
}
.minigame-close:hover { color: var(--color-gray-800); }

.minigame-score {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-gray-800);
}

.minigame-world {
  height: 200px;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  background: var(--color-gray-50);
  margin-bottom: var(--space-6);
  /* disable text selection/touch actions for tapping */
  user-select: none;
  touch-action: manipulation;
}

.minigame-ground {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gray-400);
}

.minigame-dino {
  position: absolute;
  bottom: 2px;
  left: 40px;
  font-size: 40px;
  color: var(--color-emerald-600);
  /* The anchor for transforms is the bottom center */
  transform-origin: bottom center;
}

.minigame-dino.jump {
  animation: dinoJump 500ms cubic-bezier(0.1, 0.7, 0.1, 1);
}

@keyframes dinoJump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-110px); }
}

.minigame-cactus {
  position: absolute;
  bottom: 2px;
  right: -50px; /* Start off screen */
  font-size: 35px;
  color: var(--color-gold-600);
}

.minigame-cactus.move {
  animation: cactusMove linear infinite;
  /* Duration controlled by JS */
}

@keyframes cactusMove {
  0% { right: -50px; }
  100% { right: 100%; }
}

.minigame-controls p {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-3);
}

.minigame-gameover {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.minigame-gameover h4 {
  font-size: var(--fs-3xl);
  color: #ef4444;
  margin-bottom: var(--space-2);
}