/* ═══════════════════════════════════════════════
   Variables
═══════════════════════════════════════════════ */
:root {
  --bg:          #080c12;
  --bg-2:        #0d1117;
  --bg-3:        #111820;
  --glass:       rgba(255,255,255,0.04);
  --glass-border:rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.07);
  --accent:      #4f9dff;
  --accent-2:    #b185ff;
  --accent-3:    #3dbd70;
  --accent-glow: rgba(79,157,255,0.25);
  --gold:        #ffd700;
  --silver:      #c0c0c0;
  --bronze:      #cd7f32;
  --text-1:      #f0f6fc;
  --text-2:      #8b949e;
  --text-3:      #484f58;
  --border:      rgba(255,255,255,0.07);
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(79,157,255,0.15);
  --font:        'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════════════════════════════════════
   Reset & Base
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ═══════════════════════════════════════════════
   Scroll Progress
═══════════════════════════════════════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 9999;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent);
}

/* ═══════════════════════════════════════════════
   Custom Cursor
═══════════════════════════════════════════════ */
.cursor {
  position: fixed; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s, width 0.2s, height 0.2s;
  box-shadow: 0 0 12px var(--accent);
}
.cursor-trail {
  position: fixed; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(79,157,255,0.4); pointer-events: none; z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease), opacity 0.2s;
}
body:hover .cursor-trail { opacity: 1; }
a:hover ~ .cursor, button:hover ~ .cursor { transform: translate(-50%,-50%) scale(2.5); background: var(--accent-2); }

/* ═══════════════════════════════════════════════
   Utilities
═══════════════════════════════════════════════ */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(79,157,255,0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.7rem;
  border-radius: 20px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.06); color: var(--text-2);
  white-space: nowrap;
}
.badge--live {
  background: rgba(61,189,112,0.12); color: var(--accent-3);
  border-color: rgba(61,189,112,0.25);
}
.badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3); animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.tech-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 500;
  padding: 0.16rem 0.55rem; border-radius: 4px;
  background: rgba(79,157,255,0.1); color: var(--accent);
  border: 1px solid rgba(79,157,255,0.18);
  transition: background 0.2s, color 0.2s;
}
.tech-tag:hover { background: rgba(79,157,255,0.2); }

.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 500;
  padding: 0.25rem 0.75rem; border-radius: 20px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-2);
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: all 0.25s var(--ease);
}
.btn--primary {
  background: var(--accent); color: #080c12; border-color: var(--accent);
}
.btn--primary:hover {
  background: #79c0ff; border-color: #79c0ff; color: #080c12;
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(79,157,255,0.4);
}
.btn__shine {
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine { 0%,100%{left:-100%} 50%{left:150%} }
.btn--ghost {
  background: transparent; color: var(--text-1);
  border-color: var(--glass-border);
}
.btn--ghost:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px); background: rgba(79,157,255,0.06);
}

/* ═══════════════════════════════════════════════
   Header
═══════════════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(8,12,18,0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.scrolled { border-bottom-color: var(--border); background: rgba(8,12,18,0.95); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.nav__logo {
  font-family: var(--mono); font-size: 1.2rem; font-weight: 600;
  color: var(--text-1); letter-spacing: -0.02em;
  transition: color 0.2s;
}
.nav__logo:hover { color: var(--accent); }
.nav__logo-bracket { color: var(--accent); }

.nav__list { display: flex; align-items: center; gap: 0.15rem; }
.nav__link {
  font-size: 0.85rem; font-weight: 500; color: var(--text-2);
  padding: 0.45rem 0.85rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text-1); background: var(--glass); }
.nav__link.active { color: var(--accent); }
.nav__link--cta {
  background: rgba(79,157,255,0.1); color: var(--accent);
  border: 1px solid rgba(79,157,255,0.2); margin-left: 0.5rem;
}
.nav__link--cta:hover { background: var(--accent); color: #080c12; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: all 0.3s; }

/* ═══════════════════════════════════════════════
   Section Base
═══════════════════════════════════════════════ */
.section { padding: 7rem 0; }
.section--dark { background: var(--bg-2); }

.section__header { text-align: center; margin-bottom: 3.5rem; }
.section__tag-wrap { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.85rem; }
.section__number { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); }
.section__tag {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.2rem 0.7rem; border-radius: 20px;
  background: rgba(79,157,255,0.08); border: 1px solid rgba(79,157,255,0.15);
}
.section__title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15; color: var(--text-1);
}
.section__subtitle { margin-top: 0.9rem; font-size: 1rem; color: var(--text-2); max-width: 480px; margin-left: auto; margin-right: auto; }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}

.hero__canvas { position: absolute; inset: 0; z-index: 0; }
.hero__noise {
  position: absolute; inset: 0; z-index: 1; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.hero__gradient-orb {
  position: absolute; border-radius: 50%; filter: blur(120px);
  pointer-events: none; z-index: 0;
}
.hero__gradient-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,157,255,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero__gradient-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(177,133,255,0.1) 0%, transparent 70%);
  bottom: -150px; left: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat { 0%,100%{transform:translate(0,0)} 33%{transform:translate(30px,-20px)} 66%{transform:translate(-20px,30px)} }

.hero__content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  padding-top: 80px; padding-bottom: 5rem;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; color: var(--accent-3); font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3); animation: pulseDot 2s infinite;
}

.hero__title {
  font-size: clamp(2.8rem, 6.5vw, 4.5rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 1.1rem;
}
.hero__title-line { display: block; }
.hero__title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: gradMove 4s linear infinite;
}
@keyframes gradMove { to { background-position: 200% center; } }

.hero__role-wrapper {
  font-family: var(--mono); font-size: 1.05rem; color: var(--text-2);
  margin-bottom: 1.4rem; min-height: 1.8rem;
  display: flex; align-items: center; gap: 0.1rem;
}
.hero__role-prefix { color: var(--accent-3); margin-right: 0.1rem; }
.hero__role { color: var(--accent); font-weight: 500; }
.hero__cursor-blink { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero__desc { font-size: 1rem; color: var(--text-2); line-height: 1.8; max-width: 450px; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__socials { display: flex; gap: 0.75rem; }
.hero__social {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-2); transition: all 0.2s;
}
.hero__social:hover { color: var(--accent); border-color: rgba(79,157,255,0.3); background: rgba(79,157,255,0.08); transform: translateY(-2px); }

/* Hero Visual */
.hero__visual { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.hero__avatar-wrap { position: relative; width: 320px; height: 320px; display: flex; align-items: center; justify-content: center; }

.hero__avatar { position: relative; width: 130px; height: 130px; display: flex; align-items: center; justify-content: center; }
.hero__avatar-inner {
  width: 130px; height: 130px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(79,157,255,0.15), rgba(177,133,255,0.15));
  border: 2px solid rgba(79,157,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 2.2rem; font-weight: 700;
  background-clip: text; color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  position: relative; z-index: 2;
  filter: drop-shadow(0 0 20px rgba(79,157,255,0.4));
}

.hero__ring { position: absolute; top: 50%; left: 50%; }
.hero__ring--1 { width: 180px; height: 180px; margin: -90px 0 0 -90px; animation: spin 12s linear infinite; }
.hero__ring--2 { width: 240px; height: 240px; margin: -120px 0 0 -120px; animation: spin 18s linear infinite reverse; }
.hero__ring--3 { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation: spin 25s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Orbit items */
.hero__orbit { position: absolute; inset: 0; }
.hero__orbit-item {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 8px 12px; font-size: 0.7rem;
  color: var(--text-2); font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all 0.3s; cursor: default;
}
.hero__orbit-item:hover { border-color: rgba(79,157,255,0.3); color: var(--accent); transform: scale(1.05); }
.hero__orbit-label { font-size: 0.65rem; }
.hero__orbit-item--1 { top: 5px; left: 50%; transform: translateX(-50%); animation: orbitFloat1 4s ease-in-out infinite; }
.hero__orbit-item--2 { right: 8px; top: 50%; transform: translateY(-50%); animation: orbitFloat2 4.5s ease-in-out infinite; }
.hero__orbit-item--3 { bottom: 5px; left: 50%; transform: translateX(-50%); animation: orbitFloat3 4s ease-in-out infinite; }
.hero__orbit-item--4 { left: 8px; top: 50%; transform: translateY(-50%); animation: orbitFloat4 4.5s ease-in-out infinite; }
@keyframes orbitFloat1 { 0%,100%{top:5px} 50%{top:0px} }
@keyframes orbitFloat2 { 0%,100%{right:8px} 50%{right:4px} }
@keyframes orbitFloat3 { 0%,100%{bottom:5px} 50%{bottom:0px} }
@keyframes orbitFloat4 { 0%,100%{left:8px} 50%{left:4px} }

.hero__mini-cards { display: flex; gap: 0.75rem; }
.hero__mini-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 0.7rem 1rem;
  backdrop-filter: blur(8px); transition: all 0.3s;
  animation: cardFloat 5s ease-in-out infinite;
}
.hero__mini-card:hover { border-color: rgba(79,157,255,0.3); transform: translateY(-4px) !important; }
.hero__mini-card--2 { animation-delay: 2.5s; }
.hero__mini-card-icon { font-size: 1.4rem; }
.hero__mini-card-title { font-size: 0.85rem; font-weight: 700; color: var(--text-1); }
.hero__mini-card-sub { font-size: 0.7rem; color: var(--text-2); }
@keyframes cardFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-3); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  z-index: 2;
}
.hero__scroll-mouse {
  width: 22px; height: 34px; border: 1.5px solid var(--text-3);
  border-radius: 11px; display: flex; justify-content: center; padding-top: 6px;
}
.hero__scroll-wheel {
  width: 3px; height: 8px; background: var(--text-3); border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(10px);opacity:0} }

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
.about__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.about__text-col p { color: var(--text-2); margin-bottom: 1.1rem; font-size: 0.975rem; line-height: 1.85; }
.about__text-col p:last-of-type { margin-bottom: 1.5rem; }
.about__lead { font-size: 1.1rem !important; color: var(--text-1) !important; }
.about__text-col strong { color: var(--text-1); }

.about__tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.about__tag {
  font-size: 0.8rem; font-weight: 500; padding: 0.3rem 0.8rem;
  border-radius: 6px; background: var(--glass);
  border: 1px solid var(--glass-border); color: var(--text-2);
  transition: all 0.2s;
}
.about__tag:hover { border-color: rgba(79,157,255,0.3); color: var(--accent); background: rgba(79,157,255,0.06); }

.about__stats-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.stat-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 1.4rem;
  text-align: center; transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(79,157,255,0.04), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover { border-color: rgba(79,157,255,0.2); transform: translateY(-3px); box-shadow: var(--shadow-glow); }

.stat-card__number {
  font-family: var(--mono); font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.stat-card__number--sm { font-size: 1.6rem; }
.stat-card__unit { font-size: 0.7rem; color: var(--text-3); font-weight: 500; margin: 0.15rem 0 0.4rem; }
.stat-card__label { font-size: 0.75rem; color: var(--text-2); line-height: 1.3; margin-bottom: 0.85rem; }
.stat-card__bar { height: 2px; background: var(--glass); border-radius: 2px; overflow: hidden; }
.stat-card__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; transition: width 1.2s var(--ease); }
.stat-card.counted .stat-card__fill { width: var(--w); }

/* ═══════════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════════ */
.timeline { position: relative; padding-left: 2.5rem; max-width: 820px; margin: 0 auto; }
.timeline__track {
  position: absolute; left: 7px; top: 16px; bottom: 16px; width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(79,157,255,0.1) 100%);
  border-radius: 2px;
}

.timeline__item { position: relative; margin-bottom: 2.25rem; }
.timeline__item:last-child { margin-bottom: 0; }

.timeline__node { position: absolute; left: -2.5rem; top: 20px; }
.timeline__node-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-2);
  box-shadow: 0 0 0 2px var(--accent), 0 0 16px rgba(79,157,255,0.5);
  position: relative; z-index: 2;
}
.timeline__node-pulse {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(79,157,255,0.3);
  animation: nodePulse 2s ease-out infinite;
}
@keyframes nodePulse { 0%{transform:translate(-50%,-50%) scale(1);opacity:1} 100%{transform:translate(-50%,-50%) scale(2.5);opacity:0} }
.timeline__node--dim .timeline__node-dot { background: var(--text-3); box-shadow: 0 0 0 2px var(--text-3); }

.timeline__card { padding: 1.75rem; }
.timeline__card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.timeline__title { font-size: 1.1rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.3rem; }
.timeline__company { font-size: 0.875rem; color: var(--accent); font-weight: 500; display: block; }
.timeline__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.timeline__list { margin-bottom: 1.25rem; }
.timeline__list li { font-size: 0.875rem; color: var(--text-2); padding: 0.28rem 0 0.28rem 1.2rem; position: relative; line-height: 1.65; }
.timeline__list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: 0.7rem; top: 0.35rem; }
.timeline__list li strong { color: var(--text-1); }
.timeline__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ═══════════════════════════════════════════════
   ACHIEVEMENTS
═══════════════════════════════════════════════ */
.achievements__layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }

.achievement-main { padding: 2rem; }
.achievement-main__head { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.75rem; }
.achievement-main__trophy { font-size: 2.5rem; flex-shrink: 0; filter: drop-shadow(0 0 12px rgba(255,215,0,0.4)); }
.achievement-main__title { font-size: 1.1rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.35rem; }
.achievement-main__sub { font-size: 0.8rem; color: var(--text-2); margin-bottom: 0.5rem; }
.achievement-main__link { font-size: 0.75rem; color: var(--accent); transition: color 0.2s; }
.achievement-main__link:hover { color: var(--accent-2); text-decoration: underline; }

.results-list { display: flex; flex-direction: column; gap: 0.55rem; }
.result-row {
  display: grid; grid-template-columns: 44px 1fr 80px 56px;
  align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid transparent;
  transition: all 0.25s;
}
.result-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(79,157,255,0.15); }

.result-rank { font-family: var(--mono); font-size: 1rem; font-weight: 800; text-align: center; }
.result-rank--gold { color: var(--gold); text-shadow: 0 0 8px rgba(255,215,0,0.4); }
.result-rank--silver { color: var(--silver); }
.result-rank--bronze { color: var(--bronze); }

.result-info { display: flex; flex-direction: column; min-width: 0; }
.result-cat { font-size: 0.85rem; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-sponsor { font-size: 0.72rem; color: var(--text-2); }

.result-bar-wrap { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.result-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; transition: width 1.4s var(--ease); }
.achievement-main.in-view .result-bar { width: var(--fill); }

.result-badge { font-size: 0.65rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 3px; background: rgba(79,157,255,0.1); color: var(--accent); text-align: center; }

/* TDK Card */
.tdk-card { padding: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tdk-card__medal-wrap { margin-bottom: 1.25rem; }
.tdk-card__medal-svg { filter: drop-shadow(0 0 16px rgba(255,215,0,0.3)); }
.tdk-card__title { font-size: 1.1rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.35rem; }
.tdk-card__school { font-size: 0.875rem; color: var(--accent); font-weight: 500; margin-bottom: 0.25rem; }
.tdk-card__date { font-size: 0.8rem; color: var(--text-2); margin-bottom: 1rem; }
.tdk-card__otdk {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.9rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  background: rgba(61,189,112,0.1); color: var(--accent-3); border: 1px solid rgba(61,189,112,0.2);
  margin-bottom: 1rem;
}
.tdk-card__desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; margin-bottom: 0.85rem; }
.tdk-card__consultant { font-size: 0.8rem; color: var(--text-2); }
.tdk-card__consultant strong { color: var(--text-1); }

/* ═══════════════════════════════════════════════
   EDUCATION
═══════════════════════════════════════════════ */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 800px; margin: 0 auto; }

.edu-card { padding: 2rem; position: relative; overflow: hidden; }
.edu-card__badge-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.edu-card__type { font-size: 0.72rem; color: var(--text-3); }
.edu-card__year-tag { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }
.edu-card__degree { font-size: 1.1rem; font-weight: 700; color: var(--text-1); line-height: 1.3; margin-bottom: 0.4rem; }
.edu-card__school { font-size: 0.875rem; color: var(--accent); font-weight: 500; margin-bottom: 1.1rem; }
.edu-card__pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.edu-pill { font-size: 0.72rem; font-weight: 500; padding: 0.18rem 0.6rem; border-radius: 4px; background: rgba(79,157,255,0.08); color: var(--text-2); border: 1px solid rgba(79,157,255,0.12); }
.edu-card__bg-icon { position: absolute; bottom: 1.25rem; right: 1.25rem; font-size: 3rem; opacity: 0.08; }

/* ═══════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════ */
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }

.skill-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.skill-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(79,157,255,0.06), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.skill-card:hover::after { opacity: 1; }
.skill-card:hover { border-color: rgba(79,157,255,0.25); transform: translateY(-4px); box-shadow: var(--shadow-glow); }

.skill-card__ring-wrap { margin-bottom: 1rem; }
.skill-ring { display: block; overflow: visible; }
.skill-ring__bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 6; }
.skill-ring__fill {
  fill: none; stroke: url(#skillGrad); stroke-width: 6;
  stroke-linecap: round; transform-origin: 40px 40px; transform: rotate(-90deg);
  stroke-dasharray: 201; stroke-dashoffset: 201;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.skill-card.in-view .skill-ring__fill { stroke-dashoffset: var(--dash-offset, 201); }
.skill-ring__label { fill: var(--text-1); font-size: 9px; font-weight: 700; font-family: var(--mono); }

.skill-card__icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.skill-card__title { font-size: 0.975rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.4rem; }
.skill-card__desc { font-size: 0.825rem; color: var(--text-2); line-height: 1.6; margin-bottom: 0.85rem; }
.skill-card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* SVG gradient for skill rings */
body::after {
  content: '';
  display: block;
  position: absolute;
  width: 0; height: 0;
}

.sport-banner {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.5rem 2rem;
  position: relative; overflow: hidden;
  transition: all 0.3s;
}
.sport-banner:hover { border-color: rgba(79,157,255,0.2); }
.sport-banner__icon { font-size: 2.5rem; flex-shrink: 0; }
.sport-banner__text h3 { font-size: 0.975rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.25rem; }
.sport-banner__text p { font-size: 0.85rem; color: var(--text-2); }
.sport-banner__shine {
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79,157,255,0.04), transparent);
  animation: bannerShine 6s ease-in-out infinite;
}
@keyframes bannerShine { 0%,100%{left:-100%} 50%{left:150%} }

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact__row { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }

.contact-card {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.6rem 2.25rem;
  color: var(--text-1); min-width: 280px;
  position: relative; overflow: hidden; transition: all 0.3s var(--ease);
}
.contact-card:hover {
  border-color: rgba(79,157,255,0.35); transform: translateY(-4px);
  box-shadow: var(--shadow-glow); color: var(--text-1);
}
.contact-card__glow {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(79,157,255,0.08), rgba(177,133,255,0.04));
  opacity: 0; transition: opacity 0.3s;
}
.contact-card:hover .contact-card__glow { opacity: 1; }
.contact-card__icon { color: var(--accent); position: relative; z-index: 1; flex-shrink: 0; }
.contact-card__body { display: flex; flex-direction: column; gap: 0.2rem; position: relative; z-index: 1; }
.contact-card__label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.contact-card__value { font-size: 1rem; font-weight: 600; color: var(--text-1); }
.contact-card__arrow { margin-left: auto; font-size: 1.2rem; color: var(--text-3); transition: all 0.25s; position: relative; z-index: 1; }
.contact-card:hover .contact-card__arrow { color: var(--accent); transform: translateX(4px); }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2rem 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer__logo { font-family: var(--mono); font-size: 1rem; color: var(--accent); }
.footer__copy, .footer__built { font-size: 0.78rem; color: var(--text-3); }

/* ═══════════════════════════════════════════════
   Mobile
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; gap: 3rem; text-align: center; padding-top: 100px; }
  .hero__text { order: 1; }
  .hero__visual { order: 2; }
  .hero__desc, .hero__actions, .hero__socials { max-width: 100%; justify-content: center; }
  .hero__socials { justify-content: center; }
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .achievements__layout { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 40px 1fr; }
  .result-bar-wrap, .result-badge { display: none; }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 5rem 0; }
  body { cursor: auto; }
  .cursor, .cursor-trail { display: none; }

  .nav__list {
    display: none; position: fixed;
    top: 66px; left: 0; right: 0;
    background: rgba(8,12,18,0.97); backdrop-filter: blur(20px);
    flex-direction: column; padding: 1rem;
    border-bottom: 1px solid var(--border); gap: 0.25rem;
  }
  .nav__list.open { display: flex; }
  .nav__link { display: block; text-align: center; padding: 0.7rem; }
  .nav__toggle { display: flex; }

  .skills__grid { grid-template-columns: 1fr 1fr; }
  .about__stats-col { grid-template-columns: 1fr 1fr; }
  .contact-card { min-width: 100%; }
  .contact__row { flex-direction: column; }
  .hero__mini-cards { flex-direction: column; width: 100%; max-width: 240px; }
  .hero__avatar-wrap { width: 260px; height: 260px; }
  .hero__ring--3 { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

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