/* ============================================================
   LEGAMONT – External Stylesheet
   Tailwind CSS is loaded via CDN in index.html.
   This file contains custom overrides & component styles.
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy: #0d2352;
  --navy-dark: #081a3d;
  --light-navy: #e5ecf6;
  --yellow: #FED60F;
  --yellow-light: #e4c00d;
  --white: #ffffff;
  --light-bg: #f2f5f9;
  --text-muted: #5a6a82;
  --border: #dde3ed;
  --font: 'Inter', sans-serif;
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 64px;
  overflow-x: clip;
}

/* ---------- NAVIGATION ---------- */
.navbar {
  background: var(--navy);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
}

.logo svg {
  color: var(--yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-right a.text-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-right a.text-link:hover {
  color: var(--white);
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--yellow-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(254, 214, 15, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 9px 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* ---------- HERO SECTION (Dateline IP Style Slider) ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--navy);
  padding: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.02);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Background image mappings for slides */
.hero-slide:nth-child(1) {
  background-image: url('images/hero-bg.jpg');
}

.hero-slide:nth-child(2) {
  background-image: url('images/about-office.jpg');
}

.hero-slide:nth-child(3) {
  background-image: url('images/platform-consultation.jpg');
}

.hero-slide:nth-child(4) {
  background-image: url('images/copyright.jpeg');
}

/* Gradient overlay over slide image (lightened overlay for brightness) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 35, 82, 0.55) 0%, rgba(8, 26, 61, 0.75) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 80px 24px;
}

.hero-content-left {
  text-align: center;
  max-width: 800px;
}

.hero-actions-right {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  width: auto;
}

/* Slider dots navigation */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.dot.active {
  background: var(--yellow);
  width: 24px;
  border-radius: 5px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 680px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ---------- PLATFORM SECTION ---------- */
.platform-section {
  background: var(--light-navy);
  padding: 72px 24px;
}

.section-label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 48px;
  line-height: 1.2;
}

.platform-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

/* Platform UI mockup */
.platform-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Platform tabs container */
.platform-tabs {
  display: flex;
  gap: 6px;
  background: rgba(13, 35, 82, 0.05);
  padding: 4px;
  border-radius: 8px;
  width: fit-content;
  align-self: center;
  z-index: 10;
}

.mockup-tab {
  background: transparent;
  border: none;
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mockup-tab.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(13, 35, 82, 0.15);
}

.mockup-tab:hover:not(.active) {
  background: rgba(13, 35, 82, 0.08);
}

.platform-images {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--border);
}

.platform-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.platform-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.platform-view.active {
  opacity: 1;
  z-index: 2;
}

/* Service highlight card */
.service-highlight-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
  box-shadow: 0 4px 20px rgba(13, 35, 82, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 35, 82, 0.08);
}

.highlight-card-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.highlight-card-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.highlight-card-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* About team preview card */
.about-team-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
  margin-bottom: 28px;
}

.about-team-preview-img {
  width: 90px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.about-team-preview-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 4px;
}

.about-team-preview-text p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0;
}

/* Platform right text */
.platform-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.platform-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.85;
  margin-bottom: 12px;
}

.platform-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}


/* ---------- ABOUT SECTION ---------- */
.about-section {
  background: var(--navy);
  color: var(--white);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(13, 34, 85, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Left content */
.about-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.about-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-body {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* Feature list */
.about-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.2s, color 0.2s;
}

.about-feature-item:hover .about-feature-icon {
  background: var(--yellow-light);
  color: var(--navy);
}

.about-feature-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.about-feature-item p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Right visual */
.about-visual {
  position: relative;
}

.about-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  aspect-ratio: 4/3;
}

/* Floating achievement card */
.about-card {
  position: absolute;
  bottom: -24px;
  left: -28px;
  background: var(--navy);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  min-width: 200px;
}

.about-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-card-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  flex-shrink: 0;
}

.about-card-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.about-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 12px 0;
}

/* ---------- CTA / CONTACT SECTION ---------- */
.cta-section {
  position: relative;
  background: var(--navy);
  padding: 80px 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.55;
}

.cta-inner {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow-light);
  margin-bottom: 12px;
  display: none;
  /* not in screenshot */
}

.cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 400px;
}

.cta-section .btn-outline {
  color: var(--navy);
  border-color: rgba(13, 34, 82, 0.35);
}

.cta-section .btn-outline:hover {
  background: rgba(13, 34, 82, 0.06);
  border-color: var(--navy);
}

/* Contact Form Card (white card on dark CTA bg) */
.cta-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.cta-form-card .cta-desc {
  color: #3b4b66;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
}

.form-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(254, 214, 15, 0.12);
  background: var(--white);
}

.form-input::placeholder {
  color: #9ca3af;
}

textarea.form-input {
  resize: vertical;
  min-height: 110px;
}

.btn-yellow-full {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  width: 100%;
  text-align: center;
}

.btn-yellow-full:hover {
  background: var(--yellow-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(254, 214, 15, 0.4);
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: var(--navy);
  padding: 40px 24px;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-item {}

.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--yellow);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-dark);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-contact-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact-icon {
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--yellow);
  color: var(--navy);
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--yellow);
}

/* ---- Hamburger Button (base – desktop hidden) ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  transition: background 0.2s;
  flex-shrink: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {

  .hero,
  .platform-section,
  .about-section,
  .cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-inner>div:first-child,
  .platform-content,
  .about-content,
  .cta-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-img,
  .platform-img,
  .about-img {
    width: 100%;
    height: 320px;
    min-height: 0;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
  }

  .platform-images {
    width: 100%;
    height: 320px;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-inner,
  .platform-inner,
  .about-inner,
  .cta-inner,
  .footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
  }

  .platform-inner,
  .about-inner {
    margin-top: -80px !important;
  }

  .platform-content {
    order: 2;
  }

  .platform-visual {
    order: 1;
    min-height: 0;
  }

  .about-content {
    order: 2;
  }

  .about-visual {
    order: 1;
    min-height: 0;
  }

  /* About card on mobile */
  .about-card {
    position: static;
    margin-top: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 24px;
    margin-right: 24px;
  }

  .about-card-divider {
    display: none;
  }

  /* Hide desktop nav elements, show hamburger */
  .nav-links {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Disable scroll snapping on mobile — allow free vertical scrolling */
  html {
    scroll-snap-type: none;
  }

  #services,
  .service-sub-section,
  #about,
  .cta-section {
    scroll-snap-align: none;
    height: auto;
    min-height: auto;
  }

  .hero {
    scroll-snap-align: none;
    height: 550px;
    min-height: 550px;
  }

  /* Hide the services tab bar on mobile/tablet */
  .services-tab-bar-container {
    display: none !important;
  }

  /* Make sure subsection animations are disabled on mobile so content is always fully visible */
  .slide-anim-left,
  .slide-anim-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ham-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Animate to X when open */
.hamburger.is-open .ham-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .ham-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.is-open .ham-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Menu Drawer ---- */
.mobile-menu {
  display: none;
  /* collapsed by default */
  flex-direction: column;
  gap: 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
}

.mobile-menu.is-open {
  display: flex;
  max-height: 500px;
  padding: 16px 20px 24px;
}

/* Mobile nav links */
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.mobile-nav-link {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 4px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: var(--yellow);
}

/* Divider */
.mobile-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}

/* Utility links */
.mobile-nav-utils {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mobile-util-link {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-util-link:hover {
  color: var(--yellow);
}

/* Mobile CTA */
.mobile-cta {
  display: block;
  text-align: center;
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
}

/* Separator color */
.nav-sep {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 560px) {
  .stats-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    height: 80vh;
    min-height: 80vh;
    padding: 0;
  }

  .hero-inner {
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-actions-right {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .hero-actions-right .btn-primary,
  .hero-actions-right .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .platform-content,
  .about-content,
  .cta-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .platform-img,
  .about-img {
    height: 240px;
  }

  .platform-images {
    height: 240px;
    border-radius: 0;
  }

  .about-card {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Desktop Edge-to-Edge Section Images ---------- */
@media (min-width: 1025px) {

  /* Hero Section */
  .hero {
    position: relative;
    padding: 0;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 80px 24px;
    min-height: 100vh;
  }

  .hero-content-left {
    text-align: left;
    max-width: 720px;
  }

  .hero-actions-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 260px;
    justify-self: end;
  }

  .hero-actions-right .btn-primary,
  .hero-actions-right .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 20px;
  }

  /* Platform Section — normal flow, full-width split */
  .platform-section {
    position: relative;
    padding: 0 0 40px 0;
  }

  .platform-inner {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
    height: auto;
    width: 100%;
    min-height: 560px;
  }

  .platform-visual {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: block;
  }

  .platform-images {
    width: 100%;
    height: 100%;
    min-height: 560px;
    border-radius: 0;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .platform-img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    box-shadow: none;
  }

  .platform-content {
    grid-column: 2;
    grid-row: 1;
    padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 72px);
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    overflow-y: visible;
  }

  /* About Section — normal flow, full-width split */
  .about-section {
    position: relative;
    padding: 0;
  }

  .about-inner {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
    height: auto;
    width: 100%;
    min-height: 600px;
  }

  .about-content {
    grid-column: 1;
    grid-row: 1;
    padding: clamp(60px, 8vw, 100px) clamp(40px, 5vw, 72px) clamp(60px, 8vw, 100px) clamp(48px, 6vw, 80px);
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    overflow-y: visible;
  }

  .about-visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .about-img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border-radius: 0;
    aspect-ratio: auto;
    object-fit: cover;
    box-shadow: none;
    display: block;
  }

  .about-card {
    bottom: 32px;
    left: -28px;
    right: auto;
    z-index: 10;
    position: absolute;
  }

  /* ── Service sub-sections: alternating backgrounds + absolute-fill image ── */

  /* ODD sections (1st, 3rd, 5th): light background */
  .service-sub-section:nth-child(odd) {
    background: var(--light-bg);
    color: var(--navy);
  }

  /* EVEN sections (2nd, 4th): dark navy background */
  .service-sub-section:nth-child(even) {
    background: var(--navy);
    color: var(--white);
  }

  .service-sub-section:nth-child(even) .platform-title,
  .service-sub-section:nth-child(even) .about-title {
    color: var(--white);
  }

  .service-sub-section:nth-child(even) .platform-eyebrow,
  .service-sub-section:nth-child(even) .about-eyebrow {
    color: var(--yellow);
  }

  .service-sub-section:nth-child(even) .platform-desc,
  .service-sub-section:nth-child(even) .about-lead,
  .service-sub-section:nth-child(even) .about-body {
    color: rgba(255, 255, 255, 0.82);
  }

  .service-sub-section:nth-child(even) .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
  }

  .service-sub-section:nth-child(even) .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .service-sub-section.platform-section,
  .service-sub-section.about-section {
    padding: 0 !important;
    position: relative;
    /* Exactly one screen tall: viewport minus navbar (64px) and tab bar (48px) */
    height: calc(100vh - 112px);
    overflow: hidden;
  }

  /* Inner grid: fills the full section height */
  .service-sub-section .platform-inner,
  .service-sub-section .about-inner {
    max-width: none !important;
    margin: 0;
    display: grid;
    gap: 0;
    align-items: stretch;
    height: 100%;
    width: 100%;
  }

  /* Image visual base */
  .service-sub-section .platform-visual,
  .service-sub-section .about-visual {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    display: block;
    z-index: 1;
    overflow: hidden;
  }

  .service-sub-section .platform-images {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    aspect-ratio: auto;
    box-shadow: none;
    overflow: hidden;
  }

  .service-sub-section .platform-img,
  .service-sub-section .about-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block;
  }

  /* Content column: sits in grid, scrollable if text overflows */
  .service-sub-section .platform-content,
  .service-sub-section .about-content {
    padding: clamp(40px, 5vh, 72px) clamp(36px, 5vw, 64px);
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
    z-index: 2;
    position: relative;
  }

  /* Webkit scrollbar — thin and near-invisible */
  .service-sub-section .platform-content::-webkit-scrollbar,
  .service-sub-section .about-content::-webkit-scrollbar {
    width: 4px;
  }

  .service-sub-section .platform-content::-webkit-scrollbar-track,
  .service-sub-section .about-content::-webkit-scrollbar-track {
    background: transparent;
  }

  .service-sub-section .platform-content::-webkit-scrollbar-thumb,
  .service-sub-section .about-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
  }

  .service-sub-section:nth-child(even) .platform-content::-webkit-scrollbar-thumb,
  .service-sub-section:nth-child(even) .about-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
  }

  /* ODD slides (1st, 3rd, 5th): image LEFT (40%), content RIGHT (60%) */
  .service-sub-section:nth-child(odd) .platform-inner,
  .service-sub-section:nth-child(odd) .about-inner {
    grid-template-columns: 40% 60%;
  }

  .service-sub-section:nth-child(odd) .platform-visual,
  .service-sub-section:nth-child(odd) .about-visual {
    left: 0 !important;
    right: auto !important;
    width: 40% !important;
  }

  .service-sub-section:nth-child(odd) .platform-content,
  .service-sub-section:nth-child(odd) .about-content {
    grid-column: 2;
    grid-row: 1;
  }

  /* EVEN slides (2nd, 4th): image RIGHT (40%), content LEFT (60%) */
  .service-sub-section:nth-child(even) .platform-inner,
  .service-sub-section:nth-child(even) .about-inner {
    grid-template-columns: 60% 40%;
  }

  .service-sub-section:nth-child(even) .platform-visual,
  .service-sub-section:nth-child(even) .about-visual {
    left: auto !important;
    right: 0 !important;
    width: 40% !important;
  }

  .service-sub-section:nth-child(even) .platform-content,
  .service-sub-section:nth-child(even) .about-content {
    grid-column: 1;
    grid-row: 1;
  }
}

/* ---------- Dropdown, Tabs, & Animations Global Styles ---------- */
/* Header Navbar Dropdown menu */
.nav-dropdown-container {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 170px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--navy-dark);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown-container:hover .nav-dropdown-menu,
.nav-dropdown-container:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.85rem !important;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0 !important;
  text-align: left;
}

.dropdown-item:hover {
  color: var(--yellow) !important;
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile sub-services dropdown */
.mobile-sub-services {
  margin-top: 4px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.1);
}

.mobile-sub-link:hover {
  color: var(--yellow) !important;
}

/* Sticky Services Tab Bar */
.services-tab-bar-container {
  position: sticky;
  top: 64px;
  background: var(--navy);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
  z-index: 900;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.services-tab-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
  height: 48px;
  gap: 16px;
}

.services-tab-inner::-webkit-scrollbar {
  display: none;
}

.services-tab-inner {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.service-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 4px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.service-tab-btn:hover {
  color: var(--white);
}

.service-tab-btn.active {
  color: var(--yellow);
  opacity: 1;
}

.service-tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: bottom center;
  transition: transform 0.25s ease;
}

.service-tab-btn.active::after {
  transform: scaleX(1);
}

/* Scroll entrance animations */
.scroll-anim-left {
  transform: translateX(-40px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.scroll-anim-right {
  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.scroll-anim-left.in-view,
.scroll-anim-right.in-view {
  transform: translateX(0);
  opacity: 1;
}

.service-sub-section {
  scroll-margin-top: 112px;
}

/* ═══════════════════════════════════════════════════════
   SERVICES — NORMAL VERTICAL SCROLL LAYOUT
   All breakpoints: sections stack naturally, height auto.
   ═══════════════════════════════════════════════════════ */

#services-scroll-container {
  height: auto;
  position: static;
}

#services {
  position: static;
  height: auto;
  overflow: visible;
  display: block;
}

.services-slider-viewport {
  overflow: visible;
  height: auto;
  position: static;
}

.services-slider-track {
  display: block;
  width: 100%;
  height: auto;
  position: static;
  perspective: none;
  transform: none !important;
}

.service-sub-section {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  box-sizing: border-box;
}


/* Slide entrance animations — always visible in normal scroll mode */
.slide-anim-left,
.slide-anim-right {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════
   PREMIUM SCROLL REVEAL SYSTEM
   ══════════════════════════════════════════════════ */

/* Base reveal — hidden until in view */
.reveal-on-scroll {
  opacity: 0;
  will-change: transform, opacity;
  transition-property: transform, opacity;
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade {
  transform: none;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-down {
  transform: translateY(-40px);
}

.reveal-from-left {
  transform: translateX(-50px);
}

.reveal-from-right {
  transform: translateX(50px);
}

.reveal-scale {
  transform: scale(0.93);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: none;
}

/* Staggered groups — children animate in sequence */
.reveal-group>* {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
  transition-property: transform, opacity;
  transition-duration: 0.9s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-group.revealed>* {
  opacity: 1;
  transform: none;
}

/* ──────────────────────────────────────────────────
   SERVICE SUB-SECTION SCROLL ANIMATIONS
   No opacity effects — all elements always visible.
   Only content slides in from its side.
   ────────────────────────────────────────────────── */

/* Force every element inside a service section to be fully visible */
.service-sub-section *,
.service-sub-section .platform-content,
.service-sub-section .about-content,
.service-sub-section .platform-visual,
.service-sub-section .about-visual,
.service-sub-section .platform-title,
.service-sub-section .platform-desc,
.service-sub-section .platform-eyebrow,
.service-sub-section .platform-img,
.service-sub-section .about-img {
  opacity: 1 !important;
}

/* ODD: content slides in from the right */
.service-sub-section:nth-child(odd) .platform-content,
.service-sub-section:nth-child(odd) .about-content {
  transform: translateX(50px);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

/* EVEN: content slides in from the left */
.service-sub-section:nth-child(even) .platform-content,
.service-sub-section:nth-child(even) .about-content {
  transform: translateX(-50px);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

/* Images: always in place, no animation */
.service-sub-section .platform-visual,
.service-sub-section .about-visual {
  transform: none !important;
}

/* Revealed: content snaps to final position */
.service-sub-section.revealed .platform-content,
.service-sub-section.revealed .about-content {
  transform: none !important;
}



/* ──────────────────────────────────────────────────
   ABOUT SECTION REVEAL
   ────────────────────────────────────────────────── */
#about .about-content.reveal-from-left {
  transition-duration: 1s;
  transition-delay: 0s;
}

#about .about-visual.reveal-from-right {
  transition-duration: 1.1s;
  transition-delay: 0.1s;
}

/* ──────────────────────────────────────────────────
   PLATFORM / SERVICE TITLE WORD HIGHLIGHT ANIMATION
   ────────────────────────────────────────────────── */
@keyframes shimmer-in {
  from {
    background-position: -200% center;
  }

  to {
    background-position: 200% center;
  }
}

/* ──────────────────────────────────────────────────
   COUNTER ANIMATE (for stat numbers)
   ────────────────────────────────────────────────── */
.about-card-num {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-card:hover .about-card-num {
  transform: scale(1.12);
}

/* ──────────────────────────────────────────────────
   HOVER LIFT — cards, buttons, feature items
   ────────────────────────────────────────────────── */
.about-team-preview {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-team-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.about-feature-item {
  transition: transform 0.25s ease;
}

.about-feature-item:hover {
  transform: translateX(6px);
}

/* ──────────────────────────────────────────────────
   SNAP SHIMS — not used in normal scroll mode
   ────────────────────────────────────────────────── */
.services-snap-shims {
  display: none !important;
}


/* ── Premium Scroll Reveal System ── */
.reveal-on-scroll {
  opacity: 0;
  will-change: transform, opacity;
  transition-property: transform, opacity;
  transition-duration: 0.95s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  /* Premium cinematic ease-out */
}

/* Animations styles */
.reveal-fade {
  transform: none;
}

.reveal-up {
  transform: translateY(35px);
}

.reveal-down {
  transform: translateY(-35px);
}

.reveal-from-left {
  transform: translateX(-45px);
}

.reveal-from-right {
  transform: translateX(45px);
}

.reveal-scale {
  transform: scale(0.96);
}

/* Active states when elements enter the viewport */
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: none;
}

/* Staggered Groups */
.reveal-group>* {
  opacity: 0;
  transform: translateY(25px);
  will-change: transform, opacity;
  transition-property: transform, opacity;
  transition-duration: 0.85s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-group.revealed>* {
  opacity: 1;
  transform: none;
}

/* Service sub-sections: scroll-reveal on all screen sizes */
.service-sub-section .platform-content,
.service-sub-section .about-content,
.service-sub-section .platform-visual,
.service-sub-section .about-visual {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
}

.service-sub-section.revealed .platform-content,
.service-sub-section.revealed .about-content,
.service-sub-section.revealed .platform-visual,
.service-sub-section.revealed .about-visual {
  opacity: 1 !important;
  transform: none !important;
}


/* Snap shims are not used in normal scroll mode */
.services-snap-shims {
  display: none !important;
}