/*
Theme Name: exkmo Technologies
Theme URI: https://exkmo.com
Author: exkmo Technologies
Description: Official exkmo Technologies website theme — dark cinematic institutional site.
Version: 1.0.0
*/

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

:root {
  --blue: #1A35E0;
  --blue-light: #2E4FFF;
  --bg: #04040A;
  --bg-card: #0C0C1E;
  --text: #FFFFFF;
  --text-muted: #8888AA;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---------- TYPOGRAPHY ---------- */
.label {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 16px;
  display: block;
  font-weight: 600;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
}
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #8899FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,53,224,0.4); }
.btn-outline { border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.btn-outline:hover { border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(26,53,224,0.35);
  background: rgba(26,53,224,0.04);
  transform: translateY(-4px);
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---------- NAVIGATION ---------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 10px 0;
  transition: all 0.3s ease;
  background: rgba(4,4,10,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#nav.scrolled {
  background: rgba(4,4,10,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 100px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; color: #fff; }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* Language switcher */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: rgba(26,53,224,0.2); color: var(--blue-light); }

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: #0C0C1E;
  border-left: 1px solid var(--border);
  padding: 80px 32px 32px;
  z-index: 998;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.1rem; color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid var(--border); transition: color 0.2s; }
.mobile-menu a:hover { color: #fff; }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 997; }
.mobile-overlay.open { display: block; }

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-bottom { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-top: 32px; }
.hero-bottom .hero-sub { margin-bottom: 0; max-width: 520px; }
.hero-bottom .hero-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,53,224,0.12);
  border: 1px solid rgba(26,53,224,0.3);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.8rem;
  color: #8899FF;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}
.hero-badge span { width: 6px; height: 6px; background: var(--blue-light); border-radius: 50%; display: inline-block; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-title {
  font-size: clamp(62px, 10.5vw, 128px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.6); } }

/* ---------- GYROSCOPE ---------- */
.gyroscope-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 480px;
  height: 480px;
  flex-shrink: 0;
}
.gyro-scene {
  width: 340px;
  height: 340px;
  position: relative;
  perspective: 900px;
  transform-style: preserve-3d;
}
.gyro-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  background: radial-gradient(circle, rgba(46,79,255,0.9) 0%, rgba(26,53,224,0.5) 60%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(26,53,224,0.8), 0 0 80px rgba(26,53,224,0.4);
  animation: corePulse 3s ease-in-out infinite;
}
@keyframes corePulse {
  0%,100% { box-shadow: 0 0 40px rgba(26,53,224,0.8), 0 0 80px rgba(26,53,224,0.4); transform: scale(1); }
  50% { box-shadow: 0 0 60px rgba(46,79,255,1), 0 0 120px rgba(26,53,224,0.6); transform: scale(1.1); }
}
.gyro-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.gyro-ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 3px solid rgba(46,79,255,0.85);
  box-shadow: 0 0 18px rgba(26,53,224,0.7), inset 0 0 18px rgba(26,53,224,0.3);
}
.gyro-ring-1 { animation: spinX 4s linear infinite; }
.gyro-ring-1 .gyro-ring-inner { border-color: rgba(60,100,255,1); box-shadow: 0 0 24px rgba(26,53,224,0.9), 0 0 48px rgba(26,53,224,0.4); }
.gyro-ring-2 { animation: spinY 6s linear infinite reverse; }
.gyro-ring-2 .gyro-ring-inner { inset: 30px; border-color: rgba(120,155,255,0.9); box-shadow: 0 0 16px rgba(80,120,255,0.6); }
.gyro-ring-3 { animation: spinZ 9s linear infinite; }
.gyro-ring-3 .gyro-ring-inner { inset: 55px; border-color: rgba(180,200,255,0.7); box-shadow: 0 0 12px rgba(150,180,255,0.5); }

@keyframes spinX {
  from { transform: rotateX(0deg) rotateY(20deg); }
  to   { transform: rotateX(360deg) rotateY(20deg); }
}
@keyframes spinY {
  from { transform: rotateY(0deg) rotateX(65deg); }
  to   { transform: rotateY(360deg) rotateX(65deg); }
}
@keyframes spinZ {
  from { transform: rotateZ(0deg) rotateX(40deg) rotateY(30deg); }
  to   { transform: rotateZ(360deg) rotateX(40deg) rotateY(30deg); }
}
.gyro-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4466FF;
  box-shadow: 0 0 10px rgba(68,102,255,0.9);
}
.gyro-dot-1 { top: 5%; left: 50%; animation: orbitA 4s linear infinite; }
.gyro-dot-2 { top: 50%; right: 5%; animation: orbitB 6s linear infinite reverse; }
.gyro-dot-3 { bottom: 5%; left: 30%; animation: orbitC 9s linear infinite; }
@keyframes orbitA {
  from { transform: rotate(0deg) translateX(160px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}
@keyframes orbitB {
  from { transform: rotate(0deg) translateX(130px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(130px) rotate(-360deg); }
}
@keyframes orbitC {
  from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

/* ---------- LIGHT SECTIONS (Services + Process only) ---------- */
.section-light {
  background: #F5F6FF !important;
  color: #0A0A1A;
}
.section-light .label { color: var(--blue) !important; }
.section-light .section-title { color: #0A0A1A !important; }
.section-light .section-sub { color: #555577 !important; }
.section-light .card,
.section-light .service-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
}
.section-light .card:hover,
.section-light .service-card:hover {
  background: rgba(26,53,224,0.04);
  border-color: rgba(26,53,224,0.3);
}
.section-light .service-card h3 { color: #0A0A1A; }
.section-light .service-card p { color: #555577; }
.section-light .process-content h3 { color: #0A0A1A; }
.section-light .process-content p { color: #555577; }
.section-light .process-steps::before { background: linear-gradient(to bottom, var(--blue), rgba(26,53,224,0.15)); }
.section-light .process-num { background: rgba(26,53,224,0.1); }

/* ---------- ABOUT ---------- */
#about { background: rgba(12,12,30,0.4); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; font-size: 1.05rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
.stat-value { font-size: 2.4rem; font-weight: 800; color: var(--blue-light); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: all 0.3s; }
.service-card:hover { border-color: rgba(26,53,224,0.4); background: rgba(26,53,224,0.04); transform: translateY(-4px); }
.service-icon { width: 48px; height: 48px; background: rgba(26,53,224,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon svg { width: 24px; height: 24px; stroke: var(--blue-light); fill: none; stroke-width: 1.8; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- PORTFOLIO ---------- */
#portfolio { background: rgba(12,12,30,0.4); }
.portfolio-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 60px; justify-content: center; }
.portfolio-grid .portfolio-card { flex: 0 0 calc(33.333% - 14px); min-width: 280px; }
.portfolio-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.portfolio-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
.portfolio-bar { height: 4px; }
.portfolio-body { padding: 28px; }
.portfolio-tag { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.portfolio-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.portfolio-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.portfolio-metric { display: inline-block; background: rgba(26,53,224,0.15); border: 1px solid rgba(26,53,224,0.25); border-radius: 6px; padding: 4px 12px; font-size: 0.78rem; color: #8899FF; font-weight: 600; }

/* ---------- PROCESS ---------- */
.process-steps { display: flex; flex-direction: column; gap: 0; margin-top: 60px; position: relative; }
.process-steps::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 50px;
  bottom: 50px;
  width: 1px;
  background: linear-gradient(to bottom, var(--blue), rgba(26,53,224,0.1));
}
.process-step { display: grid; grid-template-columns: 80px 1fr; gap: 32px; padding: 40px 0; position: relative; }
.process-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(26,53,224,0.1);
  border: 1px solid rgba(26,53,224,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-light);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.process-content { padding: 16px 0; }
.process-content h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.process-content p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }

/* ---------- TECH STACK ---------- */
#stack { background: rgba(12,12,30,0.4); }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.stack-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.stack-card h3 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 16px; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tag { border-radius: 6px; padding: 5px 12px; font-size: 0.8rem; font-weight: 500; transition: all 0.2s; border: 1px solid; }

/* Colorful tags per stack card */
.stack-grid .stack-card:nth-child(1) .stack-tag { background: rgba(26,53,224,0.18); border-color: rgba(26,53,224,0.45); color: #8899FF; }
.stack-grid .stack-card:nth-child(1) .stack-tag:hover { background: rgba(26,53,224,0.35); color: #fff; }
.stack-grid .stack-card:nth-child(2) .stack-tag { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.4); color: #34D399; }
.stack-grid .stack-card:nth-child(2) .stack-tag:hover { background: rgba(16,185,129,0.3); color: #fff; }
.stack-grid .stack-card:nth-child(3) .stack-tag { background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.4); color: #C084FC; }
.stack-grid .stack-card:nth-child(3) .stack-tag:hover { background: rgba(139,92,246,0.3); color: #fff; }
.stack-grid .stack-card:nth-child(4) .stack-tag { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.4); color: #FCD34D; }
.stack-grid .stack-card:nth-child(4) .stack-tag:hover { background: rgba(245,158,11,0.3); color: #fff; }
.stack-grid .stack-card:nth-child(5) .stack-tag { background: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.4); color: #F472B6; }
.stack-grid .stack-card:nth-child(5) .stack-tag:hover { background: rgba(236,72,153,0.3); color: #fff; }
.stack-grid .stack-card:nth-child(6) .stack-tag { background: rgba(6,182,212,0.15); border-color: rgba(6,182,212,0.4); color: #22D3EE; }
.stack-grid .stack-card:nth-child(6) .stack-tag:hover { background: rgba(6,182,212,0.3); color: #fff; }

/* Individual tag color cycling within each card */
.stack-card .stack-tag:nth-child(6n+1) { filter: hue-rotate(0deg); }
.stack-card .stack-tag:nth-child(6n+2) { filter: hue-rotate(60deg); }
.stack-card .stack-tag:nth-child(6n+3) { filter: hue-rotate(120deg); }
.stack-card .stack-tag:nth-child(6n+4) { filter: hue-rotate(200deg); }
.stack-card .stack-tag:nth-child(6n+5) { filter: hue-rotate(270deg); }
.stack-card .stack-tag:nth-child(6n+6) { filter: hue-rotate(330deg); }

/* ---------- CONTACT ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; font-size: 1rem; }
.contact-email { display: flex; align-items: center; gap: 12px; color: var(--blue-light); font-weight: 600; }
.contact-email svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(26,53,224,0.5); }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: #0C0C1E; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { background: var(--blue); color: #fff; padding: 14px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.25s; border: none; font-family: inherit; }
.form-submit:hover { background: var(--blue-light); transform: translateY(-2px); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.form-msg { padding: 14px; border-radius: 10px; font-size: 0.9rem; text-align: center; display: none; }
.form-msg.success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #10B981; display: block; }
.form-msg.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #EF4444; display: block; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 100px; width: auto; }
.footer-tagline { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 10px; }
.footer-social a { color: var(--text-muted); opacity: 0.7; transition: opacity 0.2s; display: flex; align-items: center; }
.footer-social a:hover { opacity: 1; }
.footer-copy { font-size: 0.85rem; color: #FFFFFF; text-align: right; }

/* ---------- DIVIDER ---------- */
.section-header { margin-bottom: 20px; }
.section-header-flex { display: flex; align-items: flex-end; justify-content: space-between; }

/* ---------- ECOSYSTEMS ---------- */
#ecosystems { background: rgba(6,6,18,0.95); }
.eco-tabs { display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; justify-content: center; }

/* Panel header (matches image: icon + title + subtitle + badge) */
.eco-ph { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 18px 24px; background: rgba(10,10,28,0.8); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; flex-wrap: wrap; }
.eco-ph-left { display: flex; align-items: center; gap: 16px; }
.eco-ph-icon { font-size: 2rem; line-height: 1; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(26,53,224,0.15); border-radius: 10px; border: 1px solid rgba(26,53,224,0.3); }
.eco-ph-title { font-size: 1rem; font-weight: 800; color: #fff; letter-spacing: 0.07em; }
.eco-ph-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.eco-ph-badge { padding: 7px 18px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; border: 1px solid rgba(26,53,224,0.5); color: #8899FF; background: rgba(26,53,224,0.12); white-space: nowrap; flex-shrink: 0; }

/* Flow diagram row */
.eco-flow-diagram { display: flex; align-items: stretch; gap: 4px; overflow-x: auto; padding: 4px 4px 16px; scrollbar-width: thin; scrollbar-color: rgba(26,53,224,0.4) transparent; }

/* Flow node */
.eco-fn { flex: 1; min-width: 158px; max-width: 190px; background: rgba(6,6,18,0.95); border: 2px solid; border-radius: 14px; padding: 28px 16px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; transition: transform 0.2s; }
.eco-fn:hover { transform: translateY(-4px); }
.eco-fn-icon { font-size: 2.6rem; line-height: 1; }
.eco-fn-title { font-size: 0.67rem; font-weight: 800; letter-spacing: 0.14em; color: #fff; line-height: 1.35; }
.eco-fn-desc { font-size: 0.72rem; color: rgba(155,165,195,0.9); line-height: 1.5; flex: 1; }
.eco-fn-badge { margin-top: 6px; padding: 4px 12px; border-radius: 100px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; border: 1px solid; }

/* Arrow */
.eco-fn-arrow { display: flex; align-items: center; color: rgba(100,140,255,0.75); font-size: 2rem; flex-shrink: 0; align-self: center; line-height: 1; padding: 0 2px; }

/* Node color themes — static glow, no animation */
.eco-col-blue      { border-color: rgba(26,100,255,0.7);  box-shadow: 0 0 14px rgba(26,100,255,0.25); }
.eco-col-green     { border-color: rgba(16,185,129,0.7);  box-shadow: 0 0 14px rgba(16,185,129,0.25); }
.eco-col-orange    { border-color: rgba(249,115,22,0.8);  box-shadow: 0 0 14px rgba(249,115,22,0.25); }
.eco-col-purple    { border-color: rgba(139,92,246,0.7);  box-shadow: 0 0 14px rgba(139,92,246,0.25); }
.eco-col-cyan      { border-color: rgba(6,182,212,0.7);   box-shadow: 0 0 14px rgba(6,182,212,0.25); }
.eco-col-darkgreen { border-color: rgba(5,150,105,0.8);   box-shadow: 0 0 14px rgba(5,150,105,0.25); }
.eco-tab {
  padding: 10px 24px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-muted); cursor: pointer;
  transition: all 0.25s; background: transparent;
}
.eco-tab.active, .eco-tab:hover { background: rgba(26,53,224,0.15); border-color: rgba(26,53,224,0.4); color: #fff; }
.eco-panel { display: none; }
.eco-panel.active { display: block; }
.eco-diagram {
  background: rgba(12,12,30,0.8); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; overflow-x: auto; overflow-y: visible; position: relative;
}
.eco-diagram::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.eco-row { display: flex; align-items: stretch; justify-content: center; gap: 12px; margin: 16px 0; position: relative; z-index: 1; flex-wrap: nowrap; min-width: max-content; margin-left: auto; margin-right: auto; }
.eco-node {
  background: var(--bg-card); border: 1px solid rgba(26,53,224,0.3);
  border-radius: 12px; padding: 12px 16px; text-align: center; min-width: 120px; max-width: 150px;
  position: relative; animation: nodeGlow 3s ease-in-out infinite; flex-shrink: 0;
}
.eco-node.green { border-color: rgba(16,185,129,0.4); }
.eco-node.purple { border-color: rgba(139,92,246,0.4); }
.eco-node.amber { border-color: rgba(245,158,11,0.4); }
.eco-node.pink { border-color: rgba(236,72,153,0.4); }
.eco-node.cyan { border-color: rgba(6,182,212,0.4); }
.eco-node.center {
  background: rgba(26,53,224,0.15); border-color: rgba(26,53,224,0.6);
  border-width: 2px; min-width: 180px; padding: 20px 28px;
  box-shadow: 0 0 30px rgba(26,53,224,0.3);
}
@keyframes nodeGlow {
  0%,100% { box-shadow: 0 0 0 rgba(26,53,224,0); }
  50% { box-shadow: 0 0 12px rgba(26,53,224,0.2); }
}
.eco-node-title { font-size: 0.8rem; font-weight: 700; color: #fff; line-height: 1.3; }
.eco-node-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.eco-node.green .eco-node-title { color: #34D399; }
.eco-node.purple .eco-node-title { color: #C084FC; }
.eco-node.amber .eco-node-title { color: #FCD34D; }
.eco-node.pink .eco-node-title { color: #F472B6; }
.eco-node.cyan .eco-node-title { color: #22D3EE; }
.eco-node.center .eco-node-title { color: #8899FF; font-size: 0.9rem; }
.eco-arrow {
  font-size: 1.6rem; color: rgba(100,140,255,0.8);
  animation: arrowPulse 1.5s ease-in-out infinite;
  align-self: center; flex-shrink: 0; line-height: 1;
}
.eco-arrow.green { color: rgba(16,185,129,0.6); }
.eco-arrow.down { display: block; text-align: center; margin: 4px 0; font-size: 1.2rem; }
@keyframes arrowPulse {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
.eco-connector {
  width: 40px; height: 2px; background: linear-gradient(90deg, rgba(26,53,224,0.5), rgba(26,53,224,0.1));
  position: relative; overflow: hidden;
}
.eco-connector::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26,53,224,0.8), transparent);
  animation: flow 2s linear infinite;
}
@keyframes flow { to { left: 200%; } }
.eco-badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  background: rgba(26,53,224,0.2); color: #8899FF; border: 1px solid rgba(26,53,224,0.3);
  margin-top: 6px;
}
.eco-badge.green { background: rgba(16,185,129,0.15); color: #34D399; border-color: rgba(16,185,129,0.3); }
.eco-badge.amber { background: rgba(245,158,11,0.15); color: #FCD34D; border-color: rgba(245,158,11,0.3); }
.eco-section-label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); text-align: center; margin-bottom: 8px; }
.eco-caption { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-top: 24px; line-height: 1.6; max-width: 700px; margin-left: auto; margin-right: auto; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(26,53,224,0.4); border-radius: 3px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid .portfolio-card { flex: 0 0 calc(50% - 10px); }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .stack-grid { grid-template-columns: 1fr; }
  .portfolio-grid .portfolio-card { flex: 0 0 100%; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .process-steps::before { left: 27px; }
  .process-step { grid-template-columns: 56px 1fr; gap: 20px; }
  .process-num { width: 56px; height: 56px; font-size: 0.9rem; }
  .hero-title { font-size: clamp(42px, 12vw, 72px); }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero-bottom .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-container { grid-template-columns: 1fr; }
  .gyroscope-wrap { width: 260px; height: 260px; margin: 0 auto; }
  .gyro-scene { width: 220px; height: 220px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}


