/* ==========================================================================
   IQTech Solutions - Main Stylesheet
   Theme: light, white & refreshing (teal / cyan accents)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colours */
  --ink: #0d1b2a;            /* headings / dark text */
  --ink-soft: #33415c;       /* secondary headings */
  --muted: #5b6b7f;          /* body text */
  --muted-light: #8a99ab;

  --primary: #0fa3a3;        /* teal */
  --primary-dark: #0b8281;
  --primary-light: #e6f7f7;
  --accent: #22c1dc;         /* cyan */
  --accent-soft: #e8fbfe;

  --bg: #ffffff;
  --bg-soft: #f5f9fb;        /* soft section background */
  --bg-tint: #eef6f8;
  --border: #e4ecf1;

  --grad-primary: linear-gradient(135deg, #0fa3a3 0%, #22c1dc 100%);
  --grad-text: linear-gradient(120deg, #0fa3a3 20%, #1fb6d0 80%);

  /* Type */
  --font-head: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Misc */
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, 0.12);
  --container: 1180px;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--muted);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

section {
  padding: 90px 0;
}

/* ---------- 3. Utilities ---------- */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 163, 163, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 163, 163, 0.45);
}

.btn-outline {
  border-color: var(--border);
  color: var(--ink);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-light);
}

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. Header / navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand span em {
  font-style: normal;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta .btn {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 40px;
  text-align: center;
  background:
    radial-gradient(1000px 700px at 0% 30%, rgba(34, 193, 220, 0.30), transparent 60%),
    radial-gradient(800px 600px at 100% 20%, rgba(15, 163, 163, 0.14), transparent 60%),
    radial-gradient(700px 500px at 85% 90%, rgba(255, 205, 210, 0.18), transparent 65%),
    linear-gradient(180deg, #fbfdfe, #f7fbfc);
  overflow: hidden;
}

/* Grain / noise texture over the gradient wash */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
}

/* 3D wireframe wave along the bottom */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 78%;
  background: url("../images/wave-grid.svg") bottom center / cover no-repeat;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  padding: 7px 18px 7px 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero-badge .tag {
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-copy .lead {
  max-width: 480px;
  margin: 0 0 34px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero photo panel */
.hero-photo-wrap {
  position: relative;
  min-height: 380px;
}

.hero-photo-blob {
  position: absolute;
  left: 4%;
  right: -1000px;
  bottom: -100px;
  height: 60%;
  background: var(--ink);
  border-radius: 160px 0 0 0;
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 92%;
  max-height: 380px;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.hero-float-badge {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 18px 18px 18px 4px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: floaty 4.5s ease-in-out infinite;
}

.hero-float-badge svg {
  width: 24px;
  height: 24px;
}

.hero-float-badge img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.hero-float-badge.badge-1 {
  top: 6%;
  right: 6%;
  background: var(--grad-primary);
}

.hero-float-badge.badge-2 {
  top: 34%;
  left: 0;
  background: var(--ink);
  animation-delay: 1.2s;
}

.hero-float-badge.badge-3 {
  bottom: 14%;
  right: -6px;
  background: #fff;
  animation-delay: 2.4s;
}

.hero-float-badge.badge-3 img {
  width: 34px;
  height: 34px;
  filter: none;
}

/* ---------- 5b. Intro + partner band (after hero) ---------- */
.intro {
  padding: 80px 0 70px;
  background: var(--bg);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
}

.intro-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.intro-copy p {
  font-size: 1rem;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.intro-card {
  background: var(--ink);
  color: #d7e3ee;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  font-size: 0.93rem;
  line-height: 1.6;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.intro-card svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--accent);
}

/* Full-width dark partner band */
.partner-band {
  position: relative;
  padding: 90px 0 0;
  background:
    linear-gradient(120deg, rgba(6, 18, 32, 0.92) 30%, rgba(11, 60, 72, 0.82)),
    url("../images/images-2.jpg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.partner-band .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.partner-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  max-width: 880px;
  margin: 0 auto 18px;
}

.partner-band .band-sub {
  color: #b9cbd8;
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 1.02rem;
}

.partner-band .band-object {
  width: min(340px, 40vw);
  margin: 10px auto 40px;
  animation: floaty 5s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.partner-band .band-cta {
  padding-bottom: 90px;
}

.partner-band .band-robot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(430px, 34vw);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(-14px 10px 30px rgba(0, 0, 0, 0.45));
}

/* ---------- 6. Trusted-by strip ---------- */
.trusted {
  padding: 44px 0;
  border-block: 1px solid var(--border);
  background: var(--bg);
}

.trusted-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.trusted-label {
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.trusted-logos {
  display: flex;
  align-items: center;
  gap: 46px;
  flex-wrap: wrap;
  justify-content: center;
}

.trusted-logos span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: #b3c0cd;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.trusted-logos span:hover {
  color: var(--primary);
}

/* ---------- 7. Services ---------- */
.services {
  background: var(--bg-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.services-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

@media (max-width: 560px) {
  .services-grid-2 { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.35s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
  background: #fff;
}

.service-card:hover h3 {
  color: var(--ink);
}

.service-card:hover p {
  color: var(--muted);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #fff;
}

.service-card p {
  font-size: 0.94rem;
  flex: 1;
  color: #b9c6d3;
}

.service-link {
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.service-card:hover .service-link {
  color: var(--primary-dark);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ---------- 7b. Services split section (home page) ---------- */
.stack-section {
  padding: 30px 0 90px;
  background: var(--bg);
}

.stack-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-top: 44px;
}

.stack-intro p {
  font-size: 1rem;
  margin-bottom: 24px;
}

/* Compact 2x2 grid of service cards, no scroll-stacking */
.stack-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stack-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: 30px 26px;
  min-height: 240px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(13, 27, 42, 0.25);
}

.stack-card .card-tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.stack-card h2 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.stack-card p {
  color: #c3d2de;
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.stack-card .service-link {
  margin-top: 0;
}

/* Rotating background themes for the stacked cards */
.card-bg-1 {
  background:
    linear-gradient(rgba(5, 15, 27, 0.88), rgba(5, 15, 27, 0.88)),
    url("../images/images-2.jpg") center / cover no-repeat;
}

.card-bg-2 {
  background:
    radial-gradient(700px 420px at 85% 12%, rgba(34, 193, 220, 0.26), transparent 60%),
    radial-gradient(620px 420px at 8% 88%, rgba(15, 163, 163, 0.30), transparent 60%),
    #081826;
}

.card-bg-3 {
  background:
    url("../images/wave-grid.svg") bottom center / cover no-repeat,
    linear-gradient(160deg, #0b2531, #06121e);
}

/* ---------- 7c. Service detail page - overview split ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.overview-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.overview-img-plain {
  border-radius: 0;
  box-shadow: none;
}

.overview-img-lg {
  width: 118%;
  max-width: 118%;
  margin-left: -9%;
}

/* ---------- 8. Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.why-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    url("../images/about.png") center / cover no-repeat,
    linear-gradient(150deg, var(--bg-tint), var(--accent-soft));
  padding: 40px;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-visual .float-chip {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floaty 4.5s ease-in-out infinite;
}

.float-chip svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.float-chip.chip-1 { top: 34px; right: 26px; }
.float-chip.chip-2 { bottom: 44px; left: 22px; animation-delay: 1.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.why-content .eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.why-content h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 16px;
}

.why-content > p {
  margin-bottom: 30px;
}

.why-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.why-list .check {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
}

.why-list .check svg {
  width: 20px;
  height: 20px;
}

.why-list h4 {
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.why-list p {
  font-size: 0.92rem;
}

/* ---------- 9. Stats ---------- */
.stats {
  padding: 40px 0 40px;
}

.stats-band {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  box-shadow: var(--shadow-md);
}

.stat {
  text-align: center;
}

.stat:not(:first-child) {
  border-left: 1px solid var(--border);
}

.stat .num {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ink);
}

.stat .num::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-primary);
  margin: 10px auto 0;
}

.stat .label {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- 10. Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 26px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.process-step .step-num {
  position: absolute;
  top: -18px;
  left: 26px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(15, 163, 163, 0.4);
}

.process-step h3 {
  font-size: 1.08rem;
  margin: 14px 0 8px;
}

.process-step p {
  font-size: 0.92rem;
}

/* ---------- 11. Journey timeline (About) ---------- */
.journey {
  background: var(--bg-soft);
  overflow: hidden;
}

.timeline {
  position: relative;
  margin-top: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 2px dashed #c9d6df;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.milestone {
  position: relative;
  padding: 190px 0;
  text-align: center;
}

.milestone .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b9c6d1;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #c9d6df;
  transition: background 0.3s, box-shadow 0.3s;
}

.milestone:hover .dot,
.milestone.highlight .dot {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 163, 163, 0.3);
}

.milestone .year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  transition: color 0.3s;
}

.milestone:hover .year,
.milestone.highlight .year {
  color: var(--primary);
}

.milestone .m-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.88rem;
  text-align: left;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}

.milestone:hover .m-card {
  box-shadow: var(--shadow-md);
}

.milestone.top .year { top: calc(50% + 26px); }
.milestone.top .m-card { bottom: calc(50% + 40px); }
.milestone.bottom .year { bottom: calc(50% + 26px); }
.milestone.bottom .m-card { top: calc(50% + 40px); }

/* ---------- 12. Testimonials - expanding accordion ---------- */
.testimonials {
  background: var(--bg);
}

.cs-accordion {
  position: relative;
  display: flex;
  gap: 14px;
  height: 460px;
  border-radius: 26px;
  overflow: hidden;
}

.cs-float-card {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 250px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  z-index: 5;
  animation: floaty 4.5s ease-in-out infinite;
}

.cs-float-img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #bdeceb, #3fb6ad 75%);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
}

.cs-float-img svg {
  width: 26px;
  height: 26px;
}

.cs-float-text p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}

.cs-float-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  padding: 6px 14px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-float-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 163, 163, 0.35);
}

.cs-item {
  position: relative;
  flex: 0 1 90px;
  flex-grow: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  transition: flex-grow 0.6s ease;
}

.cs-item.active {
  flex-grow: 8;
  cursor: default;
}

.cs-bg-1 {
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(34, 193, 220, 0.45), rgba(8, 20, 32, 0.55) 65%),
    url("../images/images-2.jpg") center / cover no-repeat,
    #0b1c2c;
}

.cs-bg-2 {
  background:
    radial-gradient(600px 400px at 85% 100%, rgba(15, 163, 163, 0.42), rgba(6, 15, 24, 0.55) 65%),
    url("../images/Rectangle-47-1-1.png.webp") center / cover no-repeat,
    #081826;
}

.cs-bg-3 {
  background:
    radial-gradient(600px 400px at 25% 100%, rgba(34, 193, 220, 0.40), rgba(9, 22, 34, 0.55) 65%),
    url("../images/images-2.jpg") center / cover no-repeat,
    #0d2230;
}

.cs-bg-4 {
  background:
    radial-gradient(600px 400px at 75% 0%, rgba(15, 163, 163, 0.42), rgba(7, 20, 30, 0.55) 65%),
    url("../images/Rectangle-47-1-1.png.webp") center / cover no-repeat,
    #0a1c2a;
}

.cs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 32, 0.1), rgba(6, 18, 32, 0.82));
}

.cs-label {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.cs-item.active .cs-label {
  opacity: 0;
  pointer-events: none;
}

.cs-content {
  position: absolute;
  inset: 0;
  padding: 46px 50px 40px;
  min-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
  pointer-events: none;
  z-index: 2;
}

.cs-item.active .cs-content {
  opacity: 1;
  pointer-events: auto;
}

.cs-quote-mark {
  font-family: Georgia, serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.65;
  margin-bottom: 6px;
}

.cs-content blockquote {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 26px;
}

.cs-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cs-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
}

.cs-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.cs-role {
  font-size: 0.82rem;
  color: #9fb0c0;
}

.cs-plus {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: opacity 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}

.cs-item:not(.active):hover .cs-plus {
  background: var(--grad-primary);
  border-color: transparent;
}

.cs-item.active .cs-plus {
  opacity: 0;
  pointer-events: none;
}

.cs-plus svg {
  width: 16px;
  height: 16px;
}

/* ---------- 13. CTA band ---------- */
.cta-band {
  padding: 0 0 90px;
}

.cta-inner {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.cta-inner::before,
.cta-inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.cta-inner::before {
  width: 340px;
  height: 340px;
  background: rgba(34, 193, 220, 0.22);
  top: -160px;
  left: -100px;
}

.cta-inner::after {
  width: 300px;
  height: 300px;
  background: rgba(15, 163, 163, 0.25);
  bottom: -150px;
  right: -80px;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-inner p {
  color: #b9c6d3;
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.cta-inner .btn {
  position: relative;
  z-index: 1;
}

/* ---------- 14. Page hero (inner pages) ---------- */
.page-hero {
  padding: 150px 0 70px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(34, 193, 220, 0.10), transparent 60%),
    radial-gradient(600px 300px at 80% 10%, rgba(15, 163, 163, 0.10), transparent 60%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.breadcrumb {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--muted-light);
}

.breadcrumb a {
  color: var(--primary-dark);
  font-weight: 600;
}

/* ---------- 15. About page extras ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.mission-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.mission-card .service-icon {
  margin-bottom: 18px;
}

.mission-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* Mission & Vision - image rows */
.mv-intro {
  max-width: 760px;
  margin: 0 auto 70px;
  text-align: center;
  font-size: 1.05rem;
}

.mv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.mv-row:last-child {
  margin-bottom: 0;
}

.mv-content .eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.mv-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.mv-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.value-card {
  text-align: center;
  padding: 36px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-card .service-icon {
  margin: 0 auto 18px;
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-card .avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
}

.team-card h3 {
  font-size: 1.05rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: 4px;
}

/* ---------- 16. Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
}

.contact-info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.contact-info-card > p {
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.info-item .service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin: 0;
  flex-shrink: 0;
}

.info-item .service-icon svg {
  width: 22px;
  height: 22px;
}

.info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.info-item p,
.info-item a {
  font-size: 0.9rem;
  color: var(--muted);
}

.info-item a:hover {
  color: var(--primary-dark);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 163, 163, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted-light);
  margin-top: 14px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background: #e7f8ef;
  color: #17794b;
  border: 1px solid #bfe9d2;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #9fb0c0;
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 46px;
  padding-bottom: 50px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 300px;
  margin-bottom: 22px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  color: #cfdbe4;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.socials a:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: translateY(-3px);
}

.socials svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 0.92rem;
  color: #9fb0c0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #9fb0c0;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Back-to-top */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: none;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 900;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   18. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .overview-grid { grid-template-columns: 1fr; gap: 34px; }
  .overview-img-lg { width: 100%; max-width: 100%; margin-left: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo-wrap { max-width: 460px; margin: 0 auto; }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .stat:nth-child(3) { border-left: none; }
  .stack-layout { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  section { padding: 66px 0; }

  /* Mobile nav */
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 10px 6vw 20px;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-tint);
    font-size: 1rem;
  }

  .nav-links a::after { display: none; }

  .nav-cta .btn { padding: 11px 20px; font-size: 0.88rem; }

  .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .intro-cards { grid-template-columns: 1fr; }

  /* Robot sits below the content instead of overlapping it */
  .partner-band .band-robot {
    position: static;
    width: 250px;
    margin: 0 auto;
  }
  .partner-band .band-cta { padding-bottom: 40px; }

  .stack-cards { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .mv-row { grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
  .mv-row .mv-photo { order: -1; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Accordion goes vertical */
  .cs-accordion {
    flex-direction: column;
    height: auto;
  }

  .cs-item {
    flex: 0 1 64px;
  }

  .cs-item.active {
    flex-grow: 1;
  }

  .cs-label {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    transition: opacity 0.15s ease, height 0.15s ease, padding 0.15s ease;
  }

  .cs-item.active .cs-label {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
  }

  .cs-content {
    position: static;
    min-width: 0;
    padding: 0 22px 24px;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.4s ease;
  }

  .cs-item.active .cs-content {
    max-height: 600px;
    padding: 6px 22px 26px;
  }

  .cs-plus { display: none; }
  .cs-float-card { display: none; }

  /* Timeline goes vertical */
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    border-top: none;
    border-left: 2px dashed #c9d6df;
  }

  .timeline-track {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .milestone {
    padding: 0 0 0 40px;
    text-align: left;
  }

  .milestone .dot {
    top: 6px;
    left: 8px;
    transform: translate(-50%, 0);
  }

  .milestone .year {
    position: static;
    transform: none;
    display: block;
    margin-bottom: 10px;
    font-size: 1.3rem;
  }

  .milestone .m-card {
    position: static;
    transform: none;
  }
}

@media (max-width: 560px) {
  .hero { padding: 140px 0 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo-wrap { min-height: 340px; }
  .hero-photo { min-height: 300px; }
  .hero-photo-blob { display: none; }
  .cta-inner { padding: 50px 26px; }
}
