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

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-el: rgba(255, 255, 255, 0.03);
  --bg-el-solid: #141414;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent: #60a5fa;
  --accent-2: #22d3ee;
  --accent-button: #2563eb;
  --accent-hover: #1d4ed8;
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(96, 165, 250, 0.5);
  --nav-bg: rgba(10, 10, 10, 0.7);
  --glow-1: rgba(37, 99, 235, 0.16);
  --glow-2: rgba(34, 211, 238, 0.08);
  --dot-color: rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fafafa;
    --bg-el: rgba(0, 0, 0, 0.02);
    --bg-el-solid: #ffffff;
    --text: #171717;
    --text-muted: #525252;
    --accent: #2563eb;
    --accent-2: #0891b2;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(37, 99, 235, 0.45);
    --nav-bg: rgba(250, 250, 250, 0.75);
    --glow-1: rgba(37, 99, 235, 0.1);
    --glow-2: rgba(8, 145, 178, 0.06);
    --dot-color: rgba(0, 0, 0, 0.05);
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 0%, var(--glow-1), transparent 70%),
    radial-gradient(700px 500px at 85% 20%, var(--glow-2), transparent 70%),
    radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
}

main, .nav, .footer {
  position: relative;
  z-index: 1;
}

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

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--accent-button);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

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

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 0 9px;
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

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

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--accent);
}

.nav-links .btn {
  background: var(--accent-button);
  color: #fff;
}

.nav-links .btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.hero {
  padding: 160px 0 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-el);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.35);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 24px;
}

.headline {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 32px;
}

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-left: 6px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

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

.social-icon svg {
  width: 20px;
  height: 20px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.proof-label {
  font-size: 13px;
  color: var(--text-muted);
}

.proof-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

.section {
  padding: 72px 0;
}

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

.section h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

.lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 28px;
}

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

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--bg-el);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.bento-card {
  grid-column: span 2;
  background: var(--bg-el);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.08);
}

.bento-card:nth-child(4),
.bento-card:nth-child(5) {
  grid-column: span 3;
}

.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(34, 211, 238, 0.1));
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 18px;
}

.bento-icon svg {
  width: 22px;
  height: 22px;
}

.bento-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}

.bento-card ul {
  list-style: none;
}

.bento-card li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0 4px 16px;
  position: relative;
}

.bento-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  border-radius: 2px;
}

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

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

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.timeline-card {
  background: var(--bg-el);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-hover);
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.job-head h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.job-org {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.job-org a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.job-org a:hover {
  border-bottom-color: var(--accent);
}

.job-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

.timeline-card ul {
  list-style: none;
}

.timeline-card li {
  font-size: 15px;
  color: var(--text-muted);
  padding: 5px 0 5px 20px;
  position: relative;
}

.timeline-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-el);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--transition), transform var(--transition);
}

.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.cert-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(34, 211, 238, 0.12));
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  background: var(--bg-el);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

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

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 640px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-el);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.contact-card svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card div {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer {
  padding: 32px 0 48px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .bento-card {
    grid-column: span 3;
  }

  .bento-card:nth-child(4),
  .bento-card:nth-child(5) {
    grid-column: span 3;
  }
}

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

  .menu-ready .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .menu-ready .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-ready .nav-links li {
    width: 100%;
  }

  .menu-ready .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }

  .menu-ready .nav-links .btn {
    display: inline-block;
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    padding: 120px 0 56px;
  }

  .hero-proof {
    gap: 24px;
  }

  .proof-divider {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .timeline {
    padding-left: 26px;
  }

  .timeline-dot {
    left: -26px;
    width: 14px;
    height: 14px;
  }

  .timeline-card {
    padding: 22px;
  }

  .contact-cta {
    padding: 48px 20px;
  }
}

@media (max-width: 600px) {
  .bento-card,
  .bento-card:nth-child(4),
  .bento-card:nth-child(5) {
    grid-column: span 6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
