/* ============================================
   HAYN TECHNOLOGIES — Modern Design System
   ============================================ */

/* --- Variables (Dark — default) --- */
:root {
  --logo-primary:   #e2e2f0;
  --logo-secondary: rgba(226,226,240,0.38);
  --bg:            #07070f;
  --bg-2:          #0d0d1f;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.18);
  --text:          #e8e8f0;
  --text-muted:    #888899;
  --text-dim:      #555566;
  --text-heading:  #ffffff;
  --accent:        #6366f1;
  --accent-2:      #8b5cf6;
  --accent-3:      #06b6d4;
  --green:         #10b981;
  --blue:          #3b82f6;
  --purple:        #8b5cf6;
  --grad:          linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  --grad-subtle:   linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.05));
  --footer-bg:     #040408;
  --nav-scrolled:  rgba(7,7,15,0.88);
  --nav-mobile:    rgba(7,7,15,0.97);
  --hero-card-bg:  rgba(13,13,31,0.88);
  --grid-line:     rgba(255,255,255,0.02);
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:  'Space Grotesk', 'Inter', sans-serif;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 48px rgba(0,0,0,0.6);
  --nav-h:         70px;
  --transition:    0.25s cubic-bezier(0.4,0,0.2,1);
}

/* --- Light Theme --- */
[data-theme="light"] .hero-orb { opacity: 0.15; }
[data-theme="light"] .hero-orb-2 { opacity: 0.1; }

[data-theme="light"] {
  --logo-primary:   #1a1a2e;
  --logo-secondary: #b0b0c8;
  --bg:            #f5f6fa;
  --bg-2:          #eceef8;
  --bg-card:       rgba(0,0,0,0.035);
  --bg-card-hover: rgba(0,0,0,0.065);
  --border:        rgba(0,0,0,0.09);
  --border-hover:  rgba(0,0,0,0.22);
  --text:          #2c2c3e;
  --text-muted:    #6b6b88;
  --text-dim:      #aaaabc;
  --text-heading:  #0f0f1a;
  --grad-subtle:   linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.04));
  --footer-bg:     #e5e7f4;
  --nav-scrolled:  rgba(245,246,250,0.92);
  --nav-mobile:    rgba(245,246,250,0.98);
  --hero-card-bg:  rgba(255,255,255,0.92);
  --grid-line:     rgba(0,0,0,0.04);
  --shadow:        0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg:     0 8px 48px rgba(0,0,0,0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* --- Typography helpers --- */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 8px;
}

.mt-6 { margin-top: 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(99,102,241,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: var(--nav-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--text-heading);
  text-decoration: none;
}

/* H-mark SVG logo */
.brand-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.brand-logo .sq-d { fill: var(--logo-primary); }
.brand-logo .sq-l { fill: var(--logo-secondary); }

.brand-short { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links .nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  color: var(--text-heading);
  background: var(--bg-card);
}

.nav-links .nav-cta {
  background: var(--grad);
  color: #fff;
  padding: 9px 20px;
  margin-left: 8px;
}
.nav-links .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  background: var(--grad);
}

/* Mobile controls wrapper — hidden on desktop */
.nav-mobile-controls {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.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); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -100px;
  right: -150px;
}
.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  bottom: -50px;
  left: 100px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* hero-img kept for fallback; primary illustration now uses SVG */
.hero-img {
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 20px 60px rgba(99,102,241,0.25));
  animation: float 6s ease-in-out infinite;
}

/* ── AI Neural Network Illustration ── */
.hero-ai-illustration {
  width: 100%;
  max-width: 440px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 16px 48px rgba(99,102,241,0.2));
}

.ai-line {
  stroke: rgba(99,102,241,0.16);
  stroke-width: 1;
}
.ai-line-hi {
  stroke: rgba(99,102,241,0.38);
  stroke-width: 1.5;
}

/* Travelling data-pulse dots */
.ai-pulse {
  stroke-width: 3;
  stroke-linecap: round;
}
.ai-pulse-1 { stroke: #06b6d4; stroke-dasharray: 6 134; animation: dataPulse 2.0s linear infinite; }
.ai-pulse-2 { stroke: #6366f1; stroke-dasharray: 6 131; animation: dataPulse 1.7s linear infinite 0.5s; }
.ai-pulse-3 { stroke: #8b5cf6; stroke-dasharray: 6 133; animation: dataPulse 2.3s linear infinite 1.0s; }
.ai-pulse-4 { stroke: #06b6d4; stroke-dasharray: 6 131; animation: dataPulse 1.9s linear infinite 1.5s; }

@keyframes dataPulse {
  from { stroke-dashoffset: 140; }
  to   { stroke-dashoffset: 0; }
}

.ai-node { animation: nodeGlow 3s ease-in-out infinite; }
.ai-node:nth-child(2n) { animation-delay: 0.6s; }
.ai-node:nth-child(3n) { animation-delay: 1.2s; }
.ai-node-main         { animation-duration: 2s; }

@keyframes nodeGlow {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 1; }
}

.ai-ring   { animation: ringPulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.ai-ring-2 { animation: ringPulse 2.6s ease-out infinite 0.7s; transform-box: fill-box; transform-origin: center; }

@keyframes ringPulse {
  0%   { transform: scale(0.75); opacity: 0.7; }
  100% { transform: scale(1.6);  opacity: 0; }
}

.ai-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: rgba(99,102,241,0.5);
}
.ai-value {
  font-family: var(--font-sans);
  font-size: 8px;
  fill: rgba(99,102,241,0.4);
}
.ai-deco {
  stroke: rgba(99,102,241,0.22);
  stroke-width: 1.5;
  stroke-linecap: square;
}

/* Light mode adjustments */
[data-theme="light"] .ai-line    { stroke: rgba(79,70,229,0.1); }
[data-theme="light"] .ai-line-hi { stroke: rgba(79,70,229,0.28); }
[data-theme="light"] .ai-label   { fill: rgba(79,70,229,0.55); }
[data-theme="light"] .ai-value   { fill: rgba(79,70,229,0.45); }
[data-theme="light"] .ai-deco    { stroke: rgba(79,70,229,0.2); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes floatX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

.hero-card {
  position: absolute;
  background: var(--hero-card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: float 6s ease-in-out infinite;
}
.hero-card span { font-size: 11px; color: var(--text-muted); }
.hero-card strong { font-size: 14px; color: var(--text-heading); font-weight: 700; }

.hero-card-1 { top: 10%;  left: -5%;  animation-delay: 0s; }
.hero-card-2 { bottom: 15%; right: -5%; animation-delay: 1.5s; }
.hero-card-3 { bottom: -2%; left: 10%; animation-delay: 3s; }
.hero-card-4 { top: 10%;  right: -5%; animation-delay: 4.5s; }

.card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-bottom: 4px;
}
.card-dot.green  { background: var(--green);  box-shadow: 0 0 6px var(--green); }
.card-dot.blue   { background: var(--blue);   box-shadow: 0 0 6px var(--blue); }
.card-dot.purple { background: var(--purple); box-shadow: 0 0 6px var(--purple); }
.card-dot.orange { background: #f59e0b;       box-shadow: 0 0 6px #f59e0b; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   TECH STACK STRIP
   ============================================ */
.techstack {
  padding: 52px 0 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.techstack-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}

/* Scrolling track */
.techstack-track {
  position: relative;
  overflow: hidden;
}

/* Fade-out edges */
.techstack-track::before,
.techstack-track::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.techstack-track::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-2) 20%, transparent);
}
.techstack-track::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-2) 20%, transparent);
}

/* Inner scrolling row — items listed twice for seamless loop */
.techstack-inner {
  display: flex;
  align-items: center;
  width: max-content;
  animation: techScroll 36s linear infinite;
}
.techstack-inner:hover { animation-play-state: paused; }

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

/* Individual logo item */
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  color: var(--text-dim);
  transition: color var(--transition);
  cursor: default;
  user-select: none;
}
.tech-item:hover { color: var(--accent); }

.tech-item svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.tech-item span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--bg-2);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-subtle);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 1; }

.service-card.featured {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border-color: rgba(99,102,241,0.3);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.1));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-lead {
  font-size: 17px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Right column */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-number {
  display: inline;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-suffix {
  display: inline;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* Qualitative highlights */
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color var(--transition), background var(--transition);
}
.about-highlight:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* Per-card float animations with different timings */
.ah-float-1 { animation: float 5s ease-in-out infinite; }
.ah-float-2 { animation: float 6.5s ease-in-out infinite; animation-delay: 0.8s; }
.ah-float-3 { animation: float 5.8s ease-in-out infinite; animation-delay: 1.6s; }

.highlight-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-icon svg { width: 20px; height: 20px; }

/* Icon colour variants */
.hi-green {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  color: #10b981;
}
.hi-blue {
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.25);
  color: #06b6d4;
}
.hi-purple {
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  color: #8b5cf6;
}

.about-highlight strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 3px;
}
.about-highlight p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Inline animated counter inside highlight */
.ah-stat {
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   CAREERS
   ============================================ */
.careers {
  background: var(--bg-2);
}

.careers-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.careers-cta { flex-shrink: 0; }

.careers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.career-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  position: relative;
}
.career-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

/* Top accent bar */
.career-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
}
.ca-indigo { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.ca-cyan   { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.ca-green  { background: linear-gradient(90deg, #10b981, #06b6d4); }
.ca-amber  { background: linear-gradient(90deg, #f59e0b, #ef4444); }

.career-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  margin-top: 8px;
}

/* Category tags */
.career-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.ct-engineering { color: #818cf8; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.2); }
.ct-infra       { color: #22d3ee; background: rgba(6,182,212,0.12);  border: 1px solid rgba(6,182,212,0.2); }
.ct-quality     { color: #34d399; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.2); }
.ct-banking     { color: #fbbf24; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.2); }

/* Open badge */
.career-open {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.career-open::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  flex-shrink: 0;
}

.career-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.career-card > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

/* Skill tags */
.career-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.career-skills span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 6px;
}

.career-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  margin-top: auto;
}
.career-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.career-link:hover { color: var(--accent-3); }
.career-link:hover svg { transform: translateX(3px); }

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--bg);
}

.contact-header {
  max-width: 580px;
  margin-bottom: 56px;
}

.contact-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}

/* Channel cards */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: var(--transition);
  text-decoration: none;
}
.channel-card:hover {
  border-color: rgba(99,102,241,0.35);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.channel-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-icon svg { width: 22px; height: 22px; }

/* Email — red */
.ci-email {
  background: rgba(234,67,53,0.12);
  border: 1px solid rgba(234,67,53,0.25);
  color: #ea4335;
}
/* Phone — WhatsApp green */
.ci-phone {
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.25);
  color: #25d366;
}
/* Location — Google Maps red-orange */
.ci-location {
  background: rgba(251,140,0,0.12);
  border: 1px solid rgba(251,140,0,0.25);
  color: #fb8c00;
}
/* LinkedIn — brand blue */
.ci-linkedin {
  background: rgba(0,119,181,0.12);
  border: 1px solid rgba(0,119,181,0.28);
  color: #0077b5;
}

.channel-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.channel-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.channel-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  font-family: var(--font-display);
}
.channel-note {
  font-size: 13px;
  color: var(--text-muted);
}

.channel-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: var(--transition);
}
.channel-arrow svg { width: 20px; height: 20px; }
.channel-card:hover .channel-arrow { color: var(--accent); transform: translate(2px, -2px); }


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}

/* CTA strip */
.footer-cta {
  background: var(--grad-subtle);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-cta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.footer-cta-heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

/* Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}

/* Brand column */
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}
.footer-brand-logo .brand-logo { width: 28px; height: 28px; }
.footer-brand-logo span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-heading);
}

.footer-brand > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-socials a svg { width: 15px; height: 15px; }
.fs-linkedin:hover { color: #0077b5; border-color: #0077b5; background: rgba(0,119,181,0.08); }
.fs-github:hover   { color: var(--text-heading); border-color: var(--border-hover); }
.fs-x:hover        { color: var(--text-heading); border-color: var(--border-hover); }

/* Link columns */
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { color: var(--text-heading); padding-left: 4px; }

/* Contact list */
.footer-contact-list { gap: 14px !important; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-contact-list svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.footer-contact-list a { color: var(--text-muted); transition: var(--transition); font-size: 13px; }
.footer-contact-list a:hover { color: var(--accent); padding-left: 0; }

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-made { color: var(--text-dim); }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 99;
}
.scroll-top svg { width: 20px; height: 20px; }
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.5);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.nav-theme-item {
  margin-left: 6px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-heading);
}
/* Emoji icons: sun shown in dark mode, moon shown in light mode */
.icon-sun,
.icon-moon {
  font-size: 16px;
  line-height: 1;
  display: block;
}
.icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Mobile-only toggle styling */
.theme-toggle-mobile {
  font-size: 18px;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
[data-reveal],
[data-reveal-delay] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
[data-reveal-delay] { transition-delay: 0.15s; }

[data-reveal].visible,
[data-reveal-delay].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAV CTA BUTTON
   ============================================ */
.nav-btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: var(--grad);
  color: #fff;
  margin-left: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

/* ============================================
   SECONDARY BUTTON
   ============================================ */
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover {
  background: rgba(99,102,241,0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.2);
}

/* ============================================
   HOW WE WORK
   ============================================ */
.howwework {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hww-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.hww-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
}
.hww-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.hww-card-alt {
  background: var(--grad-subtle);
  border-color: rgba(99,102,241,0.2);
}
.hww-card-alt:hover {
  border-color: rgba(99,102,241,0.4);
}

.hww-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.hww-icon svg { width: 32px; height: 32px; }

.hww-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.hww-card > p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.hww-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.hww-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.hww-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

.hww-btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ============================================
   CLIENTS / TRUSTED BY
   ============================================ */
.clients {
  background: var(--bg);
}
.clients .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 36px;
  border-right: 1px solid var(--border);
  transition: opacity var(--transition);
}
.client-logo:last-child { border-right: none; }

.client-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transition: color var(--transition);
}
.client-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}
.client-logo:hover .client-name { color: var(--text-heading); }
.client-logo:hover .client-sub { color: var(--text-muted); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.testimonials .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card:nth-child(1) { animation: floatX 6s   ease-in-out infinite; animation-delay: 0s;  }
.testi-card:nth-child(2) { animation: floatX 7.5s ease-in-out infinite; animation-delay: 0.8s; animation-direction: reverse; }
.testi-card:nth-child(3) { animation: floatX 5.5s ease-in-out infinite; animation-delay: 1.6s; }

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
}
.testi-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testi-stars {
  font-size: 18px;
  color: #f59e0b;
  letter-spacing: 2px;
}

.testi-quote {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.testi-author strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-heading);
}
.testi-author span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .careers-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .about-grid    { gap: 48px; }
  .testi-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .brand-logo { width: 26px; height: 26px; }
  .brand-full { display: none; }
  .brand-short { display: inline; }

  /* Show mobile controls wrapper (theme + hamburger) */
  .nav-mobile-controls { display: flex; }

  /* Hide the desktop-only theme toggle item from the dropdown */
  .nav-theme-item { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--nav-mobile);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { padding: 12px 16px; width: 100%; border-radius: 10px; }
  .nav-btn-cta {
    display: flex;
    justify-content: center;
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    border-radius: 10px;
    padding: 13px 20px;
  }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 20px; }
  .hero-visual { order: -1; }
  .hero-img { max-width: 300px; margin: 0 auto; }
  .hero-ai-illustration { max-width: 300px; margin: 0 auto; }
  .hero-visual { padding: 40px 16px; }
  .hero-card-1 { display: none; }
  .hero-card-3 { display: none; }
  .hero-card-2 { bottom: 8px; left: 8px; max-width: 160px; width: max-content; }
  .hero-card-4 { top: 8px; right: 8px; max-width: 160px; width: max-content; }

  .services-grid { grid-template-columns: 1fr; }
  .about-grid    { grid-template-columns: 1fr; gap: 48px; }
  .careers-grid  { grid-template-columns: 1fr; }
  .careers-top   { flex-direction: column; align-items: flex-start; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .hww-grid      { grid-template-columns: 1fr; }
  .hww-card      { padding: 32px 24px; }
  .testi-grid    { grid-template-columns: 1fr; }
  .testi-card:nth-child(1),
  .testi-card:nth-child(2),
  .testi-card:nth-child(3) { animation: none; }

.channel-card { padding: 20px; }
  .channel-value { font-size: 15px; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-scroll-hint { display: none; }

  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .brand-logo { width: 22px; height: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
