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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #06b6d4;
  --bg-0: #060c18;
  --bg-1: #0a1120;
  --bg-2: #0e1830;
  --bg-3: #121e38;
  --card: #111a2e;
  --card-hover: #162038;
  --card-border: rgba(99,102,241,0.14);
  --text: #cbd5e1;
  --text-bright: #e8edf5;
  --text-muted: #6b7fa3;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 56px rgba(0,0,0,0.5);
  --glow: 0 0 40px rgba(99,102,241,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg-1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.35s ease;
}

.navbar.scrolled {
  background: rgba(6, 12, 24, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 14px 0;
  border-bottom: 1px solid rgba(99,102,241,0.12);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; color: var(--white);
  letter-spacing: -0.01em;
}

.logo-icon { font-size: 1.5rem; color: var(--primary); line-height: 1; }
.logo-accent { color: var(--accent); }

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

.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:not(.btn-nav):hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--white); }

.btn-nav {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: all 0.2s !important;
  letter-spacing: 0 !important;
}

.btn-nav:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35) !important;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}

.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all 0.3s;
}

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

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

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.blob { position: absolute; border-radius: 50%; filter: blur(100px); }
.blob-1 { width: 700px; height: 700px; background: var(--primary); opacity: 0.12; top: -250px; right: -150px; }
.blob-2 { width: 500px; height: 500px; background: var(--accent); opacity: 0.1; bottom: -150px; left: -100px; }

/* Two-column hero layout */
.hero-content {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-left { max-width: 560px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.28);
  color: #a5b4fc;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.25s;
  border: none; cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600; font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.25s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}

.hero-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing: 0.07em; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.1); }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.25); font-size: 0.72rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ── Hero Devices Stack ── */
.hero-right { display: flex; justify-content: center; align-items: center; }

.devices-stack {
  position: relative;
  width: 420px;
  height: 380px;
}

/* Base device styles */
.device {
  position: absolute;
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease;
  will-change: transform, opacity;
}

/* ── Mac window ── */
.mac-device {
  width: 320px;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: var(--card);
  border: 1px solid rgba(99,102,241,0.22);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(99,102,241,0.08);
}

.mac-bar {
  background: rgba(255,255,255,0.04);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px 14px 0 0;
}

.mac-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.mac-title {
  flex: 1; text-align: center;
  font-size: 0.7rem; color: rgba(255,255,255,0.35); font-weight: 500;
  margin-right: 36px; /* offset for dots */
}

.mac-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* ── Windows window ── */
.win-device {
  width: 260px;
  bottom: 10px; left: -10px;
  z-index: 3;
  background: #0f1929;
  border: 1px solid rgba(96,165,250,0.2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  transform: rotate(-2deg);
}

.win-bar {
  background: #1a2540;
  padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px 14px 0 0;
}

.win-bar-left { display: flex; align-items: center; gap: 8px; font-size: 0.68rem; color: rgba(255,255,255,0.5); font-weight: 500; }
.win-icon { width: 18px; height: 18px; background: rgba(96,165,250,0.2); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: #60a5fa; }

.win-controls { display: flex; gap: 0; }
.win-controls span {
  width: 28px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: rgba(255,255,255,0.4);
  cursor: default; border-radius: 4px;
  transition: background 0.15s;
}
.win-controls span:hover { background: rgba(255,255,255,0.08); }
.win-controls span:last-child:hover { background: #ef4444; color: #fff; }

.win-body { padding: 14px; }

.win-chart { margin-bottom: 12px; }

.chart-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 80px;
}

.bar {
  flex: 1; height: var(--h);
  background: rgba(99,102,241,0.25);
  border-radius: 4px 4px 0 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  transition: background 0.2s;
  position: relative;
}

.bar.active { background: linear-gradient(180deg, #6366f1, #06b6d4); }

.bar span {
  font-size: 0.55rem; color: rgba(255,255,255,0.3);
  margin-top: 4px; position: absolute; bottom: -14px;
}

.win-stats { display: flex; gap: 8px; margin-top: 18px; }

.win-stat { flex: 1; text-align: center; }
.ws-val { display: block; font-size: 0.85rem; font-weight: 800; color: #60a5fa; }
.ws-lbl { display: block; font-size: 0.6rem; color: rgba(255,255,255,0.3); margin-top: 2px; }

/* ── Phone ── */
.phone-device {
  width: 140px;
  bottom: 0; right: 0;
  z-index: 4;
  transform: rotate(3deg);
}

.phone-shell {
  background: #0a1120;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 8px 6px 6px;
  display: flex; flex-direction: column;
}

.phone-notch {
  width: 36px; height: 8px;
  background: #0a1120;
  border-radius: 0 0 8px 8px;
  margin: 0 auto 6px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-top: none;
}

.phone-screen { flex: 1; display: flex; flex-direction: column; gap: 7px; }

.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.5rem; color: rgba(255,255,255,0.5); padding: 0 2px;
}

.phone-app-header { display: flex; align-items: center; gap: 6px; }

.phone-avatar {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; color: #fff; flex-shrink: 0;
}

.phone-greeting { font-size: 0.5rem; color: rgba(255,255,255,0.4); }
.phone-name { font-size: 0.6rem; font-weight: 700; color: #fff; }

.phone-card-row { display: flex; gap: 5px; }

.phone-mini-card {
  flex: 1; background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-radius: 7px; padding: 5px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 0.5rem; font-weight: 600; color: #fff;
}

.phone-mini-card i { font-size: 0.65rem; color: var(--c); }

.phone-list { display: flex; flex-direction: column; gap: 5px; }

.phone-list-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.55rem; color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  border-radius: 5px; padding: 4px 5px;
}

.pli-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.phone-btn {
  background: var(--primary); color: #fff;
  border-radius: 7px; padding: 5px;
  font-size: 0.52rem; font-weight: 700;
  text-align: center; margin-top: 2px;
}

.phone-home-bar {
  width: 40px; height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 6px auto 0;
}

/* keep old mockup helpers */
.mockup-line { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.07); }
.w-80 { width: 80%; } .w-60 { width: 60%; } .w-50 { width: 50%; } .w-40 { width: 40%; }
.mockup-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mockup-card { border-radius: 9px; padding: 10px; display: flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 600; color: var(--white); border: 1px solid rgba(255,255,255,0.08); }
.mc-purple { background: rgba(99,102,241,0.18); } .mc-cyan { background: rgba(6,182,212,0.15); }
.mc-green  { background: rgba(16,185,129,0.15); } .mc-amber { background: rgba(245,158,11,0.15); }
.mc-purple i { color: #818cf8; } .mc-cyan i { color: #22d3ee; } .mc-green i { color: #34d399; } .mc-amber i { color: #fbbf24; }
.mockup-progress { display: flex; align-items: center; gap: 8px; }
.mp-label { font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; }
.mp-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.mp-fill { height: 100%; width: 78%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; }
.mp-pct { font-size: 0.65rem; font-weight: 700; color: var(--accent); }

/* ===== SECTIONS ===== */
.section { padding: 110px 0; background: var(--bg-1); position: relative; }
.section-alt  { background: var(--bg-2); }
.section-alt2 { background: var(--bg-3); }

/* Section divider glow */
.section::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), transparent);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 18px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-header p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

.section-tag {
  display: inline-block;
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  overflow: hidden;
}

/* Top glow line */
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover::before { opacity: 0.6; }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--glow);
  border-color: rgba(99,102,241,0.4);
  background: var(--card-hover);
}

.service-icon {
  width: 56px; height: 56px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: var(--c);
  margin-bottom: 22px;
  transition: transform 0.35s;
}

.service-card:hover .service-icon { transform: scale(1.08); }

.service-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--text-bright); margin-bottom: 12px; letter-spacing: -0.01em; }
.service-card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; line-height: 1.65; }

.service-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.service-tags li {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.74rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.07);
}

/* ===== INDUSTRIES ===== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.industry-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.86rem; font-weight: 500;
  transition: all 0.3s;
  cursor: default;
}

.industry-card i { font-size: 1.75rem; color: var(--accent); transition: transform 0.3s; }

.industry-card:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  color: var(--text-bright);
}

.industry-card:hover i { transform: scale(1.12); }

/* ===== PROCESS TIMELINE ===== */
.process-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

/* Vertical line */
.process-timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(99,102,241,0.3) 10%, rgba(99,102,241,0.3) 90%, transparent);
}

.process-step {
  position: relative;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step-node {
  position: absolute;
  left: -60px;
  width: 42px; height: 42px;
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--primary);
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
  z-index: 1;
}

.step-content {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  flex: 1;
  transition: all 0.3s;
}

.step-content:hover {
  border-color: rgba(99,102,241,0.35);
  transform: translateX(4px);
}

.step-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-bright); margin-bottom: 10px; letter-spacing: -0.01em; }
.step-content p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

.portfolio-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,0.35);
}

.portfolio-img {
  background: var(--bg);
  height: 190px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.6);
  position: relative; overflow: hidden;
}

.portfolio-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35));
}

.portfolio-info { padding: 24px; }

.portfolio-tag {
  display: inline-block;
  background: rgba(99,102,241,0.14);
  color: #a5b4fc;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.portfolio-info h3 { font-size: 1rem; font-weight: 700; color: var(--text-bright); margin-bottom: 10px; letter-spacing: -0.01em; }
.portfolio-info p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.65; }

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}

.cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(99,102,241,0.12) 0%, transparent 70%);
}

.cta-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent);
}

.cta-banner::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent);
}

.cta-inner {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cta-text p { color: var(--text-muted); font-size: 1rem; }

.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.cta-note {
  display: flex; align-items: center; gap: 7px;
  color: var(--text-muted); font-size: 0.82rem;
}

.cta-note i { color: var(--accent); }

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

.about-text .section-tag { display: inline-block; margin-bottom: 16px; }

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--text-bright);
  margin-bottom: 20px; letter-spacing: -0.02em;
}

.about-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; font-size: 0.95rem; }

.about-values { margin: 28px 0 36px; display: flex; flex-direction: column; gap: 13px; }

.value-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: var(--text);
}

.value-item i { color: var(--accent); font-size: 0.95rem; flex-shrink: 0; }

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

.about-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.3s;
}

.about-card:hover { transform: translateY(-3px); border-color: rgba(99,102,241,0.35); box-shadow: var(--shadow); }
.about-card i { font-size: 1.5rem; color: var(--primary); }
.about-card strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text-bright); letter-spacing: -0.02em; }
.about-card span { font-size: 0.76rem; color: var(--text-muted); }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
}

.testimonial-card:hover { border-color: rgba(99,102,241,0.35); transform: translateY(-3px); box-shadow: var(--shadow); }

.quote-icon {
  font-size: 1.8rem;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}

.stars { color: #fbbf24; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 3px; }

.testimonial-card > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 14px; }

.author-avatar {
  width: 42px; height: 42px;
  background: var(--c);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--white);
  flex-shrink: 0;
}

.testimonial-author strong { display: block; color: var(--text-bright); font-size: 0.88rem; }
.testimonial-author span { color: var(--text-muted); font-size: 0.78rem; }

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

.contact-info { display: flex; flex-direction: column; gap: 26px; }

.contact-item { display: flex; align-items: flex-start; gap: 16px; }

.contact-item i {
  width: 42px; height: 42px;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}

.contact-item strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-bright); margin-bottom: 3px; }
.contact-item span { color: var(--text-muted); font-size: 0.88rem; }

.contact-socials { display: flex; gap: 10px; margin-top: 4px; }

.contact-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.95rem;
  transition: all 0.2s;
}

.contact-socials a:hover {
  background: var(--primary); border-color: var(--primary);
  color: var(--white); transform: translateY(-2px);
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 15px;
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 9px;
  font-family: inherit; font-size: 0.88rem;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select option { background: var(--bg-2); color: var(--text); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: rgba(99,102,241,0.04);
}

.btn-full { width: 100%; justify-content: center; font-size: 0.95rem; padding: 14px; }

/* ===== PAGE DOT NAVIGATION ===== */
.page-dots {
  position: fixed; right: 24px; top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}

.dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.22);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: block; cursor: pointer;
}

.dot::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(6,12,24,0.95);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem; font-weight: 500;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(99,102,241,0.22);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.dot:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }

.dot:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(2.2);
  box-shadow: 0 0 14px rgba(99,102,241,0.7);
}

.dot.active {
  background: var(--primary); border-color: var(--primary);
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(99,102,241,0.6);
}

.dot.active::before { color: #a5b4fc; border-color: rgba(99,102,241,0.35); }

@media (max-width: 768px) { .page-dots { display: none; } }

/* ===== CLIENT LOGO WALL ===== */
.logo-wall {
  background: var(--bg-0);
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.logo-wall-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

/* Wrapper: fixed height, clips overflow, fades edges */
.logo-track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.logo-strip {
  display: flex;
  align-items: center;
  width: max-content;
  height: 44px;
  white-space: nowrap;
}

.logo-strip-1 {
  animation: scroll-left 22s linear infinite;
}

.logo-strip-2 {
  animation: scroll-left 22s linear infinite;
  margin-left: 0; /* sits right after strip-1 in flow */
}

/* Wrapper is a flex row so strip-2 naturally follows strip-1 */
.logo-track-wrapper {
  display: flex;
  height: 44px;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.logo-track-wrapper:hover .logo-strip-1,
.logo-track-wrapper:hover .logo-strip-2 {
  animation-play-state: paused;
}

.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
  border-right: 1px solid rgba(255,255,255,0.08);
  height: 44px;
}

.logo-item i { font-size: 1rem; color: var(--accent); }
.logo-item:hover { color: rgba(255,255,255,0.9); }

/* ===== TECH STACK ===== */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.tech-category {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s;
}

.tech-category:hover { border-color: rgba(99,102,241,0.35); }

.tech-category h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a5b4fc;
  margin-bottom: 16px;
}

.tech-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text);
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: default;
}

.tech-pill:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  color: var(--text-bright);
}

/* ===== PORTFOLIO METRICS ===== */
.portfolio-metrics {
  display: flex;
  gap: 0;
  margin: 16px 0 14px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.metric {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

.metric:last-child { border-right: none; }

.metric-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.metric-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
}

.portfolio-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.portfolio-stack span {
  background: rgba(99,102,241,0.1);
  color: #a5b4fc;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(99,102,241,0.18);
}

/* ===== FAQ ===== */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.open { border-color: rgba(99,102,241,0.4); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-bright);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--white); }

.faq-icon {
  font-size: 0.85rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1);
}

.faq-a p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-0);
  padding: 64px 0 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.35); font-size: 0.85rem; max-width: 260px; line-height: 1.65; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.footer-col h4 {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.35); font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.8); }

.footer-bottom { padding: 20px 0; }

.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}

.footer-bottom span { color: rgba(255,255,255,0.25); font-size: 0.78rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
}

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { align-items: center; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-0);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 32px; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.15rem; }
  .hamburger { display: flex; z-index: 1001; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .process-timeline { padding-left: 48px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .about-card-stack { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ===== LIVE CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none; /* container itself never blocks clicks */
}

/* Only the bubble and open window receive events */
.chat-bubble,
.chat-widget.open .chat-window {
  pointer-events: all;
}

/* ── Bubble button ── */
.chat-bubble {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  box-shadow: 0 8px 28px rgba(99,102,241,0.5);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  position: relative;
  order: 2;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(99,102,241,0.65);
}

.chat-icon-open,
.chat-icon-close {
  position: absolute;
  transition: opacity 0.2s, transform 0.2s;
}

.chat-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.chat-icon-open {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.chat-widget.open .chat-icon-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.chat-widget.open .chat-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.chat-unread {
  position: absolute;
  top: -3px; right: -3px;
  width: 18px; height: 18px;
  background: #ef4444;
  border-radius: 50%;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-1);
  transition: opacity 0.2s;
}

.chat-unread.hidden { opacity: 0; pointer-events: none; }

/* ── Chat window ── */
.chat-window {
  width: 320px;
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.1);
  display: flex; flex-direction: column;
  order: 1;
  transform: scale(0.85) translateY(16px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
}

.chat-widget.open .chat-window {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Header */
.chat-header {
  background: var(--primary);
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
}

.chat-agent { display: flex; align-items: center; gap: 12px; }

.chat-agent-avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
  position: relative; flex-shrink: 0;
}

.chat-online-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  background: #34d399;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.chat-agent-name { font-size: 0.9rem; font-weight: 700; color: #fff; }

.chat-agent-status {
  font-size: 0.72rem; color: rgba(255,255,255,0.75);
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}

.chat-online-dot-inline {
  width: 6px; height: 6px;
  background: #34d399; border-radius: 50%; display: inline-block;
}

.chat-close-btn {
  background: rgba(255,255,255,0.15); border: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem;
  transition: background 0.2s;
}

.chat-close-btn:hover { background: rgba(255,255,255,0.25); }

/* Messages */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 260px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.chat-msg { display: flex; flex-direction: column; gap: 3px; }

.chat-msg.user { align-items: flex-end; }
.chat-msg.bot  { align-items: flex-start; }

.chat-msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem; line-height: 1.5;
}

.chat-msg.bot  .chat-msg-bubble {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-msg-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg-time { font-size: 0.65rem; color: var(--text-muted); padding: 0 4px; }

/* Typing indicator */
.chat-typing .chat-msg-bubble {
  display: flex; align-items: center; gap: 4px;
  padding: 12px 16px;
}

.typing-dot {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-5px); }
}

/* Quick replies */
.chat-quick-replies {
  padding: 0 16px 12px;
  display: flex; flex-wrap: wrap; gap: 7px;
}

.quick-reply {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #a5b4fc;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}

.quick-reply:hover {
  background: rgba(99,102,241,0.25);
  border-color: rgba(99,102,241,0.5);
  color: #fff;
}

/* Input row */
.chat-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-1);
}

.chat-input-row input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 9px 13px;
  font-family: inherit; font-size: 0.85rem;
  color: var(--text); outline: none;
  transition: border-color 0.2s;
}

.chat-input-row input::placeholder { color: var(--text-muted); }
.chat-input-row input:focus { border-color: var(--primary); }

.chat-send-btn {
  width: 36px; height: 36px;
  background: var(--primary); border: none; border-radius: 10px;
  color: #fff; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.chat-send-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

@media (max-width: 480px) {
  .chat-window { width: calc(100vw - 40px); }
  .chat-widget { right: 16px; bottom: 16px; }
}
