@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ── Light Mode (default) ── */
:root {
  --background: 0 0% 100%;
  --foreground: 222 58% 15%;

  --card: 220 30% 97%;
  --card-foreground: 222 58% 15%;
  --card-border: 220 20% 90%;

  --popover: 0 0% 100%;
  --popover-foreground: 222 58% 15%;
  --popover-border: 220 20% 90%;

  /* Brand red */
  --primary: 358 72% 47%;
  --primary-foreground: 0 0% 100%;

  /* Deep green */
  --secondary: 158 65% 22%;
  --secondary-foreground: 0 0% 100%;

  --muted: 220 25% 94%;
  --muted-foreground: 222 20% 46%;

  /* Gold */
  --accent: 42 56% 52%;
  --accent-foreground: 222 58% 10%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 220 20% 88%;
  --input: 220 20% 88%;
  --ring: 42 56% 52%;

  --radius: 0.625rem;
}

/* ── Dark Mode ── */
html.dark {
  --background: 222 47% 9%;
  --foreground: 210 30% 93%;

  --card: 222 44% 13%;
  --card-foreground: 210 30% 93%;
  --card-border: 222 35% 20%;

  --popover: 222 44% 13%;
  --popover-foreground: 210 30% 93%;
  --popover-border: 222 35% 20%;

  --primary: 358 68% 55%;
  --primary-foreground: 0 0% 100%;

  --secondary: 158 55% 30%;
  --secondary-foreground: 0 0% 100%;

  --muted: 222 38% 18%;
  --muted-foreground: 215 20% 58%;

  --accent: 42 60% 58%;
  --accent-foreground: 222 58% 8%;

  --destructive: 0 63% 31%;
  --destructive-foreground: 0 0% 100%;

  --border: 222 35% 20%;
  --input: 222 35% 20%;
  --ring: 42 60% 58%;
}

* {
  border-color: hsl(var(--border));
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Egyptian geometric background pattern ── */
.eg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='p' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Cpath d='M40 0 L80 20 L80 60 L40 80 L0 60 L0 20Z' fill='none' stroke='%23C9A84C' stroke-width='0.4' stroke-opacity='0.12'/%3E%3Cpath d='M40 10 L70 25 L70 55 L40 70 L10 55 L10 25Z' fill='none' stroke='%23C9A84C' stroke-width='0.3' stroke-opacity='0.08'/%3E%3Ccircle cx='40' cy='40' r='3' fill='none' stroke='%23C9A84C' stroke-width='0.4' stroke-opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='80' height='80' fill='url(%23p)'/%3E%3C/svg%3E");
}

.section-heading-start::after {
  content: '';
  display: block;
  margin: 0.75rem 0 0;
  width: 5rem;
  height: 2px;
  background: linear-gradient(to left, transparent, hsl(var(--accent)), transparent);
}

/* ── Gold ornamental divider ── */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(to left, transparent, hsl(var(--accent) / 0.4));
}

.ornament-divider::after {
  background: linear-gradient(to right, transparent, hsl(var(--accent) / 0.4));
}

/* ── Formal card ── */
.formal-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-top: 3px solid hsl(var(--accent) / 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Formal stat block ── */
.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  border-inline-end: 1px solid hsl(var(--border));
}

.stat-block:last-child {
  border-inline-end: none;
}

@media (max-width: 768px) {
  .stat-block {
    border-inline-end: none;
    border-bottom: 1px solid hsl(var(--border));
  }

  .stat-block:last-child {
    border-bottom: none;
  }
}

/* ── Floating Keyframe Animations ── */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-16px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes float-rotate {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(2deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes float-reverse {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(-2deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-float-1 {
  animation: float 5.5s ease-in-out infinite;
}

.animate-float-2 {
  animation: float-rotate 6.5s ease-in-out infinite;
}

.animate-float-3 {
  animation: float 4.8s ease-in-out infinite;
}

.animate-float-4 {
  animation: float-reverse 5.8s ease-in-out infinite;
}

.animate-float-5 {
  animation: float 7s ease-in-out infinite;
}

.animate-float-6 {
  animation: float 4.5s ease-in-out infinite;
}

.animate-float-7 {
  animation: float 6s ease-in-out infinite;
}

.animate-float-8 {
  animation: float-rotate 5.2s ease-in-out infinite;
}

/* ── Subtle bouncing animation for floating CTA ── */
@keyframes bounce-subtle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.animate-bounce-subtle {
  animation: bounce-subtle 3s ease-in-out infinite;
}

/* ── Slider Scroll snapping styles ── */
.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slider-item {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.hero-title {
  line-height: 1.7 !important;
}