:root {
  --bg: #000000;
  --surface: #131315;
  --surface-2: #1c1c1e;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --accent: #2997ff;
  --accent-2: #bf5af2;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

section {
  max-width: 980px;
  margin: 0 auto;
  padding: 120px 24px;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Nav */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.nav-logo {
  font-weight: 600;
  font-size: 15px;
}

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

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

#nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(41, 151, 255, 0.18) 0%,
    rgba(191, 90, 242, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(48px, 9vw, 88px);
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #26262a;
}

/* Sections */
.section h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 20px;
}

.section-lede {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 640px;
}

.section-body p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 20px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.skill-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.skill-card p {
  font-size: 15px;
  color: var(--text-muted);
}

.domain-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-row + .domain-row {
  margin-top: 10px;
}

.domain-row p {
  margin: 0;
}

.domain-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Contact */
.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease;
}

.contact-link:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile */
@media (max-width: 640px) {
  #nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  section {
    padding: 80px 20px;
  }
}
