@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --bg: #f3f5f7;
  --bg-alt: #e9eef3;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #101828;
  --muted: #475467;
  --muted-soft: #667085;
  --border: rgba(16, 24, 40, 0.08);
  --accent: #163a5f;
  --accent-strong: #0d2742;
  --accent-soft: #e6edf5;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --nav-h: 78px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(22, 58, 95, 0.1), transparent 28%),
    linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

main {
  padding: 0 24px 32px;
}

#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(243, 245, 247, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#navbar.scrolled {
  background: rgba(243, 245, 247, 0.94);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.nav-links .nav-cta {
  background: var(--accent);
  color: #ffffff;
}

.nav-links .nav-cta:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 16px;
  right: 16px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
}

.mobile-menu a:hover {
  background: var(--accent-soft);
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 42px 0 72px;
}

.hero-copy,
.hero-panel,
.section,
footer {
  width: 100%;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(22, 58, 95, 0.35);
}

.hero h1,
.section-head h2,
.profile-card h2,
.project-card h3,
.specialty-card h3,
.stack-card h3,
.info-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1.05;
}

.hero-lead {
  max-width: 60ch;
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

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

.btn-secondary:hover {
  background: #ffffff;
}

.btn-showcase {
  border: 1px solid rgba(22, 58, 95, 0.18);
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-showcase:hover {
  background: #dce7f2;
  border-color: rgba(22, 58, 95, 0.28);
}

.btn-link {
  color: var(--accent);
  padding-inline: 8px;
}

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

.highlight-item {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.highlight-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.highlight-item span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-card {
  padding: 28px;
  border: 1px solid rgba(22, 58, 95, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 248, 250, 0.96) 100%);
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
  margin-bottom: 22px;
  border: 1px solid rgba(22, 58, 95, 0.12);
}

.card-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.profile-card h2 {
  font-size: 1.6rem;
  line-height: 1.2;
}

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

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.profile-tags span,
.chip-list li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 600;
}

.section {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 44px 0;
}

.section-alt {
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.55);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
}

.about-copy p,
.contact-copy p,
.specialty-card p,
.info-card p,
.stack-card p,
.project-summary,
.project-details p {
  color: var(--muted);
}

.info-grid,
.specialty-grid,
.stack-grid,
.project-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

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

.info-card,
.specialty-card,
.stack-card,
.project-card,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.info-card,
.specialty-card,
.stack-card {
  padding: 22px;
}

.info-card h3,
.specialty-card h3,
.stack-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.specialty-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-tag {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.project-link:hover {
  text-decoration: underline;
}

.project-card h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.project-details {
  display: grid;
  gap: 14px;
}

.project-details div {
  padding-top: 14px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.project-details span,
.contact-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--muted-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  padding: 22px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 58, 95, 0.18);
  background: #ffffff;
}

.contact-card strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .hero,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
    gap: 24px;
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .specialty-grid,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --nav-h: 72px;
  }

  html {
    scroll-padding-top: calc(var(--nav-h) + 18px);
  }

  main {
    padding-inline: 16px;
  }

  #navbar {
    padding-inline: 16px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    gap: 24px;
    padding: 24px 0 48px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-panel {
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-lead {
    max-width: none;
    margin-inline: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .section-label {
    justify-content: center;
  }

  .hero-highlights,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 36px 0;
    margin-bottom: 18px;
  }

  .section-alt {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head h2 {
    font-size: 2rem;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  :root {
    --nav-h: 68px;
  }

  main {
    padding-inline: 14px;
    padding-bottom: 24px;
  }

  #navbar {
    padding-inline: 14px;
  }

  .logo {
    max-width: calc(100% - 52px);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-menu {
    left: 12px;
    right: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .hero {
    gap: 20px;
    padding: 18px 0 40px;
  }

  .section-label {
    margin-bottom: 14px;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }

  .section-label::before {
    width: 24px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.08;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 0.98rem;
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-ctas .btn-link {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
  }

  .hero-ctas .btn-link:hover {
    background: #ffffff;
  }

  .specialty-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .highlight-item {
    padding: 18px;
    text-align: left;
  }

  .profile-card,
  .contact-copy,
  .project-card,
  .info-card,
  .specialty-card,
  .stack-card {
    padding: 20px;
  }

  .profile-photo {
    aspect-ratio: 3 / 4;
    object-position: center 16%;
    border-radius: 22px;
  }

  .profile-card h2 {
    font-size: 1.35rem;
  }

  .profile-card p {
    font-size: 0.96rem;
  }

  .profile-tags span,
  .chip-list li {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .section {
    padding: 28px 0;
  }

  .section-alt {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .section-head h2 {
    font-size: 1.65rem;
  }

  .about-copy p,
  .contact-copy p,
  .specialty-card p,
  .info-card p,
  .stack-card p,
  .project-summary,
  .project-details p {
    font-size: 0.97rem;
  }

  .project-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-card {
    gap: 16px;
    padding: 20px 18px;
  }

  .project-card h3 {
    font-size: 1.18rem;
  }

  .project-tag {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .project-link {
    white-space: normal;
  }

  .contact-copy {
    gap: 18px;
    padding: 20px 18px;
  }

  .contact-card {
    min-height: auto;
    gap: 14px;
    padding: 18px;
  }

  .contact-card strong {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }

  footer {
    padding: 4px 0 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  :root {
    --nav-h: 64px;
  }

  .logo {
    font-size: 0.86rem;
  }

  .btn {
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .mobile-menu {
    left: 10px;
    right: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .highlight-item strong {
    font-size: 0.95rem;
  }

  .highlight-item span {
    font-size: 0.88rem;
  }

  .profile-photo {
    aspect-ratio: 5 / 6;
    border-radius: 20px;
  }

  .section-head h2 {
    font-size: 1.45rem;
  }
}
