:root {
  --bg: #0a0e14;
  --bg-elevated: #10151f;
  --surface: #131924;
  --border: #212a3a;
  --text: #e7ecf5;
  --text-muted: #8b96a8;
  --accent: #4fd1c5;
  --accent-2: #5b8cff;
  --accent-soft: rgba(79, 209, 197, 0.12);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 14px;
  --container: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(79, 209, 197, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 209, 197, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 20, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--accent) !important;
}

/* Hero */
.hero {
  padding: 120px 24px 96px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 56px;
}

.hero__col--photo {
  display: flex;
  justify-content: center;
}

.hero__photo-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 60px -10px rgba(79, 209, 197, 0.35);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg);
  display: block;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 209, 197, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 28px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(79, 209, 197, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(79, 209, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--accent-2);
  margin: 0 0 24px;
  font-weight: 500;
}

.hero__desc {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 36px;
}
.hero__desc strong { color: var(--text); font-weight: 600; }

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__meta {
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-mono);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #0a0e14;
}
.btn--primary:hover {
  background: #6ee0d5;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--lg { padding: 15px 28px; font-size: 15px; }

/* Sections */
.section {
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 32px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.idx {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

/* About */
.about__text {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 0 48px;
}
.about__text strong { color: var(--text); font-weight: 600; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.stat__label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Skills */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.skill-card:hover {
  border-color: rgba(79, 209, 197, 0.35);
  transform: translateY(-2px);
}
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Certifications */
.certs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.cert__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent-2);
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Contact */
.section--contact {
  text-align: center;
}
.section--contact .section__title {
  justify-content: center;
}
.contact__text {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 36px;
}
.contact__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 40px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 8px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 720px) {
  .nav__links { gap: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero { padding: 96px 20px 72px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__col--photo { order: -1; }
  .hero__photo-wrap { width: 160px; height: 160px; }
  .hero__actions { justify-content: center; }
  .about__stats { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
}
