/* ─── RESET & VARIABLES ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #090d12;
  --surface:      #0f1620;
  --surface-2:    #141f2e;
  --border:       #1e2d40;
  --accent:       #93ca3a;
  --accent-dim:   rgba(147, 202, 58, 0.10);
  --accent-glow:  rgba(147, 202, 58, 0.22);
  --accent-mid:   rgba(147, 202, 58, 0.50);
  --text:         #94a3b8;
  --heading:      #f1f5f9;
  --muted:        #475569;
  --white:        #ffffff;
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   0.25s ease;
  --shadow:       0 4px 32px rgba(0, 0, 0, 0.5);
  --font:         'Inter', system-ui, sans-serif;
  --font-display: 'Raleway', sans-serif;
  --max-w:        1160px;
}

/* ─── LIGHT MODE ────────────────────────────────────────────────── */
html[data-theme="light"] {
  --bg:           #f4f7f2;
  --surface:      #ffffff;
  --surface-2:    #eef3ea;
  --border:       #d4e4c0;
  --accent:       #6ba825;
  --accent-dim:   rgba(107, 168, 37, 0.10);
  --accent-glow:  rgba(107, 168, 37, 0.22);
  --accent-mid:   rgba(107, 168, 37, 0.50);
  --text:         #4a5568;
  --heading:      #1a2010;
  --muted:        #8a9a7a;
}
html[data-theme="light"] .navbar.scrolled {
  background: rgba(244, 247, 242, 0.95);
  box-shadow: 0 1px 0 var(--border);
}
html[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(107, 168, 37, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 168, 37, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
html[data-theme="light"] .hero-glow {
  background: radial-gradient(ellipse at center, rgba(147, 202, 58, 0.14) 0%, transparent 70%);
}
html[data-theme="light"] .btn-ghost {
  color: var(--heading);
  border-color: var(--border);
}
html[data-theme="light"] .btn-nav {
  background: var(--accent);
  color: #fff;
}
html[data-theme="light"] .btn-nav:hover { background: #5a9020; }
html[data-theme="light"] .btn-primary { color: #fff; }
html[data-theme="light"] .stat-num { color: var(--accent); }

/* ─── BASE ──────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.2;
}

em { font-style: normal; color: var(--accent); }

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }

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

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0f14;
}
.btn-primary:hover {
  background: #a8d848;
  box-shadow: 0 0 24px var(--accent-glow);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

.btn-nav {
  background: var(--accent);
  color: #0a0f14;
  padding: 10px 20px;
  font-size: 14px;
}
.btn-nav:hover { background: #a8d848; opacity: 1; box-shadow: 0 0 16px var(--accent-glow); }

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

/* ─── THEME TOGGLE ──────────────────────────────────────────────── */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid rgba(147, 202, 58, 0.25);
  color: var(--accent);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--accent);
  color: #0a0f14;
  box-shadow: 0 0 14px var(--accent-glow);
}

/* ─── LANGUAGE SWITCHER ─────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-dim);
  border: 1.5px solid rgba(147, 202, 58, 0.25);
  border-radius: 100px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 4px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn:hover { color: var(--heading); }
.lang-btn.active {
  color: var(--accent);
}

.lang-sep {
  color: var(--border);
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
}

/* ─── SECTION LAYOUT ────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 10px 0 16px;
}
.section-header p {
  color: var(--text);
  font-size: 17px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(147, 202, 58, 0.2);
  padding: 5px 14px;
  border-radius: 100px;
}

/* ─── REVEAL ANIMATION ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── NAVBAR ────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}
.navbar.scrolled {
  background: rgba(9, 13, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--heading); opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* grid background */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 202, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 202, 58, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(147, 202, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* floating badges */
.hero-badges {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.badge {
  position: absolute;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1.5px solid rgba(147, 202, 58, 0.25);
  padding: 8px 18px;
  border-radius: 100px;
  animation: float linear infinite;
  opacity: 0.75;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
/* cluster badges on the right half, clear of the headline text */
.b1  { top: 18%; right: 28%; animation-duration: 18s; animation-delay: -2s; }
.b2  { top: 32%; right: 16%; animation-duration: 22s; animation-delay: -5s; }
.b3  { top: 52%; right: 22%; animation-duration: 20s; animation-delay: -8s; }
.b4  { top: 65%; right: 12%; animation-duration: 16s; animation-delay: -1s; }
.b5  { top: 42%; right: 34%; animation-duration: 24s; animation-delay: -12s; }
.b6  { top: 74%; right: 28%; animation-duration: 19s; animation-delay: -6s; }
.b7  { top: 22%; right: 10%; animation-duration: 21s; animation-delay: -9s; }
.b8  { top: 60%; right: 38%; animation-duration: 17s; animation-delay: -3s; }
.b9  { top: 82%; right: 18%; animation-duration: 23s; animation-delay: -7s; }
.b10 { top: 36%; right: 6%;  animation-duration: 15s; animation-delay: -4s; }

@keyframes float {
  0%   { transform: translateY(0px) translateX(0px); }
  25%  { transform: translateY(-12px) translateX(6px); }
  50%  { transform: translateY(-6px) translateX(-4px); }
  75%  { transform: translateY(-18px) translateX(8px); }
  100% { transform: translateY(0px) translateX(0px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
}
.tag-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%  { box-shadow: 0 0 0 6px transparent; }
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* ─── SERVICES ──────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: rgba(147, 202, 58, 0.3);
  box-shadow: 0 8px 40px var(--accent-dim);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border: 1px solid rgba(147, 202, 58, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: #0a0f14;
  box-shadow: 0 0 20px var(--accent-glow);
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

/* ─── PROCESS ───────────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.process-step {
  text-align: center;
  padding: 0 16px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.step-icon {
  width: 64px; height: 64px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
  margin: 0 auto 20px;
  transition: all var(--transition);
}
.process-step:hover .step-icon {
  background: var(--accent);
  color: #0a0f14;
  box-shadow: 0 0 24px var(--accent-glow);
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 14px;
  color: var(--text);
}

.process-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-mid), transparent);
  margin-top: 43px;
  flex-shrink: 0;
  border: none;
}

/* ─── TECH STACK ────────────────────────────────────────────────── */
.tech-section { background: var(--bg); }

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.tech-badge i { color: var(--accent); font-size: 15px; }
.tech-badge:hover {
  border-color: rgba(147, 202, 58, 0.35);
  color: var(--heading);
  background: var(--surface-2);
}

/* ─── ABOUT ─────────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-tag { margin-bottom: 16px; }
.about-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 12px 0 20px;
}
.about-text p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}
.about-text p strong { color: var(--heading); }
.about-text .btn { margin-top: 8px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: rgba(147, 202, 58, 0.3);
  box-shadow: 0 4px 24px var(--accent-dim);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── CONTACT ───────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--heading);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea { resize: vertical; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--surface); }

.contact-info {
  padding-top: 8px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.info-item:last-of-type { border-bottom: none; }

.info-item > i {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(147, 202, 58, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.info-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.info-item p a { color: var(--text); }
.info-item p a:hover { color: var(--accent); opacity: 1; }

/* ─── CONTACT REACH ─────────────────────────────────────────────── */
.contact-reach {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 28px;
}

.reach-icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border: 1px solid rgba(147, 202, 58, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 16px;
}

.contact-reach h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.contact-reach > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 18px;
}

.reach-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reach-regions span {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
}

.form-msg {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
  text-align: center;
}
.form-msg.success {
  background: rgba(147, 202, 58, 0.12);
  border: 1px solid rgba(147, 202, 58, 0.3);
  color: var(--accent);
}
.form-msg.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #ef4444;
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand img { margin-bottom: 8px; }
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.footer-nav a:hover { color: var(--accent); opacity: 1; }

.footer-copy {
  text-align: right;
}
.footer-copy p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--accent); opacity: 1; }

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .process-connector { display: none; }
}

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

  /* navbar mobile */
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }

  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(9, 13, 18, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 99;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
  }

  /* hero */
  .hero-content h1 { letter-spacing: -0.5px; }
  .hero-badges { display: none; }

  /* services */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }

  /* process */
  .process-steps { grid-template-columns: 1fr; gap: 24px; }
  .process-step { text-align: left; display: flex; gap: 16px; align-items: flex-start; padding: 0; }
  .step-icon { width: 48px; height: 48px; font-size: 18px; flex-shrink: 0; margin: 0; }
  .step-number { display: none; }

  /* contact form */
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* about stats */
  .about-stats { grid-template-columns: 1fr 1fr; }

  /* footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .tech-grid { gap: 8px; }
}
