:root {
  --bg: #ffffff;
  --text: #0b0d12;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f7f9fc;
  --softer: #fbfcfe;
  --accent: #ffe500;
  --accent-strong: #7a6500;
  --accent-soft: #fffbea;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
  --card-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: min(1000px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  width: var(--container);
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
  transition: height 200ms ease, background 200ms ease, box-shadow 200ms ease, top 200ms ease;
}

.site-header.scrolled {
  top: 10px;
  height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 231, 236, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  justify-self: start;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #d6c200;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0d12;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
  font-size: 13px;
  font-weight: 800;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.nav-toggle {
  display: none;
}

.section {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 100px 0 44px;
}

.hero-grid {
  width: 100%;
  display: grid;
  gap: 28px;
  justify-items: center;
}

.hero-copy {
  width: 100%;
  max-width: 820px;
  text-align: center;
}

.role {
  display: inline-flex;
  max-width: 700px;
  margin: 0 auto 16px;
  padding: 6px 14px;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #475467;
  font-size: 12px;
  font-weight: 750;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.headline-line {
  display: flex;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.highlight {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px 8px;
  border-radius: 10px;
  line-height: 1;
}

.highlight.purple {
  color: #fff;
  background: #8d49ff;
}

.highlight.orange {
  color: #fff;
  background: #f0441b;
}

.highlight.yellow {
  color: #0b0d12;
  background: #ffea00;
}

.highlight.pink {
  color: #0b0d12;
  background: #ffa9d8;
}

.headline-line + .headline-line {
  margin-top: 8px;
}

.hero-summary {
  max-width: 580px;
  margin: 18px auto 0;
  color: #475467;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 500;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

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

.button:active {
  transform: translateY(0) scale(0.98);
}

.button.primary {
  background: var(--accent);
  border-color: #d6c200;
  color: #0b0d12;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: #344054;
}

.button.primary:hover {
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.13);
}

.button.ghost:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
  box-shadow: var(--card-shadow);
}

.hero-panel {
  width: min(660px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.focus-card {
  min-height: 116px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}

.focus-card:hover,
.skill-card:hover,
.resume-item:hover,
.feature-block:hover,
.award-card:hover,
.contact-methods a:hover {
  transform: translateY(-3px);
  border-color: #c7cdd8;
  box-shadow: var(--shadow);
}

.focus-card span {
  width: 38px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
}

.focus-card:nth-child(1) span {
  background: #ede9fe;
  color: #7c3aed;
}

.focus-card:nth-child(2) span {
  background: #dbeafe;
  color: #2563eb;
}

.focus-card:nth-child(3) span {
  background: #ffedd5;
  color: #ea580c;
}

.focus-card:nth-child(4) span {
  background: #dcfce7;
  color: #16a34a;
}

.focus-card strong {
  color: #101828;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.2;
  font-weight: 850;
}

.about-section,
.resume-section,
.contact-section {
  padding: 52px 0;
}

.section-heading {
  max-width: 600px;
  margin-bottom: 22px;
}

.section-heading p,
.contact-copy > p {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.14;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 14px;
  align-items: start;
}

.about-text {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.about-text p {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  font-weight: 700;
}

.about-text p + p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(13.5px, 1.4vw, 15px);
  font-weight: 500;
  line-height: 1.7;
}

.info-strip {
  display: grid;
  gap: 8px;
}

.info-strip div,
.contact-methods a,
.contact-methods div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}

.info-strip span,
.contact-methods span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.date {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info-strip strong,
.contact-methods strong {
  display: block;
  color: #101828;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.skills-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.skill-card {
  min-height: 124px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}

.skill-card:nth-child(1) { border-top-color: #8d49ff; }
.skill-card:nth-child(2) { border-top-color: #f0441b; }
.skill-card:nth-child(3) { border-top-color: #2563eb; }
.skill-card:nth-child(4) { border-top-color: #ffbf00; }
.skill-card:nth-child(5) { border-top-color: #ffa9d8; }

.skill-card svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #111827;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card h3 {
  margin: 14px 0 0;
  color: #101828;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 800;
}

.resume-section {
  border-top: 1px solid var(--line);
}

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

.resume-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.resume-column > h3,
.certifications h3,
.awards-section h3 {
  margin: 0 0 2px;
  color: #101828;
  font-size: 15px;
  font-weight: 850;
}

.resume-item,
.feature-block,
.certifications,
.awards-section,
.award-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}

.education-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.education-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
}

.experience-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.experience-item > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
  margin-top: 2px;
}

.resume-item h4,
.feature-block h3,
.award-card h4 {
  margin: 0;
  color: #101828;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.18;
  font-weight: 850;
}

.resume-item p,
.feature-block p,
.award-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

li {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
}

.resume-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.certifications {
  margin-top: 14px;
  background: var(--softer);
}

.cert-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cert-heading img {
  width: 120px;
  max-width: 36vw;
  height: auto;
  object-fit: contain;
}

.cert-heading h3 {
  margin: 0;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #344054;
  font-size: 12.5px;
  font-weight: 700;
}

.awards-section {
  margin-top: 14px;
}

.awards-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.awards-heading img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  background: #fff;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.award-card {
  padding: 16px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.award-card h4 {
  font-size: clamp(15px, 1.5vw, 18px);
}

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-methods {
  display: grid;
  gap: 10px;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.reveal,
.reveal-card {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  will-change: opacity, transform;
}

.reveal.visible,
.reveal-card.visible {
  opacity: 1;
  transform: none;
  will-change: auto;
  animation-name: fadeUp;
  animation-duration: 500ms;
  animation-timing-function: var(--ease);
  animation-fill-mode: backwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    justify-self: end;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    transition: transform 200ms ease;
  }

  .nav-open .nav-toggle span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-open .nav-toggle span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .nav-open .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: var(--container);
    margin: 0 auto;
    display: grid;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-open .site-nav a {
    padding: 16px;
    font-size: 17px;
    font-weight: 850;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(2, 1fr);
    max-width: 420px;
  }

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

@media (max-width: 760px) {
  :root {
    --container: calc(100vw - 32px);
  }

  .site-header {
    height: 62px;
  }

  .hero {
    padding: 88px 0 36px;
  }

  .hero-grid {
    gap: 22px;
  }

  .role {
    display: flex;
    border-radius: 14px;
    font-size: 11.5px;
    text-align: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(32px, 8.5vw, 48px);
  }

  .headline-line {
    gap: 5px;
  }

  .highlight {
    padding: 3px 10px 6px;
    border-radius: 8px;
  }

  .resume-grid,
  .resume-feature-grid,
  .awards-grid {
    grid-template-columns: 1fr;
  }

  .focus-card {
    min-height: 96px;
  }

  .about-section,
  .resume-section,
  .contact-section {
    padding: 40px 0;
  }

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

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(24px, 5.5vw, 34px);
  }

  .about-text,
  .resume-item,
  .feature-block,
  .certifications,
  .awards-section,
  .award-card {
    padding: 16px;
  }

  .education-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .education-item img {
    width: 44px;
    height: 44px;
  }

  .experience-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .experience-item > img {
    width: 44px;
    height: 44px;
  }

  .awards-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .awards-heading img {
    width: 44px;
    height: 44px;
  }

  .contact-layout {
    gap: 22px;
    padding: 20px;
    border-radius: 16px;
  }

  .cert-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .cert-heading img {
    width: 110px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  :root {
    --container: calc(100vw - 28px);
  }

  .brand {
    font-size: 15px;
  }

  .hero {
    padding: 82px 0 32px;
  }

  .hero-summary {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero h1 {
    font-size: clamp(24px, 7.5vw, 36px);
  }

  .headline-line {
    gap: 3px;
    white-space: normal;
    flex-wrap: wrap;
  }

  .highlight {
    padding: 2px 7px 4px;
    border-radius: 7px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
  }

  .hero-panel {
    gap: 8px;
  }

  .focus-card {
    min-height: 88px;
    padding: 14px;
  }

  .focus-card strong {
    font-size: 14px;
  }

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

  .skill-card {
    min-height: 110px;
    padding: 14px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(22px, 5vw, 30px);
  }

  .about-text p {
    font-size: 15px;
  }

  .about-text p + p {
    font-size: 13.5px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .resume-item h4,
  .feature-block h3 {
    font-size: 17px;
  }

  .award-card h4 {
    font-size: 15px;
  }

  .info-strip div,
  .contact-methods a,
  .contact-methods div {
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 22px;
  }

  .highlight {
    padding: 2px 6px 3px;
    border-radius: 6px;
  }

  .focus-card {
    min-height: 80px;
    padding: 12px;
  }

  .focus-card span {
    width: 32px;
    height: 26px;
    font-size: 10px;
  }

  .focus-card strong {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
