/* =============================================
   HOME PAGE STYLES — Enhanced
   ============================================= */

/* =========================================
   SCROLL MOTION SYSTEM
   ========================================= */
[data-motion] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity  0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter   0.85s ease;
}
[data-motion="fade-up"]    { transform: translateY(60px); }
[data-motion="fade-down"]  { transform: translateY(-40px); }
[data-motion="fade-left"]  { transform: translateX(-80px); }
[data-motion="fade-right"] { transform: translateX(80px); }
[data-motion="zoom-in"]    { transform: scale(0.75); }
[data-motion="zoom-out"]   { transform: scale(1.18); }
[data-motion="blur-up"]    { transform: translateY(40px); filter: blur(10px); }
[data-motion="flip-x"]     { transform: perspective(800px) rotateX(25deg); }
[data-motion="slide-r"]    { transform: translateX(110px); }
[data-motion="slide-l"]    { transform: translateX(-110px); }
[data-motion="rotate-in"]  { transform: rotate(-12deg) scale(0.85); }

[data-motion].in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Stagger delays */
[data-delay="50"]  { transition-delay: 0.05s; }
[data-delay="100"] { transition-delay: 0.10s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.20s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.30s; }
[data-delay="350"] { transition-delay: 0.35s; }
[data-delay="400"] { transition-delay: 0.40s; }
[data-delay="450"] { transition-delay: 0.45s; }
[data-delay="500"] { transition-delay: 0.50s; }
[data-delay="600"] { transition-delay: 0.60s; }
[data-delay="700"] { transition-delay: 0.70s; }
[data-delay="800"] { transition-delay: 0.80s; }
[data-delay="900"] { transition-delay: 0.90s; }

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

/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none; z-index: 0;
}

#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .6; z-index: 0;
}

.glow-blob-1 {
  position: absolute; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(168,85,247,.14) 0%, transparent 65%);
  border-radius: 50%; top: -150px; right: -100px; filter: blur(60px);
  animation: blob-drift 8s ease-in-out infinite alternate;
  will-change: transform; pointer-events: none;
}
.glow-blob-2 {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(244,63,94,.1) 0%, transparent 65%);
  border-radius: 50%; bottom: -100px; left: -50px; filter: blur(60px);
  animation: blob-drift 10s ease-in-out infinite alternate-reverse;
  will-change: transform; pointer-events: none;
}
@keyframes blob-drift { 0%{transform:translate(0,0)} 100%{transform:translate(30px,20px)} }

.hero .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 60px; align-items: center; width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--neon-red); letter-spacing: 1.5px;
  padding: 8px 18px;
  border: 1px solid rgba(244,63,94,.3);
  background: rgba(244,63,94,.07); border-radius: 50px;
  margin-bottom: 26px;
  animation: badge-pulse 2.5s ease-in-out infinite;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-red);
  animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100%{box-shadow:0 0 6px rgba(244,63,94,.3)}
  50%{box-shadow:0 0 18px rgba(244,63,94,.6)}
}
@keyframes dot-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Title */
.hero-title {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 1.04; margin-bottom: 26px; color: #fff;
}
.typewriter-wrap { display: inline-block; min-width: 220px; max-width: 100%; }
#typewriter {
  color: transparent;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
}
.cursor-blink {
  display: inline-block; width: 3px; height: .85em;
  background: var(--neon-purple); vertical-align: middle;
  margin-left: 2px; border-radius: 1px;
  animation: blink .75s step-end infinite;
}
@keyframes blink { 50%{opacity:0} }

.hero-desc { max-width: 520px; margin-bottom: 40px; font-size: 1.08rem; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

/* Stats */
.hero-stats {
  display: flex; gap: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat h3 {
  font-size: 2rem; color: #fff;
  font-family: var(--font-mono); letter-spacing: -1px;
}
.hero-stat p { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 0; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-dim); font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: 2px; text-transform: uppercase; z-index: 3;
  opacity: 0;
  animation: fade-in-up 0.8s 2.2s ease forwards;
}
@keyframes fade-in-up { to { opacity: 1; } }
.scroll-indicator-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--neon-purple), transparent);
  animation: scroll-draw 1.6s ease-in-out infinite;
}
@keyframes scroll-draw {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  49%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.4; }
}

/* ORB */
.orb-scene {
  position: relative; width: 380px; height: 380px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.orb-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
}
.or1 {
  width: 190px; height: 190px;
  border-top-color: var(--neon-purple); border-bottom-color: var(--neon-red);
  animation: spin 9s linear infinite;
}
.or2 {
  width: 290px; height: 290px;
  border-left-color: var(--neon-blue);
  animation: spin 16s linear infinite reverse;
}
.or3 {
  width: 380px; height: 380px;
  border-top-color: rgba(168,85,247,.25);
  animation: spin 22s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

.orb-core {
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(168,85,247,.3), rgba(244,63,94,.1) 60%, #000);
  border: 1px solid rgba(168,85,247,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; color: #fff; z-index: 2; position: relative;
  box-shadow: 0 0 50px rgba(168,85,247,.25), inset 0 0 30px rgba(168,85,247,.1);
  animation: orb-pulse 4s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%,100%{box-shadow:0 0 50px rgba(168,85,247,.25),inset 0 0 30px rgba(168,85,247,.1)}
  50%{box-shadow:0 0 90px rgba(168,85,247,.55),0 0 130px rgba(244,63,94,.15),inset 0 0 50px rgba(168,85,247,.2)}
}

.orb-dot {
  position: absolute; border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}
.od1 { width:10px; height:10px; background:var(--neon-purple); color:var(--neon-purple); top:12%; right:18%; animation:float-a 4s ease-in-out infinite; }
.od2 { width:7px;  height:7px;  background:var(--neon-red);    color:var(--neon-red);    bottom:18%; left:15%; animation:float-a 5s ease-in-out infinite reverse; }
.od3 { width:5px;  height:5px;  background:var(--neon-cyan);   color:var(--neon-cyan);   top:60%; right:10%; animation:float-a 6s ease-in-out infinite; }
@keyframes float-a { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* Floating tech pills around orb */
.orb-pill {
  position: absolute;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(10,10,20,.7);
  border: 1px solid rgba(168,85,247,.25);
  border-radius: 50px;
  font-family: var(--font-mono); font-size: .64rem;
  color: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.op1 { top: 2%; left: -5%; animation: float-a 5s ease-in-out infinite; }
.op2 { top: 42%; right: -14%; animation: float-a 7s ease-in-out infinite reverse; }
.op3 { bottom: 5%; left: 0%; animation: float-a 6s ease-in-out infinite 1s; }
.orb-pill i { color: var(--neon-purple); }
.orb-pill .p-green { color: var(--neon-green); }
.orb-pill .p-cyan  { color: var(--neon-cyan); }

/* =========================================
   MARQUEE
   ========================================= */
.marquee-section { margin: 0; }

/* =========================================
   ABOUT PREVIEW
   ========================================= */
.about-preview { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text .section-title { color: #fff; }
.about-text p { margin-bottom: 18px; }

.about-stats { display: flex; gap: 0; margin-top: 36px; }
.about-stat {
  flex: 1; padding: 24px; text-align: center;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
  transition: .3s;
}
.about-stat:hover { background: rgba(168,85,247,.07); border-color: rgba(168,85,247,.2); }
.about-stat:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.about-stat:last-child  { border-radius: 0 var(--r-md) var(--r-md) 0; }
.about-stat + .about-stat { border-left: none; }
.about-stat h3 { font-size: 2.4rem; font-family: var(--font-mono); color: var(--neon-red); }
.about-stat p  { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 4px 0 0; }

.about-visual {
  position: relative; height: 420px;
  border: var(--glass-border); border-radius: var(--r-xl);
  background: var(--glass-bg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.code-lines {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 30px; gap: 10px; opacity: .4;
}
.code-line {
  font-family: var(--font-mono); font-size: .75rem;
  color: var(--neon-purple); white-space: nowrap;
  transform: translateX(-100%);
  animation: slide-in .6s var(--ease) forwards;
}
@keyframes slide-in { to{transform:translateX(0)} }
.code-line.green { color: var(--neon-green); }
.code-line.blue  { color: var(--neon-blue); }
.code-line.red   { color: var(--neon-red); }
.code-line.muted { color: var(--text-dim); }

.about-icon {
  font-size: 5rem; color: #fff; z-index: 2;
  text-shadow: 0 0 40px var(--neon-purple);
  animation: icon-breathe 4s ease-in-out infinite;
}
@keyframes icon-breathe {
  0%,100%{text-shadow:0 0 40px var(--neon-purple)}
  50%{text-shadow:0 0 80px var(--neon-purple),0 0 120px rgba(244,63,94,.3)}
}

/* =========================================
   IMPACT NUMBERS
   ========================================= */
.impact-section {
  padding: 90px 0;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg,
    rgba(168,85,247,.07) 0%,
    rgba(244,63,94,.04) 40%,
    rgba(59,130,246,.06) 100%);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.impact-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(168,85,247,.1) 0%, transparent 70%);
  pointer-events: none;
}
.impact-section .container { position: relative; z-index: 1; }

.impact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(255,255,255,.04);
  gap: 1px;
}
.impact-item {
  padding: 52px 28px 44px;
  background: var(--bg-dark);
  text-align: center;
  position: relative; overflow: hidden;
  transition: background .35s;
}
.impact-item::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,.6), transparent);
}
.impact-item:nth-child(2)::before { background: linear-gradient(90deg, transparent, rgba(59,130,246,.6), transparent); }
.impact-item:nth-child(3)::before { background: linear-gradient(90deg, transparent, rgba(244,63,94,.6), transparent); }
.impact-item:nth-child(4)::before { background: linear-gradient(90deg, transparent, rgba(6,182,212,.6), transparent); }
.impact-item:hover { background: rgba(168,85,247,.06); }

.impact-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.25);
  color: var(--neon-purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin: 0 auto 22px;
  transition: transform .35s, box-shadow .35s;
}
.impact-icon.blue { background: rgba(59,130,246,.1);  border-color: rgba(59,130,246,.25); color: var(--neon-blue); }
.impact-icon.red  { background: rgba(244,63,94,.1);   border-color: rgba(244,63,94,.25);  color: var(--neon-red); }
.impact-icon.cyan { background: rgba(6,182,212,.1);   border-color: rgba(6,182,212,.25);  color: var(--neon-cyan); }
.impact-item:hover .impact-icon { transform: scale(1.12) rotate(6deg); box-shadow: 0 0 20px currentColor; }

.impact-num {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1; margin-bottom: 10px;
}
.impact-label {
  font-size: .75rem; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-muted);
  margin-bottom: 24px;
}
.impact-bar {
  height: 2px; background: rgba(255,255,255,.08);
  border-radius: 2px; overflow: hidden;
  width: 70%; margin: 0 auto;
}
.impact-bar-fill {
  height: 100%; width: 0;
  background: var(--neon-purple);
  border-radius: 2px;
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.impact-bar-fill.blue { background: var(--neon-blue); }
.impact-bar-fill.red  { background: var(--neon-red); }
.impact-bar-fill.cyan { background: var(--neon-cyan); }
/* Trigger bar fill when parent item comes into view */
.impact-item.in-view .impact-bar-fill { width: var(--target-w, 80%); }

/* =========================================
   SERVICES GRID
   ========================================= */
.services-section { background: rgba(255,255,255,.01); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 60px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--r-lg); padding: 34px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
  border: 1px solid rgba(255,255,255,.07);
  z-index: 0;
  cursor: default;
}
/* Glowing gradient border on hover */
.service-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity .4s;
  z-index: -1;
}
.service-card::after {
  content: '';
  position: absolute; inset: 1px;
  border-radius: calc(var(--r-lg) - 1px);
  background: var(--bg-card);
  z-index: -1;
}
.service-card:hover::before { opacity: .8; }
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px -10px rgba(0,0,0,.65), 0 0 40px rgba(168,85,247,.12);
}

/* Floating number */
.service-num {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font-mono); font-size: 2.2rem;
  font-weight: 900; color: rgba(255,255,255,.04);
  line-height: 1; letter-spacing: -2px;
  transition: color .35s;
}
.service-card:hover .service-num { color: rgba(168,85,247,.1); }

.service-card h3 { color: #fff; font-size: 1.2rem; margin: 16px 0 10px; }
.service-card p  { font-size: .9rem; }

.card-icon { transition: transform .35s var(--ease); }
.service-card:hover .card-icon { transform: scale(1.15) rotate(-5deg); }

/* =========================================
   TECH STACK
   ========================================= */
.tech-stack-section {
  background: rgba(255,255,255,.008);
  position: relative; overflow: hidden;
}
.tech-stack-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(59,130,246,.05) 0%, transparent 70%);
  pointer-events: none;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-top: 56px;
  position: relative; z-index: 1;
}
.tech-item {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 30px 16px 24px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  transition: all .35s var(--ease);
  cursor: default; text-align: center;
}
.tech-item:hover {
  background: rgba(168,85,247,.09);
  border-color: rgba(168,85,247,.25);
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 20px rgba(168,85,247,.1);
}
.tech-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.2);
  color: var(--neon-purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
  transition: transform .35s, box-shadow .35s;
}
.tech-icon.blue  { background: rgba(59,130,246,.1);  border-color: rgba(59,130,246,.2);  color: var(--neon-blue); }
.tech-icon.green { background: rgba(16,185,129,.1);  border-color: rgba(16,185,129,.2);  color: var(--neon-green); }
.tech-icon.cyan  { background: rgba(6,182,212,.1);   border-color: rgba(6,182,212,.2);   color: var(--neon-cyan); }
.tech-icon.red   { background: rgba(244,63,94,.1);   border-color: rgba(244,63,94,.2);   color: var(--neon-red); }
.tech-icon.amber { background: rgba(245,158,11,.1);  border-color: rgba(245,158,11,.2);  color: #f59e0b; }
.tech-item:hover .tech-icon {
  transform: scale(1.12);
  box-shadow: 0 0 22px currentColor;
}
.tech-item > span {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--text-muted); letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .3s;
}
.tech-item:hover > span { color: #fff; }

/* =========================================
   PROCESS TIMELINE
   ========================================= */
.process-section { overflow: hidden; }
.timeline {
  position: relative; max-width: 820px; margin: 70px auto 0;
}
.timeline-track {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.06); overflow: hidden;
}
.timeline-fill {
  width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--neon-purple), var(--neon-red));
  box-shadow: 0 0 12px rgba(168,85,247,.5);
  transition: height 2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.timeline-track.drawn .timeline-fill { height: 100%; }

.tl-item {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 64px;
  position: relative; gap: 40px;
}
.tl-item:nth-child(even) { flex-direction: row-reverse; }

.tl-content {
  width: 44%; background: var(--bg-card); padding: 28px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
  position: relative; transition: .35s var(--ease);
}
.tl-content:hover {
  border-color: rgba(168,85,247,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 20px rgba(168,85,247,.08);
}
.tl-content h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.tl-content p  { font-size: .88rem; }
.tl-content::after {
  content: ''; position: absolute; top: 50%; width: 22px; height: 1px;
  background: linear-gradient(to right, var(--neon-purple), transparent);
}
.tl-item:nth-child(odd)  .tl-content::after { right: -22px; }
.tl-item:nth-child(even) .tl-content::after { left: -22px; transform: scaleX(-1); top: 50%; }

.tl-node {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%;
  background: var(--bg-dark); border: 2px solid var(--neon-purple);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .8rem; color: #fff;
  box-shadow: 0 0 0 6px rgba(168,85,247,.08), 0 0 20px rgba(168,85,247,.4);
  z-index: 2; transition: .35s;
}
.tl-item:hover .tl-node {
  box-shadow: 0 0 0 10px rgba(168,85,247,.15), 0 0 35px rgba(168,85,247,.6);
  transform: scale(1.12);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-section { background: rgba(255,255,255,.01); overflow: hidden; }
.testimonial-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-top: 56px;
}
.testimonial-card {
  background: #09122a;
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  padding: 32px; border-left: 3px solid var(--neon-purple);
  transition: .35s; position: relative; overflow: hidden;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: -16px; right: 24px;
  font-size: 7rem; font-family: Georgia, serif;
  color: rgba(168,85,247,.08); line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 30px rgba(168,85,247,.08);
}
.t-prefix {
  font-family: var(--font-mono); color: var(--neon-blue);
  font-size: .72rem; display: block; margin-bottom: 14px;
}
.testimonial-card blockquote {
  color: #cbd5e1; line-height: 1.8; font-size: .95rem; font-style: italic;
}
.t-author { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.t-name  { font-weight: 700; color: #fff; font-size: .9rem; }
.t-title { font-size: .78rem; color: var(--text-muted); }
.t-stars { color: #f59e0b; font-size: .8rem; margin-top: 4px; letter-spacing: 2px; }

/* =========================================
   OFFICE LOCATION (HOME)
   ========================================= */

/* Single centered card wrapper */
.office-single-wrap {
  max-width: 680px; margin: 0 auto;
}
.office-card-solo {
  border-top: 2px solid var(--neon-blue) !important;
}
/* Horizontal layout inside the card */
.ohc-body {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 24px;
}
.ohc-meta-row {
  display: flex; flex-direction: row;
  align-items: center; gap: 20px;
  flex-wrap: wrap;
}
/* Override for old two-column grid (kept for contact page compatibility) */
.offices-home-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.office-home-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.office-home-card:first-child {
  border-top: 2px solid var(--neon-purple);
}
.office-home-card:last-child {
  border-top: 2px solid var(--neon-blue);
}
.office-home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.office-home-card:first-child:hover { border-color: rgba(168,85,247,.3); }
.office-home-card:last-child:hover  { border-color: rgba(59,130,246,.3); }

/* Top section with badge */
.ohc-top { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.ohc-badge {
  font-family: var(--font-mono); font-size: .65rem;
  font-weight: 700; letter-spacing: 2px;
  padding: 4px 12px; border-radius: 50px;
}
.ohc-badge-hq  {
  background: rgba(168,85,247,.12);
  border: 1px solid rgba(168,85,247,.3);
  color: var(--neon-purple);
}
.ohc-badge-dev {
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.3);
  color: var(--neon-blue);
}

/* Background glow blob */
.ohc-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  filter: blur(60px); pointer-events: none; opacity: .5;
}
.ohc-glow-purple { background: rgba(168,85,247,.2); }
.ohc-glow-blue   { background: rgba(59,130,246,.18); }

/* Building icon */
.ohc-icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.2);
  color: var(--neon-purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
  transition: transform .3s;
}
.ohc-icon.ohc-icon-blue {
  background: rgba(59,130,246,.1);
  border-color: rgba(59,130,246,.2);
  color: var(--neon-blue);
}
.office-home-card:hover .ohc-icon { transform: scale(1.1) rotate(-4deg); }

/* Labels */
.ohc-type {
  font-size: .68rem; letter-spacing: 2px;
  color: var(--text-dim); margin-bottom: 6px;
}
.ohc-city {
  font-size: 1.5rem; font-weight: 800;
  color: #fff; margin-bottom: 16px; line-height: 1.1;
}

/* Address */
.ohc-address {
  font-size: .88rem; line-height: 1.7;
  color: var(--text-muted); margin-bottom: 20px;
  display: flex; gap: 10px; align-items: flex-start;
}
.ohc-address i {
  color: var(--neon-purple); margin-top: 4px; flex-shrink: 0; font-size: .8rem;
}
.office-home-card:last-child .ohc-address i { color: var(--neon-blue); }

/* Meta (email + phone) */
.ohc-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.ohc-meta-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--text-muted);
}
.ohc-meta-item i { color: var(--neon-purple); width: 16px; text-align: center; }
.office-home-card:last-child .ohc-meta-item i { color: var(--neon-blue); }
.ohc-meta-item a { color: var(--text-muted); transition: color .25s; }
.ohc-meta-item a:hover { color: #fff; }

/* Map button */
.ohc-map-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: .75rem;
  font-weight: 700; letter-spacing: .5px;
  border: 1px solid rgba(168,85,247,.35);
  color: var(--neon-purple);
  background: rgba(168,85,247,.07);
  transition: all .3s var(--ease);
}
.ohc-map-btn:hover {
  background: var(--neon-purple); color: #fff;
  box-shadow: 0 0 20px rgba(168,85,247,.4);
}
.ohc-map-btn-blue {
  border-color: rgba(59,130,246,.35);
  color: var(--neon-blue);
  background: rgba(59,130,246,.07);
}
.ohc-map-btn-blue:hover {
  background: var(--neon-blue); color: #fff;
  box-shadow: 0 0 20px rgba(59,130,246,.4);
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* ---- Tablet landscape ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid     { grid-template-columns: repeat(3, 1fr); }
  .impact-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Tablet portrait / large phone ---- */
@media (max-width: 900px) {
  /* Hero: single column, centre-aligned */
  .hero          { padding-top: 80px; min-height: 90vh; padding-bottom: 50px; }
  .hero-grid     { grid-template-columns: 1fr; text-align: center; }
  .hero-desc     { margin-inline: auto; }
  .hero-btns     { justify-content: center; }
  .hero-stats    { justify-content: center; gap: 28px; }
  .orb-scene     { display: none; }
  .orb-pill      { display: none; }
  .scroll-indicator { display: none; }

  /* About */
  .about-grid    { grid-template-columns: 1fr; }
  .about-visual  { display: none; }
  .about-stats   { justify-content: center; }

  /* Timeline: left-rail layout */
  .timeline-track { left: 22px; }
  .tl-item,
  .tl-item:nth-child(even) {
    flex-direction: column; align-items: flex-start; padding-left: 60px;
    margin-bottom: 36px;
  }
  .tl-content        { width: 100%; }
  .tl-content::after { display: none; }
  .tl-node           { position: absolute; left: 0; top: 0; width: 44px; height: 44px; }

  /* Grids: stack to 1 col */
  .testimonial-grid  { grid-template-columns: 1fr; gap: 16px; }
  .offices-home-grid { grid-template-columns: 1fr; }
  .office-single-wrap { max-width: 100%; }
}

/* ---- Phone (≤768px) ---- */
@media (max-width: 768px) {
  /* Horizontal-slide animations cause overflow on mobile — switch to vertical */
  [data-motion="fade-left"],
  [data-motion="fade-right"],
  [data-motion="slide-l"],
  [data-motion="slide-r"] { transform: translateY(50px); }

  /* Fix typewriter wrap on small screens */
  .typewriter-wrap { min-width: 0; width: auto; }

  /* Hero */
  .hero             { padding-top: 76px; }
  .hero-title       { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.08; }
  .hero-badge       { font-size: .62rem; padding: 6px 14px; }
  .hero-desc        { font-size: .95rem; margin-bottom: 28px; }
  .hero-btns        { gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }

  /* Stats row */
  .hero-stats       { gap: 16px; padding-top: 20px; }
  .hero-stat h3     { font-size: 1.5rem; }
  .hero-stat p      { font-size: .65rem; }

  /* Impact */
  .impact-item      { padding: 32px 16px 24px; }
  .impact-num       { font-size: 1.9rem; }
  .impact-label     { font-size: .68rem; letter-spacing: 1.2px; margin-bottom: 16px; }
  .impact-icon      { width: 46px; height: 46px; font-size: 1.2rem; margin-bottom: 14px; }

  /* Services */
  .service-card     { padding: 26px 22px; }
  .service-num      { font-size: 1.6rem; }

  /* Tech grid: 3 cols on phone */
  .tech-grid        { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tech-item        { padding: 18px 8px 14px; gap: 8px; }
  .tech-icon        { width: 44px; height: 44px; font-size: 1.25rem; }
  .tech-item > span { font-size: .6rem; }

  /* About */
  .about-stat h3    { font-size: 1.8rem; }

  /* Testimonials */
  .testimonial-card          { padding: 24px 20px; }
  .testimonial-card blockquote { font-size: .9rem; line-height: 1.65; }
  .t-prefix                  { font-size: .65rem; }

  /* Timeline */
  .tl-content       { padding: 20px 18px; }
  .tl-content h3    { font-size: 1rem; }

  /* Office card */
  .ohc-body         { flex-direction: column; gap: 10px; }
  .ohc-meta-row     { flex-direction: column; align-items: flex-start; gap: 10px; }
  .office-home-card { padding: 28px 24px; }
  .ohc-city         { font-size: 1.3rem; }
}

/* ---- Small phone (≤640px) ---- */
@media (max-width: 640px) {
  /* Hero */
  .hero-title       { font-size: clamp(1.8rem, 7.5vw, 2.5rem); }
  .hero-btns        { flex-direction: column; align-items: stretch; }
  .hero-btns .btn   { width: 100%; justify-content: center; }

  /* Services: 1 col */
  .services-grid    { grid-template-columns: 1fr; }

  /* Impact: 2 col */
  .impact-grid      { grid-template-columns: 1fr 1fr; }
  .impact-item      { padding: 26px 14px 20px; }
  .impact-num       { font-size: 1.7rem; }

  /* Tech: 2 col */
  .tech-grid        { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tech-item        { padding: 16px 8px 12px; gap: 8px; }
  .tech-icon        { width: 40px; height: 40px; font-size: 1.1rem; }
  .tech-item > span { font-size: .58rem; }

  /* Timeline padding */
  .tl-item,
  .tl-item:nth-child(even) { padding-left: 50px; }
  .tl-node          { width: 38px; height: 38px; font-size: .72rem; }
}

/* ---- Tiny phone (≤420px) ---- */
@media (max-width: 420px) {
  /* Hero */
  .hero-title       { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .hero-badge       { font-size: .58rem; padding: 5px 11px; letter-spacing: 1px; }

  /* Stats: horizontal strip */
  .hero-stats       { gap: 0; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }
  .hero-stat        { flex: 1; text-align: center; padding: 0 8px; position: relative; }
  .hero-stat + .hero-stat::before {
    content: ''; position: absolute; left: 0; top: 10%; bottom: 10%;
    width: 1px; background: rgba(255,255,255,.08);
  }
  .hero-stat h3     { font-size: 1.3rem; }
  .hero-stat p      { font-size: .6rem; }

  /* Impact: 1 col */
  .impact-grid      { grid-template-columns: 1fr; }
  .impact-item      { padding: 24px 20px 20px; }
  .impact-num       { font-size: 2rem; }

  /* About stats: stack */
  .about-stats      { flex-direction: column; }
  .about-stat:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
  .about-stat:last-child  { border-radius: 0 0 var(--r-md) var(--r-md); }
  .about-stat + .about-stat { border-left: 1px solid rgba(255,255,255,.07); border-top: none; }
}
