:root {
  --bg: #0f1115;
  --bg-alt: #151821;
  --text: #f5f5f4;
  --muted: #b5b9c3;
  --accent: #4f7cff;
  --accent-2: #27c3a6;
  --card: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --text: #151a21;
  --muted: #5f6570;
  --accent: #1a4fff;
  --accent-2: #148e78;
  --card: rgba(8, 12, 20, 0.04);
  --stroke: rgba(8, 12, 20, 0.08);
  --shadow: 0 18px 45px rgba(8, 12, 20, 0.08);
}

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

body {
  font-family: var(--font-display);
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 124, 255, 0.12), transparent 50%),
    radial-gradient(circle at 90% 0%, rgba(39, 195, 166, 0.12), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: -1;
}

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

.hero {
  padding: 48px clamp(20px, 6vw, 80px) 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 80px;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

.hero-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-portrait {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait img {
  width: clamp(220px, 30vw, 320px);
  border-radius: 28px;
  border: 1px solid var(--stroke);
  background: transparent;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  object-fit: cover;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.35));
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 1.1;
  margin: 16px 0 24px;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.hero-badges span {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 10px;
  line-height: 1.3;
  white-space: nowrap;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid var(--stroke);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0d10;
  border: none;
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  padding: 8px 14px;
  font-size: 11px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card-wide {
  margin-top: 52px;
  max-width: 100%;
}

.card-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d10;
  font-weight: 800;
  font-size: 20px;
}

.card-name {
  font-size: 20px;
  font-weight: 600;
}

.card-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-lines {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.card-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  padding: 80px clamp(20px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-title p {
  color: var(--muted);
  max-width: 460px;
}

.about-grid,
.work-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.about-grid article p.small {
  margin-top: 10px;
  margin-bottom: 12px;
}

.intro-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.intro-highlights {
  display: grid;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 20px;
}

.intro p + .small {
  margin-top: 16px;
}

.about-grid article,
.work-card,
.resume-block,
.contact-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
}

.career-logo {
  width: 90px;
  height: 36px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
  opacity: 0.9;
}


.about-grid h3,
.work-card h3,
.resume-block h3,
.contact-card h3 {
  line-height: 1.25;
  margin-bottom: 12px;
}

.about-grid p,
.work-card p,
.resume-block p,
.contact-card p {
  margin-top: 8px;
}

.work-card ul {
  margin-top: 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.work-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.work-links a {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 12px;
}

.work-card li {
  margin-bottom: 8px;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  line-height: 1.2;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
}

.tag-block {
  display: inline-flex;
  margin: 14px 0 18px;
}

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

.timeline {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.timeline-item {
  display: grid;
  gap: 12px;
  grid-template-columns: 110px 1fr;
}

.time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}

.skill-grid span {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 12px;
  line-height: 1.3;
}

.education-grid {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.education-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 12px 18px;
}

.education-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}

.small {
  font-size: 0.85rem;
  color: var(--muted);
}

.resume-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

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

.footer {
  padding: 40px clamp(20px, 6vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--stroke);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
  }
}

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

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