@font-face {
  font-family: "Florisel Script";
  src: url("./assets/fonts/Floriselscript.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Evolventa";
  src: url("./assets/fonts/Evolventa-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --white: #ffffff;
  --green-ink: #1a3a2a;
  --sky-shadow: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: #e8f5ff;
  color: var(--white);
  font-family: "Evolventa", Arial, sans-serif;
}

.page {
  min-height: 100vh;
}

.scroll-hero {
  height: 260vh;
  min-height: 1400px;
  background: #bde8ff;
}

.hero-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  z-index: 0;
  background: #bde8ff;
}

.hero-video-mobile {
  display: none;
}

.hero-shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26, 58, 42, 0.18) 0%, rgba(26, 58, 42, 0.02) 42%, rgba(26, 58, 42, 0.1) 100%),
    radial-gradient(circle at 84% 26%, rgba(255, 190, 85, 0.16), transparent 34%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(92vw, 720px);
  margin: 0 auto;
  padding-top: clamp(34px, 8vh, 78px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arabic-title {
  margin: 0;
  color: #ffffff;
  font-family: "Amiri", "Geeza Pro", "Noto Naskh Arabic", serif;
  font-size: clamp(52px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 4px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

h1 {
  max-width: 680px;
  margin: 16px 0 0;
  color: #ffffff;
  font-family: "Florisel Script", "Snell Roundhand", cursive;
  font-size: clamp(48px, 5vw, 56px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.subtitle {
  max-width: 320px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.42;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 14px 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: "Evolventa", Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--green-ink);
  text-shadow: none;
  transform: translateY(-1px);
}

.hero-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.next-section {
  min-height: 80vh;
  background: #fbfff5;
  color: var(--green-ink);
  display: grid;
  place-items: center;
  padding: 64px 24px;
}

.next-inner {
  width: min(100%, 720px);
  text-align: center;
}

.next-inner h2 {
  margin: 0;
  color: var(--green-ink);
  font-family: "Florisel Script", "Snell Roundhand", cursive;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.next-inner p {
  max-width: 480px;
  margin: 18px auto 0;
  color: rgba(26, 58, 42, 0.72);
  font-size: 18px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .scroll-hero {
    height: 240vh;
    min-height: 1280px;
  }

  .hero-stage {
    min-height: 560px;
  }

  .hero-video-desktop {
    display: none;
  }

  .hero-video-mobile {
    display: block;
  }

  .hero-copy {
    width: min(90vw, 380px);
    padding-top: clamp(30px, 7vh, 58px);
  }

  .arabic-title {
    font-size: clamp(42px, 13vw, 54px);
    letter-spacing: 3px;
  }

  h1 {
    max-width: 340px;
    font-size: clamp(42px, 12vw, 52px);
  }

  .subtitle {
    font-size: 16px;
  }

  .hero-button {
    width: min(100%, 286px);
    padding-right: 24px;
    padding-left: 24px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-button {
    transition: none;
  }
}
