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

:root {
  --bg: #edf8ff;
  --panel: #f5fbff;
  --panel-light: #e5f4ff;
  --card: #eef8ff;
  --card-alt: #dff2ff;
  --text: #1d2d3d;
  --muted: #55708c;
  --purple: #6ea9ff;
  --blue: #3fa7ff;
  --border: rgba(41, 101, 158, .18);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: linear-gradient(180deg, #f4fbff 0%, #edf8ff 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: #d9cafa; color: #202334; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 6%;
  border-bottom: 1px solid var(--border);
  background: rgba(239, 248, 255, .92);
  backdrop-filter: blur(20px);
}

.logo { font-size: 1.12rem; font-weight: 800; white-space: nowrap; }
.logo span { color: var(--blue); }

nav { display: flex; gap: 19px; align-items: center; }
nav a, .social-links a {
  font-size: .79rem;
  color: var(--muted);
  transition: color .25s;
}
nav a:hover, .social-links a:hover { color: var(--blue); }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 600;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
}
.button:hover { transform: translateY(-3px); }
.button-small { padding: 9px 13px; font-size: .78rem; }

.button-primary {
  color: white;
  background: linear-gradient(110deg, #69b8ff, #49a5ff, #2a8fe8);
  box-shadow: 0 5px 24px rgba(73, 165, 255, 0.35);
}
.button-primary:hover { box-shadow: 0 9px 30px rgba(73, 165, 255, 0.55); }

.button-outline {
  background: var(--card);
  border: 1px solid #9ba5b8;
  color: #293047;
}
.button-outline:hover { border-color: var(--blue); }

.section {
  position: relative;
  padding: 100px 9%;
  border-bottom: 1px solid rgba(42, 51, 77, .1);
}
.section-alt { background: #f7f8fc; }

.hero {
  isolation: isolate;
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 35px;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 105px;
}

.aws-watermark {
  position: absolute;
  z-index: 0;
  top: 20%;
  left: 7%;
  width: clamp(280px, 35vw, 440px);
  overflow: visible;
  opacity: .09;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.aws-watermark text {
  fill: #ff9900;
  font-family: Arial, sans-serif;
  font-size: 112px;
  font-weight: 700;
  letter-spacing: -9px;
}
.aws-watermark path {
  fill: none;
  stroke: #ff9900;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 9px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 13px;
  border: 1px solid rgba(58, 146, 220, .28);
  border-radius: 30px;
  background: rgba(108, 191, 255, 0.12);
  color: #1d6fb5;
  font-size: .72rem;
  letter-spacing: 1.1px;
  font-weight: 600;
}

.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #50e0a5;
  box-shadow: 0 0 12px #50e0a5;
}

.intro { color: var(--muted); font-size: 1.1rem; }

h1 {
  margin: 5px 0 12px;
  font-size: clamp(3.2rem, 7vw, 5.9rem);
  line-height: 1.08;
  letter-spacing: -4px;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, #4ca3ff, #71b8ff, #1e7ed8);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero h2 { font-size: clamp(1.1rem, 2.2vw, 1.55rem); }
.hero-description {
  max-width: 540px;
  margin-top: 15px;
  color: var(--muted);
  font-size: .96rem;
}

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

.social-links { display: flex; gap: 23px; margin-top: 25px; }

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 430px;
}

.glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.glow-one { background: #773fff55; }
.glow-two {
  width: 170px;
  height: 170px;
  background: #009eff33;
  transform: translate(90px, 60px);
}

.orbit {
  position: absolute;
  width: 345px;
  height: 345px;
  border: 1px solid #916dff40;
  border-radius: 50%;
  animation: rotate 28s linear infinite;
}
.orbit::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  top: 45px;
  left: 45px;
  background: var(--blue);
  box-shadow: 0 0 20px var(--blue);
}
.orbit-two {
  width: 285px;
  height: 285px;
  border-style: dashed;
  border-color: #4e9eff42;
  animation-direction: reverse;
  animation-duration: 35s;
}

.profile-card {
  position: relative;
  z-index: 2;
  width: min(290px, 78%);
  padding: 22px;
  border: 1px solid #a18bff59;
  border-radius: 19px;
  background: linear-gradient(150deg, #f7f8fd, var(--card-alt));
  box-shadow: 0 25px 90px #25304a20, 0 0 40px #7b51e922;
  text-align: center;
  backdrop-filter: blur(20px);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.profile-top > span {
  width: 8px; height: 8px; border-radius: 50%; background: #ff6c91;
}
.profile-top > span:nth-child(2) { background: #ffc56a; }
.profile-top > span:nth-child(3) { background: #55dfac; }
.profile-top small { margin-left: auto; color: var(--muted); font-size: .65rem; }

.profile-portrait {
  position: relative;
  width: 145px;
  height: 145px;
  margin: 25px auto 18px;
  border: 1px solid #a48aff77;
  border-radius: 50%;
  background: #edf0f8;
  box-shadow: inset 0 0 35px #8352ff19, 0 0 30px #8352ff18;
}
.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 34%;
}
.profile-cloud-badge {
  position: absolute;
  right: -11px;
  bottom: -6px;
  display: grid;
  width: 57px;
  height: 51px;
  place-items: center;
  border: 1px solid #6abfff88;
  border-radius: 15px;
  background: linear-gradient(145deg, #f8faff, var(--card-alt));
  box-shadow: 0 7px 22px #1c294026, 0 0 16px #43c8ff25;
}
.cloud-model { width: 44px; height: 38px; overflow: visible; }
.cloud-outline {
  fill: none;
  stroke: url(#cloud-gradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px #43c8ff66);
}
.cloud-connector {
  fill: none;
  stroke: #8294d9;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cloud-node {
  fill: #ffffff;
  stroke: #6abfff;
  stroke-width: 1.5;
}
.cloud-node-detail {
  fill: none;
  stroke: #b5c8f5;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.cloud-status { fill: #50e0a5; filter: drop-shadow(0 0 3px #50e0a5); }
.profile-card h3 { font-size: 1.1rem; }
.profile-card > p { color: var(--muted); font-size: .82rem; }
.profile-divider { height: 1px; background: var(--border); margin: 18px 0 12px; }
.profile-status { color: #58657c; font-size: .65rem; }
.profile-status .live-dot { display: inline-block; margin-right: 6px; }

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #7d8ed04d;
  border-radius: 13px;
  background: #f4f6fcf2;
  color: #202334;
  box-shadow: 0 15px 40px #1f2c451f;
  backdrop-filter: blur(18px);
  animation: float 6s ease-in-out infinite;
}
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font-size: .77rem; }
.floating-card small { color: var(--muted); font-size: .69rem; }
.floating-cert { top: 43px; right: -3px; }
.floating-code { bottom: 40px; left: -10px; animation-delay: -3s; }
.aws-mark { color: #9d5900; font-size: 1.5rem; font-weight: 800; }
.verified { color: #187b58; }

.code-icon {
  color: #7042c4;
  font-size: 1.5rem;
  font-weight: 800;
}

.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 9%;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #626b7e;
  font-size: .65rem;
  letter-spacing: 1.7px;
}
.scroll-indicator span { color: var(--blue); font-size: 1rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 32px;
  background: #f4f6fb;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1.4;
  background: linear-gradient(100deg, #53aefb, #1d85d8);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}
.stat span { color: var(--muted); font-size: .76rem; }

.section-heading { max-width: 740px; margin-bottom: 43px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  letter-spacing: -1.4px;
}
.journey-link {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 42px;
  margin-left: 7px;
  place-items: center;
  vertical-align: middle;
  border: 1px solid #8294d955;
  border-radius: 11px;
  background: linear-gradient(145deg, #f7f8fd, var(--card-alt));
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.journey-link:hover,
.journey-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 0 20px #43c8ff33;
}
.journey-link svg { width: 24px; height: 30px; overflow: visible; }
.journey-link path {
  fill: none;
  stroke: #657899;
  stroke-width: 2;
  stroke-linecap: round;
}
.journey-link circle {
  fill: #ffffff;
  stroke: #087eae;
  stroke-width: 2;
  transition: fill .2s, filter .2s;
}
.journey-link:hover circle,
.journey-link:focus-visible circle {
  fill: #9d75ff;
  filter: drop-shadow(0 0 4px #43c8ff);
}
.journey-tooltip {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 9px);
  left: 50%;
  width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--text);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .2s, transform .2s;
}
.journey-link:hover .journey-tooltip,
.journey-link:focus-visible .journey-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.section-heading > p { margin-top: 13px; color: var(--muted); font-size: .91rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 55px;
  align-items: center;
}
.about-copy p { color: #4f596d; font-size: .93rem; margin-bottom: 17px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: #087eae; font-size: .83rem; font-weight: 600; }
.text-link:hover { color: #7042c4; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }

.about-cards { display: grid; gap: 13px; }
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(120deg, #f8f9fd, var(--card));
  transition: border-color .25s, transform .25s;
}
.info-card:hover { border-color: #9871ff77; transform: translateX(4px); }
.info-icon { font-size: 1.35rem; }
.info-card small { color: #7042c4; font-size: .65rem; letter-spacing: 1px; }
.info-card h3 { margin: 3px 0; font-size: .91rem; }
.info-card p { color: var(--muted); font-size: .76rem; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.skill-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, #f8f9fd, var(--card));
  transition: transform .25s, border-color .25s;
}
.skill-card:hover { transform: translateY(-4px); border-color: #8a73ee77; }
.skill-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 17px;
}
.purple { background: #925bff1c; color: #7042c4; }
.blue { background: #43baff1b; color: #087eae; }
.pink { background: #f15fc21b; color: #b33180; }
.green { background: #55e3a41b; color: #187b58; }
.skill-card h3 { font-size: 1rem; margin-bottom: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 18px; }
.tags span {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #6578a52b;
  border-radius: 6px;
  background: var(--card-alt);
  color: #4d5870;
  font-size: .7rem;
}
.section-note { margin-top: 22px; color: #626b7e; font-size: .76rem; }

.timeline { max-width: 850px; margin-left: 8px; }
.timeline-item {
  position: relative;
  padding: 0 0 32px 28px;
  border-left: 1px solid #7967c755;
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  top: 3px;
  left: -6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #9e7aff;
  box-shadow: 0 0 15px #9e7aff88;
}
.timeline-date { margin-bottom: 10px; color: #7042c4; font-size: .72rem; letter-spacing: 1px; }
.timeline-card {
  padding: 22px 25px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.project-type { color: #7042c4; font-size: .68rem; letter-spacing: 1.2px; font-weight: 600; }
.timeline-card h3 { margin-top: 6px; font-size: 1.12rem; }
.timeline-card h4 { margin-top: 2px; color: #087eae; font-size: .86rem; font-weight: 500; }
.timeline-card p, .timeline-card li { color: var(--muted); font-size: .83rem; }
.timeline-card ul { padding-left: 19px; margin-top: 12px; }
.timeline-card li { margin-top: 7px; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(150deg, #f8f9fd, var(--card));
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project-card:hover { transform: translateY(-6px); border-color: #9174ff88; box-shadow: 0 15px 40px #0003; }
.project-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #e9e1fa, #f2f3f8 72%);
}
.cover-ai { background: radial-gradient(ellipse at center, #d6eef4, #f2f3f8 72%); }
.cover-cloud { background: radial-gradient(ellipse at center, #dce9f7, #f2f3f8 72%); }
.cover-data { background: radial-gradient(ellipse at center, #e9def3, #f2f3f8 72%); }
.cover-number { position: absolute; top: 14px; left: 17px; color: #56617a; font-size: .72rem; }
.cover-label { position: absolute; bottom: 13px; color: #56617a; font-size: .63rem; letter-spacing: 2px; }
.network-art { color: #7042c4; font-size: 2.5rem; text-shadow: 0 0 30px #956aff55; }
.network-art span { color: #087eae; padding: 0 10px; font-size: 1.4rem; }
.ai-art { color: #087eae; font-size: 5rem; text-shadow: 0 0 40px #48d5ff66; }
.cloud-art { color: #087eae; font-size: 5rem; text-shadow: 0 0 40px #3caeff55; }
.data-art { color: #7042c4; font-size: 3rem; }
.data-art span { color: #087eae; font-size: 1.6rem; }
.project-body { padding: 25px; }
.project-body h3 { margin: 7px 0 12px; font-size: 1.2rem; line-height: 1.45; }
.project-body > p { color: var(--muted); font-size: .84rem; min-height: 70px; }
.project-body .tags { margin-bottom: 20px; }
.center-action { text-align: center; margin-top: 34px; }
.contributions-card {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, #f8f9fd, var(--card));
  box-shadow: 0 18px 50px #0002;
}
.contributions-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.contributions-heading .project-type { display: block; margin-bottom: 4px; }
.contributions-heading h3 { font-size: 1.05rem; }
.contributions-heading .text-link { white-space: nowrap; }
.contributions-graph {
  display: block;
  width: 100%;
  height: auto;
  min-height: 90px;
  padding: 12px;
  border: 1px solid #6578a52b;
  border-radius: 10px;
  background: var(--card-alt);
}

.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.certifications-section {
  overflow: hidden;
}
.certifications-section > .section-heading { max-width: none; }
.cert-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cert-title-row h2 {
  flex: 0 1 auto;
  margin-bottom: 0;
}
.cert-level-graph {
  flex: 0 1 330px;
  width: min(34vw, 330px);
  min-width: 220px;
  height: auto;
  overflow: visible;
  opacity: .65;
  cursor: pointer;
  transition: opacity .25s ease, filter .25s ease;
}
.cert-level-graph:hover,
.cert-level-graph:focus-visible {
  opacity: 1;
  filter: drop-shadow(0 0 12px #8b5cf655);
  outline: 0;
}
.cert-chart-grid {
  fill: none;
  stroke: #aab3c3;
  stroke-width: 1;
  stroke-dasharray: 3 8;
  opacity: .45;
}
.cert-chart-area { fill: url(#cert-graph-fill); }
.cert-chart-line {
  fill: none;
  stroke: url(#cert-graph-gradient);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cert-chart-points circle {
  fill: #ffffff;
  stroke: #087eae;
  stroke-width: 4;
}
.cert-level-graph text {
  fill: #7042c4;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
}
@media (max-width: 700px) {
  .cert-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .cert-level-graph {
    flex-basis: auto;
    width: min(100%, 330px);
    min-width: 0;
    align-self: flex-end;
  }
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(120deg, #f8f9fd, var(--card));
  transition: border-color .25s, transform .25s;
}
.cert-card:hover { border-color: #9174ff88; transform: translateY(-3px); }
.cert-icon {
  display: grid;
  place-items: center;
  flex: 0 0 57px;
  width: 57px;
  height: 57px;
  border-radius: 12px;
  background: #9b70ff18;
  color: #bda0ff;
  font-weight: 800;
  font-size: 1.1rem;
}
.aws-icon { color: #b66b00; font-size: 1.4rem; }
.cert-card h3 { margin: 5px 0; font-size: .88rem; line-height: 1.5; }
.cert-card p { color: var(--muted); font-size: .76rem; }

.education-list { display: grid; gap: 14px; }
.education-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.education-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  background: #8c63ff1b;
  font-size: 1.3rem;
}
.education-details { flex: 1; }
.education-details h3 { margin: 4px 0; font-size: .95rem; }
.education-details p { color: var(--muted); font-size: .81rem; }
.grade {
  padding: 5px 11px;
  border: 1px solid #9b79ff44;
  border-radius: 8px;
  background: #9b79ff10;
  color: #6040a1;
  font-size: .76rem;
  white-space: nowrap;
}

.contact-section { overflow: hidden; text-align: center; background: #ffffff; }
.contact-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 450px;
  height: 280px;
  transform: translateX(-50%);
  background: #794bff14;
  filter: blur(100px);
  pointer-events: none;
}
.contact-inner { position: relative; max-width: 750px; margin: auto; }
.contact-inner h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.25; letter-spacing: -1.5px; }
.contact-inner > p { max-width: 600px; margin: 20px auto; color: var(--muted); font-size: .91rem; }
.contact-email { margin-top: 12px; }
.contact-details { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; margin-top: 20px; color: #626b7e; font-size: .8rem; }
.contact-actions { justify-content: center; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 25px 7%;
  color: var(--muted);
  font-size: .76rem;
  background: #ffffff;
  border-top: 1px solid var(--border);
}
.footer a:not(.logo):hover { color: var(--blue); }
.footer small { width: 100%; text-align: center; color: #626b7e; }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #9c8abf;
  border-radius: 12px;
  background: var(--card);
  color: #202334;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 5px 20px #1f2c4526;
}
.back-to-top.visible { display: block; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero-name-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(.28em);
}
.hero h1 .gradient-text .hero-name-letter {
  color: transparent;
  background-image: linear-gradient(100deg, #ff9acb, #f472b6, #fb7185);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-content.visible .hero-name-letter {
  animation: name-letter-in .45s cubic-bezier(.2, .75, .25, 1) both;
  animation-delay: calc(var(--letter-index) * .075s);
}

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes name-letter-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .navbar { padding-inline: 4%; gap: 13px; }
  nav { gap: 12px; }
  nav a { font-size: .74rem; }
  .section { padding-inline: 6%; }
  .hero { gap: 15px; }
}

@media (max-width: 850px) {
  .navbar { flex-wrap: wrap; }
  .menu-toggle { display: block; margin-left: auto; }
  .navbar > .button { display: none; }
  nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  nav.open { display: flex; }
  nav a { padding: 11px 0; border-top: 1px solid var(--border); font-size: .88rem; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-content { max-width: 650px; }
  .hero-visual { min-height: 420px; }
  .scroll-indicator { left: 6%; }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 25px; }
}

@media (max-width: 600px) {
  .section { padding: 70px 6%; }
  h1 { letter-spacing: -2.5px; }
  .hero { padding-bottom: 95px; }
  .hero-visual { min-height: 370px; }
  .orbit { width: 285px; height: 285px; }
  .orbit-two { width: 235px; height: 235px; }
  .floating-cert { top: 20px; right: -3px; }
  .floating-code { bottom: 18px; left: -3px; }
  .profile-card { width: 270px; }
  .stats { padding-top: 27px; padding-bottom: 27px; }
  .stat strong { font-size: 1.6rem; }
  .stat span { font-size: .7rem; }
  .skills-grid, .projects-grid, .cert-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 22px; }
  .project-body > p { min-height: 0; }
  .timeline-card { padding: 19px; }
  .cert-card { padding: 16px; gap: 13px; }
  .cert-icon { flex-basis: 48px; width: 48px; height: 48px; }
  .education-card { gap: 12px; padding: 15px; }
  .education-icon { width: 39px; height: 39px; flex-basis: 39px; }
  .grade { padding: 4px 7px; font-size: .68rem; }
  .education-details h3 { font-size: .83rem; }
  .education-details p { font-size: .73rem; }
  .contact-inner h2 { letter-spacing: -1px; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-name-letter { opacity: 1; transform: none; }
}
