*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --text-1: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius: 14px;
  --max-w: 1080px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ──────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-1); }

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--primary-hover) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-1);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 0.5rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.nav-mobile a {
  color: var(--text-2);
  text-decoration: none;
  padding: 0.7rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text-1); }

/* ── Hero ─────────────────────────────────── */
.hero {
  padding: 7rem 2rem 5rem;
  background: var(--bg);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}

.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}

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

.hero-text h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 1.25rem;
}

.hero-text p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 0.875rem;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.avatar-wrap { text-align: center; }

.avatar-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--border);
}

.avatar-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.avatar-sub {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  border: 1px solid;
  letter-spacing: 0.01em;
}

.chip-sq  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.chip-dd  { background: #fff1f0; color: #b91c1c; border-color: #fecaca; }
.chip-ue  { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.chip-gh  { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.chip-cb  { background: #faf5ff; color: #6d28d9; border-color: #ddd6fe; }
.chip-kb  { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.chip-gb  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.chip-so  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

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

.btn-outline:hover {
  color: var(--text-1);
  border-color: #9ca3af;
}

/* ── Layout ───────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5.5rem 0; }
.bg-alt { background: var(--bg-alt); }

.section-header {
  margin-bottom: 3rem;
  max-width: 640px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.875rem;
  color: var(--text-1);
}

.section-header p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
}

.mt-sm { margin-top: 0.75rem; }
.mt-lg { margin-top: 1.5rem; }

/* ── Two-column layout ────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.col-left {
  position: sticky;
  top: 5rem;
}

.col-left h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-top: 0.5rem;
  color: var(--text-1);
}

.col-right.prose p {
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.col-right.prose p:last-of-type { margin-bottom: 0; }

/* ── Services ─────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-border);
}

.service-icon {
  width: 38px; height: 38px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 1rem;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.service-card > p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-card ul li {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.service-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.75rem;
  top: 0.05em;
}

/* ── Project card ─────────────────────────── */
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
}

.project-col {
  padding: 2rem;
}

.project-col:first-child {
  border-right: 1px solid var(--border);
}

.project-col h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--text-3);
}

.project-col p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.plat-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.platform-item span {
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 500;
}

/* ── Tech badges ──────────────────────────── */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tech-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* ── Why checklist ────────────────────────── */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.check-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.check-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.check-item p {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── Good Fit ─────────────────────────────── */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.fit-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, color 0.2s;
}

.fit-item:hover {
  border-color: var(--primary-border);
  color: var(--text-1);
}

.fit-check {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── Personal ─────────────────────────────── */
.personal-box {
  max-width: 640px;
}

.personal-box h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0.5rem 0 1.25rem;
  color: var(--text-1);
}

.personal-box p {
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.personal-box p:last-child { margin-bottom: 0; }

/* ── Contact ──────────────────────────────── */
.section-contact { background: var(--primary); }

.contact-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-box .section-label { color: rgba(255,255,255,0.7); }

.contact-box h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
  margin: 0.5rem 0 1rem;
}

.contact-box p {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.contact-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-btns .btn-primary {
  background: #fff;
  color: var(--primary);
}

.contact-btns .btn-primary:hover {
  background: #f0f9ff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.contact-btns .btn-outline {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.35);
}

.contact-btns .btn-outline:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

/* ── Footer ───────────────────────────────── */
.footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-3);
}

.sep { opacity: 0.5; }

/* ── Reveal animation ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-card { max-width: 360px; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .col-left { position: static; }

  .project-body {
    grid-template-columns: 1fr;
  }

  .project-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 6rem 1.5rem 3.5rem; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .services-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }

  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; justify-content: center; }

  .contact-box { text-align: left; }
  .contact-box .section-label { text-align: left; }
  .contact-btns { justify-content: flex-start; flex-direction: column; }
  .contact-btns .btn { justify-content: center; }
}
