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

:root {
  --bg: #03050d;
  --surface: rgba(7, 12, 28, 0.58);
  --surface-2: rgba(255, 255, 255, 0.055);
  --text: #f7fbff;
  --muted: #9fb2ce;
  --cyan: #55f7ff;
  --green: #00ffbf;
  --purple: #a66cff;
  --border: rgba(120, 240, 255, 0.22);
  --card-border: rgba(180, 250, 255, 0.15);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 255, 255, 0.18), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.22), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(0, 255, 136, 0.12), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: 1;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#space {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.noise,
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  opacity: 0.11;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.scanline {
  z-index: 11;
  background: linear-gradient(
    to bottom,
    transparent,
    transparent 48%,
    rgba(0, 255, 255, 0.08) 50%,
    transparent 52%,
    transparent
  );
  background-size: 100% 8px;
  opacity: 0.26;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #00f0ff, #7c3cff, #00ff99);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.7);
  z-index: 50;
}

.site {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.nav {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 16px;
  z-index: 24;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.brand h3 {
  font-size: 18px;
  letter-spacing: 1px;
}

.brand p {
  font-size: 12px;
  color: #8ea4c2;
  margin-top: 2px;
}

.brand-cube {
  width: 44px;
  height: 44px;
  position: relative;
  transform-style: preserve-3d;
  animation: miniSpin 5s linear infinite;
}

.brand-cube span {
  position: absolute;
  inset: 7px;
  border: 2px solid #44f7ff;
  box-shadow: 0 0 22px rgba(68, 247, 255, 0.75);
}

.brand-cube span:nth-child(1) { transform: rotateX(0deg) rotateY(0deg); }
.brand-cube span:nth-child(2) { transform: rotateX(60deg) rotateY(30deg); }
.brand-cube span:nth-child(3) { transform: rotateX(-60deg) rotateY(-30deg); }

@keyframes miniSpin {
  from { transform: rotateX(0) rotateY(0); }
  to { transform: rotateX(360deg) rotateY(360deg); }
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #c7d7ef;
  text-decoration: none;
  font-size: 14px;
  transition: color .25s ease, text-shadow .25s ease, transform .25s ease;
}

.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(85, 247, 255, 0.8);
  transform: translateY(-2px);
}

.menu-toggle,
.nav-btn,
.primary-btn,
.ghost-btn,
.lightbox-close {
  border: 0;
  cursor: pointer;
  color: white;
  font-weight: 800;
  letter-spacing: 0.4px;
  border-radius: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), opacity .35s var(--ease);
  font-family: inherit;
}

.menu-toggle {
  display: none;
  font-size: 22px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.07);
  color: var(--text);
}

.nav-btn {
  padding: 12px 18px;
  background: linear-gradient(135deg, #00f0ff, #7c3cff);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.28);
}

.nav-btn:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 40px;
  padding: 80px 0 60px;
}

.hero-left {
  transform-style: preserve-3d;
}

.badge {
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(0, 255, 204, 0.35);
  border-radius: 999px;
  background: rgba(0, 255, 204, 0.08);
  color: #a8fff2;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.1);
}

.dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--green);
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -4px;
  font-weight: 900;
}

.hero h1 span,
.vision-card blockquote {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #4dfcff, #a66cff, #00ff99);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(77, 252, 255, 0.24));
}

.hero p {
  margin-top: 24px;
  max-width: 660px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 17px;
}

.hero p b {
  color: var(--cyan);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-btn {
  padding: 16px 24px;
  background: linear-gradient(135deg, #00eaff, #6f38ff);
  box-shadow: 0 0 34px rgba(0, 240, 255, 0.24);
}

.ghost-btn {
  padding: 16px 24px;
  color: #dffcff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(180, 250, 255, 0.2);
}

.stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 14px;
  max-width: 560px;
}

.stats div,
.timeline-content,
.stack-line,
.profile-card,
.about-card,
.vision-card,
.summary-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
}

.stats div {
  padding: 18px;
  border-radius: 20px;
}

.stats strong {
  display: block;
  font-size: 26px;
}

.stats small {
  display: block;
  margin-top: 6px;
  color: #8496b5;
}

.hero-right {
  min-height: 560px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.hologram {
  position: relative;
  width: min(520px, 92vw);
  height: min(520px, 92vw);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(92, 246, 255, 0.32);
  box-shadow:
    inset 0 0 35px rgba(0, 255, 255, 0.09),
    0 0 28px rgba(0, 255, 255, 0.12);
}

.orbit-1 {
  width: 88%;
  height: 88%;
  transform: rotateX(72deg) rotateZ(20deg);
  animation: orbitSpin 8s linear infinite;
}

.orbit-2 {
  width: 70%;
  height: 70%;
  transform: rotateY(70deg) rotateZ(-30deg);
  animation: orbitSpin 10s linear infinite reverse;
}

.orbit-3 {
  width: 54%;
  height: 54%;
  transform: rotateX(35deg) rotateY(50deg);
  animation: orbitSpin 7s linear infinite;
}

@keyframes orbitSpin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

.cube-wrap {
  width: 190px;
  height: 190px;
  transform-style: preserve-3d;
  animation: floatCube 4s ease-in-out infinite;
}

@keyframes floatCube {
  0%, 100% { transform: translateY(0px) rotateX(-15deg) rotateY(25deg); }
  50% { transform: translateY(-24px) rotateX(15deg) rotateY(55deg); }
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeSpin 9s linear infinite;
}

@keyframes cubeSpin {
  from { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  to { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #eaffff;
  border: 1px solid rgba(0, 255, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(0, 255, 255, 0.17), rgba(124, 60, 255, 0.16)),
    rgba(5, 10, 30, 0.55);
  box-shadow:
    inset 0 0 34px rgba(0, 255, 255, 0.22),
    0 0 34px rgba(0, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.front { transform: translateZ(95px); }
.back { transform: rotateY(180deg) translateZ(95px); }
.right { transform: rotateY(90deg) translateZ(95px); }
.left { transform: rotateY(-90deg) translateZ(95px); }
.top { transform: rotateX(90deg) translateZ(95px); }
.bottom { transform: rotateX(-90deg) translateZ(95px); }

.platform {
  position: absolute;
  bottom: 70px;
  width: 280px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,255,0.45), rgba(124,60,255,0.12), transparent 70%);
  filter: blur(4px);
  transform: rotateX(78deg);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; scale: 0.95; }
  50% { opacity: 0.9; scale: 1.08; }
}

.glass-section,
.projects,
.timeline-section,
.stack,
.vision-section,
.profile-section,
.terminal-box,
.expertise-section {
  margin: 76px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title p {
  color: #44f7ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title h2 {
  margin-top: 8px;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -2px;
}

.about-grid,
.expertise-grid,
.profile-grid,
.achievement-showcase,
.interest-grid {
  display: grid;
  gap: 22px;
}

.about-grid {
  grid-template-columns: 1.25fr 0.75fr;
}

.about-card,
.vision-card {
  padding: 34px;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
}

.about-card p,
.vision-card p {
  color: #aebdda;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-card b,
.profile-card a:hover {
  color: var(--cyan);
}

.about-card span,
.profile-card span {
  color: #b986ff;
}

.summary-card,
.tilt-card,
.profile-card,
.expertise-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--card-border);
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035));
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
}

.summary-card,
.expertise-card {
  padding: 28px;
}

.tilt-card:hover,
.summary-card:hover,
.profile-card:hover,
.expertise-card:hover {
  border-color: rgba(0, 255, 255, 0.46);
  box-shadow: 0 28px 80px rgba(0, 255, 255, 0.10);
}

.card-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -50px;
  right: -50px;
  background: radial-gradient(circle, rgba(0,255,255,0.42), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.mini-label,
.achievement-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  color: #8cecff;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.summary-list {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 14px;
  color: #cfe1ff;
  line-height: 1.7;
}

.summary-list strong {
  color: #ffffff;
}

.card-grid {
  perspective: 1200px;
}

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

.tilt-card {
  min-height: 330px;
  padding: 28px;
}

.icon {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  font-weight: 900;
  color: #02050d;
  background: linear-gradient(135deg, #52f7ff, #00ff99);
  box-shadow: 0 0 32px rgba(0,255,255,0.24);
  transform: translateZ(45px);
}

.tilt-card h3,
.expertise-card h3,
.achievement-card h3,
.timeline-content h3,
.profile-card h3 {
  position: relative;
  margin-top: 24px;
  font-size: 25px;
}

.tilt-card ul,
.expertise-card ul {
  position: relative;
  margin-top: 16px;
  padding-left: 18px;
  color: #9badc7;
  line-height: 1.8;
}

.tilt-card span {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: #7fffee;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

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

.achievement-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
}

.achievement-image {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
}

.achievement-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}

.achievement-card:hover .achievement-image img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.achievement-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-content p,
.timeline-content p,
.profile-card p,
.profile-card a,
.expertise-card p {
  color: var(--muted);
  line-height: 1.8;
}

.achievement-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.achievement-tags span {
  position: static;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.18);
  color: #dffcff;
  font-size: 12px;
}

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

.expertise-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.expertise-head p {
  margin-top: 8px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #00f0ff, #7c3cff, #00ff99);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.45);
}

.timeline-item {
  position: relative;
  padding-left: 58px;
}

.timeline-dot {
  position: absolute;
  left: 7px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00ffbf;
  box-shadow: 0 0 25px #00ffbf;
}

.timeline-content {
  padding: 26px;
  border-radius: 24px;
}

.stack-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px;
  border-radius: 26px;
}

.stack-line span {
  padding: 13px 18px;
  border-radius: 999px;
  color: #dffcff;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.18);
  font-family: "JetBrains Mono", monospace;
  transition: transform .35s var(--ease), color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.stack-line span:hover {
  transform: translateY(-5px);
  color: #02050d;
  background: #54f7ff;
  box-shadow: 0 0 30px rgba(84, 247, 255, 0.35);
}

.vision-card {
  text-align: center;
}

.vision-card blockquote {
  margin-top: 24px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -1px;
}

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

.profile-card {
  padding: 24px;
  border-radius: 24px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.profile-card h3 {
  margin-top: 0;
  color: #55f7ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.profile-card a {
  text-decoration: none;
  word-break: break-word;
}

.terminal-box {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 180, 0.22);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 60px rgba(0,255,180,0.1);
  margin-bottom: 90px;
}

.terminal-top {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  color: #a7b7d2;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.lights {
  display: flex;
  gap: 8px;
}

.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.lights i:nth-child(1) { background: #ff4d6d; }
.lights i:nth-child(2) { background: #ffd166; }
.lights i:nth-child(3) { background: #06d6a0; }

.terminal-body {
  padding: 24px;
  font-family: "JetBrains Mono", monospace;
  min-height: 260px;
}

.terminal-body p {
  margin-bottom: 12px;
  color: #dcecff;
}

.terminal-body b { color: #00ffbf; }
.green { color: #69ffcf !important; }
.blue { color: #59ddff !important; }
.purple { color: #b986ff !important; }
.typing { color: #b986ff !important; }

.typing::after {
  content: "|";
  color: #52f7ff;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  filter: blur(6px);
}

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

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 15, 0.88);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
  z-index: 60;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 20px 80px rgba(0,0,0,0.35);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 1080px) {
  .about-grid,
  .expertise-grid,
  .achievement-showcase,
  .profile-grid,
  .interest-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding-top: 6px;
  }

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

  .nav-btn {
    display: none;
  }

  .about-grid,
  .expertise-grid,
  .achievement-showcase,
  .profile-grid,
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    letter-spacing: -2px;
  }
}

@media (max-width: 520px) {
  .site {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .about-card,
  .vision-card,
  .summary-card,
  .tilt-card,
  .profile-card,
  .expertise-card {
    padding: 22px;
  }

  .tilt-card {
    min-height: auto;
    padding-bottom: 70px;
  }

  .achievement-image img {
    aspect-ratio: 4 / 3;
  }

  .section-title h2 {
    letter-spacing: -1px;
  }
}


/* Final polish: fixed-anchor offset, smoother glide, active menu state, rating section */
html {
  scroll-padding-top: 150px;
}

section,
#about,
#achievements,
#expertise,
#experience,
#contact,
#rating,
#home {
  scroll-margin-top: 150px;
}

.nav.scrolled {
  background: rgba(7, 12, 28, 0.76);
  border-color: rgba(85, 247, 255, 0.38);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 0 35px rgba(85, 247, 255, 0.14);
}

.nav-links a {
  position: relative;
  padding: 9px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00f0ff, #7c3cff, #00ff99);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  box-shadow: 0 0 18px rgba(85, 247, 255, 0.65);
}

.nav-links a.active {
  color: #7fffee;
}

.hero-left,
.hero-right,
.about-card,
.summary-card,
.achievement-card,
.expertise-card,
.timeline-content,
.profile-card,
.vision-card,
.rating-card,
.terminal-box {
  animation-timing-function: var(--ease);
}

.reveal {
  transform: translateY(58px) scale(0.965);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease), filter 1.05s var(--ease);
}

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

.achievement-card,
.expertise-card,
.profile-card,
.summary-card,
.rating-card {
  isolation: isolate;
}

.achievement-card::before,
.expertise-card::before,
.profile-card::before,
.summary-card::before,
.rating-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 0%, rgba(85, 247, 255, 0.22) 35%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
  pointer-events: none;
  z-index: -1;
}

.achievement-card:hover::before,
.expertise-card:hover::before,
.profile-card:hover::before,
.summary-card:hover::before,
.rating-card:hover::before {
  transform: translateX(120%);
}

.rating-section {
  margin: 76px 0;
}

.rating-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 28px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(180, 250, 255, 0.17);
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035));
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
}

.rating-orb {
  position: absolute;
  right: -60px;
  top: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85,247,255,.48), rgba(124,60,255,.16), transparent 68%);
  filter: blur(4px);
  animation: ratingOrb 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ratingOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.95); opacity: .55; }
  50% { transform: translate3d(-24px, 22px, 0) scale(1.08); opacity: .9; }
}

.rating-card p {
  max-width: 650px;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0;
}

.rating-stars button {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(180, 250, 255, 0.22);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  font-size: 32px;
  cursor: pointer;
  transition: transform .32s var(--ease), color .32s var(--ease), background .32s var(--ease), box-shadow .32s var(--ease);
}

.rating-stars button:hover,
.rating-stars button.hovered,
.rating-stars button.selected {
  color: #ffe66d;
  background: rgba(255, 230, 109, 0.10);
  box-shadow: 0 0 28px rgba(255, 230, 109, 0.23);
  transform: translateY(-6px) scale(1.05);
}

.rating-result {
  font-family: "JetBrains Mono", monospace;
  color: #7fffee;
  letter-spacing: .8px;
}

@media (max-width: 860px) {
  html,
  section,
  #about,
  #achievements,
  #expertise,
  #experience,
  #contact,
  #rating,
  #home {
    scroll-padding-top: 125px;
    scroll-margin-top: 125px;
  }

  .nav-links a {
    padding: 12px 0;
  }
}

@media (max-width: 520px) {
  .rating-stars {
    gap: 7px;
  }

  .rating-stars button {
    width: 48px;
    height: 48px;
    font-size: 28px;
    border-radius: 14px;
  }
}
