:root {
  --bg: #05070c;
  --bg-2: #0b111a;
  --ink: #f4f8ff;
  --muted: #93a4bb;
  --blue: #2ea8ff;
  --blue-2: #67c4ff;
  --line: rgba(46, 168, 255, 0.28);
  --glass: rgba(8, 12, 20, 0.72);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section,
.footer {
  scroll-margin-top: 96px;
}

body {
  font-family: "Cairo", "Tajawal", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise,
.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.noise {
  opacity: 0.07;
  background-image: url("../images/texture-carbon-blue.jpg");
  background-size: cover;
  mix-blend-mode: overlay;
}

.page-glow {
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(46, 168, 255, 0.22), transparent 60%),
    radial-gradient(600px 300px at 10% 110%, rgba(46, 168, 255, 0.12), transparent 55%);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: #05070c;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader img {
  width: min(320px, 78vw);
  background: linear-gradient(180deg, #ffffff, #e7eef7);
  border-radius: 22px;
  padding: 12px 18px;
  box-shadow: 0 16px 40px rgba(46, 168, 255, 0.18);
}

.preloader span {
  letter-spacing: 0.4em;
  color: var(--blue-2);
  font-weight: 800;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  background: linear-gradient(to bottom, rgba(5, 7, 12, 0.92), rgba(5, 7, 12, 0.45) 70%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: 0.3s ease;
}

.header.scrolled {
  background: var(--glass);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #e7eef7);
  border-radius: 18px;
  padding: 6px 14px 8px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(46, 168, 255, 0.35);
}

.brand img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-weight: 700;
}

.nav a {
  position: relative;
  color: #d7e6f7;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: 0.25s var(--ease);
}

.nav a.active::after,
.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #1e8eef, #67c4ff);
  color: #041018;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(46, 168, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(46, 168, 255, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-2);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.slider,
.slider-track,
.slide,
.slide img {
  height: 100%;
}

.slider {
  position: absolute;
  inset: 0;
}

.slider-track {
  display: flex;
  width: 100%;
  will-change: transform;
}

.slide {
  position: relative;
  min-width: 100%;
}

.slide img {
  width: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: ken 7s ease-in-out infinite alternate;
}

@keyframes ken {
  from {
    transform: scale(1.04) translateX(1%);
  }
  to {
    transform: scale(1.12) translateX(-1%);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.18), rgba(5, 7, 12, 0.2) 40%, rgba(5, 7, 12, 0.82)),
    linear-gradient(transparent 40%, rgba(5, 7, 12, 0.92));
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 168, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 168, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to left, black, transparent 70%);
  opacity: 0.45;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 22vh 7vw 0;
}

.eyebrow {
  color: var(--blue-2);
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  font-family: "Tajawal", "Cairo", sans-serif;
  font-weight: 900;
  line-height: 1.15;
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 12px;
}

.lede {
  max-width: 36ch;
  color: #d5e4f6;
  font-size: 1.15rem;
  margin: 16px 0 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.slide-meta {
  position: absolute;
  z-index: 2;
  left: 7vw;
  bottom: 90px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(5, 7, 12, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  padding: 14px 18px;
  border-radius: 18px;
}

.slide-index {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
}

.slide-meta strong,
.slide-meta small {
  display: block;
}

.slide-meta small {
  color: var(--muted);
}

.slider-ui {
  position: absolute;
  z-index: 2;
  left: 7vw;
  top: 48%;
  display: flex;
  gap: 10px;
}

.nav-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.45);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.nav-arrow:hover {
  background: var(--blue);
  color: #041018;
}

.dots {
  position: absolute;
  z-index: 2;
  right: 7vw;
  bottom: 42px;
  display: flex;
  gap: 8px;
}

.dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.dots button.active {
  width: 28px;
  background: var(--blue);
}

.progress {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #1e8eef, #b6e6ff);
  transform: scaleX(0);
  transform-origin: right center;
}

.progress i.run {
  animation: fill 3s linear forwards;
}

@keyframes fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

::selection {
  background: var(--blue);
  color: #041018;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-thumb {
  background: #1a4e78;
  border-radius: 99px;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #070b12;
  padding: 16px 0;
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tick 28s linear infinite;
  font-weight: 900;
  color: var(--blue);
  font-size: 1.1rem;
}

@keyframes tick {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.fleet,
.about,
.contact,
.footer {
  position: relative;
  z-index: 1;
}

.fleet,
.contact {
  padding: 90px 7vw;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head p:last-child {
  color: var(--muted);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0c131d;
  cursor: pointer;
  min-height: 240px;
  text-align: right;
  color: #fff;
  box-shadow: var(--shadow);
}

.card:nth-child(1),
.card:nth-child(2) {
  grid-column: span 2;
  min-height: 340px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s var(--ease);
}

.card:hover img {
  transform: scale(1.08);
}

.card span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.72);
  border: 1px solid var(--line);
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 40px 7vw 90px;
  align-items: center;
}

.about-media {
  position: relative;
  min-height: 460px;
}

.about-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
}

.about-overlay {
  position: absolute;
  width: 46% !important;
  height: 46% !important;
  left: -28px;
  bottom: -28px;
  box-shadow: var(--shadow);
}

.about-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stats li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(46, 168, 255, 0.05);
}

.stats strong,
.stats span {
  display: block;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact {
  background:
    linear-gradient(rgba(5, 7, 12, 0.88), rgba(5, 7, 12, 0.94)),
    url("../images/texture-carbon-blue.jpg") center/cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.branch {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 12, 20, 0.86);
  box-shadow: var(--shadow);
}

.branch-photo {
  position: relative;
  height: 230px;
}

.branch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branch-photo span {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #041018;
  font-weight: 900;
}

.branch-body {
  padding: 24px;
}

.address {
  color: var(--muted);
  margin: 8px 0 14px;
  font-size: 1.05rem;
}

.kicker {
  color: var(--blue-2);
  font-weight: 800;
  margin-top: 4px;
}

.phone {
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--blue-2);
  margin-bottom: 18px;
}

.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer {
  text-align: center;
  padding: 48px 20px 90px;
  border-top: 1px solid var(--line);
}

.footer img {
  height: 78px;
  margin: 0 auto 12px;
  background: linear-gradient(180deg, #ffffff, #e7eef7);
  border-radius: 18px;
  padding: 8px 14px;
}

.copy {
  color: var(--muted);
  margin-top: 8px;
}

.wa-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 30;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #19c37d;
  color: #fff;
  box-shadow: 0 12px 30px rgba(25, 195, 125, 0.4);
}

.wa-fab svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 980px) {
  .header {
    grid-template-columns: auto auto;
    padding: 10px 14px;
  }

  .nav {
    position: fixed;
    top: 86px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    background: rgba(8, 12, 20, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .nav.open {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }

  .header .btn-ghost {
    display: none;
  }

  .brand img {
    height: 52px;
  }

  .hero-copy {
    padding: 130px 22px 0;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .lede {
    font-size: 1rem;
  }

  .slide-meta {
    left: 16px;
    bottom: 78px;
  }

  .dots {
    right: 16px;
    bottom: 28px;
  }

  .slider-ui {
    top: auto;
    bottom: 130px;
  }

  .fleet-grid,
  .contact-grid,
  .about,
  .stats {
    grid-template-columns: 1fr;
  }

  .card:nth-child(1),
  .card:nth-child(2) {
    grid-column: span 1;
    min-height: 240px;
  }

  .about-overlay {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
