/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --accent: #10b981;
  --accent-rgb: 16, 185, 129;
  --accent2: #f5b942;
  --accent2-rgb: 245, 185, 66;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  --bg: #090b10;
  --surface: #131722;
  --surface-2: #1a1f2e;
  --surface-3: #222840;
  --text: #f0f2f5;
  --text-muted: #949db0;
  --line: rgba(255,255,255,.06);
  --line-strong: rgba(255,255,255,.12);
  --nav-bg: rgba(9, 11, 16, .88);
  --card-shadow: 0 8px 32px rgba(0,0,0,.35);
  --card-shadow-hover: 0 16px 48px rgba(0,0,0,.5);
}

[data-theme="light"] {
  --bg: #f0ede8;
  --surface: #f5f3ef;
  --surface-2: #eae7e0;
  --surface-3: #dedad2;
  --text: #1a1816;
  --text-muted: #6b6560;
  --line: rgba(26,24,22,.07);
  --line-strong: rgba(26,24,22,.13);
  --nav-bg: rgba(240, 237, 232, .92);
  --card-shadow: 0 8px 32px rgba(0,0,0,.05);
  --card-shadow-hover: 0 16px 48px rgba(0,0,0,.09);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
  line-height: 1.6;
}

.mono { font-family: 'JetBrains Mono', monospace; }
.display { font-family: 'Plus Jakarta Sans', sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   BACKGROUND TEXTURE
   ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .4;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(var(--accent-rgb),.07), transparent 60%);
  top: -300px;
  right: -250px;
  z-index: -1;
  pointer-events: none;
  transition: background .5s ease;
}

/* ============================================================
   LINE GRAPH BACKGROUND
   ============================================================ */
.linegraph-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  position: fixed;
  top: 3px;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: background-color .5s ease, border-color .5s ease, transform .3s ease;
}

nav.hidden {
  transform: translateY(-100%);
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  gap: 2px;
  user-select: none;
}

.logo-part {
  display: flex;
  align-items: center;
}

.logo-expand {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--accent);
  font-family: 'Aladin', serif;
  font-weight: 400;
  white-space: nowrap;
  transition: max-width .6s cubic-bezier(0.16, 1, 0.3, 1), opacity .4s ease .1s;
}

.logo:hover .logo-expand {
  max-width: 100px;
  opacity: 1;
}

.logo .cursor {
  color: var(--accent);
  margin-left: 3px;
  animation: blink 1.2s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

nav a {
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 1px;
}

nav a:hover { color: var(--text); }
nav a:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.theme-toggle button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  padding: 7px 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle button:hover {
  color: var(--text);
}

.theme-toggle button.active {
  background: var(--accent);
  color: #08110c;
  font-weight: 600;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Mobile Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity .3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.primary {
  background: rgba(var(--accent-rgb), .15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), .35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), .15);
}

.primary:hover {
  background: rgba(var(--accent-rgb), .25);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), .25);
  border-color: rgba(var(--accent-rgb), .55);
}

.secondary {
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .secondary {
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(0,0,0,.03);
}

.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), .06);
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), .25);
  transition: all var(--transition);
  font-family: inherit;
  cursor: pointer;
}

.btn-ghost-sm:hover {
  background: rgba(var(--accent-rgb), .1);
  border-color: rgba(var(--accent-rgb), .5);
}

.btn.tertiary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--accent);
}

.btn.tertiary:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .08);
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section {
  padding: 100px 8%;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible .eyebrow::before,
.hero .eyebrow::before {
  transform: scaleX(1);
}

.section-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Hero entrance animations */
.hero .eyebrow,
.hero .name-line,
.hero h1,
.hero .subtitle,
.hero .desc,
.hero .btns,
.hero .stat-row {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in .7s cubic-bezier(.4, 0, .2, 1) forwards;
}

.hero .eyebrow { animation-delay: .15s; }
.hero .name-line { animation-delay: .25s; }
.hero h1 { animation-delay: .35s; }
.hero .subtitle { animation-delay: .45s; }
.hero .desc { animation-delay: .55s; }
.hero .btns { animation-delay: .65s; }
.hero .stat-row { animation-delay: .75s; }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 8% 16px;
}

.hero-inner {
  max-width: 740px;
}

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

.hero-grid .hero-inner {
  max-width: none;
}

.hero-media {
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  padding-right: 40px;
  margin-top: -70px;
}

.reel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle, 0deg), var(--accent), var(--accent2), var(--accent), var(--accent2), var(--accent));
  overflow: hidden;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), .12), 0 0 64px rgba(var(--accent-rgb), .04);
  transition: box-shadow var(--transition);
  animation: border-spin 4s linear infinite;
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

.reel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 1.5px);
  overflow: hidden;
  background: var(--surface);
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 3;
  opacity: 0;
  transition: opacity .3s ease;
}

.reel-inner:hover .reel-controls {
  opacity: 1;
}

.reel-control-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.reel-control-btn:hover {
  background: rgba(0,0,0,.65);
  border-color: rgba(255,255,255,.3);
}

.reel-frame:hover {
  box-shadow: 0 0 32px rgba(var(--accent-rgb), .3), 0 0 80px rgba(var(--accent-rgb), .1);
}

.reel-cta {
  margin-top: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .03em;
  opacity: .5;
  transition: opacity var(--transition), color var(--transition);
  user-select: none;
}

.reel-cta:hover {
  opacity: 1;
  color: var(--accent);
}

.name-line {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.name-cycle {
  display: inline-block;
  min-width: 220px;
  color: var(--accent);
  font-weight: 700;
  font-size: 2.8em;
  line-height: 1.3;
  transition: opacity .3s ease, transform .3s ease;
}

.name-cycle.fading {
  opacity: 0;
  transform: translateY(8px);
}

.font-en { font-family: 'Aladin', cursive; font-weight: 400; }
.font-hi { font-family: 'Noto Sans Devanagari', 'Mangal', 'Nirmala UI', sans-serif; }
.font-or { font-family: 'Noto Sans Oriya', 'Nirmala UI', 'Mangal', sans-serif; }
.font-pa { font-family: 'Noto Sans Gurmukhi', 'Mukta Mahee', 'Nirmala UI', sans-serif; }
.font-zh { font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif; }
.font-ja { font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', sans-serif; }

h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -.025em;
}

h1 .hl {
  color: var(--accent);
  font-family: 'Aladin', serif;
  font-weight: 400;
  font-size: 1.2em;
}

.subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.desc {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 540px;
}

.btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.stat-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat-row .stat {
  text-align: center;
}

.stat-row .val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.stat-row .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(var(--accent-rgb), .18);
}

.service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-thumb {
  height: 200px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-inner {
  font-size: 48px;
  opacity: .3;
  transition: transform var(--transition), opacity var(--transition);
}

.project-card:hover .project-thumb-inner {
  transform: scale(1.1);
  opacity: .5;
}

.project-thumb-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), .15);
  color: var(--accent);
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.project-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--line);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity var(--transition);
}

.project-link:hover { opacity: .7; }

/* ============================================================
   GLOW CARD — Cursor-Following Gradient Border
   ============================================================ */
.glow-card-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--my, 0) * -0.04deg)) rotateY(calc(var(--mx, 0) * 0.04deg));
  transition: transform .15s ease-out, box-shadow .3s ease;
}

.glow-card-wrap:hover {
  transform: rotateX(calc(var(--my, 0) * -0.06deg)) rotateY(calc(var(--mx, 0) * 0.06deg)) scale(1.03);
  box-shadow:
    0 8px 40px rgba(var(--accent-rgb), .2),
    0 0 80px rgba(var(--accent-rgb), .08);
}

.glow-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    hsl(160, 85%, 55%),
    hsl(175, 80%, 50%),
    hsl(195, 75%, 45%),
    hsl(220, 65%, 40%),
    transparent 70%
  );
  box-shadow: 0 0 20px rgba(var(--accent-rgb), .1);
  overflow: hidden;
  transition: box-shadow .3s ease;
}

.glow-card-wrap:hover .glow-card {
  box-shadow:
    0 0 30px rgba(var(--accent-rgb), .3),
    0 0 60px rgba(var(--accent-rgb), .15);
}

.glow-card > .glow-inner {
  position: relative;
  border-radius: calc(var(--radius-lg) - 2px);
  background: var(--surface);
  overflow: hidden;
}

/* Cursor light spot on inner card */
.glow-card .glow-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--accent-rgb), .07),
    transparent 60%
  );
}

.glow-card-wrap:hover .glow-inner::after {
  opacity: 1;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all var(--transition);
  font-size: 14px;
  font-weight: 500;
}

.social-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.social-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.social-link-label {
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

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

.contact-cta {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}

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

.contact-form .btn {
  width: 100%;
  justify-content: center;
  font-size: 14px;
}

.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.form-status.success {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #22c55e;
}

.form-status.error {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #ef4444;
}

.contact-form .btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Form row — side-by-side fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row .form-group {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-row .form-group {
    margin-bottom: 18px;
  }
}

/* Select dropdown */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  pointer-events: none;
}

.form-group select {
  width: 100%;
  padding: 12px 16px;
  padding-right: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}

.form-group select option {
  background: var(--surface);
  color: var(--text);
}

/* Required asterisk */
.required {
  color: #ef4444;
}

/* Field-level inline error */
.field-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  font-weight: 500;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 8% 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease-out;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  transition: fill var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .1);
  transform: scale(1.15) rotate(-4deg);
}

.footer-social a:hover svg {
  fill: var(--accent);
}

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

.footer-bottom p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}



/* ============================================================
   EXPERIENCE SECTION
   ============================================================ */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line-strong);
}

.timeline::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent), rgba(var(--accent-rgb), .3));
  transition: height 1.5s cubic-bezier(.4, 0, .2, 1);
  z-index: 1;
}

.timeline.filled::after {
  height: 100%;
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--line-strong);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg);
  transition: border-color .5s ease, box-shadow .5s ease;
}

.timeline-item:first-child .timeline-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(var(--accent-rgb), .4);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(var(--accent-rgb), .3); }
  50% { box-shadow: 0 0 0 4px var(--bg), 0 0 20px rgba(var(--accent-rgb), .6); }
}

.timeline-item:first-child .timeline-date {
  color: var(--accent);
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.timeline-role {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.timeline-desc ul {
  list-style: none;
  padding: 0;
}

.timeline-desc li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.timeline-desc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .6;
}

/* ============================================================
   EDUCATION SECTION
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.edu-card {
  padding: 32px 28px;
  transition: none;
  position: relative;
  overflow: hidden;
}

.edu-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.edu-card .edu-school {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.edu-card .edu-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.edu-card .edu-stream {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ============================================================
   CERTIFICATIONS SECTION
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.cert-card {
  padding: 24px;
  text-align: center;
  transition: none;
}



.cert-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cert-card .cert-issuer {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cert-card .cert-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
}





/* ============================================================
   ABOUT ME SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.about-avatar {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: 1;
  position: relative;
  overflow: hidden;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.about-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--accent-rgb), .12),
    transparent 60%
  );
  pointer-events: none;
}

.about-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.about-content p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.about-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), .08);
  border: 1px solid rgba(var(--accent-rgb), .15);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.about-highlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   STATS COUNTER SECTION
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .4s ease;
}

.stat-card:hover::before { opacity: 1; }

.stat-card:hover {
  border-color: rgba(var(--accent-rgb), .3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--accent-rgb), .08);
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================
   HOW I WORK SECTION
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.process-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  transition: all var(--transition);
}

.process-card:hover {
  border-color: rgba(var(--accent-rgb), .3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--accent-rgb), .08);
}

.process-card::after {
  content: "\2192";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-muted);
  opacity: .3;
  z-index: 1;
}

.process-card:last-child::after { display: none; }

.process-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.process-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}



/* ============================================================
   PROJECT FILTERS
   ============================================================ */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #08110c;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), .2);
}

.glow-card-wrap.hidden {
  opacity: 0;
  transform: scale(.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(var(--accent-rgb), .2);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), .06);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  font-size: 14px;
  color: var(--accent2);
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  flex: 1;
}

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

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .1);
  border: 1px solid rgba(var(--accent-rgb), .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 14px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #08110c;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), .3);
  opacity: 0;
  transform: translateY(20px);
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  z-index: 999;
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(var(--accent-rgb), .45);
}

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.section-divider {
  height: 1px;
  max-width: 200px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .2;
  border: none;
}

/* ============================================================
   MOBILE STICKY CTA BAR
   ============================================================ */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9500;
    padding: 12px 16px;
    gap: 12px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }

  .mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
  }

  .mobile-cta-btn.primary {
    background: var(--accent);
    color: #08110c;
  }

  .mobile-cta-btn.primary:hover {
    background: #0ea573;
  }

  .mobile-cta-btn.whatsapp {
    background: #25D366;
    color: #fff;
  }

  .mobile-cta-btn.whatsapp:hover {
    background: #1fb85a;
  }

  body {
    padding-bottom: 72px;
  }

  .whatsapp-float {
    bottom: 80px;
  }
}

/* ============================================================
   EASTER EGG — CONFETTI
   ============================================================ */
.confetti-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 99999;
  animation: confetti-burst 1.2s cubic-bezier(.25, .46, .45, .94) forwards;
}

@keyframes confetti-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--cx), var(--cy)) rotate(720deg) scale(0.3);
  }
}

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

  .hero-media {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

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

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    border-left: 1px solid var(--line);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    align-items: flex-start;
  }

  nav ul.open {
    display: flex;
    transform: translateX(0);
  }

  nav ul li { width: 100%; }

  nav ul a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  nav ul a::after { display: none; }

  .nav-toggle { display: block; }

  .hero {
    padding-top: 140px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-media {
    max-width: 220px;
  }

  h1 { font-size: 40px; }
  .subtitle { font-size: 15px; }

  .stat-row { gap: 24px; justify-content: center; }
  .stat-row .val { font-size: 18px; }

  .services-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; justify-items: start; }
  .about-avatar { width: 200px; height: 200px; font-size: 60px; margin: 0 auto; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-card::after { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 16px; }
  .timeline-item { padding-left: 44px; }
  .timeline-dot { left: 8px; }

  .contact-wrap { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; }
  .footer-nav { gap: 32px; flex-wrap: wrap; }

  .section-head h2 { font-size: 28px; }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .name-cycle { font-size: 1.8em; min-width: 160px; }
  .hero { padding: 120px 5% 48px; }
  .section { padding: 56px 5%; }
  .btns { flex-direction: column; }
  .btns .btn { width: 100%; justify-content: center; }
  .stat-row { gap: 16px; flex-wrap: wrap; }
  .stat-row .val { font-size: 16px; }
  .stat-row .lbl { font-size: 9px; }
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 12px; }
  .project-modal { width: 95%; max-height: 90vh; }
  .tools-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero .eyebrow, .hero .name-line, .hero h1, .hero .subtitle,
  .hero .desc, .hero .btns, .hero .stat-row {
    opacity: 1;
    transform: none;
  }
  .reveal { opacity: 1; transform: none; }
  .name-cycle { opacity: 1; }
  .custom-cursor, .custom-cursor-ring { display: none !important; }
  .linegraph-canvas { display: none; }
}

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
body {
  transition: opacity .2s ease;
}

body.fade-out {
  opacity: 0;
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity .3s ease;
}

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

/* Honeypot anti-spam — hidden from humans, visible to bots */
.honeypot {
  position: absolute;
  left: -99999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.loader-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}

.loader-bar {
  width: 60px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: loader-draw .6s ease forwards;
}

@keyframes loader-draw {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
@media (pointer: fine) {
  a, button, input, textarea, select, .btn, [role="button"] {
    cursor: none !important;
  }
}

.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: difference;
}

.custom-cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, border-color .3s;
  opacity: .5;
}

.custom-cursor.hovering {
  width: 14px;
  height: 14px;
  background: var(--accent2);
}

.custom-cursor-ring.hovering {
  width: 52px;
  height: 52px;
  border-color: var(--accent2);
  opacity: .3;
}

/* ============================================================
   MAGNETIC BUTTONS
   ============================================================ */
.btn.primary, .btn.secondary {
  will-change: transform;
  transition: transform .3s cubic-bezier(.25,.46,.45,.94), box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
}

/* ============================================================
   TOOLS & SKILLS TAG GRID
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.tools-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.tools-group-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: .02em;
}

.tools-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), .06);
  border: 1px solid rgba(var(--accent-rgb), .12);
  color: var(--text-muted);
  transition: all var(--transition);
}

.tool-tag:hover {
  background: rgba(var(--accent-rgb), .12);
  border-color: rgba(var(--accent-rgb), .25);
  color: var(--accent);
}

/* ============================================================
   PROJECT MODAL
   ============================================================ */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 24px;
}

.project-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .3s ease;
}

.project-modal-overlay.active .project-modal {
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 1;
}

.project-modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-modal-thumb {
  width: 100%;
  height: 200px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-modal-body {
  padding: 32px;
}

.project-modal-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-modal-body p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-modal-tag {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), .1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

.project-modal-links {
  display: flex;
  gap: 12px;
}

.project-modal-links a {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.project-modal-links .btn-primary {
  background: var(--accent);
  color: #08110c;
}

.project-modal-links .btn-secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
}

.project-modal-links .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   FILTER RESULTS ANNOUNCEMENT
   ============================================================ */
.filter-results {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 20px;
}

/* ============================================================
   ANIMATION PASS — Micro-interactions
   ============================================================ */

/* A1: Button arrow nudge */
.btn-arrow {
  display: inline-block;
  transition: transform .15s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* A2: Tap/press feedback */
.btn:active,
.filter-btn:active,
.nav-toggle:active {
  transform: scale(.96);
  transition-duration: .08s;
}

/* A3: Social link icon micro-bounce */
.social-link:hover .social-link-icon {
  transform: scale(1.15) rotate(-4deg);
  transition: transform .15s ease-out;
}

/* A5: Idle pulse on hero eyebrow */
.hero .eyebrow {
  position: relative;
}

.hero .eyebrow::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

/* A7: Mobile menu stagger-in */
@media (max-width: 768px) {
  nav ul.open li {
    animation: mobile-nav-in .3s ease backwards;
  }
  nav ul.open li:nth-child(1) { animation-delay: 0ms; }
  nav ul.open li:nth-child(2) { animation-delay: 30ms; }
  nav ul.open li:nth-child(3) { animation-delay: 60ms; }
  nav ul.open li:nth-child(4) { animation-delay: 90ms; }
  nav ul.open li:nth-child(5) { animation-delay: 120ms; }
  nav ul.open li:nth-child(6) { animation-delay: 150ms; }
  nav ul.open li:nth-child(7) { animation-delay: 180ms; }
}

@keyframes mobile-nav-in {
  from { opacity: 0; transform: translateX(20px); }
}

/* A8: Tag pop-in stagger */
.reveal.visible .project-tag:nth-child(1) { animation: tag-pop .3s ease backwards; animation-delay: 0ms; }
.reveal.visible .project-tag:nth-child(2) { animation: tag-pop .3s ease backwards; animation-delay: 30ms; }
.reveal.visible .project-tag:nth-child(3) { animation: tag-pop .3s ease backwards; animation-delay: 60ms; }
.reveal.visible .project-tag:nth-child(4) { animation: tag-pop .3s ease backwards; animation-delay: 90ms; }
.reveal.visible .project-tag:nth-child(5) { animation: tag-pop .3s ease backwards; animation-delay: 120ms; }
.reveal.visible .project-tag:nth-child(6) { animation: tag-pop .3s ease backwards; animation-delay: 150ms; }
.reveal.visible .project-tag:nth-child(7) { animation: tag-pop .3s ease backwards; animation-delay: 180ms; }
.reveal.visible .project-tag:nth-child(8) { animation: tag-pop .3s ease backwards; animation-delay: 210ms; }

@keyframes tag-pop {
  from { opacity: 0; transform: translateY(6px); }
}

/* B1: Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 10001;
  pointer-events: none;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 96px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .4);
  transition: transform .3s ease, box-shadow .3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, .5);
}

/* ============================================================
   CLIENTS LOGOS BAR — infinite marquee
   ============================================================ */
.clients-bar-wrap {
  max-width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.clients-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: clients-scroll 22s linear infinite;
}

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

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 28px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md, 8px);
  flex-shrink: 0;
}

[data-theme="dark"] .client-logo-item {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .15);
}

[data-theme="light"] .client-logo-item {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .1);
}

.client-logo-item img {
  max-height: 36px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

[data-theme="dark"] .client-logo-item img {
  filter: brightness(1.5) contrast(1.1);
}

[data-theme="dark"] .client-logo-item img[src*="tepco"] {
  filter: none;
}

.client-logo-item img[src*="tepco"],
.client-logo-item img[src*="Night"] {
  max-height: 48px;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card-img {
  height: 180px;
  flex-shrink: 0;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.blog-category-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  opacity: .7;
}

.blog-search {
  max-width: 480px;
  margin: 0 auto 48px;
}

.blog-search input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.blog-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15);
}

.blog-categories {
  max-width: 1100px;
  margin: 0 auto 48px;
  text-align: center;
}

.blog-categories h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.category-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 7px 16px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: 1px solid var(--border);
}

.category-chip:hover {
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), .3);
}

.blog-newsletter {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-newsletter-inner {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  border: 1px solid var(--border);
}

.blog-newsletter-inner h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-newsletter-inner p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.section-subhead {
  max-width: 1100px;
  margin: 0 auto 24px;
}

.section-subhead h3 {
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .blog-newsletter-inner {
    padding: 32px 20px;
  }
}
