/* ============================================
   MONOLITHIC PRECISION — Design System
   Strictly following DESIGN.md brand kit
   "Invisible Interface" philosophy
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────── */
:root {
  /* Surfaces */
  --surface:                 #fcf8fb;
  --surface-dim:             #dcd9dc;
  --surface-bright:          #fcf8fb;
  --surface-container-lowest:#ffffff;
  --surface-container-low:   #f6f3f5;
  --surface-container:       #f0edef;
  --surface-container-high:  #eae7ea;
  --surface-container-highest:#e4e2e4;
  --on-surface:              #1b1b1d;
  --on-surface-variant:      #4c4546;
  --inverse-surface:         #303032;
  --inverse-on-surface:      #f3f0f2;
  --outline:                 #7e7576;
  --outline-variant:         #cfc4c5;

  /* Primary */
  --primary:                 #000000;
  --on-primary:              #ffffff;
  --primary-container:       #1b1b1b;

  /* Secondary — interactive only */
  --secondary:               #005cba;
  --on-secondary:            #ffffff;
  --secondary-container:     #5095fe;
  --system-blue:             #0066CC;

  /* Semantic */
  --bg-secondary:            #F5F5F7;
  --text-primary:            #1D1D1F;
  --text-secondary:          #6E6E73;
  --error:                   #ba1a1a;

  /* Spacing */
  --margin-desktop:          120px;
  --margin-mobile:           20px;
  --gutter:                  24px;
  --stack-lg:                80px;
  --stack-md:                40px;
  --stack-sm:                16px;

  /* Radius — "Squircle-adjacent" */
  --r-sm:    0.25rem;
  --r:       0.5rem;
  --r-md:    0.75rem;
  --r-lg:    1rem;
  --r-xl:    1.5rem;
  --r-full:  9999px;

  /* Motion */
  --ease:    cubic-bezier(.4, 0, .2, 1);
  --dur:     0.3s;
  --dur-lg:  0.5s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
::selection {
  background: var(--system-blue);
  color: #ffffff;
}

/* ── Typography ──────────────────────────── */
.display-lg {
  font-size: 80px;
  font-weight: 600;
  line-height: 84px;
  letter-spacing: -0.015em;
  color: var(--primary);
}
.headline-xl {
  font-size: 56px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: -0.005em;
  color: var(--primary);
}
.headline-md {
  font-size: 32px;
  font-weight: 600;
  line-height: 36px;
  color: var(--primary);
}
.body-lg {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0.011em;
  color: var(--text-secondary);
}
.body-md {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text-secondary);
}
.label-md {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.caption {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33;
}

/* ── Layout ──────────────────────────────── */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margin-desktop);
  padding-right: var(--margin-desktop);
  width: 100%;
}

.section {
  padding-top: var(--stack-lg);
  padding-bottom: var(--stack-lg);
}

.section--alt {
  background-color: var(--bg-secondary);
}

/* ── Navbar ──────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--margin-desktop);
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.navbar.scrolled {
  background: rgba(252, 248, 251, 0.80);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.navbar__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width var(--dur) var(--ease);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--primary);
}

.navbar__link.active::after {
  width: 100%;
}

.navbar__cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--on-primary);
  background: var(--primary);
  padding: 8px 20px;
  border-radius: var(--r-full);
  transition: transform var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}

.navbar__cta:hover {
  transform: scale(1.02);
  opacity: 0.88;
}

/* Mobile Nav Toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--primary);
  transition: transform var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}

.navbar__toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navbar__toggle.open span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(252, 248, 251, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
  z-index: 99;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}

/* ── Hero ────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: var(--stack-lg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: #34C759;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__name {
  font-size: 80px;
  font-weight: 600;
  line-height: 84px;
  letter-spacing: -0.015em;
  color: var(--primary);
}

.hero__name span {
  display: block;
}

.hero__tagline {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0.011em;
  color: var(--text-secondary);
  min-height: 29px;
}

.hero__tagline-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--system-blue);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero__intro {
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text-secondary);
  max-width: 460px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

.hero__photo-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero__photo {
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 28px;
  border-radius: var(--r-full);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--primary:hover {
  opacity: 0.88;
}

.btn--blue {
  background: var(--system-blue);
  color: #ffffff;
}

.btn--blue:hover {
  opacity: 0.88;
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn--ghost:hover {
  background: var(--bg-secondary);
}

.btn__chevron {
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn__chevron {
  transform: translateX(3px);
}

/* ── Section Header ──────────────────────── */
.section__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.section__heading {
  font-size: 56px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: -0.005em;
  color: var(--primary);
  margin-bottom: 20px;
}

.section__desc {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0.011em;
  color: var(--text-secondary);
  max-width: 640px;
}

/* ── About ───────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: var(--stack-md);
}

.about__text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: var(--surface-container-lowest);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: transform var(--dur) var(--ease);
}

.stat-card:hover {
  transform: scale(1.02);
}

.stat-card__value {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* ── Timeline ────────────────────────────── */
.timeline {
  margin-top: var(--stack-md);
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--outline-variant);
}

.timeline__item {
  position: relative;
  padding-bottom: 48px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--outline-variant);
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
  z-index: 2;
}

.timeline__item--active .timeline__dot {
  border-color: var(--system-blue);
  background: var(--system-blue);
}

.timeline__item--future .timeline__dot {
  border-color: var(--primary);
  background: var(--primary);
}

.timeline__year {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--system-blue);
  margin-bottom: 6px;
}

.timeline__item--future .timeline__year {
  color: var(--primary);
}

.timeline__title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline__subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timeline__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ── Projects ────────────────────────────── */
.projects__subsection {
  margin-bottom: var(--stack-lg);
}

.projects__subsection:last-child {
  margin-bottom: 0;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: var(--stack-md);
}

.project-card {
  background: var(--surface-container-lowest);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: scale(1.02);
}

.project-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.project-card__icon svg {
  width: 24px;
  height: 24px;
}

.project-card__name {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

.project-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  flex-grow: 1;
}

.project-card__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 5px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--system-blue);
  transition: gap var(--dur) var(--ease);
}

.project-card__link:hover {
  gap: 10px;
}

.project-card__link svg {
  width: 16px;
  height: 16px;
}

/* ── Skills ──────────────────────────────── */
.skills__groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  margin-top: var(--stack-md);
}

.skill-group {
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  padding: 36px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.skill-group__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.skill-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface-container-lowest);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  border-radius: var(--r-full);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.chip:hover {
  transform: scale(1.02);
  border-color: rgba(0, 0, 0, 0.2);
}

/* ── Contact ─────────────────────────────── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: var(--stack-md);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.contact__icon svg {
  width: 20px;
  height: 20px;
}

.contact__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.contact__value {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
}

.contact__value a {
  color: var(--system-blue);
  transition: opacity var(--dur) var(--ease);
}

.contact__value a:hover {
  opacity: 0.75;
}

.contact__social {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__social-heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-container-lowest);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.social-link:hover {
  transform: scale(1.02);
  border-color: rgba(0, 0, 0, 0.15);
}

.social-link__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
}

.social-link__icon svg {
  width: 18px;
  height: 18px;
}

.social-link__text {
  flex: 1;
}

.social-link__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.social-link__handle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.social-link__arrow {
  color: var(--text-secondary);
  transition: transform var(--dur) var(--ease);
}

.social-link:hover .social-link__arrow {
  transform: translateX(4px);
}

.social-link__arrow svg {
  width: 16px;
  height: 16px;
}

/* ── Footer ──────────────────────────────── */
.footer {
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--stack-md) 0;
}

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

.footer__copy {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--dur) var(--ease);
}

.footer__link:hover {
  color: #ffffff;
}

/* ── CV Modal ────────────────────────────── */
.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.cv-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.cv-modal__content {
  position: relative;
  max-width: 680px;
  max-height: 90vh;
  width: 90%;
  background: var(--surface-container-lowest);
  border-radius: var(--r-xl);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--dur) var(--ease);
}

.cv-modal.open .cv-modal__content {
  transform: scale(1);
}

.cv-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cv-modal__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.cv-modal__close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--dur) var(--ease);
}

.cv-modal__close:hover {
  background: var(--bg-secondary);
}

.cv-modal__body {
  overflow-y: auto;
  max-height: calc(90vh - 120px);
  padding: 4px;
}

.cv-modal__body img {
  width: 100%;
  height: auto;
  display: block;
}

.cv-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ── Scroll Reveal ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease),
              transform 0.6s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
  .navbar {
    padding: 0 40px;
  }

  .hero__inner {
    gap: 40px;
  }
  .hero__photo {
    width: 340px;
    height: 340px;
  }
  .hero__name {
    font-size: 64px;
    line-height: 68px;
  }

  .section__heading {
    font-size: 44px;
    line-height: 48px;
  }

  .about__grid {
    gap: 40px;
  }

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

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

@media (max-width: 768px) {
  .container {
    padding-left: var(--margin-mobile);
    padding-right: var(--margin-mobile);
  }
  .navbar {
    padding: 0 var(--margin-mobile);
  }

  .navbar__links {
    display: none;
  }
  .navbar__toggle {
    display: flex;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 56px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero__content {
    order: 2;
    align-items: center;
  }
  .hero__badge {
    align-self: center;
  }
  .hero__photo-wrapper {
    order: 1;
    justify-content: center;
  }
  .hero__photo {
    width: 220px;
    height: 220px;
  }
  .hero__name {
    font-size: 48px;
    line-height: 52px;
    letter-spacing: -0.01em;
  }
  .hero__intro {
    max-width: 100%;
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section__heading {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: 0;
  }
  .section__desc {
    font-size: 17px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about__stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stat-card {
    padding: 24px;
  }
  .stat-card__value {
    font-size: 32px;
  }

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

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

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .about__stats {
    grid-template-columns: 1fr;
  }
}
