/* ===========================
   MIG INFOSYS — SUI-INSPIRED DESIGN
   Dark · Electric Blue · Cinematic
   =========================== */

:root {
  --blue: #298DFF;
  --blue-dim: rgba(41,141,255,0.15);
  --blue-glow: rgba(41,141,255,0.35);
  --black: #000000;
  --bg: #080808;
  --bg-2: #0d0d0d;
  --bg-card: #111111;
  --border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.5);
  --text-dim: rgba(255,255,255,0.25);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.2em;
  margin-bottom: 32px;
  animation: logoGlow 1.5s ease infinite alternate;
}
@keyframes logoGlow {
  from { text-shadow: 0 0 20px var(--blue-glow); }
  to   { text-shadow: 0 0 60px var(--blue), 0 0 100px var(--blue-glow); }
}
.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--blue);
  width: 0;
  animation: loadFill 1.8s var(--ease) forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ===== CURSOR ===== */
#cursor {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
}
#cursor-follower {
  width: 32px; height: 32px;
  border: 1px solid rgba(41,141,255,0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) #cursor-follower,
body:has(button:hover) #cursor-follower {
  width: 48px; height: 48px;
  border-color: var(--blue);
}

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
#nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.logo-dot {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue);
}
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 16px;
  padding: 10px 22px;
  background: var(--blue);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: #4aa0ff;
  box-shadow: 0 0 24px var(--blue-glow);
  transform: translateY(-1px);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 10px;
  margin: -10px -10px -10px auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(8,8,8,0.98);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.mobile-link {
  padding: 16px 0;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 40px 180px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(41,141,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(41,141,255,0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 70%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(41,141,255,0.25), transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
}
.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(41,141,255,0.15), transparent 70%);
  top: 40%; right: -100px;
  animation-delay: -4s;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, 30px) scale(1.05); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.title-line { display: block; }
.accent-word { color: var(--blue); }

.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--blue);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.3s, transform 0.2s;
}
.btn-primary:hover {
  background: #4aa0ff;
  box-shadow: 0 0 32px var(--blue-glow);
  transform: translateY(-2px);
}
.btn-primary.btn-large { padding: 18px 36px; font-size: 15px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* HERO SCROLL INDICATOR */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--blue);
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
  to { left: 100%; }
}

/* HERO TICKER */
.hero-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 16px 0;
  background: var(--bg);
}
.ticker-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: ticker 25s linear infinite;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ticker-dot { color: var(--blue); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ===== STATS ===== */
.stats-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 32px 40px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  display: inline;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline;
  margin-left: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ===== OVERVIEW ===== */
.overview-section { padding: 120px 0; }
.section-header { margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-header .section-title { margin-bottom: 0; }
.section-title em {
  font-style: normal;
  color: var(--blue);
}
/* Consistent paragraph spacing right after any heading */
.overview-text p, .scale-text p, .sectors-text p, .about-block p {
  margin-top: 0;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.overview-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 8px;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 14px; }
.link-arrow span { transition: transform 0.2s; }
.link-arrow:hover span { transform: translateX(4px); }

.overview-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.mini-card:hover {
  border-color: var(--blue-dim);
  background: #141414;
  transform: translateY(-3px);
}
.mini-card-icon { font-size: 22px; flex-shrink: 0; }
.mini-card-text { display: flex; flex-direction: column; gap: 4px; }
.mini-card-text strong { font-size: 14px; font-weight: 600; color: var(--text); }
.mini-card-text span { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ===== SERVICES LIST ===== */
.services-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.services-list { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 40px;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, padding 0.3s;
  border-radius: 4px;
}
.service-row:first-child { border-top: 1px solid var(--border); }
.service-row:hover {
  background: var(--bg-card);
  padding-left: 20px;
  padding-right: 20px;
}
.service-row:hover .service-arrow { color: var(--blue); transform: translate(4px, -4px); }

.service-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.service-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.service-desc {
  font-size: 14px;
  color: var(--text-muted);
}
.service-arrow {
  font-size: 20px;
  color: var(--text-dim);
  transition: color 0.2s, transform 0.3s;
  justify-self: end;
}

/* ===== CLIENTS ===== */
.clients-section {
  padding: 120px 0 80px;
  border-top: 1px solid var(--border);
}
.clients-intro {
  max-width: 640px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 56px;
}
.clients-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-tag {
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.clients-marquee:hover .marquee-track { animation-play-state: paused; }
.client-tag:hover { border-color: var(--blue); color: var(--blue); }

/* ===== SCALE ===== */
.scale-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.scale-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.scale-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

/* GLOBE VISUAL */
.scale-visual {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto;
}
.globe-ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 4s ease-in-out infinite alternate;
}
.ring-1 { width: 160px; height: 160px; border-color: rgba(41,141,255,0.3); animation-delay: 0s; }
.ring-2 { width: 260px; height: 260px; border-color: rgba(41,141,255,0.15); animation-delay: 0.5s; }
.ring-3 { width: 360px; height: 360px; border-color: rgba(41,141,255,0.07); animation-delay: 1s; }
@keyframes ringPulse {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}
.globe-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--blue-dim);
  border: 1px solid rgba(41,141,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--blue-glow);
}
.globe-dot {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue);
  background: var(--bg);
  border: 1px solid rgba(41,141,255,0.4);
  border-radius: 100px;
  padding: 4px 10px;
  animation: dotPulse 3s ease-in-out infinite alternate;
}
.dot-a { top: 5%;  left: 55%; animation-delay: 0s; }
.dot-b { top: 30%; right: 2%; animation-delay: 0.4s; }
.dot-c { bottom: 15%; right: 10%; animation-delay: 0.8s; }
.dot-d { bottom: 10%; left: 30%; animation-delay: 1.2s; }
.dot-e { top: 40%; left: 2%; animation-delay: 1.6s; }
@keyframes dotPulse {
  from { box-shadow: 0 0 0 0 var(--blue-glow); }
  to   { box-shadow: 0 0 12px 4px var(--blue-glow); }
}

/* ===== CTA ===== */
.cta-section {
  padding: 160px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(41,141,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  background: var(--bg-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-links-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 480px; margin-left: auto; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 160px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-eyebrow { margin-bottom: 20px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ===== ABOUT PAGE ===== */
.about-content { padding: 80px 0 120px; }
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.about-block:last-child { border-bottom: none; }
.about-block.reverse { direction: rtl; }
.about-block.reverse > * { direction: ltr; }

.about-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.about-block h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.about-block p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.why-list { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; }
.why-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.3s;
}
.why-item:hover { border-color: var(--blue-dim); transform: translateX(6px); }
.why-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.why-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ===== SERVICES PAGE ===== */
.services-content { padding: 80px 0 120px; }
.services-intro {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 80px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 48px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--blue);
  transition: height 0.4s var(--ease);
}
.service-card:hover { background: var(--bg-card); }
.service-card:hover::before { height: 100%; }
.service-card-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== PROJECTS PAGE ===== */
.projects-content { padding: 80px 0 120px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(41,141,255,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.project-img {
  height: 220px;
  background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-img-icon { font-size: 48px; opacity: 0.5; }
.project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-card) 100%);
}
.project-info { padding: 28px; }
.project-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}
.project-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-content { padding: 80px 0 120px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.contact-info-group { display: flex; flex-direction: column; gap: 32px; }
.contact-info-item {}
.contact-info-item h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.contact-info-item p, .contact-info-item a {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  display: block;
  transition: color 0.2s;
}
.contact-info-item a:hover { color: var(--blue); }
.contact-social { display: flex; gap: 12px; margin-top: 8px; }
.social-link {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--blue); color: var(--blue); }
.hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  margin-top: 8px;
}
.hours-dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px #22c55e; }

/* CONTACT FORM */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}
.contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.form-group textarea { height: 130px; }
.form-group select {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 44px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 12px;
  background-clip: padding-box;
}
/* iOS Safari sometimes needs this extra nudge to fully drop native chrome */
@supports (-webkit-touch-callout: none) {
  .form-group select {
    -webkit-appearance: none;
    background-color: var(--bg);
  }
}
.form-group select::-ms-expand {
  display: none;
}
.form-group select option {
  background: var(--bg-card);
  color: var(--text);
}
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--blue);
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.3s, transform 0.2s;
  font-family: var(--font-body);
}
.form-submit:hover {
  background: #4aa0ff;
  box-shadow: 0 0 28px var(--blue-glow);
  transform: translateY(-2px);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success.show { display: block; }
.success-icon { font-size: 48px; margin-bottom: 16px; }
.form-success h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-success p { font-size: 14px; color: var(--text-muted); }
.form-error-msg {
  font-size: 12px;
  color: #ff4d4d;
  margin-top: 4px;
  display: none;
}
.form-error-msg.show { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .overview-grid,
  .scale-inner,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .scale-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-block { grid-template-columns: 1fr; gap: 40px; }
  .about-block.reverse { direction: ltr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .hero { padding: 120px 24px 140px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { gap: 0; padding: 0 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 20px; }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:last-child, .stat-item:nth-last-child(2) { border-bottom: none; }
  .service-row { grid-template-columns: 40px 1fr; gap: 16px; }
  .service-desc, .service-arrow { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .overview-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px; }
  .page-hero { padding: 120px 24px 60px; }
  #cursor, #cursor-follower { display: none; }
  body { cursor: auto; }
  .form-submit { cursor: pointer; }
  .footer-links-group { grid-template-columns: repeat(2, 1fr); }

  /* ===== COMPREHENSIVE MOBILE SPACING PASS ===== */

  /* Section padding: cut roughly in half across the board */
  .overview-section { padding: 64px 0; }
  .services-section { padding: 64px 0; }
  .clients-section { padding: 64px 0 48px; }
  .scale-section { padding: 64px 0; }
  .sectors-section { padding: 64px 0; }
  .cta-section { padding: 80px 0; }
  .about-content { padding: 48px 0 64px; }
  .about-block { padding: 48px 0; }
  .services-content { padding: 48px 0 64px; }
  .projects-content { padding: 48px 0 64px; }
  .contact-content { padding: 48px 0 64px; }
  .stats-section { padding: 48px 0; }
  .footer { padding: 56px 0 32px; }

  /* Section headers: tighter gap, smaller type */
  .section-header { margin-bottom: 40px; }
  .section-tag { margin-bottom: 12px; font-size: 10px; }
  .section-title { font-size: clamp(26px, 7vw, 36px); margin-bottom: 16px; line-height: 1.2; }

  /* Hero: tighter on small screens */
  .hero-title { font-size: clamp(38px, 11vw, 56px); margin-bottom: 20px; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 20px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 28px; }
  .hero-actions { gap: 12px; }
  .btn-primary, .btn-ghost { padding: 13px 22px; font-size: 13px; }

  /* Cards: reduce padding so they don't feel bulky */
  .mini-card { padding: 18px; gap: 12px; }
  .mini-card-icon { font-size: 18px; }
  .why-item { padding: 18px; }
  .service-card { padding: 28px 24px; }
  .sector-item { padding: 20px 14px; }
  .sector-icon { font-size: 22px; }
  .project-card .project-info { padding: 20px; }
  .project-img { height: 140px; font-size: 32px; }

  /* Overview text */
  .overview-text p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
  .clients-intro { font-size: 14px; margin-bottom: 32px; }
  .sectors-text p { font-size: 14px; }
  .scale-text p { font-size: 14px; margin-bottom: 24px; }
  .about-block p { font-size: 14px; }

  /* Page hero (inner pages) */
  .page-hero h1 { font-size: clamp(30px, 9vw, 44px); margin-bottom: 16px; }
  .page-hero p { font-size: 15px; }

  /* CTA section */
  .cta-title { font-size: clamp(26px, 8vw, 38px); margin-bottom: 32px; }
  .cta-tag { font-size: 10px; margin-bottom: 16px; }
  .cta-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-actions .btn-primary, .cta-actions .btn-ghost { justify-content: center; }

  /* Globe visual fully hidden already via 1024px rule, but tidy scale text spacing */
  .scale-text .section-title { margin-bottom: 16px; }

  /* Stats */
  .stat-number { font-size: 38px; }
  .stat-suffix { font-size: 16px; }
  .stat-label { font-size: 11px; }

  /* Marquee: smaller tags, tighter gaps */
  .client-tag { padding: 8px 16px; font-size: 12px; }
  .marquee-track { gap: 10px; }

  /* Service rows: reduce padding */
  .service-row { padding: 20px 0; }
  .service-name { font-size: 16px; }

  /* Stats card on About page */
  .stats-card { padding: 24px; }
  .stat-big { font-size: 32px; }

  /* Footer text sizing */
  .footer-logo { font-size: 22px; }
  .footer-brand p { font-size: 12px; }
  .footer-col h4 { margin-bottom: 14px; }
  .footer-col a { margin-bottom: 10px; font-size: 13px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 11px; }

  /* Contact page */
  .contact-info-group { gap: 24px; }
  .contact-form-wrap h3 { font-size: 20px; margin-bottom: 24px; }
  .form-group { margin-bottom: 16px; }
  .form-group label { font-size: 11px; }
  .form-group input, .form-group textarea, .custom-select-trigger { padding: 12px 16px; font-size: 14px; }

  /* Loader logo: scale down on small screens */
  .loader-name { font-size: 28px; }
  .loader-logo-img { width: 52px; height: 52px; }

  /* Theme toggle: ensure clean spacing next to hamburger */
  .theme-toggle { margin-left: auto; margin-right: 14px; }
  .nav-hamburger { cursor: pointer; }
}

@media (max-width: 380px) {
  /* Extra-small phones (e.g. iPhone SE) */
  .container { padding: 0 18px; }
  .hero { padding: 110px 18px 130px; }
  .hero-title { font-size: clamp(32px, 12vw, 44px); }
  .section-title { font-size: clamp(22px, 8vw, 28px); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
}

/* ===== SECTORS SECTION ===== */
.sectors-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.sectors-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sectors-text p { margin-top: 24px; }
.sectors-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.sector-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.3s, transform 0.3s, color 0.3s;
}
.sector-item:hover {
  border-color: var(--blue-dim);
  transform: translateY(-4px);
  color: var(--text);
}
.sector-icon { font-size: 28px; }
@media (max-width: 1024px) {
  .sectors-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .sectors-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== LOGO ANIMATION ===== */
.mg-power {
  transform-origin: 28.5px 27px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.mg-power.mg-anim-active {
  animation: powerPulse 1.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
.mg-power.mg-anim-done {
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(74,222,128,0.5));
}
@keyframes powerPulse {
  0%   { opacity: 0.3; transform: scale(0.7); filter: drop-shadow(0 0 0px #4ade80); }
  30%  { opacity: 1;   transform: scale(1.5); filter: drop-shadow(0 0 10px #4ade80) drop-shadow(0 0 20px rgba(74,222,128,0.4)); }
  60%  { transform: scale(0.9); filter: drop-shadow(0 0 5px #4ade80); }
  80%  { transform: scale(1.1); filter: drop-shadow(0 0 4px rgba(74,222,128,0.6)); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 3px rgba(74,222,128,0.4)); }
}

/* ===== LOGO (image-based) ===== */
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.logo-img-lg { width: 48px; height: 48px; }

.logo-textblock {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}
.logo-name-lg { font-size: 20px; }
.logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Loader logo (used in the brand animation, always dark bg) */
.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.loader-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
}
.loader-textblock {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.loader-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
}
.loader-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* ===== CUSTOM DROPDOWN (replaces native select) ===== */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-dim);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-select-trigger.has-value {
  color: var(--text);
}
.custom-select.open .custom-select-trigger {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.custom-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-arrow {
  flex-shrink: 0;
  margin-left: 12px;
  color: var(--text-dim);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--blue);
}
.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease, transform 0.25s cubic-bezier(0.4,0,0.2,1);
  z-index: 30;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.custom-select.open .custom-select-options {
  max-height: 320px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  overflow-y: auto;
}
.custom-select-option {
  padding: 13px 18px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.custom-select-option:hover,
.custom-select-option.active {
  background: var(--blue-dim);
  color: var(--text);
}
.custom-select-option + .custom-select-option {
  border-top: 1px solid var(--border);
}
