:root {
  --bg: #000000;
  --bg-alt: #1d1d1f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --glass: rgba(29, 29, 31, 0.72);
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #86868b;
  --accent: #2997ff;
  --accent-hover: #0077ed;
  --btn-primary-bg: #f5f5f7;
  --btn-primary-text: #1d1d1f;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 980px;
  --nav-h: 48px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2997ff 0%, #2f6bff 100%);
  padding: 6px;
}

.nav-logo-text {
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 12px !important;
  color: var(--accent) !important;
}

.nav-cta:hover {
  color: var(--accent-hover) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(41, 151, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(255, 255, 255, 0.03), transparent),
    var(--bg);
}

.hero-content {
  position: relative;
  padding-block: 80px 100px;
  text-align: center;
  margin-inline: auto;
}

.hero-eyebrow {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-tagline {
  max-width: 580px;
  margin-inline: auto;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.381;
  letter-spacing: 0.011em;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 640px;
  margin-inline: auto;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.stat-value {
  display: block;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.stat-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08349;
  max-width: 640px;
  margin-inline: auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.47059;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.info-icon {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.info-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.016em;
  margin-bottom: 2px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.42857;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  max-width: 720px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.timeline-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timeline-company {
  font-size: 14px;
  color: var(--text-secondary);
}

.timeline-content h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.19048;
  margin-bottom: 12px;
}

.timeline-content ul {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.47059;
}

.timeline-content li {
  margin-bottom: 8px;
}

.timeline-content li:last-child {
  margin-bottom: 0;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.project-card:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}

.project-card.featured {
  background: rgba(255, 255, 255, 0.06);
}

.project-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 14px;
  line-height: 1.42857;
  color: var(--text-secondary);
}

/* Skills */
.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.skills-block h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 16px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-secondary);
}

.cert-list,
.lang-list {
  list-style: none;
}

.cert-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cert-list li:first-child {
  padding-top: 0;
}

.cert-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cert-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.016em;
  margin-bottom: 2px;
}

.cert-list span {
  font-size: 12px;
  color: var(--text-muted);
}

.lang-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.lang-list li:last-child {
  border-bottom: none;
}

.lang-list li span:last-child {
  color: var(--text-muted);
  font-size: 12px;
}

/* Contact */
.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.contact-text {
  text-align: left;
}

.contact-text h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 8px 0 12px;
}

.contact-text p {
  color: var(--text-secondary);
  max-width: 420px;
  font-size: 17px;
  line-height: 1.47059;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.contact-link-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-link span:last-child {
  font-size: 14px;
  color: var(--accent);
}

/* Footer */
.footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer p {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .skills-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .contact-links {
    width: 100%;
  }
}

@media (max-width: 734px) {
  .container {
    width: min(980px, calc(100% - 32px));
  }

  .nav-inner {
    width: min(980px, calc(100% - 32px));
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 24px 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .hero-tagline {
    font-size: 19px;
  }

  .section {
    padding: 72px 0;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-marker {
    left: -24px;
  }
}
