/* ==========================================================
   Konza Silicon — main stylesheet
   ========================================================== */

:root {
  --bg: #e5e8e7;
  --white: #ffffff;
  --ink: #111614;
  --ink-soft: #3a4240;
  --teal: #2c7a6f;
  --teal-light: #5aaea2;
  --teal-dark: #1d4a47;
  --green: #36b24a;
  --green-light: #6ad97b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --container: 1120px;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; }
.section-head p { margin: 10px auto 0; font-size: 0.95rem; color: var(--ink-soft); }
.section-head p.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  height: 70px;
}
.logo img { height: 50px; width: auto; }
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: auto;
  padding-right: 116px; /* balance logo width so nav stays centred */
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--green); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg);
  padding: 0 20px;
}
.hero .container {
  background:
    linear-gradient(90deg, rgba(14, 40, 44, 0.55), rgba(14, 40, 44, 0.15)),
    var(--teal-dark) url("../images/hero-bg.jpg") center / cover no-repeat;
  border-radius: var(--radius-lg);
  max-width: 1320px;
  padding: 110px 8% 140px;
  color: var(--white);
}
.hero-inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-content { position: relative; z-index: 2; }

/* soft animated glows */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 420px; height: 420px;
  background: rgba(54, 178, 74, 0.35);
  top: -140px; right: 8%;
  animation: drift 12s ease-in-out infinite alternate;
}
.glow-2 {
  width: 320px; height: 320px;
  background: rgba(90, 174, 162, 0.35);
  bottom: -160px; left: 30%;
  animation: drift 14s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 40px) scale(1.15); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 0 0 rgba(106, 217, 123, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(106, 217, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(106, 217, 123, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 700;
  max-width: 640px;
}
.highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #8ef09c, var(--green-light) 40%, #b9f5c2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.highlight::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 6px;
  border-radius: 6px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.8s 0.9s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero p {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: 1rem;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(54, 178, 74, 0.35);
}
.btn-primary:hover { background: #2c9a3e; box-shadow: 0 14px 30px rgba(54, 178, 74, 0.45); }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.14); }

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  gap: 36px;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 2px solid var(--green);
}
.hero-stats strong { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.hero-stats span { font-size: 0.78rem; opacity: 0.75; }

/* floating code card */
.hero-visual {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}
.code-card {
  border-radius: 14px;
  background: rgba(12, 30, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
.code-card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-card-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.code-card-bar i:nth-child(2) { background: #febc2e; }
.code-card-bar i:nth-child(3) { background: #28c840; }
.code-card-bar span { margin-left: 8px; font-size: 0.75rem; opacity: 0.6; font-family: ui-monospace, Menlo, monospace; }
.code-card pre {
  margin: 0;
  padding: 18px 18px 22px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #d7e6e3;
  white-space: pre;
  overflow: hidden;
}
.code-card b  { color: #8ef09c; font-weight: 600; }
.code-card em { color: #f5c97a; font-style: normal; }
.code-card u  { color: #7fd3ff; text-decoration: none; }
.code-card s  { color: #ff9e8a; text-decoration: none; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.float-chip svg { color: var(--green); }
.chip-1 { top: -18px; right: -10px; animation: float 5s ease-in-out infinite 0.5s; }
.chip-2 { bottom: -20px; left: -24px; animation: float 5.5s ease-in-out infinite 1.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* entrance animation */
.anim {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
.hero-visual.anim { animation-name: rise; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* scroll reveal for the rest of the page */
html .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--rd, 0s);
}
html .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim, html .reveal { opacity: 1; transform: none; }
  .highlight::after { transform: scaleX(1); }
}

/* ---------- About ---------- */
.about {
  background: var(--bg);
  padding: 0 20px;
}
.about-card {
  max-width: 1150px;
  margin: -60px auto 0;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.about-text { padding: 24px 0 24px 8px; }
.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 18px; }
.about-text p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  aspect-ratio: 383 / 261;
}

/* ---------- Services ---------- */
.services {
  background: var(--bg);
  padding: 50px 0 90px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 20px 30px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(17, 22, 20, 0.08);
}
.service-card img {
  height: 130px;
  width: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}
.service-card h3 { font-size: 1.25rem; font-weight: 600; }

/* ---------- Projects ---------- */
.projects { padding: 80px 0 60px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.project-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  transition: transform 0.25s;
}
.project-card:hover { transform: translateY(-4px); }
.project-card::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -30%;
  width: 85%;
  height: 140%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04));
  pointer-events: none;
}
.project-card.teal { background: var(--teal); }
.project-card.green { background: var(--green); }
.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  max-width: 62%;
}
.project-card span {
  position: relative;
  z-index: 1;
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 1;
  margin-right: 12px;
}

/* ---------- Clients ---------- */
.clients {
  background: var(--bg);
  border-radius: 24px;
  padding: 60px 0 60px;
  margin-top: 20px;
}
.clients .section-head h2 { color: #333836; }
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.client-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s;
}
.client-logo:hover { transform: scale(1.06); }
.client-logo img { width: 70%; height: 70%; object-fit: contain; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 60px 0 80px; }
.testimonial-viewport { overflow: hidden; }
.testimonial-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s ease;
}
.testimonial {
  flex: 0 0 calc((100% - 24px) / 3);
  margin: 0;
  background: var(--white);
  border: 1px solid #e6ebe9;
  border-radius: var(--radius-md);
  padding: 18px 18px 22px;
}
.testimonial p {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-soft);
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
}
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: #eef2f1;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.slider-btn.next,
.slider-btn:hover { background: var(--teal-dark); color: var(--white); }
.slider-btn:disabled { opacity: 0.4; cursor: default; }

/* ---------- Section embellishments ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-head .eyebrow::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow.light { color: var(--green-light); }

/* About */
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.88rem;
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: rgba(54, 178, 74, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2336b24a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.about-image { position: relative; }
.about-image img { transition: transform 0.6s ease; }
.about-image:hover img { transform: scale(1.02); }
.about-badge {
  position: absolute;
  left: -22px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 14px 16px;
  border-left: 4px solid var(--green);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(17, 22, 20, 0.16);
  animation: float 6s ease-in-out infinite;
}
.about-badge strong { font-size: 1.15rem; color: var(--teal-dark); }
.about-badge span { font-size: 0.75rem; color: var(--ink-soft); }

/* Services */
.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { border-color: rgba(54, 178, 74, 0.25); }
.service-num {
  position: absolute;
  top: 14px; left: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
}
.service-img {
  margin: 0 auto 18px;
  padding: 10px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 60%, rgba(54, 178, 74, 0.09), transparent 70%);
}
.service-card .service-img img { margin: 0 auto; mix-blend-mode: multiply; transition: transform 0.35s ease; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-card p {
  margin: 10px auto 0;
  max-width: 280px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* Projects */
.project-card {
  box-shadow: 0 10px 24px rgba(17, 22, 20, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover { box-shadow: 0 18px 36px rgba(17, 22, 20, 0.16); }
.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}
.project-card:hover::before { left: 120%; }
.project-card span { transition: transform 0.3s ease; }
.project-card:hover span { transform: scale(1.08) rotate(-4deg); }

/* Clients */
.client-logo {
  box-shadow: 0 6px 18px rgba(17, 22, 20, 0.06);
  outline: 2px solid transparent;
  outline-offset: 4px;
  transition: transform 0.25s, outline-color 0.25s;
}
.client-logo:hover { outline-color: var(--green); }
.country-chips {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.country-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal-dark);
}
.country-chips li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.country-chips li.more { background: var(--teal); color: var(--white); }
.country-chips li.more::before { background: var(--green-light); }

/* Testimonials */
.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 22px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.testimonial:hover {
  border-color: rgba(54, 178, 74, 0.35);
  box-shadow: 0 14px 30px rgba(17, 22, 20, 0.07);
}
.quote-mark { color: var(--green); opacity: 0.85; margin-bottom: 10px; }
.testimonial p { flex: 1; font-size: 0.86rem; }
.testimonial footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #edf1f0;
}
.avatar {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Footer / Contact ---------- */
.site-footer { padding: 0 20px 20px; }
.footer-panel {
  max-width: 1320px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(14, 40, 44, 0.35), rgba(14, 40, 44, 0.75)),
    var(--teal-dark) url("../images/hero-bg.jpg") center / cover no-repeat;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 64px 0 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
.cta p { margin: 14px 0 0; opacity: 0.8; font-size: 0.95rem; }
.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 14px;
  border-radius: 14px;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s, box-shadow 0.25s;
  max-width: 100%;
}
.cta-email:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3); }
.cta-icon {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--white);
}
.cta-label { display: flex; flex-direction: column; font-size: 1rem; min-width: 0; white-space: nowrap; }
.cta-label small { font-size: 0.72rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.04em; }
.cta-arrow { flex: none; color: var(--green); transition: transform 0.2s; }
.cta-email:hover .cta-arrow { transform: translate(2px, -2px); }

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 40px;
  padding: 44px 0 36px;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 300px; margin: 0; font-size: 0.85rem; opacity: 0.8; }
.footer-col h4 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
}
.footer-col p { margin: 0 0 18px; font-size: 0.88rem; }
.footer-col a:hover { color: var(--green-light); }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.footer-links a { transition: color 0.2s, transform 0.2s; }
.footer-links a:hover { transform: translateX(4px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
}
.footer-bottom p { margin: 0; opacity: 0.85; }
.back-top {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.back-top:hover { background: var(--white); color: var(--teal-dark); transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero .container { padding-left: 6%; padding-right: 6%; }
  .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 28px; }
  .code-card pre { font-size: 0.74rem; }
  .about-badge { left: 12px; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { max-width: 560px; }
  .about-image img { aspect-ratio: 16 / 9; max-height: 420px; }

  /* services become compact horizontal cards */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
    column-gap: 24px;
    align-items: center;
    text-align: left;
    padding: 20px 24px;
  }
  .service-img { grid-row: 1 / span 2; margin: 0; }
  .service-card img { height: 120px; }
  .service-card h3 { align-self: end; }
  .service-card p { align-self: start; margin: 8px 0 0; max-width: none; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial { flex-basis: calc((100% - 12px) / 2); }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    background: var(--bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav a { padding: 14px 24px; border-top: 1px solid rgba(0,0,0,0.06); }
  .site-header.open .main-nav { max-height: 300px; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 0 12px; }
  .hero .container { padding: 70px 24px 110px; }
  .about { padding: 0 16px; }
  .about-card { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .about-text { padding: 12px 4px 0; }
  .about-badge { left: 12px; bottom: 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 0 12px 12px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .testimonial { flex-basis: 100%; }
  .project-card span { font-size: 3.6rem; }
  .hero-stats { gap: 18px; }
  .hero-stats strong { font-size: 1.3rem; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .check-list { grid-template-columns: 1fr; }
  .cta { padding: 44px 0 36px; }
  .cta-email { width: 100%; gap: 12px; padding: 12px 14px 12px 12px; }
  .cta-icon { flex-basis: 42px; height: 42px; }
  .cta-label { font-size: clamp(0.78rem, 3.9vw, 0.95rem); }
  .cta-arrow { display: none; }

  /* services stack again on phones */
  .service-card { grid-template-columns: 1fr; text-align: center; padding: 20px 18px 26px; }
  .service-img { grid-row: auto; margin: 0 auto 14px; }
  .service-card p { max-width: 300px; margin: 8px auto 0; }
  .project-card { min-height: 150px; }
  .project-card h3 { max-width: 70%; }
  .about-badge { padding: 10px 14px 10px 12px; }
  .about-badge strong { font-size: 1rem; }
}

@media (max-width: 400px) {
  .hero .container { padding: 56px 20px 100px; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { flex: none; width: 100%; }
  .hero-stats { gap: 12px; }
  .hero-stats li { padding-left: 10px; }
  .hero-stats strong { font-size: 1.15rem; }
  .hero-stats span { font-size: 0.7rem; }
  .section-head h2 br { display: none; }
  .country-chips li { font-size: 0.74rem; padding: 5px 11px; }
  .cta-email { gap: 10px; padding: 10px 12px 10px 10px; }
  .cta-icon { flex-basis: 36px; height: 36px; border-radius: 10px; }
  .cta-icon svg { width: 18px; height: 18px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
}
