/* ============================================================
   KandrixLab — styles.css
   Tkxel-inspired: Blue + White, zero border-radius, no gradients
   Light mode only
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  /* Brand */
  --primary:        #0755E9;
  --primary-hover:  #0645C4;
  --primary-light:  #EEF3FE;

  /* Light Mode (default) */
  --bg:             #FFFFFF;
  --bg-alt:         #F6F8FC;
  --bg-nav:         rgba(255, 255, 255, 0.97);
  --bg-nav-border:  rgba(0, 0, 0, 0.07);
  --bg-card:        #FFFFFF;
  --bg-card-hov:    #F6F8FC;
  --bg-icon:        #EEF3FE;
  --bg-mobile:      #FFFFFF;
  --loader-bg:      #FFFFFF;

  --border:         #E2E8F0;
  --border-hov:     #0755E9;

  --text-primary:   #1A202C;
  --text-muted:     #6B7280;
  --text-faint:     #9CA3AF;

  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:      0 10px 40px rgba(0,0,0,0.10);
  --shadow-primary: 0 4px 14px rgba(7,85,233,0.28);

  /* Misc */
  --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --section-pad:    100px 0;
  --container:      1200px;
}

/* ============================================================
   2. (reserved)
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::selection { background: var(--primary); color: #fff; }

/* ============================================================
   4. CUSTOM CURSOR
   ============================================================ */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(7, 85, 233, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.25s, height 0.25s, border-color 0.25s;
}

body.cursor-hover #cursor-dot  { width: 12px; height: 12px; }
body.cursor-hover #cursor-ring { width: 48px; height: 48px; border-color: var(--primary); }

/* ============================================================
   5. SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); }

/* ============================================================
   6. UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--primary-light);
  border: 1px solid rgba(7, 85, 233, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* No gradient — solid primary blue */
.gradient-text {
  color: var(--primary);
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 16px 0 0;
}

/* ============================================================
   7. BUTTONS — zero border-radius, solid blue
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 0;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(7, 85, 233, 0.38);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ============================================================
   8. CARDS — zero border-radius, clean borders + shadows
   ============================================================ */
.card,
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover,
.glass-card:hover {
  background: var(--bg-card-hov);
  border-color: var(--border-hov);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ============================================================
   9. NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-nav-border);
  box-shadow: var(--shadow-sm);
  transition: padding var(--transition);
}

#navbar.scrolled {
  padding: 12px 0;
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--text-muted);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 8px; padding: 10px 22px; font-size: 0.88rem; }

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   10. MOBILE MENU
   ============================================================ */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-mobile);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  border-left: 3px solid var(--primary);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-mobile a:hover { color: var(--primary); }

.nav-mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

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

/* Subtle blue strip on left edge */
#hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
}

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

.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.hero-bg-glow.glow-1 {
  width: 500px; height: 500px;
  background: rgba(7, 85, 233, 0.06);
  top: -80px; left: -80px;
  animation: glowFloat 8s ease-in-out infinite alternate;
}

.hero-bg-glow.glow-2 {
  width: 400px; height: 400px;
  background: rgba(7, 85, 233, 0.04);
  bottom: -60px; right: -60px;
  animation: glowFloat 10s ease-in-out infinite alternate-reverse;
}

.hero-float-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 0;
  animation: floatSpin 20s linear infinite;
}

.hero-float-shape.s1 {
  width: 300px; height: 300px;
  border: 1px solid rgba(7, 85, 233, 0.08);
  top: 15%; right: 8%;
  animation-duration: 24s;
}

.hero-float-shape.s2 {
  width: 160px; height: 160px;
  border: 1px solid rgba(7, 85, 233, 0.06);
  top: 52%; right: 20%;
  animation-duration: 16s;
  animation-direction: reverse;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: var(--primary-light);
  border: 1px solid rgba(7, 85, 233, 0.2);
  border-left: 3px solid var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 28px;
  animation: fadeSlideDown 0.8s both;
}

.hero-eyebrow i { font-size: 0.72rem; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--text-primary);
  animation: fadeSlideUp 0.9s 0.15s both;
}

/* Solid blue — no gradient */
.hero-title .line-2 {
  color: var(--primary);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 44px;
  animation: fadeSlideUp 0.9s 0.3s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeSlideUp 0.9s 0.45s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  animation: fadeIn 1.2s 1s both;
  z-index: 1;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 20px; height: 34px;
  border: 1.5px solid var(--text-faint);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse::after {
  content: '';
  width: 3px; height: 7px;
  background: var(--primary);
  animation: scrollBob 1.6s ease infinite;
}

/* ============================================================
   12. SERVICES
   ============================================================ */
#services {
  padding: var(--section-pad);
  background: var(--bg-alt);
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-header .section-subtitle { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.service-card {
  padding: 36px 28px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hov);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.service-icon-wrap {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--bg-icon);
  border: 1px solid rgba(7, 85, 233, 0.15);
  font-size: 1.9rem;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.service-card:hover .service-icon-wrap {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Devicons override — respect their own colors when not hovered */
.service-icon-wrap [class^="devicon-"],
.service-icon-wrap [class*=" devicon-"] {
  font-size: 1.9rem;
  line-height: 1;
}

/* On hover, all icons turn white */
.service-card:hover .service-icon-wrap i {
  filter: brightness(0) invert(1);
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Blue top-border accent on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover::before { transform: scaleX(1); }

/* Service — Learn More hover button */
.service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
  white-space: nowrap;
}

.service-card:hover .service-learn-more {
  opacity: 1;
  transform: translateY(0);
}

.service-learn-more:hover {
  background: var(--primary-hover);
}

/* ============================================================
   SERVICE MODAL
   ============================================================ */
.svc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, 0.6);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.svc-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.svc-modal {
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-modal-overlay.open .svc-modal {
  transform: translateY(0) scale(1);
}

.svc-modal-visual {
  background: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  gap: 20px;
}

.svc-modal-visual-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.svc-modal-visual-icon {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
}

.svc-modal-visual-label {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 28px;
  line-height: 1.6;
}

.svc-modal-body {
  padding: 64px 40px 40px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.svc-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
  flex-shrink: 0;
  z-index: 2;
}

.svc-modal-close:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.svc-modal-tag {
  margin-bottom: 14px;
  font-size: 0.72rem;
}

.svc-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.svc-modal-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.svc-modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}

.svc-modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.svc-modal-list li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 5px;
}

.svc-modal-cta { align-self: flex-start; }

@media (max-width: 700px) {
  .svc-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .svc-modal-visual { height: 200px; min-height: unset; }
  .svc-modal-visual-icon { width: 80px; height: 80px; font-size: 2.2rem; }
  .svc-modal-body  { padding: 56px 20px 28px; }
  .svc-modal-title { font-size: 1.3rem; }
}

/* ============================================================
   13. ABOUT
   ============================================================ */
#about {
  padding: var(--section-pad);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.about-bg-orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(7,85,233,0.04) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; right: -200px;
  transform: translateY(-50%);
  pointer-events: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.about-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* Terminal — intentionally always dark (code editor) */
.about-terminal {
  width: 90%;
  background: #0d1117;
  border: 1px solid #30363d;
  overflow: hidden;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.abt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.abt-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.abt-dot.d-red    { background: #FF5F57; }
.abt-dot.d-yellow { background: #FEBC2E; }
.abt-dot.d-green  { background: #28C840; }

.abt-filename {
  margin-left: 8px;
  font-size: 0.75rem;
  color: #8b949e;
  letter-spacing: 0.02em;
}

.abt-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.abt-line { white-space: nowrap; line-height: 1.6; }
.abt-blank { height: 6px; }

.abt-kw      { color: #ff7b72; }
.abt-var     { color: #79c0ff; }
.abt-op      { color: #ff7b72; }
.abt-str     { color: #a5d6ff; }
.abt-num     { color: #f0883e; }
.abt-fn      { color: #d2a8ff; }
.abt-punc    { color: #8b949e; }
.abt-comment { color: #6e7681; font-style: italic; }

.abt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #0755E9;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
}

.abt-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #fff;
}

.abt-live-dot {
  width: 7px; height: 7px;
  background: #28C840;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.abt-lang { color: rgba(255,255,255,0.7); }

.about-text .section-tag { display: flex; }

.about-story {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 20px 0 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat-item {
  padding: 24px;
  background: var(--bg-card);
  border-left: 3px solid var(--primary);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number .suffix {
  font-size: 1.3rem;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   14. TECH STACK MARQUEE
   ============================================================ */
#tech-stack {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#tech-stack::before,
#tech-stack::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}

#tech-stack::before { left: 0;  background: linear-gradient(90deg, var(--bg-alt), transparent); }
#tech-stack::after  { right: 0; background: linear-gradient(-90deg, var(--bg-alt), transparent); }

.tech-header {
  text-align: center;
  margin-bottom: 48px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 6px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.tech-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.tech-item i { font-size: 1rem; }

.tech-item [class^="devicon-"],
.tech-item [class*=" devicon-"] { font-size: 1.4rem; line-height: 1; }

/* ============================================================
   15. PROCESS
   ============================================================ */
#process {
  padding: var(--section-pad);
  background: var(--bg);
  position: relative;
}

.process-header {
  text-align: center;
  margin-bottom: 72px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  border: 1px solid var(--border);
}

.process-step {
  padding: 40px 28px;
  text-align: center;
  position: relative;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}

.process-step:last-child { border-right: none; }

.process-step:hover {
  background: var(--primary-light);
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.process-step:hover::before { transform: scaleX(1); }

.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 auto 24px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.process-step:hover .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.step-icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border: 1px solid rgba(7, 85, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--primary);
  font-size: 1rem;
  transition: var(--transition);
}

.process-step:hover .step-icon {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   16. TESTIMONIALS
   ============================================================ */
#testimonials {
  padding: var(--section-pad);
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  width: calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
  padding: 32px;
  flex: 0 0 calc(33.333% - 16px);
  border-left: 3px solid var(--primary);
}

.testi-quote {
  font-size: 2.8rem;
  color: var(--primary);
  line-height: 0.9;
  margin-bottom: 14px;
  font-weight: 900;
  opacity: 0.4;
}

.testi-text {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.testi-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border);
}
.av-1 { background: #0755E9; }
.av-2 { background: #8B5CF6; }
.av-3 { background: #EC4899; }
.av-4 { background: #10B981; }
.av-5 { background: #F59E0B; }
.av-6 { background: #EF4444; }
.av-7 { background: #06B6D4; }
.av-8 { background: #84CC16; }
.av-9 { background: #F97316; }

.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testi-name {
  font-weight: 700;
  font-size: 0.93rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.testi-role { font-size: 0.78rem; color: var(--text-muted); }

.testi-stars { color: #F59E0B; font-size: 0.78rem; margin-top: 4px; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.slider-dots { display: flex; gap: 8px; }

.slider-dot {
  width: 8px; height: 8px;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slider-dot.active {
  width: 24px;
  background: var(--primary);
}

/* ============================================================
   17. CONTACT
   ============================================================ */
#contact {
  padding: var(--section-pad);
  position: relative;
  background: var(--bg);
}

.contact-bg { display: none; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}

.contact-info { position: relative; z-index: 1; }

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.contact-item:last-child { border-bottom: none; }

.contact-item:hover { background: var(--primary-light); }

.contact-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.contact-item-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 0;
  margin-top: 28px;
}

.social-link {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-right: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-link:last-child { border-right: 1px solid var(--border); }

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Contact Form */
.contact-form-wrap { position: relative; z-index: 1; }

.contact-form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 18px; }

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  border-left-width: 3px;
  background: var(--bg);
  box-shadow: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

.form-select option {
  background: var(--bg);
  color: var(--text-primary);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  margin-top: 8px;
}

/* ============================================================
   18. FOOTER
   ============================================================ */
footer {
  padding: 64px 0 28px;
  background: var(--bg-alt);
  border-top: 3px solid var(--primary);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .nav-logo { font-size: 1.5rem; display: block; margin-bottom: 14px; }

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover { color: var(--primary); padding-left: 4px; }

.footer-links a::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--primary);
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.footer-links a:hover::before { opacity: 1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-copy span {
  color: var(--primary);
  font-weight: 700;
}

.footer-legal { display: flex; gap: 24px; }

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-faint);
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--primary); }

/* ============================================================
   19. LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--loader-bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s, visibility 0.5s;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-bar-wrap {
  width: 160px; height: 3px;
  background: var(--border);
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: var(--primary);
  animation: loaderFill 1.6s ease forwards;
}

/* ============================================================
   20. BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-hover); transform: translateY(-3px); }

/* ============================================================
   21. ANIMATIONS
   ============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glowFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 30px) scale(1.06); }
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.3; }
}

@keyframes floatSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

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

@keyframes loaderFill {
  0%   { width: 0%; }
  100% { width: 100%; }
}

/* ============================================================
   22. TOUCH DEVICES — hide custom cursor, reset body cursor
   ============================================================ */
@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none !important; }
  body { cursor: auto !important; }
}

/* ============================================================
   23. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-inner          { grid-template-columns: 1fr; gap: 48px; }
  .about-visual         { max-width: 480px; }
  .process-steps        { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: none; }
  .contact-inner        { grid-template-columns: 1fr; gap: 48px; }
  .testimonial-card     { width: calc(50% - 12px); min-width: calc(50% - 12px); flex: 0 0 calc(50% - 12px); }
  .footer-inner         { grid-template-columns: 1fr 1fr; }
  .services-grid        { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger        { display: flex; }

  .services-grid        { grid-template-columns: 1fr; }
  .testimonial-card     { width: 100%; min-width: 100%; flex: 0 0 100%; padding: 24px 20px; }
  .testi-text           { font-size: 0.9rem; }
  .process-steps        { grid-template-columns: 1fr 1fr; }
  .stats-grid           { grid-template-columns: 1fr 1fr; }
  .stat-label           { font-size: 0.72rem; }
  .form-row             { grid-template-columns: 1fr; }
  .footer-inner         { grid-template-columns: 1fr; }
  .hero-float-shape     { display: none; }
  .contact-form         { padding: 28px 20px; }
  .hero-title           { font-size: clamp(2.1rem, 8vw, 3.4rem); }
  #hero::before         { display: none; }
  .about-terminal       { font-size: 0.78rem; overflow-x: auto; }
  .slider-controls      { gap: 16px; }
}

@media (max-width: 480px) {
  .process-steps        { grid-template-columns: 1fr; }
  .process-step         { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-actions         { flex-direction: column; align-items: flex-start; }
  .services-grid        { grid-template-columns: 1fr; }
  .footer-inner         { grid-template-columns: 1fr; }
  .footer-legal         { flex-wrap: wrap; gap: 12px; }
  .stat-label           { font-size: 0.68rem; }
  .stat-number          { font-size: 1.8rem; }
  .testimonial-card     { padding: 20px 16px; }
  .hero-actions .btn    { width: 100%; justify-content: center; }
  .section-title        { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}
