@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../assets/fonts/NotoKufiArabic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../assets/fonts/NotoKufiArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #0084ff;
  --brand-deep: #0066d6;
  --ink: #071526;
  --ink-soft: #3a516b;
  --cloud: #f3f8ff;
  --paper: #ffffff;
  --line: rgba(7, 21, 38, 0.1);
  --nav-h: 80px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Kufi Arabic", sans-serif;
  color: var(--ink);
  background: var(--cloud);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease),
    border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  position: relative;
  height: 46px;
}

.brand-lockup img {
  height: 46px;
  width: auto;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}

.brand-lockup .logo-blue {
  opacity: 0;
  position: absolute;
  inset-inline-start: 0;
  top: 0;
}

.site-nav.is-scrolled .logo-white {
  opacity: 0;
}

.site-nav.is-scrolled .logo-blue {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  min-width: 7.2rem;
  backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.site-nav.is-scrolled .lang-switch {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.15rem;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 132, 255, 0.28);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 5rem;
  color: white;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
  animation: heroZoom 22s var(--ease) forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      105deg,
      rgba(4, 16, 32, 0.72) 0%,
      rgba(4, 16, 32, 0.45) 42%,
      rgba(4, 16, 32, 0.28) 100%
    ),
    linear-gradient(180deg, rgba(4, 16, 32, 0.35), rgba(4, 16, 32, 0.7));
}

.hero-glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  left: -10%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(0, 132, 255, 0.28), transparent 68%);
  z-index: -1;
  animation: glowPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.flight-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.flight-canvas svg {
  width: 120%;
  height: 100%;
  opacity: 0.7;
}

.flight-trail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.6;
  stroke-dasharray: 6 12;
  stroke-linecap: round;
  animation: dashMove 16s linear infinite;
}

.flight-plane {
  offset-path: path("M -40 70 C 180 20, 420 120, 780 40 S 1180 90, 1400 30");
  offset-rotate: auto;
  animation: flyAcross 11s var(--ease) 0.4s infinite;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.hero-content {
  position: relative;
  max-width: 680px;
  z-index: 1;
}

.hero-brand {
  width: min(320px, 78vw);
  height: auto;
  margin-bottom: 1.6rem;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  animation: brandIn 1.1s var(--ease) 0.1s forwards;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 5vw, 3.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
}

.hero h1,
.hero-lead,
.cta-row {
  opacity: 0;
  transform: translateY(30px);
}

.hero.is-ready h1 {
  animation: riseIn 1s var(--ease) 0.35s forwards;
}

.hero.is-ready .hero-lead {
  animation: riseIn 1s var(--ease) 0.5s forwards;
}

.hero.is-ready .cta-row {
  animation: riseIn 1s var(--ease) 0.65s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.9rem 1.45rem;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 14px 34px rgba(0, 132, 255, 0.35);
}

.btn-primary:hover {
  background: #1a90ff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.scroll-hint {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: riseIn 1s var(--ease) 1.2s forwards;
}

.scroll-hint span {
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  position: relative;
}

.scroll-hint span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: white;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.8rem;
}

.section-head h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.services {
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(0, 132, 255, 0.1), transparent 55%),
    linear-gradient(180deg, #eef5ff, var(--paper));
}

.service-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  padding: 1.8rem 1.4rem 1.8rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.service-item + .service-item {
  padding-inline-start: 1.4rem;
  border-inline-start: 1px solid var(--line);
}

.service-index {
  display: block;
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: 0.08em;
}

.service-item h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.service-item p {
  margin: 0;
  color: var(--ink-soft);
}

.about {
  background:
    linear-gradient(125deg, #061528 0%, #0a3d7a 52%, #0084ff 120%);
  color: white;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  right: -140px;
  top: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  animation: glowPulse 7s ease-in-out infinite alternate;
}

.about .section-head p,
.about p,
.about span {
  color: rgba(255, 255, 255, 0.86);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
  position: relative;
  z-index: 1;
}

.about-points {
  display: grid;
  gap: 0.2rem;
}

.about-points div {
  padding-block: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transform: translateX(12px);
}

.contact {
  background: var(--paper);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--ink-soft);
}

.contact-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.contact-form {
  display: grid;
  gap: 0.95rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(0, 132, 255, 0.04), transparent),
    var(--cloud);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  background: white;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(0, 132, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 132, 255, 0.12);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer {
  background: #061528;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.4rem 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-row img {
  height: 42px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a:hover {
  color: white;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* ---------- Animations ---------- */
@keyframes riseIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes brandIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -160;
  }
}

@keyframes flyAcross {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

@keyframes glowPulse {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

/* ---------- RTL ---------- */
[dir="rtl"] .hero-content,
[dir="rtl"] .section-head {
  text-align: right;
}

[dir="rtl"] .service-item + .service-item {
  border-inline-start: 1px solid var(--line);
}

[dir="rtl"] .flight-plane {
  offset-path: path("M 1400 70 C 1180 20, 900 120, 560 40 S 180 90, -40 30");
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-rail,
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .service-item + .service-item {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    align-items: end;
    padding-bottom: 4.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .flight-canvas {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img,
  .reveal,
  .hero h1,
  .hero-lead,
  .cta-row,
  .hero-brand {
    opacity: 1 !important;
    transform: none !important;
  }
}
