/* ─── Variables ─── */
:root {
  --yellow: #fff000;
  --black: #000000;
  --white: #ffffff;
  --font-heading: "Rethink Sans", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-accent: "Gochi Hand", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100vh;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   HERO
   position: relative is the stacking root.
   Children are either in flow (header,
   hero-content) or absolutely placed
   (skyline, veil).
══════════════════════════════════════════ */
.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* clip skyline to hero bounds */
  background: var(--black);
}

/* ── Dubai skyline ──────────────────────── */
.skyline {
  position: absolute;
  bottom: -10vh;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.skyline img {
  display: block;
  position: absolute;
  bottom: 0; /* hard-pinned to yellow border — zero gap */
  left: 50%;
  transform: translateX(-50%);
  height: 100%; /* fill hero height from border upward */
  width: auto; /* natural aspect ratio — never crops height */
  max-width: none;
}

/* Gradient veil: strong black at top → transparent at ~40% down
   This keeps header & headline crisp even when skyline is tall */
.skyline-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.18) 68%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── Header ─────────────────────────────── */
.hero-header {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.welcome {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 0.35rem;
}

.logo {
  display: inline-block;
  height: 4rem;
  width: auto;
  max-width: 380px;
  object-fit: contain;
}

/* ── Hero content ───────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Push text into the upper 45% so it sits above the skyline buildings */
  justify-content: flex-start;
  padding-top: clamp(2.5rem, 8vh, 6rem);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.4rem;
  color: var(--white);
}

.hero-title-accent {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--yellow);
  font-size: 1.18em;
  /* Bold glowing yellow */
  text-shadow:
    0 0 20px rgba(255, 240, 0, 0.9),
    0 0 40px rgba(255, 240, 0, 0.6),
    0 0 80px rgba(255, 240, 0, 0.4);
  display: block;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.03em;
  margin: 0.75rem 0 1.75rem;
  opacity: 0.8;
}

/* ── Buttons ────────────────────────────── */
.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 9999px;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-marketing {
  background: var(--yellow);
  color: var(--black);
}
.btn-marketing:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 240, 0, 0.5);
}

.btn-tech {
  background: transparent;
  color: var(--yellow);
  border: 2.5px solid var(--yellow);
}
.btn-tech:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 240, 0, 0.25);
  background: rgba(255, 240, 0, 0.07);
}

/* ══════════════════════════════════════════
   WORKED WITH — below the hero
══════════════════════════════════════════ */
.worked-with {
  flex-shrink: 0;
  background: var(--black);
  padding: 1.75rem 0 2rem;
  /* Crisp top border acting like the yellow band in reference image 2 */
  border-top: 3px solid var(--yellow);
}

.worked-with-intro {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.2rem;
}

.worked-with-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--yellow);
  margin: 0 0 1.1rem;
}

/* ── Marquee ────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
  user-select: none;
  /* Soft edge fade */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  /* -50% scrolls exactly one full set (Set A), then jumps back seamlessly */
  animation: scroll-left 36s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Each set is exactly half of .marquee-track's total width */
.marquee-content {
  display: flex;
  align-items: center;
  /* Equal gap on each side = consistent spacing at the seam */
  gap: 4rem;
  padding: 0 2rem;
  flex-shrink: 0;
}

.marquee-content img {
  height: clamp(2.6rem, 3.8vw, 3.8rem);
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.marquee-content img:hover {
  opacity: 1;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── Responsive ─────────────────────────── */
@media (min-width: 480px) {
  .btn {
    padding: 1.1rem 2.5rem;
  }
}

@media (min-width: 768px) {
  .logo {
    height: 5rem;
    max-width: 440px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
  }

  .btn {
    padding: 1.15rem 2.75rem;
    font-size: 1.1rem;
  }

  .worked-with-title {
    font-size: 1.3rem;
  }

  .marquee-content img {
    height: clamp(3rem, 4vw, 4.2rem);
    max-width: 180px;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    padding-top: clamp(3rem, 9vh, 7rem);
  }
}
