:root {
  --bg: #f3f4f6;
  --bg-soft: #edf2f7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.09);
  --primary: #111827;
  --primary-soft: #e2e8f0;
  --accent: #64748b;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.45;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(243, 244, 246, 0.7);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.96rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  padding: 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 1rem 0 1rem;
}

.hero-copy h2 {
  max-width: 680px;
  font-size: clamp(1.18rem, 2vw, 2rem);
  line-height: 1.25;
  font-weight: 500;
  color: var(--muted);
}

.intro {
  max-width: 620px;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.18);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.quick-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.quick-facts li {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 26px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.portrait-frame {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  background: #e5e7eb;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
  background: rgba(15, 23, 42, 0.94);
  color: white;
  font-size: 0.82rem;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.18);
}

.mini-contact {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.mini-contact a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.section {
  padding: 4.5rem 0;
}

.muted-section {
  background: rgba(148, 163, 184, 0.04);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading h3 {
  margin-top: 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.about-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
  color: var(--muted);
  display: grid;
  gap: 1.2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.12);
}

.skill-card h4 {
  margin-bottom: 0.7rem;
  font-size: 1.06rem;
}

.skill-card p {
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.04);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.project-topline h4 {
  font-size: 1.15rem;
}

.project-topline span {
  background: var(--primary-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--muted);
}

.project-card p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
}

.timeline-year {
  font-weight: 700;
  color: var(--accent);
}

.timeline-content h4 {
  margin-bottom: 0.25rem;
}

.timeline-content p {
  color: var(--muted);
  font-weight: 600;
}

.timeline-content span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
}

.edu-list {
  display: grid;
  gap: 1rem;
}

.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.edu-item h4 {
  margin-bottom: 0.25rem;
}

.edu-item p,
.edu-item span {
  color: var(--muted);
}

.contact-section {
  padding-bottom: 5rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(226, 232, 240, 0.62));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.06);
}

.contact-copy h3 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.contact-copy p {
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin-top: 1.3rem;
  display: grid;
  gap: 0.55rem;
  color: var(--text);
}

.qr-card {
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: center;
  max-width: 310px;
  margin-inline: auto;
}

.qr-card img {
  width: min(100%, 260px);
  margin: 0 auto 0.8rem;
  border-radius: 12px;
}

.qr-card p {
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding: 1.3rem 0 2.2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-inner,
  .contact-wrap,
  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-inner,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .edu-item {
    grid-template-columns: 1fr;
    display: grid;
  }

  .edu-item {
    align-items: flex-start;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
