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

:root {
  --black: #0a0a0a;
  --dark: #151515;
  --grey-900: #242424;
  --grey-700: #555;
  --grey-500: #777;
  --grey-300: #d4d4d4;
  --grey-200: #e8e8e8;
  --grey-100: #f3f3f3;
  --white: #ffffff;
  --max-width: 1160px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.narrow {
  max-width: 900px;
}

.section {
  padding: 110px 0;
}

.section-grey {
  background: var(--grey-100);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.logo span {
  color: var(--grey-500);
}

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

.nav-links a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 650;
  color: #555;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

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

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 42px;
  height: 42px;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--black);
}

.hero {
  min-height: 100vh;
  padding-top: 150px;
  display: flex;
  align-items: center;
  position: relative;
  background:
    radial-gradient(circle at 78% 25%, rgba(0, 0, 0, 0.06), transparent 27%),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    var(--white);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 80px;
}

.eyebrow,
.section-kicker,
.card-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--grey-500);
}

.hero h1 {
  max-width: 800px;
  margin: 18px 0 24px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.hero h1 span {
  color: #666;
}

.hero-text {
  max-width: 650px;
  font-size: 1.12rem;
  color: #5c5c5c;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--black);
  font-size: 0.86rem;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--black);
}

.btn-light:hover {
  background: var(--grey-100);
}

.quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  font-size: 0.82rem;
  color: #666;
}

.hero-card {
  background: var(--black);
  color: var(--white);
  min-height: 480px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-shadow: 18px 18px 0 #d8d8d8;
}

.portrait {
  width: 120px;
  height: 120px;
  margin-bottom: 38px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid #777;
  background: #1e1e1e;
}

.portrait-ring {
  position: absolute;
  inset: 10px;
  border: 1px solid #555;
}

.initials {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.hero-card .card-label {
  color: #aaa;
}

.hero-card h2 {
  margin: 12px 0 12px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-card > p:not(.card-label) {
  color: #aaa;
  font-size: 0.92rem;
}

.card-line {
  width: 55px;
  height: 1px;
  margin: 28px 0 18px;
  background: #777;
}

.status {
  color: #ccc;
  font-size: 0.78rem;
}

.status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #aaa;
}

.section-heading {
  margin-bottom: 55px;
}

.section-title {
  max-width: 900px;
  margin-top: 13px;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.section-title em {
  font-style: normal;
  color: #777;
}

.section-text {
  margin-top: 30px;
  max-width: 790px;
  font-size: 1.15rem;
  color: #606060;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #cfcfcf;
  border: 1px solid #cfcfcf;
}

.skill-card {
  min-height: 235px;
  padding: 32px;
  background: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.skill-card:hover {
  background: #fafafa;
  transform: translateY(-4px);
}

.skill-number,
.project-index {
  font-size: 0.72rem;
  color: #999;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.skill-card h3 {
  margin-top: 55px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.skill-card p {
  margin-top: 8px;
  color: #707070;
  font-size: 0.9rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  min-height: 390px;
  padding: 35px;
  border: 1px solid #d6d6d6;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 10px 10px 0 #dedede;
}

.project-card.featured {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

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

.project-tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  font-weight: 850;
  color: #888;
}

.featured .project-tag {
  color: #aaa;
}

.project-card h3 {
  margin-top: 50px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.project-card p {
  margin-top: 14px;
  max-width: 600px;
  color: #666;
  font-size: 0.92rem;
}

.featured p {
  color: #aaa;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 30px;
}

.project-tech span {
  padding: 5px 9px;
  border: 1px solid #d5d5d5;
  color: #666;
  font-size: 0.68rem;
}

.featured .project-tech span {
  border-color: #555;
  color: #bbb;
}

.project-link {
  width: fit-content;
  margin-top: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.timeline {
  border-top: 1px solid #cfcfcf;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 45px;
  padding: 38px 0;
  border-bottom: 1px solid #cfcfcf;
}

.timeline-year {
  font-size: 0.73rem;
  font-weight: 850;
  color: #777;
  letter-spacing: 0.08em;
}

.timeline-content h3 {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.timeline-content p {
  margin-top: 5px;
  color: #666;
}

.timeline-content span {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 9px;
  background: #dedede;
  font-size: 0.7rem;
  font-weight: 750;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.certificate-card {
  padding: 34px;
  border: 1px solid #d5d5d5;
  transition: transform 0.2s ease, background 0.2s ease;
}

.certificate-card:hover {
  background: var(--grey-100);
  transform: translateY(-4px);
}

.certificate-card span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #888;
  font-weight: 850;
}

.certificate-card h3 {
  margin: 22px 0 25px;
  font-size: 1.4rem;
}

.certificate-card b {
  font-size: 0.76rem;
}

.contact-section {
  padding: 110px 0;
  background: var(--black);
  color: var(--white);
}

.contact-box {
  max-width: 900px;
}

.contact-box .section-kicker {
  color: #888;
}

.contact-box h2 {
  margin-top: 15px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.contact-box > p:not(.section-kicker) {
  max-width: 650px;
  margin-top: 25px;
  color: #aaa;
  font-size: 1.05rem;
}

.btn-white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-outline-white {
  color: var(--white);
  border-color: #555;
  background: transparent;
}

.btn-outline-white:hover {
  background: #1c1c1c;
}

.footer {
  background: var(--black);
  border-top: 1px solid #292929;
  color: #777;
}

.footer-inner {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.72rem;
}

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

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-card {
    max-width: 560px;
  }

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

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

  .section {
    padding: 80px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    padding: 18px 20px 25px;
    background: var(--white);
    border-bottom: 1px solid #ddd;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

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

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 125px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-card {
    min-height: 400px;
    padding: 30px;
    box-shadow: 10px 10px 0 #d8d8d8;
  }

  .skills-grid,
  .projects-grid,
  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 200px;
  }

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

  .footer-inner {
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
