:root {
  --background-deep: #020203;
  --background-base: #050506;
  --background-elevated: #0a0a0c;
  --surface: rgba(255, 255, 255, .03);
  --surface-hover: rgba(255, 255, 255, .07);
  --foreground: #EDEDEF;
  --foreground-muted: #8A8F98;
  --accent: #5E6AD2;
  --accent-bright: #6872D9;
  --accent-subtle: rgba(94, 106, 210, .08);
  --accent-glow: rgba(94, 106, 210, .10);
  --border-default: rgba(255, 255, 255, .04);
  --border-hover: rgba(255, 255, 255, .08);
  --border-accent: rgba(94, 106, 210, .18);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --max-w: 1120px;
  --font: "Vazirmatn", "Inter", system-ui, sans-serif;
  --shadow-card: 
    0 0 0 1px rgba(255,255,255,.02),
    0 6px 24px rgba(0,0,0,.45),
    0 0 48px rgba(0,0,0,.08);
  --shadow-card-hover: 
    0 0 0 1px rgba(255,255,255,.05),
    0 16px 44px rgba(0,0,0,.55),
    0 0 80px rgba(94,106,210,.04);
  --shadow-soft: 0 10px 36px rgba(0,0,0,.28);
  --transition: cubic-bezier(.22, 1, .36, 1);
  --transition-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font);
  line-height: 1.75;
  background: radial-gradient(ellipse at 30% 0%, #0a0a12 0%, var(--background-base) 50%, var(--background-deep) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  letter-spacing: -0.002em;
}

body[dir="ltr"] { font-family: "Inter", system-ui, sans-serif; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .018;
  background-image: 
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: -2;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   AMBIENT — REFINED
   ============================================================ */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.bg-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .025;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  animation: orbFloat 14s ease-in-out infinite;
  will-change: transform;
}

.orb:nth-child(1) {
  width: 750px;
  height: 750px;
  top: -30%;
  left: 10%;
  background: rgba(94, 106, 210, .13);
}

.orb:nth-child(2) {
  width: 550px;
  height: 550px;
  top: 35%;
  left: -18%;
  background: rgba(120, 82, 180, .07);
  filter: blur(140px);
  animation-delay: -4s;
}

.orb:nth-child(3) {
  width: 650px;
  height: 650px;
  right: -12%;
  bottom: 5%;
  background: rgba(66, 90, 190, .07);
  filter: blur(130px);
  animation-delay: -7s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(40px, -35px, 0) scale(1.03); }
  66% { transform: translate3d(-25px, 25px, 0) scale(0.97); }
}

/* ============================================================
   SCROLLBAR — REFINED
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--background-deep); }
::-webkit-scrollbar-thumb { background: #2a2b42; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3d3e5e; }

/* ============================================================
   HEADER — REFINED GLASS
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-default);
  background: rgba(5, 5, 6, .50);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  transition: background .5s var(--transition), border-color .5s var(--transition);
}

.site-header.scrolled {
  background: rgba(5, 5, 6, .75);
  border-bottom-color: var(--border-hover);
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.025em;
}

.brand .dot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: url("logo.png") center / cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 28px rgba(233,176,92,.25);
  transition: transform .5s var(--transition-bounce), box-shadow .4s var(--transition);
}

.brand:hover .dot { 
  transform: rotate(-6deg) scale(1.04);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 0 36px rgba(233,176,92,.35);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--foreground-muted);
  font-size: .875rem;
  font-weight: 500;
  transition: color .35s var(--transition);
  position: relative;
  padding: 4px 2px;
  letter-spacing: -0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 4px;
  transition: width .45s var(--transition);
  box-shadow: 0 0 16px var(--accent-glow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-toggle,
.nav-toggle,
.theme-toggle {
  border: 1px solid var(--border-default);
  background: var(--surface);
  color: var(--foreground-muted);
  border-radius: var(--radius-sm);
  transition: all .3s var(--transition);
}

.lang-toggle {
  padding: 5px 13px;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.lang-toggle:hover,
.nav-toggle:hover,
.theme-toggle:hover {
  border-color: var(--border-accent);
  color: var(--foreground);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.theme-toggle:hover { transform: rotate(15deg) scale(1.04); }

/* ============================================================
   SECTIONS — REFINED SPACING
   ============================================================ */
section {
  padding: 96px 0;
  border-top: 1px solid var(--border-default);
}

section:first-of-type { border-top: 0; }

/* ============================================================
   HERO — REFINED TYPOGRAPHY & DEPTH
   ============================================================ */
.hero {
  min-height: 84vh;
  padding: 108px 0 76px;
  border-top: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 30%, rgba(94,106,210,.035), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1 1 540px;
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b8bfff;
  background: rgba(94, 106, 210, .07);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  padding: 5px 16px 5px 18px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
}

.eyebrow .pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -.05em;
  margin: 22px 0 12px;
  font-weight: 700;
  background: linear-gradient(170deg, #fff 28%, rgba(255,255,255,.50));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .accent-name {
  background: linear-gradient(105deg, #b8bfff, #5E6AD2, #9a8aff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.typewriter {
  min-height: 2.2em;
  color: #b8bfff;
  font-size: 1.1rem;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.typewriter .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-inline-start: 3px;
  vertical-align: middle;
  animation: blink .8s step-end infinite;
  border-radius: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero p {
  color: var(--foreground-muted);
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 2;
  margin-top: 6px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ============================================================
   BUTTONS — REFINED
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: .875rem;
  font-weight: 600;
  transition: all .4s var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.12) 45%, transparent 65%);
  transform: translateX(-150%);
  transition: transform .7s var(--transition);
}

.btn:hover::before { transform: translateX(150%); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 
    0 0 0 1px rgba(94, 106, 210, .40),
    0 6px 20px rgba(94, 106, 210, .20),
    inset 0 1px rgba(255,255,255,.12);
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-3px);
  box-shadow: 
    0 0 0 1px rgba(94, 106, 210, .55),
    0 12px 32px rgba(94, 106, 210, .25);
}

.btn-secondary {
  background: var(--surface);
  color: var(--foreground);
  border-color: var(--border-default);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   HERO AVATAR — REFINED
   ============================================================ */
.hero-avatar {
  width: 260px;
  height: 260px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border: 1px solid var(--border-hover);
  box-shadow: 
    0 0 0 1px rgba(255,255,255,.025),
    0 24px 64px rgba(0,0,0,.50),
    0 0 100px rgba(94,106,210,.06);
  font-size: 5rem;
  color: #b8bfff;
  animation: avatarFloat 7s ease-in-out infinite;
}

.hero-avatar::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent, rgba(94,106,210,.20), transparent 35%, rgba(94,106,210,.08), transparent 70%);
  animation: spin 12s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-avatar::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 26px;
  background: linear-gradient(145deg, #11111a, #070709);
}

.hero-avatar img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  border-radius: 22px;
  z-index: 1;
  filter: saturate(1.04) contrast(1.02);
  transition: transform .7s var(--transition), filter .6s var(--transition);
}

.hero-avatar:hover {
  animation-play-state: paused;
  box-shadow: 
    0 0 0 1px rgba(255,255,255,.06),
    0 28px 72px rgba(0,0,0,.55),
    0 0 120px rgba(94,106,210,.10);
}

.hero-avatar:hover img {
  transform: scale(1.04) rotate(0.6deg);
  filter: saturate(1.12) contrast(1.04);
}

.hero-avatar span {
  position: relative;
  z-index: 1;
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px) rotate(0.4deg); }
}

/* ============================================================
   SECTION HEADERS — REFINED
   ============================================================ */
.section-head {
  margin-bottom: 44px;
  max-width: 680px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b8bfff;
  background: rgba(94, 106, 210, .07);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  padding: 4px 16px 4px 18px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.section-tag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.15), transparent 70%);
  transform: translateX(-130%);
  animation: tagSweep 5.5s ease-in-out infinite;
}

@keyframes tagSweep {
  0%, 72% { transform: translateX(-130%); }
  85%, 100% { transform: translateX(130%); }
}

.section-tag .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.04em;
  margin: 16px 0 10px;
  background: linear-gradient(170deg, #fff 28%, rgba(255,255,255,.48));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.section-head p {
  color: var(--foreground-muted);
  font-size: 1rem;
  line-height: 1.9;
  max-width: 540px;
}

/* ============================================================
   GRIDS — REFINED
   ============================================================ */
.stats-grid,
.skills-grid,
.focus-grid,
.contact-grid {
  display: grid;
  gap: 14px;
}

.stats-grid { grid-template-columns: repeat(4, 1fr); }
.skills-grid { grid-template-columns: repeat(3, 1fr); }
.focus-grid { grid-template-columns: repeat(4, 1fr); }
.contact-grid { grid-template-columns: repeat(2, 1fr); }

/* ============================================================
   CARDS — REFINED GLASS WITH DEPTH
   ============================================================ */
.stat-card,
.skill-card,
.focus-card,
.contact-card,
.project-card,
.about-preview,
.timeline-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all .45s var(--transition);
}

.stat-card::before,
.skill-card::before,
.focus-card::before,
.project-card::before,
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(94,106,210,.07), transparent 65%);
  opacity: 0;
  transition: opacity .5s var(--transition);
}

.stat-card:hover::before,
.skill-card:hover::before,
.focus-card:hover::before,
.project-card:hover::before,
.contact-card:hover::before { opacity: 1; }

.stat-card:hover,
.skill-card:hover,
.focus-card:hover,
.project-card:hover,
.contact-card:hover,
.timeline-item:hover,
.about-preview:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

/* ---- Stats — Refined ---- */
.stat-card {
  padding: 26px 18px;
  text-align: center;
  border-radius: var(--radius);
}

.stat-card .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #b8bfff;
  text-shadow: 0 0 48px rgba(174,181,255,.10);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stat-card .label {
  color: var(--foreground-muted);
  font-size: .78rem;
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: .01em;
}

/* ---- Skill & Focus — Refined ---- */
.skill-card,
.focus-card {
  padding: 26px 22px;
  border-radius: var(--radius);
}

.skill-card .icon,
.focus-card .icon {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.skill-card h3,
.focus-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.skill-card p,
.focus-card p {
  margin: 0;
  color: var(--foreground-muted);
  font-size: .84rem;
  line-height: 1.8;
}

/* ---- Projects — Refined ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.project-card {
  grid-column: span 6;
  padding: 26px 24px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:nth-child(3),
.project-card:nth-child(4) { grid-column: span 6; }

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.project-date {
  font-size: .68rem;
  color: var(--foreground-muted);
  background: var(--surface);
  padding: 2px 12px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid var(--border-default);
  font-weight: 500;
  letter-spacing: .02em;
}

.project-card p {
  margin: 0;
  color: var(--foreground-muted);
  font-size: .87rem;
  line-height: 1.8;
}

.project-card ul {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--foreground-muted);
  font-size: .8rem;
  line-height: 2.1;
}

.project-card ul li::marker {
  color: var(--accent);
}

.tech-tags,
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.tech-tags span,
.tags-row span {
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: rgba(94, 106, 210, .05);
  color: #b8bfff;
  font-size: .68rem;
  font-weight: 500;
  transition: all .3s var(--transition);
  letter-spacing: .01em;
}

.tech-tags span:hover,
.tags-row span:hover {
  background: rgba(94, 106, 210, .12);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.project-link {
  color: #b8bfff;
  font-size: .8rem;
  font-weight: 600;
  transition: color .35s var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.005em;
}

.project-link:hover { color: #fff; }

/* ---- Contact — Refined ---- */
.contact-card {
  padding: 18px 22px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-card .icon {
  font-size: 1.35rem;
  color: #b8bfff;
  flex-shrink: 0;
}

.contact-card .label {
  font-size: .68rem;
  color: var(--foreground-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-card .value {
  font-size: .88rem;
  font-weight: 600;
  word-break: break-word;
  letter-spacing: -0.01em;
}

/* ---- Timeline — Refined ---- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-item {
  padding: 22px 26px;
  border-radius: var(--radius);
}

.timeline-item::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  bottom: 10px;
  width: 2.5px;
  border-radius: 4px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-item h3 {
  margin: 0 0 2px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.timeline-item .sub {
  display: block;
  color: #b8bfff;
  font-size: .76rem;
  font-weight: 500;
  margin-bottom: 5px;
  letter-spacing: .01em;
}

.timeline-item p {
  margin: 0;
  color: var(--foreground-muted);
  font-size: .85rem;
  line-height: 1.8;
}

/* ---- About Preview — Refined ---- */
.about-preview {
  padding: 30px 28px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.about-preview h3 {
  margin: 0 0 5px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about-preview p {
  margin: 0;
  color: var(--foreground-muted);
  max-width: 540px;
  font-size: .9rem;
  line-height: 1.8;
}

/* ---- About Hero — Refined ---- */
.about-hero {
  text-align: center;
  padding: 76px 0 28px;
  border-top: 0;
}

.about-hero .hero-avatar { margin: 0 auto 26px; }

.about-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin: 0 0 10px;
  background: linear-gradient(170deg, #fff 28%, rgba(255,255,255,.48));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.about-hero p {
  color: var(--foreground-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.04rem;
  line-height: 2;
}

/* ============================================================
   DONATION BANNER — REFINED
   ============================================================ */
.donation-banner-wrapper {
  padding: 1.5px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(94,106,210,.30), transparent 45%, rgba(150,120,220,.18));
  box-shadow: 0 0 80px rgba(94,106,210,.05);
}

.donation-banner {
  padding: 36px 34px;
  border-radius: calc(var(--radius-lg) - 1.5px);
  background: rgba(10, 10, 14, .92);
  position: relative;
  overflow: hidden;
}

.donation-banner::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  right: -100px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,106,210,.10), transparent 70%);
  animation: donationGlow 7s ease-in-out infinite;
}

@keyframes donationGlow {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: .5; }
  50% { transform: scale(1.25) translate(15px, -15px); opacity: 1; }
}

.donation-banner::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 24px var(--accent);
  opacity: .40;
}

.donation-title {
  margin: 12px 0 8px;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.donation-title .highlight {
  color: #b8bfff;
}

.donation-sub {
  color: var(--foreground-muted);
  max-width: 500px;
  font-size: .96rem;
  line-height: 1.8;
}

.donation-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  box-shadow: 0 0 0 1px rgba(94,106,210,.40), 0 8px 24px rgba(94,106,210,.18);
  transition: all .4s var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.005em;
}

.donate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.12), transparent 65%);
  transform: translateX(-150%);
  transition: transform .7s var(--transition);
}

.donate-btn:hover::before { transform: translateX(150%); }
.donate-btn:hover {
  transform: translateY(-3px);
  background: var(--accent-bright);
  box-shadow: 0 0 0 1px rgba(94,106,210,.55), 0 12px 32px rgba(94,106,210,.22);
}

.donate-message {
  color: var(--foreground-muted);
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   ICONS — REFINED
   ============================================================ */
.icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #c8cdff;
  background: linear-gradient(145deg, rgba(94, 106, 210, .15), rgba(94, 106, 210, .025));
  border: 1px solid rgba(174, 181, 255, .10);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 20px rgba(94,106,210,.06);
  transition: all .45s var(--transition);
}

.icon-svg {
  width: 24px;
  height: 24px;
}

.skill-card:nth-child(2) .icon,
.focus-card:nth-child(2) .icon {
  color: #6ed4b8;
  background: linear-gradient(145deg, rgba(48,210,170,.15), rgba(48,210,170,.015));
  border-color: rgba(48,210,170,.10);
}

.skill-card:nth-child(3) .icon,
.focus-card:nth-child(3) .icon {
  color: #f592c8;
  background: linear-gradient(145deg, rgba(238,100,177,.15), rgba(238,100,177,.015));
  border-color: rgba(238,100,177,.10);
}

.skill-card:nth-child(4) .icon,
.focus-card:nth-child(4) .icon {
  color: #f5c06a;
  background: linear-gradient(145deg, rgba(245,171,72,.15), rgba(245,171,72,.015));
  border-color: rgba(245,171,72,.10);
}

.skill-card:hover .icon,
.focus-card:hover .icon,
.contact-card:hover .icon {
  transform: translateY(-3px) scale(1.04);
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 12px 28px rgba(94,106,210,.16);
}

.contact-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.donate-btn .icon {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

/* ============================================================
   REVEAL ANIMATIONS — REFINED
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: all .8s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .05s; }
.reveal-delay-2 { transition-delay: .10s; }
.reveal-delay-3 { transition-delay: .15s; }
.reveal-delay-4 { transition-delay: .20s; }

.reveal.visible {
  animation: revealPop .7s var(--transition) both;
}

@keyframes revealPop {
  0% { opacity: 0; transform: translateY(28px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   CURSOR GLOW — REFINED
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  background: radial-gradient(550px circle at var(--cursor-x, 50%) var(--cursor-y, 20%), rgba(94,106,210,.05), transparent 74%);
  mix-blend-mode: screen;
  transition: background .5s var(--transition);
}

.cursor-glow {
  position: fixed;
  z-index: 29;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(174, 181, 255, .30);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 40px rgba(94, 106, 210, .08), inset 0 0 40px rgba(94, 106, 210, .015);
  transition: all .55s var(--transition);
  will-change: transform, width, height;
}

.cursor-glow.is-hover {
  width: 54px;
  height: 54px;
  background: rgba(94, 106, 210, .035);
  border-color: rgba(174, 181, 255, .45);
  box-shadow: 0 0 60px rgba(94, 106, 210, .10);
}

/* ============================================================
   PARTICLES — REFINED
   ============================================================ */
.particle-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(174, 181, 255, .25);
  box-shadow: 0 0 10px rgba(94, 106, 210, .06);
  opacity: 0;
  animation: particleDrift var(--duration) linear infinite;
  animation-delay: var(--delay);
}

@keyframes particleDrift {
  0% { transform: translate3d(0, 20px, 0) scale(.3); opacity: 0; }
  12% { opacity: .35; }
  78% { opacity: .12; }
  100% { transform: translate3d(var(--drift), -100vh, 0) scale(1); opacity: 0; }
}

/* ============================================================
   FOOTER — REFINED
   ============================================================ */
footer {
  padding: 36px 0;
  border-top: 1px solid var(--border-default);
  color: var(--foreground-muted);
  font-size: .76rem;
  text-align: center;
  letter-spacing: .01em;
}

/* ============================================================
   RESPONSIVE — REFINED
   ============================================================ */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4) { grid-column: span 6; }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-avatar { width: 200px; height: 200px; }
  .hero-inner { gap: 36px; }
  section { padding: 80px 0; }
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 28px;
    background: rgba(5, 5, 6, .96);
    backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--border-default);
    transform: translateY(-120%);
    transition: transform .45s var(--transition);
    gap: 14px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }

  .hero {
    padding: 72px 0 56px;
    min-height: auto;
  }
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero p { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-avatar { width: 160px; height: 160px; font-size: 3rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-card,
  .project-card:nth-child(n) { grid-column: span 12; }

  .about-preview {
    flex-direction: column;
    text-align: center;
  }
  .about-preview p { max-width: 100%; }

  .donation-banner { padding: 26px 20px; }
  .donate-btn { width: 100%; justify-content: center; }
  section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-avatar { width: 130px; height: 130px; }
  .project-card { padding: 18px; }
  .timeline-item { padding: 16px 18px; }
  .donation-banner { padding: 22px 16px; }
  .about-preview { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .cursor-glow,
  body::after,
  .particle-field { display: none !important; }
  .hero-avatar { animation: none; }
}

/* ============================================================
   LIGHT MODE — REFINED WITH PRECISION
   ============================================================ */
html[data-theme="light"] {
  --background-deep: #c2cad6;
  --background-base: #d7dde8;
  --background-elevated: #e9edf4;
  --surface: rgba(255, 255, 255, .58);
  --surface-hover: rgba(255, 255, 255, .78);
  --foreground: #1a232e;
  --foreground-muted: #4a5668;
  --accent: #5246c4;
  --accent-bright: #675adb;
  --accent-subtle: rgba(82, 70, 196, .06);
  --accent-glow: rgba(82, 70, 196, .08);
  --border-default: rgba(163, 177, 198, .22);
  --border-hover: rgba(82, 70, 196, .28);
  --border-accent: rgba(82, 70, 196, .32);
  --shadow-card: 
    5px 5px 16px rgba(163, 177, 198, .38),
    -5px -5px 16px rgba(255, 255, 255, .68);
  --shadow-card-hover: 
    9px 9px 22px rgba(163, 177, 198, .48),
    -9px -9px 22px rgba(255, 255, 255, .78);
  --shadow-soft: 0 10px 36px rgba(163, 177, 198, .18);
}

html[data-theme="light"] body {
  background: var(--background-base);
  color: var(--foreground);
}

html[data-theme="light"] body::before {
  opacity: .05;
  background-image:
    linear-gradient(rgba(80, 90, 110, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 90, 110, .06) 1px, transparent 1px);
}

html[data-theme="light"] body::after {
  background: radial-gradient(550px circle at var(--cursor-x, 50%) var(--cursor-y, 20%), rgba(82, 70, 196, .035), transparent 76%);
}

html[data-theme="light"] .bg-ambient .orb {
  opacity: .30;
  filter: blur(150px);
}
html[data-theme="light"] .bg-ambient .orb:nth-child(1) { background: rgba(82, 70, 196, .10); }
html[data-theme="light"] .bg-ambient .orb:nth-child(2) { background: rgba(56, 178, 172, .08); }
html[data-theme="light"] .bg-ambient .orb:nth-child(3) { background: rgba(255, 170, 210, .08); }

html[data-theme="light"] .site-header {
  background: rgba(215, 221, 232, .75);
  border-bottom-color: rgba(163, 177, 198, .22);
}
html[data-theme="light"] .site-header.scrolled {
  background: rgba(215, 221, 232, .90);
}

html[data-theme="light"] .nav-links a { color: #4a5668; }
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active { color: var(--foreground); }
html[data-theme="light"] .nav-links a::after { background: var(--accent); }

html[data-theme="light"] .hero h1,
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .about-hero h1 {
  background: linear-gradient(170deg, #1a232e, #4a5668);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="light"] .hero h1 .accent-name {
  background: linear-gradient(105deg, #7568dc, #5246c4, #8777e4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="light"] .hero-avatar {
  background: linear-gradient(145deg, rgba(255,255,255,.48), rgba(200,210,225,.22));
  border-color: rgba(163, 177, 198, .32);
  box-shadow: 
    0 0 0 1px rgba(255,255,255,.18),
    0 24px 64px rgba(163, 177, 198, .28),
    0 0 100px rgba(82, 70, 196, .03);
}

html[data-theme="light"] .hero-avatar::after {
  background: linear-gradient(145deg, #dce1ea, #cdd3de);
}

html[data-theme="light"] .hero-avatar img {
  mix-blend-mode: multiply;
  filter: saturate(.82) contrast(.90);
}

html[data-theme="light"] .hero-avatar:hover img {
  filter: saturate(.95) contrast(.94);
}

html[data-theme="light"] .stat-card,
html[data-theme="light"] .skill-card,
html[data-theme="light"] .focus-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .about-preview,
html[data-theme="light"] .timeline-item {
  background: var(--background-elevated);
  border-color: rgba(163, 177, 198, .15);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(4px);
}

html[data-theme="light"] .stat-card:hover,
html[data-theme="light"] .skill-card:hover,
html[data-theme="light"] .focus-card:hover,
html[data-theme="light"] .project-card:hover,
html[data-theme="light"] .contact-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(82, 70, 196, .18);
}

html[data-theme="light"] .stat-card .number {
  color: var(--accent);
  text-shadow: 0 0 50px rgba(82, 70, 196, .06);
}

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .section-tag {
  color: var(--accent);
  background: rgba(82, 70, 196, .05);
  border-color: rgba(82, 70, 196, .14);
}

html[data-theme="light"] .section-tag::after {
  background: linear-gradient(105deg, transparent 30%, rgba(82, 70, 196, .08), transparent 70%);
}

html[data-theme="light"] .tech-tags span,
html[data-theme="light"] .tags-row span {
  color: var(--accent);
  background: rgba(82, 70, 196, .035);
  border-color: rgba(82, 70, 196, .12);
}

html[data-theme="light"] .tech-tags span:hover,
html[data-theme="light"] .tags-row span:hover {
  background: rgba(82, 70, 196, .08);
}

html[data-theme="light"] .project-link { color: var(--accent); }
html[data-theme="light"] .project-link:hover { color: var(--foreground); }
html[data-theme="light"] .project-card ul li::marker { color: var(--accent); }

html[data-theme="light"] .donation-banner {
  background: rgba(215, 221, 232, .90);
  color: var(--foreground);
}
html[data-theme="light"] .donation-banner-wrapper {
  box-shadow: 0 10px 36px rgba(163, 177, 198, .16);
}
html[data-theme="light"] .donation-banner::before {
  background: radial-gradient(circle, rgba(82, 70, 196, .06), transparent 70%);
}
html[data-theme="light"] .donation-banner::after {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 24px var(--accent);
}
html[data-theme="light"] .donation-sub,
html[data-theme="light"] .donate-message {
  color: var(--foreground-muted);
}
html[data-theme="light"] .donation-title .highlight {
  color: var(--accent);
}

html[data-theme="light"] .btn-secondary {
  color: var(--foreground);
  background: var(--background-elevated);
  box-shadow: 3px 3px 10px rgba(163, 177, 198, .32), -3px -3px 10px rgba(255, 255, 255, .60);
  border-color: rgba(163, 177, 198, .10);
}
html[data-theme="light"] .btn-secondary:hover {
  background: var(--background-base);
  box-shadow: 5px 5px 14px rgba(163, 177, 198, .42), -5px -5px 14px rgba(255, 255, 255, .70);
}

html[data-theme="light"] .btn-primary {
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(82, 70, 196, .32), 0 6px 20px rgba(82, 70, 196, .16), inset 0 1px rgba(255,255,255,.18);
}
html[data-theme="light"] .btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 0 1px rgba(82, 70, 196, .48), 0 12px 32px rgba(82, 70, 196, .20);
}

html[data-theme="light"] .donate-btn {
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(82, 70, 196, .32), 0 8px 24px rgba(82, 70, 196, .12);
}
html[data-theme="light"] .donate-btn:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 0 1px rgba(82, 70, 196, .48), 0 12px 32px rgba(82, 70, 196, .16);
}

html[data-theme="light"] .theme-toggle {
  color: #8b7a3a;
  background: var(--background-elevated);
  border-color: rgba(163, 177, 198, .18);
}

html[data-theme="light"] .cursor-glow {
  border-color: rgba(82, 70, 196, .25);
  box-shadow: 0 0 40px rgba(82, 70, 196, .06);
}
html[data-theme="light"] .cursor-glow.is-hover {
  background: rgba(82, 70, 196, .03);
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(82, 70, 196, .08);
}

html[data-theme="light"] .particle {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(82, 70, 196, .06);
}

html[data-theme="light"] .icon {
  color: var(--accent);
  background: linear-gradient(145deg, rgba(82, 70, 196, .06), rgba(82, 70, 196, .008));
  border-color: rgba(82, 70, 196, .06);
  box-shadow: inset 0 1px rgba(255,255,255,.20), 0 8px 20px rgba(82, 70, 196, .03);
}

html[data-theme="light"] .skill-card:hover .icon,
html[data-theme="light"] .focus-card:hover .icon,
html[data-theme="light"] .contact-card:hover .icon {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(82, 70, 196, .20), 0 12px 28px rgba(82, 70, 196, .08);
}

html[data-theme="light"] .skill-card:nth-child(2) .icon,
html[data-theme="light"] .focus-card:nth-child(2) .icon {
  color: #1a9e7a;
  background: linear-gradient(145deg, rgba(48,210,170,.06), rgba(48,210,170,.008));
}
html[data-theme="light"] .skill-card:nth-child(3) .icon,
html[data-theme="light"] .focus-card:nth-child(3) .icon {
  color: #c95a94;
  background: linear-gradient(145deg, rgba(238,100,177,.06), rgba(238,100,177,.008));
}
html[data-theme="light"] .skill-card:nth-child(4) .icon,
html[data-theme="light"] .focus-card:nth-child(4) .icon {
  color: #b87a28;
  background: linear-gradient(145deg, rgba(245,171,72,.06), rgba(245,171,72,.008));
}

html[data-theme="light"] .skill-card:nth-child(2):hover .icon,
html[data-theme="light"] .focus-card:nth-child(2):hover .icon {
  color: #fff;
  background: #1a9e7a;
}
html[data-theme="light"] .skill-card:nth-child(3):hover .icon,
html[data-theme="light"] .focus-card:nth-child(3):hover .icon {
  color: #fff;
  background: #c95a94;
}
html[data-theme="light"] .skill-card:nth-child(4):hover .icon,
html[data-theme="light"] .focus-card:nth-child(4):hover .icon {
  color: #fff;
  background: #b87a28;
}

html[data-theme="light"] .timeline-item::before {
  background: linear-gradient(to bottom, var(--accent), transparent);
}

html[data-theme="light"] footer {
  border-top-color: rgba(163, 177, 198, .18);
}

html[data-theme="light"] .nav-links a::after {
  box-shadow: 0 0 14px rgba(82, 70, 196, .10);
}

html[data-theme="light"] .brand .dot {
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 28px rgba(200, 150, 60, .20);
}/* ============================================================
   MOBILE OPTIMIZATIONS — اضافه شده
   ============================================================ */

/* آیکون‌های فالبک برای موبایل */
.icon-fallback {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(94, 106, 210, 0.12);
  color: #b8bfff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  border: 1px solid rgba(174, 181, 255, 0.08);
}

/* در موبایل، اموجی‌ها رو مخفی کن و فالبک رو نشون بده */
@media (max-width: 768px) {
  .skill-card .icon-svg,
  .focus-card .icon-svg,
  .contact-card .icon-svg,
  .donate-btn .icon-svg,
  .emoji .icon-svg {
    display: none !important;
  }
  
  .skill-card .icon-fallback,
  .focus-card .icon-fallback,
  .contact-card .icon-fallback {
    display: grid !important;
  }
  
  /* غیرفعال کردن افکت‌های سنگین */
  .cursor-glow,
  body::after,
  .particle-field {
    display: none !important;
  }
  
  .hero-avatar {
    animation: none !important;
  }
  
  .orb {
    filter: blur(80px) !important;
    animation: none !important;
  }
  
  .stat-card,
  .skill-card,
  .focus-card,
  .contact-card,
  .project-card,
  .about-preview,
  .timeline-item {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .stat-card:hover,
  .skill-card:hover,
  .focus-card:hover,
  .project-card:hover,
  .contact-card:hover {
    transform: translateY(-2px) !important;
  }
}

/* در دسکتاپ، فالبک رو مخفی کن */
@media (min-width: 769px) {
  .icon-fallback {
    display: none !important;
  }
}

/* بهبود تاچ targets در موبایل */
@media (max-width: 480px) {
  .btn,
  .donate-btn,
  .nav-links a,
  .lang-toggle,
  .theme-toggle,
  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-links a {
    padding: 10px 0;
  }
  
  .contact-card {
    padding: 14px 16px !important;
  }
  
  .contact-card .icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  
  .skill-card .icon,
  .focus-card .icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.9rem !important;
  }
}
/* ============================================================
   SKILL LEVEL BARS
   ============================================================ */

.skill-level {
  margin-top: 8px;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-level .bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}

.skill-level .bar.animate {
  animation: barGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes barGrow {
  from { width: 0; }
  to { width: var(--level); }
}

.skill-card .level-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--foreground-muted);
  margin-top: 4px;
}

/* Light mode */
html[data-theme="light"] .skill-level {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .skill-level .bar {
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}
