/* ===== Tokens ===== */
:root {
  --bg: #05070e;
  --bg-2: #080c17;
  --text: #e8eef8;
  --muted: #93a4bd;
  --muted-2: #6c7d97;
  --cyan: #38bdf8;
  --cyan-2: #22d3ee;
  --violet: #8b5cf6;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.035);
  --card-hov: rgba(255, 255, 255, 0.06);
  --glow: rgba(56, 189, 248, 0.5);
  --max: 1120px;
  --r: 16px;
}

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

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

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, #0d1830 0%, transparent 60%),
              radial-gradient(900px 600px at 0% 10%, #120a26 0%, transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main, header, footer { position: relative; z-index: 1; }

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

/* ===== Nav ===== */
#nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(7, 11, 21, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.brand-mark {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #bfe2ff, var(--cyan));
  box-shadow: 0 0 14px var(--glow);
}
.brand-name { font-size: 15px; }

.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  border: none; background: none; cursor: pointer;
  color: var(--muted);
  font: 600 12px "Inter", sans-serif;
  padding: 5px 11px;
  border-radius: 999px;
  transition: .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
  color: #04121e;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 0 12px var(--glow);
}

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 14vh, 150px) 22px clamp(40px, 8vh, 90px);
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-photo { position: relative; display: flex; justify-content: center; }
.hero-photo::before {
  content: ""; position: absolute; z-index: -1;
  width: 76%; height: 70%; top: 16%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.20), transparent 70%);
  filter: blur(44px);
}
.hero-photo img {
  width: 100%; max-width: 340px; aspect-ratio: 3 / 4;
  object-fit: cover; object-position: 50% 30%;
  border-radius: 22px;
  -webkit-mask-image: radial-gradient(135% 135% at 50% 42%, #000 70%, transparent 106%);
  mask-image: radial-gradient(135% 135% at 50% 42%, #000 70%, transparent 106%);
  filter: drop-shadow(0 26px 52px rgba(0, 0, 0, 0.8));
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 230px; }
}
.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan-2); box-shadow: 0 0 10px var(--cyan-2);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-name {
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1.5px;
  background: linear-gradient(120deg, #ffffff 30%, #9ec5ff 70%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-role {
  margin-top: 16px;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 600;
  color: #cbd9ee;
}
.hero-sub {
  margin-top: 14px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
}

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 12px;
  cursor: pointer; transition: .22s; border: 1px solid transparent;
}
.btn-primary {
  color: #04121e;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 8px 30px -8px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px var(--glow); }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--card); }
.btn-ghost:hover { background: var(--card-hov); border-color: rgba(56,189,248,.4); transform: translateY(-2px); }

.hero-meta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500;
  color: #cdd9ec;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px;
  transition: .2s;
}
.chip:hover { border-color: rgba(56,189,248,.45); color: #fff; background: var(--card-hov); }
.chip-ic { width: 17px; height: 17px; color: var(--cyan); flex: none; }
.chip-stat { cursor: default; }
.view-count { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.view-label { color: var(--muted); }

.scroll-hint {
  align-self: center; margin-top: 50px;
  width: 24px; height: 38px; border: 2px solid var(--line); border-radius: 14px;
  position: relative;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 7px; border-radius: 3px;
  background: var(--cyan); transform: translateX(-50%);
  animation: scrolldot 1.7s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 100% { opacity: 0; top: 20px; } }

/* ===== Sections ===== */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 10vh, 100px) 22px; }
.section-head { margin-bottom: 38px; }
.kicker {
  display: inline-block; font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 1px; color: var(--cyan);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; letter-spacing: -.5px;
}
.section-sub { margin-top: 12px; color: var(--muted); max-width: 560px; }
.about-body {
  font-size: clamp(16px, 2.1vw, 19px); color: #c4d1e6; max-width: 820px; line-height: 1.75;
}

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), transparent);
}
.tl-item { position: relative; padding: 0 0 38px 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -28px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(56,189,248,.12);
}
.tl-dot--live { background: var(--cyan); animation: pulse 1.6s infinite; }
.tl-period {
  font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--cyan-2);
  letter-spacing: .3px;
}
.tl-role { font-size: 19px; font-weight: 700; margin-top: 6px; }
.tl-org { color: var(--muted); font-size: 14px; margin-top: 3px; }
.tl-bullets { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.tl-bullets li {
  position: relative; padding-left: 20px; color: #c2d0e6; font-size: 15px;
}
.tl-bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

/* ===== Skills ===== */
.skills-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.skill-group {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
}
.skill-group h3 {
  font-size: 14px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 16px;
}
.skill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.skill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 11px; padding: 7px 13px 7px 7px;
  transition: .2s;
}
.skill:hover { transform: translateY(-2px); border-color: rgba(56,189,248,.4); background: var(--card-hov); }
.skill-ic {
  width: 30px; height: 30px; border-radius: 8px;
  background: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.skill-ic img { width: 19px; height: 19px; }
.skill-ic svg { width: 20px; height: 20px; }
.skill-ic--mono {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff; font-weight: 800; font-size: 15px;
}
.skill-name { font-size: 14px; font-weight: 500; color: #d7e2f2; }

/* ===== Capability cards ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.4); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }
.card-media {
  background: radial-gradient(120% 120% at 50% 0%, #0f1828, #070b14);
  padding: 18px; border-bottom: 1px solid var(--line-2);
}
.card-media img { width: 100%; height: auto; border-radius: 10px; display: block; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 19px; font-weight: 700; }
.card-body p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.card-tags span {
  font-size: 12px; font-weight: 600; color: var(--cyan-2);
  background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.22);
  padding: 4px 10px; border-radius: 999px;
}

/* ===== Services & pricing ===== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 22px 20px; transition: .25s;
}
.price-card:hover {
  transform: translateY(-4px); border-color: rgba(56,189,248,.4);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.7);
}
.price-head { display: flex; align-items: center; gap: 12px; }
.price-ic {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(56,189,248,.08); border: 1px solid var(--line);
}
.price-ic img { width: 22px; height: 22px; }
.price-ic.skill-ic--mono { font-weight: 800; color: var(--cyan-2); }
.price-title { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.price-desc { margin-top: 14px; color: var(--muted); font-size: 14px; flex: 1; }
.price-value {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2);
  display: flex; align-items: baseline; gap: 8px;
}
.price-from { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .5px; }
.price-amount {
  font-size: 24px; font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.price-amount--custom { font-size: 18px; }
.svc-note { margin-top: 22px; text-align: center; color: var(--muted-2); font-size: 13.5px; }
.svc-cta-wrap { margin-top: 22px; display: flex; justify-content: center; }

/* project card links */
.card-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.card-link {
  font-size: 13px; font-weight: 600; color: var(--cyan-2);
  border: 1px solid rgba(56,189,248,.3); background: rgba(56,189,248,.08);
  padding: 6px 14px; border-radius: 999px; transition: .2s;
}
.card-link:hover { background: rgba(56,189,248,.18); border-color: rgba(56,189,248,.5); transform: translateY(-1px); }

/* ===== System feature (OrionDB Pro) ===== */
.system-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center;
  background: linear-gradient(135deg, rgba(56,189,248,.06), rgba(139,92,246,.05));
  border: 1px solid var(--line); border-radius: 22px; padding: 30px;
}
.system-art img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 26px 60px -28px rgba(0,0,0,.8); }
.system-title { display: flex; align-items: center; gap: 12px; }
.system-logo {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #bfe2ff, var(--cyan-2));
  box-shadow: 0 0 18px var(--glow); flex: none;
}
.system-title h3 { font-size: 28px; font-weight: 800; }
.accent { color: var(--cyan); }
.system-tag { margin-top: 10px; font-size: 16px; font-weight: 600; color: #cbd9ee; }
.system-desc { margin-top: 12px; color: var(--muted); }
.system-feats { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.system-feats li {
  position: relative; padding-left: 26px; color: #c8d5e9; font-size: 14.5px;
}
.system-feats li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--cyan-2); font-weight: 800;
}
.system-note {
  margin-top: 18px; font-size: 13px; color: var(--muted-2); font-style: italic;
  border-left: 2px solid var(--line); padding-left: 12px;
}

/* ===== Goals ===== */
.goals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.goal {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; padding: 18px 20px; transition: .2s;
}
.goal:hover { border-color: rgba(56,189,248,.4); transform: translateY(-2px); }
.goal-num {
  font-family: "JetBrains Mono", monospace; font-size: 14px; font-weight: 700;
  color: var(--cyan); flex: none;
}
.goal span:last-child { color: #d2deef; font-size: 15px; }

/* ===== Contact ===== */
.section-contact { display: flex; justify-content: center; }
.contact-card {
  width: 100%; max-width: 720px; text-align: center;
  background: linear-gradient(135deg, rgba(56,189,248,.08), rgba(139,92,246,.06));
  border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(34px, 6vw, 56px);
}
.contact-card h2 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; }
.contact-card p { margin-top: 10px; color: var(--muted); }
.contact-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  padding: 13px 22px; border-radius: 12px; transition: .2s;
}
.contact-link:hover { transform: translateY(-2px); border-color: rgba(56,189,248,.5); background: var(--card-hov); }

/* ===== Footer ===== */
.footer {
  max-width: var(--max); margin: 0 auto;
  padding: 30px 22px 50px; text-align: center;
  color: var(--muted-2); font-size: 13px;
  display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--line-2);
}
.footer-dot { opacity: .5; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .skills-wrap, .cards, .goals-grid { grid-template-columns: 1fr; }
  .system-feature { grid-template-columns: 1fr; }
  .system-art { order: -1; }
}
@media (max-width: 600px) {
  .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(7,11,21,.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 15px 24px; border-bottom: 1px solid var(--line-2); }
  .nav-links a::after { display: none; }
  .nav-burger { display: flex; }
}

/* ===== Personal note ===== */
.note {
  margin-top: 26px; max-width: 760px;
  background: linear-gradient(135deg, rgba(56,189,248,.07), rgba(139,92,246,.05));
  border: 1px solid var(--line); border-left: 3px solid var(--cyan);
  border-radius: 14px; padding: 20px 24px;
}
.note-label {
  display: inline-block; font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: .5px; color: var(--cyan); margin-bottom: 8px;
}
.note p { color: #d4e0f0; font-size: 15.5px; line-height: 1.7; }

/* ===== Education ===== */
.edu-card {
  display: flex; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; max-width: 760px;
}
.edu-icon {
  width: 54px; height: 54px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(139,92,246,.16));
  border: 1px solid var(--line);
}
.edu-icon svg { width: 28px; height: 28px; color: var(--cyan); }
.edu-period { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--cyan-2); }
.edu-uni { font-size: 19px; font-weight: 700; margin-top: 4px; }
.edu-status { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* ===== Certificates carousel ===== */
.cert-carousel { position: relative; }
.cert-viewport { overflow: hidden; padding: 22px 0 6px; }
.cert-track {
  position: relative; display: flex; gap: 26px;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.cert-card {
  flex: 0 0 auto; width: clamp(258px, 74vw, 440px);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; cursor: pointer;
  opacity: .38; transform: scale(.82);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .5s, box-shadow .4s, border-color .3s;
}
.cert-card.active {
  opacity: 1; transform: scale(1);
  border-color: rgba(56,189,248,.5);
  box-shadow: 0 30px 70px -26px rgba(0,0,0,.85), 0 0 48px -14px var(--glow);
}
.cert-media {
  display: block; aspect-ratio: 1.42 / 1;
  background: radial-gradient(120% 120% at 50% 0%, #0f1828, #060a12);
  border-bottom: 1px solid var(--line-2); padding: 10px;
}
.cert-media img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.cert-body { padding: 16px 20px 20px; }
.cert-body h3 { font-size: 17px; font-weight: 700; transition: text-shadow .3s, color .3s; }
.cert-card.active .cert-body h3 { text-shadow: 0 0 18px rgba(56,189,248,.55); color: #eaf6ff; }
.cert-meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.cert-view {
  display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--cyan-2);
}
.cert-view:hover { text-decoration: underline; text-shadow: 0 0 12px var(--glow); }
.cert-nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(12,18,32,.82); border: 1px solid var(--line);
  color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(6px); transition: .2s;
}
.cert-nav:hover { border-color: rgba(56,189,248,.55); color: var(--cyan); box-shadow: 0 0 26px -6px var(--glow); }
.cert-prev { left: 4px; }
.cert-next { right: 4px; }
.cert-dots { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.cert-dot { width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; background: var(--line); transition: .25s; padding: 0; }
.cert-dot.on { background: var(--cyan); box-shadow: 0 0 12px var(--glow); transform: scale(1.25); }
.cert-carousel.single .cert-nav, .cert-carousel.single .cert-dots { display: none; }
.cert-carousel.single .cert-track { justify-content: center; }
.cert-carousel.single .cert-card {
  opacity: 1; transform: none;
  border-color: rgba(56,189,248,.5);
  box-shadow: 0 30px 70px -26px rgba(0,0,0,.85), 0 0 48px -14px var(--glow);
}

/* ===== Stats (animated) ===== */
.stats-section { padding-top: 0; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-tile {
  text-align: center; padding: 26px 16px;
  background: linear-gradient(160deg, rgba(56,189,248,.06), rgba(139,92,246,.04));
  border: 1px solid var(--line); border-radius: 16px; transition: .25s;
}
.stat-tile:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.4); box-shadow: 0 0 36px -12px var(--glow); }
.stat-num {
  font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, #fff, var(--cyan-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 0 18px rgba(56,189,248,.32));
}
.stat-label { margin-top: 10px; color: var(--muted); font-size: 13.5px; font-weight: 500; }

/* ===== Skills radar ===== */
.skill-radar-wrap { text-align: center; margin-bottom: 42px; }
.skill-radar-title {
  font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--cyan); margin-bottom: 8px; font-weight: 700;
}
.radar-svg { width: 100%; max-width: 340px; height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1; }
.radar-axis { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.radar-label { fill: #cdd9ec; font-size: 11px; font-weight: 600; }
.radar-area {
  fill: rgba(56,189,248,.22); stroke: var(--cyan); stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(56,189,248,.5));
  transform-box: fill-box; transform-origin: center;
  animation: radarIn 1s cubic-bezier(.22,.61,.36,1) both;
}
.radar-dot { fill: var(--cyan-2); filter: drop-shadow(0 0 6px var(--cyan-2)); }
@keyframes radarIn { from { transform: scale(.05); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== Glow: matnlar hover'da "ichidan yonadi" (neon) ===== */
.hero-name { filter: drop-shadow(0 0 26px rgba(56,189,248,.28)); transition: filter .4s; cursor: default; }
.hero-name:hover { filter: drop-shadow(0 0 10px rgba(56,189,248,.8)) drop-shadow(0 0 38px rgba(56,189,248,.55)); }

.section-head h2 { transition: text-shadow .35s, color .35s; cursor: default; }
.section-head h2:hover { color: #fff; text-shadow: 0 0 8px rgba(56,189,248,.95), 0 0 30px rgba(56,189,248,.6); }

.card-body h3, .price-title, .cert-body h3, .tl-role, .skill-name, .goal span:last-child {
  transition: text-shadow .3s, color .3s;
}
.card:hover .card-body h3,
.price-card:hover .price-title,
.cert-card.active .cert-body h3,
.tl-item:hover .tl-role,
.goal:hover span:last-child {
  color: #eaf6ff;
  text-shadow: 0 0 7px rgba(56,189,248,.9), 0 0 24px rgba(56,189,248,.55);
}
.skill:hover .skill-name,
.chip:hover,
.nav-links a:hover,
.contact-link:hover span { color: #fff; text-shadow: 0 0 10px rgba(56,189,248,.75); }
.hero-role:hover { text-shadow: 0 0 20px rgba(56,189,248,.5); }

/* hover box glow */
.card:hover, .price-card:hover { box-shadow: 0 26px 56px -24px rgba(0,0,0,.75), 0 0 42px -14px var(--glow); }
.skill:hover { box-shadow: 0 0 22px -8px var(--glow); }
.goal:hover { box-shadow: 0 0 26px -10px var(--glow); }
.chip:hover { box-shadow: 0 0 20px -8px var(--glow); }
.system-feature { transition: box-shadow .35s, border-color .3s; }
.system-feature:hover { box-shadow: 0 0 54px -18px var(--glow); border-color: rgba(56,189,248,.4); }

/* ===== Admin trigger ===== */
.admin-trigger {
  background: none; border: 1px solid var(--line-2); cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: var(--muted-2); opacity: .5; transition: .2s; margin-left: 6px;
}
.admin-trigger:hover { opacity: 1; color: var(--cyan); border-color: rgba(56,189,248,.4); }
.admin-trigger svg { width: 15px; height: 15px; }

/* ===== Admin modal ===== */
.admin-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3,6,12,.72); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 20px;
}
.admin-overlay[hidden] { display: none; }
.admin-modal {
  position: relative; width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, #0c1322, #0a0f1b);
  border: 1px solid var(--line); border-radius: 20px; padding: 30px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
}
.admin-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; transition: .2s;
}
.admin-close:hover { color: #fff; }
.admin-login h3, .admin-panel h3 { font-size: 20px; font-weight: 700; }
.admin-hint { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }
.admin-err { color: #ff7a7a; font-size: 13px; margin-top: 10px; min-height: 16px; }
.admin-saved { color: #4ade80; font-size: 13px; margin-left: 10px; }

.admin-modal input[type="text"],
.admin-modal input[type="password"],
.admin-modal textarea {
  width: 100%; background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px;
  font: inherit; font-size: 14px; margin-bottom: 12px; resize: vertical;
}
.admin-modal input:focus, .admin-modal textarea:focus {
  outline: none; border-color: rgba(56,189,248,.55);
}
.admin-modal input[type="file"] {
  width: 100%; color: var(--muted); font-size: 13px; margin-bottom: 12px;
}
.admin-label { display: block; font-size: 13px; font-weight: 600; color: #cdd9ec; margin-bottom: 8px; }

.admin-tabs { display: flex; gap: 6px; margin: 18px 0 20px; flex-wrap: wrap; }
.admin-tabs button {
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  font: 600 13px "Inter", sans-serif; padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: .2s;
}
.admin-tabs button:hover { color: var(--text); }
.admin-tabs button.active {
  color: #04121e; background: linear-gradient(135deg, var(--cyan), var(--cyan-2)); border-color: transparent;
}
.admin-list { margin-bottom: 18px; display: grid; gap: 8px; }
.admin-empty { color: var(--muted-2); font-size: 13px; font-style: italic; }
.admin-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
}
.admin-item span { font-size: 14px; color: #d7e2f2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-del {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #ff8a8a;
  font: 600 12px "Inter", sans-serif; padding: 6px 12px; border-radius: 8px; cursor: pointer; flex: none; transition: .2s;
}
.admin-del:hover { background: rgba(239,68,68,.22); }
.admin-form { border-top: 1px solid var(--line-2); padding-top: 18px; }
.admin-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-row .btn { font-size: 13px; padding: 10px 16px; cursor: pointer; }
.btn-danger { color: #ff8a8a; border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.1); }
.btn-danger:hover { background: rgba(239,68,68,.2); transform: translateY(-2px); }

@media (max-width: 860px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .edu-card { flex-direction: column; align-items: flex-start; }
  .admin-modal { padding: 22px; }
}
