
/* ══════════════════════════════════════════
   PAGE: INDEX (HOMEPAGE)
   Sections: Hero → Overview → Footer
   ══════════════════════════════════════════ */


/* ── Hero (Banner style) ──────────────── */

.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: transparent;
  padding-top: 5rem;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(15, 20, 25, 0.78) 0%,
    rgba(30, 58, 95, 0.60) 50%,
    rgba(90, 155, 212, 0.45) 100%
  );
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--warm-white, #faf7f2), transparent);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 4rem;
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  color: white;
  line-height: 1.45;
  opacity: 0;
  animation: fade-up 0.8s ease 0.3s forwards;
  text-wrap: balance;
}

/* On small screens, the hard <br> in the hero heading creates awkward
   line fragments. Let the browser wrap naturally below 700px. */
@media (max-width: 700px) {
  .hero h1 br { display: none; }
}

.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 4;
}

.hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-indicator:hover { border-color: rgba(255,255,255,0.8); }

.hero-indicator.active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.2);
}


/* ══════════════════════════════════════════
   OVERVIEW — Three service-area rows
   Layout: Image | Title+Text | Bullets
   ══════════════════════════════════════════ */

.overview {
  background: var(--warm-white);
  padding: 4rem 4rem 5rem;
}

.overview-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.overview-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.overview-row:last-child {
  border-bottom: none;
}

/* Image column */
.overview-image {
  overflow: hidden;
  aspect-ratio: 16/10;
}

.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.overview-row:hover .overview-image img {
  transform: scale(1.03);
}

/* Content column */
.overview-content {
  padding-top: 0.25rem;
}

.overview-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.overview-content p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 0.75rem;
  text-align: justify;
}

.overview-content p:last-child {
  margin-bottom: 0;
}

/* Bullets column */
.overview-bullets {
  list-style: none;
  padding-top: 0.5rem;
}

.overview-bullets li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.overview-bullets li::before {
  content: '➤';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue-light);
  font-size: 0.85rem;
}

.overview-bullets li:last-child {
  margin-bottom: 0;
}


/* ══════════════════════════════════════════
   INDEX RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .overview-row {
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 2rem;
  }
  .overview { padding: 3.5rem 2rem 4rem; }
}

/* Intermediate: tablet portrait — collapse the 3-col overview to a
   stacked image-on-top, content + bullets below to keep readability. */
@media (max-width: 900px) {
  .overview-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
  .overview-image { grid-column: 1 / -1; max-height: 280px; }
}

@media (max-width: 768px) {
  .hero { min-height: 40vh; padding-top: 4.5rem; }
  .hero-content { padding: 2rem 1.25rem; }
  .hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); }

  .overview { padding: 2.5rem 1.25rem 3rem; }

  .overview-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .overview-image {
    aspect-ratio: 16/9;
    max-height: 220px;
  }

  .overview-title { font-size: 1.5rem; }
  .overview-content p { font-size: 0.9rem; text-align: left; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.3rem; line-height: 1.35; }
  .hero-content { padding: 1.5rem 1rem; }
  .overview-title { font-size: 1.3rem; }
  .overview-bullets li { font-size: 0.88rem; }
}

/* ══════════════════════════════════════════
   OUR CLIENTS — Logo showcase
   ══════════════════════════════════════════ */

.clients {
  background: var(--cream);
  padding: 5rem 4rem;
}

/* The inner block hosts the dynamic shader background behind both the
   "Our Clients" header and the logo grid (but NOT the whole section —
   the cream .clients background still surrounds it on the page). */
.clients-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(165deg, #05101f 0%, #0c1f3a 60%, #1a3358 100%);
  box-shadow: 0 18px 50px rgba(15, 26, 46, 0.18);
}

/* WebGL canvas — sits behind the content, sized to the inner block. */
.clients-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* Header & logos float above the shader. */
.clients-header,
.clients-logos {
  position: relative;
  z-index: 1;
}

.clients-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

/* Header text uses light tones now that the backdrop is dark navy. */
.clients-header .section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 18px rgba(5, 16, 31, 0.45);
}

.clients-header p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  align-items: center;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  transition: all 0.3s ease;
  width: 100%;
  min-height: 100px;
}

.client-logo a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.client-logo:hover {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.client-logo img {
  max-width: 160px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}


/* ══════════════════════════════════════════
   CAREERS — Job listings
   ══════════════════════════════════════════ */

.careers {
  background: var(--warm-white);
  padding: 5rem 4rem 6rem;
}

.careers-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.careers-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.careers-header .section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.careers-header p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.career-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  padding: 2.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.career-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.career-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.career-card:hover::before {
  opacity: 1;
}

.career-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.career-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.career-badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(193, 39, 45, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.career-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.career-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.career-apply:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 44, 77, 0.3);
}

.career-apply svg {
  transition: transform 0.3s;
}

.career-apply:hover svg {
  transform: translateX(3px);
}

.careers-info {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.careers-info p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.careers-info a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.careers-info a:hover {
  color: var(--gold-light);
}


/* ══════════════════════════════════════════
   CLIENTS & CAREERS RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
  .clients { padding: 3.5rem 1.25rem; }

  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .client-logo {
    padding: 1.25rem 1.5rem;
    min-height: 80px;
  }

  .client-logo img {
    max-width: 120px;
    max-height: 45px;
  }

  .careers { padding: 3.5rem 1.25rem; }

  .careers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .career-card {
    padding: 2rem;
  }

  .career-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .clients-logos {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .client-logo {
    padding: 1rem;
    min-height: 70px;
  }

  .career-card h3 {
    font-size: 1.3rem;
  }
}