/* ============================================================
   HERO SECTION – Cinematic Redesign
   خلفية navy عميق + أمواج CSS فقط بدون صور خارجية
============================================================ */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: #03141A;
}

/* ── Hero Video Background ── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1.12);
  will-change: transform;
}

/* ── Base dark layer + radial glow (above video) ── */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 35%, rgba(29,187,176,.10) 0%, transparent 68%),
    radial-gradient(ellipse 55% 70% at 15% 80%, rgba(21,120,146,.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 85% 75%, rgba(29,187,176,.06) 0%, transparent 50%);
  z-index: 1;
}

/* ── Wave 1 (teal, animated) ── */
.hero-bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140'%3E%3Cpath d='M0,70 C240,120 480,20 720,70 C960,120 1200,20 1440,70 L1440,140 L0,140 Z' fill='%231DBBB0'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 1440px 140px;
  background-position: 0 bottom;
  animation: wave-scroll-1 22s linear infinite;
  opacity: 0.13;
  z-index: 2;
}

/* ── Wave 2 (teal-dark, slower, reversed) ── */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110'%3E%3Cpath d='M0,55 C300,10 600,100 900,55 C1100,22 1300,75 1440,55 L1440,110 L0,110 Z' fill='%23157892'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 1440px 110px;
  background-position: -360px bottom;
  animation: wave-scroll-2 30s linear infinite reverse;
  opacity: 0.09;
  z-index: 1;
}

@keyframes wave-scroll-1 {
  from { background-position-x: 0; }
  to   { background-position-x: 1440px; }
}

@keyframes wave-scroll-2 {
  from { background-position-x: -360px; }
  to   { background-position-x: 1080px; }
}

/* ── Dual Gradient Overlay ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,24,31,.55) 0%, rgba(6,24,31,.35) 38%, rgba(6,24,31,.92) 100%),
    linear-gradient(90deg,  rgba(6,24,31,.85) 0%, rgba(6,24,31,.25) 55%);
  z-index: 3;
}

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  padding: 0 28px;
}

.hero-content h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .9s ease .35s forwards;
}

/* ── Gradient text على الكلمة المميزة ── */
.hero-content h1 span {
  background: linear-gradient(100deg, #5FE3D6, #1DBBB0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 40px;
  letter-spacing: 0.3px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp .9s ease .55s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .9s ease .72s forwards;
}

/* ============================================================
   PAGE BANNER – للصفحات الداخلية
============================================================ */
.page-banner {
  background: linear-gradient(160deg, #03141A 0%, var(--navy-2) 60%, #06181F 100%);
  padding: calc(var(--header-height) + 52px) 0 56px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}

/* subtle glow behind banner text */
.page-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(29,187,176,.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  position: relative;
}

.page-banner h1 span {
  background: linear-gradient(100deg, #5FE3D6, #1DBBB0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.page-banner p {
  font-size: 0.97rem;
  color: rgba(255,255,255,.55);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
