:root {
  --bg: #0f172a;
  --surface: #111c33;
  --surface-2: #17233e;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-3: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(139, 92, 246, 0.28), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(6, 182, 212, 0.22), transparent 26rem),
    linear-gradient(180deg, #0f172a 0%, #111827 46%, #0f172a 100%);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.76);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 10px;
  background: var(--text);
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 56px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 44px rgba(6, 182, 212, 0.22);
}

.btn.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
}

.stats div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.stats strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 0.92rem;
}

.hero-card {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 16px 0 0 28px;
  z-index: -1;
  border-radius: 42% 58% 56% 44% / 42% 42% 58% 58%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.56), rgba(6, 182, 212, 0.48));
  filter: blur(0.2px);
}

.avatar {
  width: min(88%, 440px);
  margin-inline: auto;
  filter: drop-shadow(0 36px 80px rgba(0, 0, 0, 0.38));
}

.profile-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  width: min(100%, 430px);
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-card h2 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.profile-card p {
  margin-bottom: 14px;
  color: var(--muted);
}

.availability {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #bbf7d0 !important;
  font-size: 0.9rem;
  font-weight: 700;
}

.availability::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.14);
}

.profile-tags,
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-tags span,
.tool-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
}

.two-columns {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.text-block {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.year {
  color: #67e8f9;
  font-weight: 800;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 232, 249, 0.44);
}

.project-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.18);
  color: #ddd6fe;
  font-weight: 900;
}

.project-card p {
  color: var(--muted);
}

.project-card a {
  margin-top: auto;
  color: #67e8f9;
  font-weight: 800;
}

.skill-list {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.skill {
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.tool-tags {
  margin-top: 10px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.12));
  box-shadow: var(--shadow);
}

.contact-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 0;
}

.footer a {
  margin-left: 18px;
}

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

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

@media (max-width: 920px) {
  .section {
    padding: 72px 0;
  }

  .hero-grid,
  .two-columns,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-card {
    min-height: 520px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.3rem);
  }

  .stats {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    min-height: 430px;
  }

  .profile-card {
    position: relative;
    bottom: auto;
    margin-top: -18px;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer a {
    margin-left: 0;
    margin-right: 18px;
  }
}
