/* ============ Design tokens ============ */
:root {
  --bg: #0F172A;
  --bg-deep: #0B1120;
  --surface: #1E293B;
  --surface-2: #272F42;
  --border: #334155;
  --border-soft: #1f2a3f;
  --fg: #F8FAFC;
  --fg-muted: #94A3B8;
  --accent: #22C55E;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 68px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: inline-block; vertical-align: middle; }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: var(--accent); color: #052e16; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #052e16;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(11, 17, 32, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  background: rgba(11, 17, 32, 0.85);
  border-bottom-color: var(--border-soft);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  margin-right: auto;
}
.logo-mark {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 15px;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 4px 7px;
}
.logo-dot { color: var(--accent); }

.nav-links { display: flex; gap: 6px; }

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #16a34a 0%, transparent 70%);
  top: -120px; right: -100px;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  bottom: -140px; left: -120px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, 40px) scale(1.12); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black, transparent);
}

.hero-inner { position: relative; padding-block: 64px; }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.accent {
  background: linear-gradient(120deg, #4ade80, #22c55e 45%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--accent);
  margin-bottom: 22px;
  min-height: 1.6em;
}
.caret {
  display: inline-block;
  width: 10px; height: 1.15em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  max-width: 620px;
  font-size: 17px;
  color: var(--fg-muted);
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--fg); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-socials { display: flex; gap: 10px; }
.hero-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(30, 41, 59, 0.5);
  color: var(--fg-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.hero-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: var(--fg-muted);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ============ Stats ============ */
.stats {
  border-block: 1px solid var(--border-soft);
  background: var(--bg-deep);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--fg-muted);
}

/* ============ Sections ============ */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-deep); border-block: 1px solid var(--border-soft); }

.section-eyebrow {
  color: var(--accent);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 8px;
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(34, 197, 94, 0.12);
}
.about-text p {
  color: var(--fg-muted);
  margin-bottom: 16px;
  max-width: 640px;
}
.about-facts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ============ Featured apps ============ */
.apps-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 56px;
}

.app-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.4));
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 44px 48px;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  will-change: transform;
}
.app-card:hover {
  border-color: var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.app-card.alt { grid-template-columns: 0.75fr 1.25fr; }
.app-card.alt .app-info { order: 2; }
.app-card.alt .app-visual { order: 1; }

.app-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tag, var(--accent));
  background: color-mix(in srgb, var(--tag, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag, var(--accent)) 30%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.app-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.app-desc { color: var(--fg-muted); margin-bottom: 18px; }
.app-desc strong { color: var(--fg); }

.app-points {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--fg-muted);
}
.app-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #cbd5e1;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 13px;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.big { font-size: 13.5px; padding: 8px 17px; }

/* App header: real icon + name */
.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.app-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.app-head .app-name { margin-bottom: 0; }

/* Store links */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.store-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Real store screenshot */
.app-visual { display: flex; justify-content: center; }
.store-shot {
  width: 280px;
  max-width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--border-soft);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 50px color-mix(in srgb, var(--glow, #22C55E) 20%, transparent);
  transition: transform 0.4s var(--ease);
}
.app-card:hover .store-shot { transform: translateY(-8px) rotate(-1.5deg); }

/* ============ Timeline ============ */
.timeline {
  position: relative;
  margin-top: 56px;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 80%);
}

.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -28px; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--border);
}
.tl-dot.current { border-color: var(--accent); box-shadow: 0 0 14px rgba(34, 197, 94, 0.5); }

.tl-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 30px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.tl-card:hover { border-color: var(--border); transform: translateX(6px); }

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.tl-head h3 { font-size: 18px; font-weight: 700; }
.tl-date { font-size: 12.5px; color: var(--accent); white-space: nowrap; }
.tl-company { color: var(--fg-muted); font-size: 14px; margin: 4px 0 14px; }
.tl-card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tl-card li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--fg-muted);
}
.tl-card li::before {
  content: "›";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}

/* ============ Projects ============ */
.filters { display: flex; gap: 10px; margin: 40px 0 36px; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { color: var(--fg); border-color: var(--border); }
.filter-btn.active {
  color: #052e16;
  background: var(--accent);
  border-color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s var(--ease), border-color 0.25s, opacity 0.3s, scale 0.3s;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.project-card.hide { display: none; }

.pc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 197, 94, 0.25);
  margin-bottom: 16px;
}
.project-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.project-card p { font-size: 14px; color: var(--fg-muted); margin-bottom: 16px; }

.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.pc-link:hover { color: var(--accent); }

/* ============ Skills ============ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--accent);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.edu-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.edu-main { font-weight: 600; margin-bottom: 4px; }
.edu-sub { font-size: 14px; color: var(--fg-muted); margin-bottom: 6px; }

/* ============ Certifications ============ */
.certs-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--fg);
  margin-top: 64px;
  margin-bottom: 10px;
}
.certs-title svg { color: var(--accent); }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 14px 18px;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--fg);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.cert-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: #fff;
  margin-bottom: 14px;
}
.cert-name { font-size: 15px; font-weight: 700; }
.cert-issuer { font-size: 13px; color: var(--fg-muted); margin-top: 3px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(920px, 100%);
  max-height: 90dvh;
  border-radius: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.lightbox-close:hover { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

/* ============ Testimonials ============ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.review-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.review-card:hover { transform: translateY(-6px); border-color: var(--border); }
.review-stars { display: flex; gap: 3px; color: #FACC15; margin-bottom: 16px; }
.review-card blockquote {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}
.review-card figcaption { font-size: 13px; color: var(--fg-muted); }
.review-card.wide { grid-column: 1 / -1; border-color: rgba(34, 197, 94, 0.3); }
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 16px;
}
.review-card.wide blockquote { font-size: 16.5px; }

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 44px;
  max-width: 780px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: border-color 0.25s;
}
.faq-item[open] { border-color: rgba(34, 197, 94, 0.35); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--fg-muted);
  padding-bottom: 20px;
  font-size: 15px;
}
.faq-item a { color: var(--accent); }

/* ============ Contact form ============ */
.contact-form {
  width: 100%;
  max-width: 620px;
  text-align: left;
  margin-bottom: 40px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--fg-muted); }
.form-field input,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #64748B; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.form-submit { width: 100%; justify-content: center; }

/* ============ Contact ============ */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact .section-sub { margin-inline: auto; margin-bottom: 36px; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}
.contact-links {
  display: flex;
  gap: 14px;
  color: var(--fg-muted);
  font-size: 14.5px;
}
.contact-links a { color: var(--fg-muted); transition: color 0.2s; }
.contact-links a:hover { color: var(--accent); }

/* ============ Footer ============ */
.footer {
  position: relative;
  background: var(--bg-deep);
  padding: 72px 0 28px;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.5), transparent);
}
.footer::after {
  content: "";
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34, 197, 94, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-tagline {
  color: var(--fg-muted);
  font-size: 14.5px;
  max-width: 280px;
  margin: 18px 0 22px;
}

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border-soft);
  background: rgba(30, 41, 59, 0.5);
  color: var(--fg-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 6px;
}
.footer-col a,
.footer-col .footer-loc {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.2s, transform 0.2s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.footer-col svg { flex-shrink: 0; color: var(--accent); opacity: 0.8; }
.footer-cv { font-weight: 600; color: var(--fg) !important; }
.footer-cv:hover { color: var(--accent) !important; }

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
  color: var(--fg-muted);
  font-size: 13.5px;
}
.footer-stack { font-size: 12px; color: #64748B; }

.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  color: var(--fg-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid, .edu-grid { grid-template-columns: 1fr; }
  .certs-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { display: flex; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .app-card, .app-card.alt { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
  .app-card.alt .app-info { order: 1; }
  .app-card.alt .app-visual { order: 2; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(11, 17, 32, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    padding: 16px 24px 24px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { padding: 14px 12px; font-size: 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid, .reviews-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .store-shot { width: 230px; }
  .app-head { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { gap: 20px; }
}

/* ============ Print ============ */
@media print {
  body { background: #fff; color: #111; }
  .nav, .hero-bg, .scroll-hint, .hero-actions, .hero-socials,
  .filters, .contact-form, .contact-actions, .to-top, .lightbox,
  .store-links, .caret, .footer-socials, .footer-cv { display: none !important; }
  .footer { background: #fff; padding: 24px 0; }
  .footer::before, .footer::after { display: none; }
  .footer-col a, .footer-col .footer-loc, .footer-tagline,
  .footer-bottom { color: #333; }
  .hero { min-height: auto; padding: 24px 0; }
  .section, .stats { padding: 24px 0; background: #fff; border: 0; }
  .section-title, .hero-title, .app-name, .tl-head h3,
  .project-card h3, .edu-main { color: #111; }
  .accent { -webkit-text-fill-color: #111; color: #111; background: none; }
  .hero-sub, .app-desc, .section-sub, .tl-card li, .tl-company,
  .project-card p, .edu-sub, .about-text p, .stat-label,
  .review-card blockquote, .review-card figcaption { color: #333; }
  .app-card, .tl-card, .project-card, .skill-group, .edu-card,
  .cert-card, .review-card {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
  }
  .chip, .chip.big { background: #f3f4f6; color: #333; border-color: #ddd; }
  .stat-num { color: #111; text-shadow: none; }
  .store-shot, .about-photo img { box-shadow: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: #111; text-decoration: none; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .caret { animation: none; }
}
