@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  --bg: #0d0d0f;
  --surface: #161618;
  --surface-2: #1e1e21;
  --border: #2a2a2e;
  --accent: #4f8ef7;
  --accent-teal: #00d4aa;
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  --radius: 12px;
  --radius-sm: 6px;
  --max-w: 1100px;
  --nav-h: 64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

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

/* ── Nav ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}

#nav.scrolled {
  background: rgba(13, 13, 15, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo svg { flex-shrink: 0; }

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

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

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

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

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(13, 13, 15, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}

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

.nav-mobile a {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  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); }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-mark { display: block; margin-bottom: 20px; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.hero-company {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.cert-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── About ── */
#about { background: var(--surface); }

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

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

.about-text p:last-child { margin-bottom: 0; }

.about-text strong { color: var(--text); font-weight: 600; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat-card {
  background: var(--surface-2);
  padding: 28px 24px;
  border-radius: 0;
}

.stat-card:first-child { border-radius: var(--radius) 0 0 0; }
.stat-card:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
.stat-card:nth-child(3) { border-radius: 0 0 0 var(--radius); }
.stat-card:last-child { border-radius: 0 0 var(--radius) 0; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Services ── */
#services {}

.services-header { margin-bottom: 56px; }

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

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

.service-card:hover { background: var(--surface-2); }

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent), var(--accent-teal));
  transition: height 0.3s;
}

.service-card:hover::before { height: 100%; }

.service-card:nth-child(1) { border-radius: var(--radius) 0 0 0; }
.service-card:nth-child(2) { border-radius: 0; }
.service-card:nth-child(3) { border-radius: 0 var(--radius) 0 0; }
.service-card:nth-child(4) { border-radius: 0 0 0 var(--radius); }
.service-card:nth-child(5) { border-radius: 0; }
.service-card:nth-child(6) { border-radius: 0 0 var(--radius) 0; }

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79,142,247,0.15), rgba(0,212,170,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

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

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.service-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(79, 142, 247, 0.1);
  padding: 2px 8px;
  border-radius: 100px;
}

/* ── Experience ── */
#experience {}

.experience-header { margin-bottom: 56px; }

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-teal), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-dot {
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item.teal .timeline-dot {
  background: var(--accent-teal);
  box-shadow: 0 0 0 2px var(--accent-teal);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.timeline-company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 2px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.timeline-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tech-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.timeline-condensed {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Skills ── */
#skills { background: var(--surface); }

.skills-header { margin-bottom: 56px; }

.skills-groups {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.skill-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

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

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s;
}

.skill-tag:hover { transform: translateY(-2px); }

.skill-tag.blue {
  background: rgba(79, 142, 247, 0.1);
  border-color: rgba(79, 142, 247, 0.25);
  color: #7fb3fa;
}

.skill-tag.teal {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.25);
  color: #33ddb8;
}

.skill-tag.purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #c084fc;
}

.skill-tag.orange {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.25);
  color: #fb923c;
}

.skill-tag.gray {
  background: rgba(136, 136, 136, 0.1);
  border-color: rgba(136, 136, 136, 0.2);
  color: #aaa;
}

/* ── Contact ── */
#contact { background: var(--surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

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

.contact-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(79, 142, 247, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-link-static { cursor: default; }
.contact-link-static:hover {
  border-color: var(--border);
  color: var(--text-muted);
  transform: none;
}

/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

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

.form-field input:hover,
.form-field textarea:hover {
  border-color: #3a3a3f;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
}

.form-field input:user-invalid,
.form-field textarea:user-invalid {
  border-color: #ef4444;
}

.form-field input:user-invalid:focus,
.form-field textarea:user-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Honeypot — hidden from humans and AT, visible to dumb bots. */
.form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.form-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.2em;
  margin: 0;
}

.form-status.success { color: var(--accent-teal); }
.form-status.error { color: #ef4444; }


/* ── Footer ── */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

footer span {
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .service-card:nth-child(1) { border-radius: var(--radius) 0 0 0; }
  .service-card:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .service-card:nth-child(3) { border-radius: 0; }
  .service-card:nth-child(4) { border-radius: 0; }
  .service-card:nth-child(5) { border-radius: 0 0 0 var(--radius); }
  .service-card:nth-child(6) { border-radius: 0 0 var(--radius) 0; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

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

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

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .services-grid { grid-template-columns: 1fr; gap: 2px; }
  .service-card:nth-child(n) { border-radius: 0; }
  .service-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .service-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .form-submit { align-self: stretch; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(n) { border-radius: 0; }
  .stat-card:first-child { border-radius: var(--radius) 0 0 0; }
  .stat-card:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .stat-card:nth-child(3) { border-radius: 0 0 0 var(--radius); }
  .stat-card:last-child { border-radius: 0 0 var(--radius) 0; }
}
