:root {
  --ink: #eef6ff;
  --dark: #06111f;
  --dark-2: #0b1b33;
  --panel: rgba(12, 31, 59, 0.78);
  --panel-strong: rgba(9, 24, 46, 0.94);
  --white: #ffffff;
  --muted: #a8b6cc;
  --line: rgba(148, 190, 255, 0.18);
  --pink: #f472b6;
  --purple: #8b5cf6;
  --blue: #00a7ff;
  --cyan: #23e6c2;
  --yellow: #ffd166;
  --orange: #ff7a45;
  --green: #52e27f;
  --shadow: 0 28px 90px rgba(0, 10, 30, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(148, 190, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(148, 190, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 10% 8%, rgba(0, 167, 255, 0.16), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(139, 92, 246, 0.16), transparent 34%),
    linear-gradient(135deg, #030712, #071426 45%, #091d3a);
  background-size: 38px 38px;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

.page-glow {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.34;
}

.glow-one {
  top: 70px;
  left: -170px;
  background: radial-gradient(circle, var(--cyan), transparent 68%);
}

.glow-two {
  right: -180px;
  bottom: 10%;
  background: radial-gradient(circle, var(--pink), transparent 68%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 5vw, 76px);
  background: rgba(3, 10, 23, 0.74);
  border-bottom: 1px solid rgba(148, 190, 255, 0.12);
  backdrop-filter: blur(22px);
}

.brand {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--purple) 50%, var(--cyan));
  color: white;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(124, 60, 255, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(148, 190, 255, 0.16);
  border-radius: 999px;
  padding: 7px;
  background: rgba(9, 24, 46, 0.78);
  box-shadow: 0 12px 35px rgba(0, 10, 30, 0.26);
  max-width: calc(100vw - 190px);
  overflow-x: auto;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.nav-links a:hover {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(350px, 0.82fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  min-height: calc(100vh - 85px);
  padding: clamp(38px, 5vw, 76px) clamp(18px, 5vw, 76px) clamp(56px, 7vw, 96px);
}

.profile-banner {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  max-width: 720px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 38, 72, 0.92), rgba(8, 22, 43, 0.72)),
    linear-gradient(110deg, rgba(35, 230, 194, 0.24), rgba(0, 167, 255, 0.24));
  padding: 16px;
  box-shadow: 0 24px 65px rgba(124, 60, 255, 0.14);
  backdrop-filter: blur(18px);
}

.profile-banner::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 118px;
  height: 118px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  transform: rotate(18deg);
  opacity: 0.5;
}

.profile-banner img {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border: 5px solid white;
  border-radius: 24px;
  object-fit: cover;
  object-position: 50% 22%;
  box-shadow: 0 16px 34px rgba(16, 17, 31, 0.16);
}

.profile-banner-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.profile-banner-copy > span {
  display: inline-flex;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(35, 230, 194, 0.12);
  color: var(--cyan);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-banner h2 {
  margin-bottom: 3px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  background: linear-gradient(100deg, var(--white), var(--cyan), var(--blue));
  background-clip: text;
  color: transparent;
}

.profile-banner p {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 850;
}

.profile-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-stack span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #dffbff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(16, 17, 31, 0.06);
}

.intro-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hello-pill,
.section-kicker,
.mini-label {
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(35, 230, 194, 0.22);
  border-radius: 999px;
  background: rgba(35, 230, 194, 0.1);
  color: var(--cyan);
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-avatar {
  display: none;
  width: 58px;
  height: 58px;
  border: 4px solid white;
  border-radius: 18px;
  object-fit: cover;
  object-position: 50% 20%;
  box-shadow: 0 14px 34px rgba(124, 60, 255, 0.22);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  background: linear-gradient(100deg, var(--white), var(--cyan) 32%, var(--blue) 62%, var(--purple));
  background-clip: text;
  color: transparent;
  font-size: clamp(58px, 9vw, 128px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: 0;
}

.role-line {
  color: var(--white);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 900;
}

.role-line span {
  color: var(--pink);
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-highlights span {
  border: 1px solid rgba(148, 190, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 38, 72, 0.86), rgba(8, 22, 43, 0.62));
  padding: 10px 13px;
  color: #dffbff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(124, 60, 255, 0.08);
}

.hero-highlights span:nth-child(2) {
  color: var(--cyan);
}

.hero-highlights span:nth-child(3) {
  color: #bfdbfe;
}

.hero-actions,
.social-strip,
.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 0 22px;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.primary {
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
  color: white;
  box-shadow: 0 18px 40px rgba(255, 78, 205, 0.26);
}

.secondary {
  border: 1px solid rgba(148, 190, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(0, 10, 30, 0.2);
}

.social-strip {
  margin-top: 28px;
}

.social-strip a {
  border: 1px solid rgba(148, 190, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.hero-showcase {
  position: relative;
  min-height: 560px;
}

.portrait-card {
  position: absolute;
  inset: 38px 48px 54px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 38, 72, 0.94), rgba(8, 22, 43, 0.6)),
    linear-gradient(145deg, rgba(0, 167, 255, 0.24), rgba(139, 92, 246, 0.2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.portrait-card::before,
.portrait-card::after {
  content: "";
  position: absolute;
  border-radius: 34px;
}

.portrait-card::before {
  inset: 24px;
  border: 1px dashed rgba(124, 60, 255, 0.28);
}

.portrait-card::after {
  width: 170px;
  height: 170px;
  right: -42px;
  bottom: -42px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  transform: rotate(18deg);
}

.portrait-ring {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(230px, 23vw, 300px);
  height: clamp(230px, 23vw, 300px);
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--pink), var(--yellow), var(--cyan), var(--purple), var(--pink));
  animation: spinSoft 9s linear infinite;
}

.portrait {
  display: block;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  border: 9px solid white;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  box-shadow: 0 22px 48px rgba(16, 17, 31, 0.18);
  animation: spinSoftReverse 9s linear infinite;
}

.portrait-card h2,
.portrait-card p {
  position: relative;
  z-index: 1;
  text-align: center;
}

.portrait-card h2 {
  max-width: 360px;
  margin: 24px 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.02;
}

.portrait-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 850;
}

.floating-card {
  position: absolute;
  z-index: 2;
  min-width: 138px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  padding: 18px;
  background: rgba(9, 24, 46, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.floating-card strong {
  display: block;
  font-size: 34px;
}

.floating-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.card-a {
  top: 36px;
  left: 8px;
}

.card-b {
  right: 0;
  top: 154px;
}

.card-c {
  left: 26px;
  bottom: 44px;
}

.marquee-section {
  overflow: hidden;
  border-top: 1px solid rgba(16, 17, 31, 0.08);
  border-bottom: 1px solid rgba(16, 17, 31, 0.08);
  background: #020817;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 18px 0;
  animation: marquee 18s linear infinite;
}

.marquee-track span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px 16px;
  font-weight: 950;
}

.section,
.contact-section {
  padding: clamp(68px, 8vw, 118px) clamp(18px, 5vw, 76px);
}

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

.section-kicker,
.mini-label {
  margin-bottom: 16px;
}

.profile-summary {
  position: relative;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 38, 72, 0.88), rgba(8, 22, 43, 0.68)),
    linear-gradient(120deg, rgba(0, 167, 255, 0.2), rgba(35, 230, 194, 0.14), rgba(139, 92, 246, 0.16));
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange), var(--cyan));
}

.profile-summary::after {
  content: "AI";
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  bottom: -22px;
  color: rgba(124, 60, 255, 0.08);
  font-size: clamp(90px, 15vw, 190px);
  font-weight: 950;
  line-height: 1;
}

.summary-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-summary p {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin-bottom: 0;
  color: #d7e5f7;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 750;
  line-height: 1.65;
}

.section-heading p:not(.section-kicker),
.bento-card p,
.service-card p,
.project-content p,
.timeline-item p,
.contact-section p {
  color: var(--muted);
  line-height: 1.7;
}

.about-bento {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.bento-card,
.service-card,
.project-card,
.timeline-item,
.contact-section {
  border: 1px solid rgba(148, 190, 255, 0.18);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.bento-card {
  min-height: 230px;
  padding: 28px;
}

.bento-card.large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  background:
    linear-gradient(145deg, rgba(0, 167, 255, 0.72), rgba(139, 92, 246, 0.68)),
    var(--panel-strong);
  color: white;
}

.bento-card.large .mini-label,
.bento-card.large p {
  color: white;
}

.bento-card.large .mini-label {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 28px;
}

.service-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-weight: 950;
}

.service-card:nth-child(2) .service-icon {
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.service-card:nth-child(3) .service-icon {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.education-section {
  background: linear-gradient(135deg, rgba(0, 167, 255, 0.12), rgba(35, 230, 194, 0.08));
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.education-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(148, 190, 255, 0.18);
  border-radius: 28px;
  background: var(--panel);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.education-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 136px;
  height: 136px;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  transform: rotate(18deg);
  opacity: 0.22;
}

.education-card:nth-child(2)::after {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.education-card:nth-child(3)::after {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.education-card span {
  display: inline-flex;
  margin-bottom: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.education-card p {
  color: var(--muted);
  line-height: 1.65;
}

.education-card strong {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  padding: 10px 14px;
}

.skills-section {
  background: rgba(16, 17, 31, 0.96);
  color: white;
}

.skills-section .section-kicker {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills-cloud span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  color: white;
  font-weight: 900;
}

.skills-cloud span:nth-child(3n + 1) {
  background: rgba(255, 78, 205, 0.22);
}

.skills-cloud span:nth-child(3n + 2) {
  background: rgba(35, 230, 194, 0.18);
}

.skills-cloud span:nth-child(3n + 3) {
  background: rgba(255, 209, 102, 0.18);
}

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

.project-card {
  overflow: hidden;
}

.project-art {
  position: relative;
  min-height: 330px;
  overflow: hidden;
}

.resume-project .project-art {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.hospital-project .project-art {
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.voice-project .project-art {
  background: linear-gradient(135deg, #16162a, var(--purple));
}

.resume-lines {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 54px;
  display: grid;
  gap: 16px;
}

.resume-lines span {
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.resume-lines span:nth-child(2) {
  width: 66%;
}

.resume-lines span:nth-child(3) {
  width: 84%;
}

.resume-lines span:nth-child(4) {
  width: 54%;
}

.match-badge {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border: 12px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: #eaf6ff;
  color: #1d4ed8;
  font-weight: 950;
}

.site-window {
  position: absolute;
  inset: 42px;
  border-radius: 24px;
  background: #081a33;
  padding: 22px;
  box-shadow: 0 22px 50px rgba(0, 10, 30, 0.28);
}

.site-window span {
  display: block;
  width: 120px;
  height: 18px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--pink);
}

.site-window div {
  height: 64px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(147, 197, 253, 0.2);
}

.site-window div:last-child {
  width: 62%;
  background: rgba(35, 230, 194, 0.2);
}

.voice-ui {
  position: absolute;
  inset: 42px;
  display: grid;
  align-content: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 90px;
}

.voice-wave span {
  width: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
}

.voice-wave span:nth-child(1),
.voice-wave span:nth-child(5) {
  height: 38px;
}

.voice-wave span:nth-child(2),
.voice-wave span:nth-child(4) {
  height: 68px;
}

.voice-wave span:nth-child(3) {
  height: 96px;
}

.voice-input {
  height: 52px;
  border-radius: 16px;
  background: rgba(219, 234, 254, 0.18);
}

.voice-button {
  width: fit-content;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: white;
  padding: 12px 18px;
  font-weight: 950;
}

.project-content {
  padding: 28px;
}

.project-content > p:first-child {
  margin-bottom: 12px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-links a {
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 950;
}

.journey-section {
  background: linear-gradient(135deg, rgba(35, 230, 194, 0.1), rgba(0, 167, 255, 0.1));
}

.zigzag-timeline {
  position: relative;
  display: grid;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.zigzag-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink), var(--purple), var(--cyan), var(--orange));
  transform: translateX(-50%);
  box-shadow: 0 0 30px rgba(124, 60, 255, 0.24);
}

.story-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center;
  min-height: 160px;
}

.story-card:nth-child(even) .story-content {
  grid-column: 3;
}

.story-card:nth-child(even) .story-year {
  grid-column: 1;
  justify-self: end;
}

.story-card:nth-child(odd) .story-content {
  grid-column: 1;
}

.story-card:nth-child(odd) .story-year {
  grid-column: 3;
}

.story-year {
  width: fit-content;
  border: 1px solid rgba(148, 190, 255, 0.18);
  border-radius: 999px;
  background: var(--panel);
  color: var(--cyan);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(16, 17, 31, 0.08);
  backdrop-filter: blur(14px);
}

.story-dot {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 28px;
  height: 28px;
  border: 6px solid white;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 0 0 8px rgba(124, 60, 255, 0.12), 0 18px 38px rgba(16, 17, 31, 0.14);
}

.story-card:nth-child(2n) .story-dot {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.story-card:nth-child(3n) .story-dot {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.story-content {
  border: 1px solid rgba(148, 190, 255, 0.18);
  border-radius: 28px;
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.story-content h3 {
  margin-bottom: 8px;
}

.story-content p {
  color: var(--muted);
  line-height: 1.65;
}

.story-content strong {
  display: inline-flex;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  padding: 9px 12px;
  font-size: 13px;
}

.achievement-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 167, 255, 0.18), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(35, 230, 194, 0.14), transparent 30%),
    #071426;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.achievement-card {
  position: relative;
  min-height: 260px;
  border: 1px solid rgba(148, 190, 255, 0.18);
  border-radius: 30px;
  overflow: hidden;
  background: var(--panel);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.achievement-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.achievement-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.achievement-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}

.achievement-card strong {
  display: inline-flex;
  margin: 18px 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  padding: 9px 12px;
}

.achievement-card p {
  color: var(--muted);
  line-height: 1.65;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 28px;
  margin: clamp(18px, 5vw, 76px);
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 167, 255, 0.34), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(124, 60, 255, 0.32), transparent 34%),
    linear-gradient(135deg, #020817, #061733 42%, #0b2558 100%);
  color: white;
  box-shadow: 0 38px 95px rgba(2, 8, 23, 0.42);
}

.contact-section .section-kicker,
.contact-section p {
  color: white;
}

.contact-section .section-kicker {
  border-color: rgba(89, 213, 255, 0.28);
  background: rgba(89, 213, 255, 0.12);
}

.contact-panel {
  display: grid;
  gap: 16px;
  align-content: center;
}

.contact-socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-socials a {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 1px solid rgba(147, 197, 253, 0.26);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-socials a:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.7);
  background: rgba(125, 211, 252, 0.16);
}

.contact-socials svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.contact-socials a:nth-child(1) {
  color: #7dd3fc;
}

.contact-socials a:nth-child(2) {
  color: #86efac;
}

.contact-socials a:nth-child(3) {
  color: #ffffff;
}

.contact-socials a:nth-child(4) {
  color: #60a5fa;
}

.contact-socials a:nth-child(5) {
  color: #f9a8d4;
}

.contact-socials a:nth-child(6) {
  color: #e5e7eb;
}

.contact-info {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(147, 197, 253, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
}

.contact-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 850;
  word-break: break-word;
}

.contact-info address {
  margin: 0;
  border-top: 1px solid rgba(132, 220, 255, 0.16);
  padding-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-weight: 800;
  line-height: 1.6;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 76px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@keyframes spinSoft {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinSoftReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero,
  .about-bento,
  .project-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 500px;
  }

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

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 84px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

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

  .nav-links a {
    padding: 14px;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .profile-banner {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 26px;
    padding: 12px;
  }

  .profile-banner img {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }

  .profile-banner h2 {
    font-size: 28px;
  }

  .profile-banner p {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(58px, 17vw, 86px);
  }

  .mobile-avatar {
    display: block;
  }

  h2 {
    font-size: 36px;
  }

  .service-grid,
  .education-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .zigzag-timeline {
    gap: 20px;
  }

  .zigzag-timeline::before {
    left: 17px;
  }

  .story-card,
  .story-card:nth-child(even),
  .story-card:nth-child(odd) {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    min-height: auto;
  }

  .story-card .story-dot,
  .story-card:nth-child(even) .story-dot,
  .story-card:nth-child(odd) .story-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: center;
  }

  .story-card .story-year,
  .story-card:nth-child(even) .story-year,
  .story-card:nth-child(odd) .story-year,
  .story-card .story-content,
  .story-card:nth-child(even) .story-content,
  .story-card:nth-child(odd) .story-content {
    grid-column: 2;
    justify-self: start;
  }

  .story-content {
    width: 100%;
  }

  .portrait-card {
    inset: 54px 12px;
  }

  .floating-card {
    min-width: 118px;
    padding: 14px;
  }

  .card-a {
    left: 0;
  }

  .card-b {
    right: 0;
  }

  .project-art {
    min-height: 260px;
  }
}

@media (max-width: 460px) {
  .profile-banner {
    grid-template-columns: 1fr;
  }

  .profile-banner img {
    width: 92px;
    height: 92px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-showcase {
    min-height: 480px;
  }

  .portrait-ring {
    width: 198px;
    height: 198px;
  }

  .portrait {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
  }

  .portrait-card h2 {
    font-size: 30px;
  }

  .contact-section {
    margin: 18px;
  }

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

  footer {
    flex-direction: column;
  }
}
