:root {
  --primary: #8b9aff;
  --primary-dark: #a78bfa;
  --accent: #f0abfc;
  --hack: #34d399;
  --hack-glow: rgba(52, 211, 153, 0.45);
  --cyan: #67e8f9;
  --text: #e8ecf4;
  --text-muted: #94a3b8;
  --bg: #06060c;
  --bg-elevated: #0c0c16;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(139, 154, 255, 0.14);
  --border-strong: rgba(139, 154, 255, 0.32);
  --gradient: linear-gradient(135deg, #667eea 0%, #a78bfa 55%, #f0abfc 100%);
  --gradient-soft: linear-gradient(135deg, rgba(102, 126, 234, 0.14) 0%, rgba(240, 171, 252, 0.1) 100%);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 48px rgba(102, 126, 234, 0.1);
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.45, 0.64, 1);
  --header-h: 76px;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

::selection {
  background: rgba(139, 154, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 99px;
}

/* Progress */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 2000;
  box-shadow: 0 0 16px rgba(139, 154, 255, 0.6);
}

/* Background */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 90% 70% at 50% -20%, #12102a 0%, var(--bg) 50%, #040408 100%);
}

.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(102, 126, 234, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 55% at 85% 70%, rgba(240, 171, 252, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 35% at 55% 8%, rgba(52, 211, 153, 0.07), transparent 70%);
  animation: auroraShift 14s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% { opacity: 0.65; transform: scale(1) translate(0, 0); }
  100% { opacity: 1; transform: scale(1.04) translate(1.5%, -1%); }
}

.hack-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hack-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(52, 211, 153, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 154, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 15%, transparent 78%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: glowPulse 10s ease-in-out infinite;
}

.bg-glow-1 { width: 500px; height: 500px; background: #667eea; top: -15%; right: -8%; }
.bg-glow-2 { width: 420px; height: 420px; background: #c084fc; bottom: 5%; left: -10%; animation-delay: 5s; }

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.06); }
}

.floating-shapes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.floating-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.07;
  animation: float 24s ease-in-out infinite;
}
.floating-shapes .shape:nth-child(1) { width: 300px; height: 300px; top: 8%; right: 6%; }
.floating-shapes .shape:nth-child(2) { width: 200px; height: 200px; bottom: 15%; left: 8%; animation-delay: 7s; }
.floating-shapes .shape:nth-child(3) { width: 140px; height: 140px; top: 50%; right: 15%; animation-delay: 14s; }
.floating-shapes .shape-4 { width: 90px; height: 90px; top: 22%; left: 42%; animation-delay: 3s; background: rgba(52, 211, 153, 0.06); }
.floating-shapes .shape-5 { width: 180px; height: 180px; bottom: 8%; right: 38%; animation-delay: 10s; background: rgba(240, 171, 252, 0.05); }

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -35px); }
}

.gradient-text {
  background: linear-gradient(90deg, #667eea, #a78bfa, #f0abfc, #67e8f9, #667eea);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.glitch-ready {
  position: relative;
  display: inline-block;
}

.glitch-ready.glitching {
  animation: glitchSkew 0.45s steps(2) both;
}

.glitch-ready.glitching::before,
.glitch-ready.glitching::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glitch-ready.glitching::before {
  animation: glitchTop 0.45s steps(2) both;
  clip-path: inset(0 0 55% 0);
}

.glitch-ready.glitching::after {
  animation: glitchBottom 0.45s steps(2) both;
  clip-path: inset(45% 0 0 0);
}

@keyframes glitchSkew {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, 1px); }
  80% { transform: translate(2px, -1px); }
  100% { transform: translate(0); }
}

@keyframes glitchTop {
  0% { transform: translate(0); }
  25% { transform: translate(-4px, 0); }
  50% { transform: translate(4px, 0); }
  75% { transform: translate(-2px, 0); }
  100% { transform: translate(0); }
}

@keyframes glitchBottom {
  0% { transform: translate(0); }
  25% { transform: translate(4px, 0); }
  50% { transform: translate(-4px, 0); }
  75% { transform: translate(2px, 0); }
  100% { transform: translate(0); }
}

.glass-card {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.glass-card:not(.glow-card)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 154, 255, 0.55), rgba(240, 171, 252, 0.45), transparent);
  opacity: 0.55;
  z-index: 2;
  pointer-events: none;
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 140px at var(--mx, 50%) var(--my, 50%), rgba(139, 154, 255, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.glass-card:hover::after { opacity: 1; }

.glass-card > * { position: relative; z-index: 1; }

.glass-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.65rem 0;
  transition: padding 0.4s var(--ease);
}

#header.scrolled {
  padding: 0.35rem 0;
}

.header-shell {
  position: relative;
  margin: 0 auto;
  width: min(1160px, calc(100% - 24px));
  background: rgba(8, 8, 14, 0.55);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.4s var(--ease);
  z-index: 1003;
}

#header.scrolled .header-shell {
  background: rgba(6, 6, 12, 0.92);
  border-color: var(--border-strong);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(102, 126, 234, 0.08);
}

.header-line {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hack), var(--primary), var(--accent), transparent);
  opacity: 0.5;
  border-radius: 2px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1rem;
  width: 100%;
}

/* Desktop nav — centered in header bar */
@media (min-width: 1025px) {
  #header .nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }

  .nav-toggle,
  .nav-overlay {
    display: none !important;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
  z-index: 1002;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.logo-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--hack);
  opacity: 0.85;
  text-transform: uppercase;
}

.logo-img-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.08);
  animation: logoGlow 4s ease-in-out infinite;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease);
}

.logo:hover .logo-img-wrap {
  transform: scale(1.07) rotate(-4deg);
  box-shadow: 0 0 28px rgba(139, 154, 255, 0.35);
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(52, 211, 153, 0.08); }
  50% { box-shadow: 0 0 28px rgba(139, 154, 255, 0.22); }
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.logo-img-wrap.has-logo {
  background: transparent;
  border-color: rgba(139, 154, 255, 0.25);
  padding: 0;
}

.logo-img-wrap.no-logo .logo-img { display: none; }
.logo-img-wrap.has-logo .logo-fallback { display: none; }

.logo-fallback {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--hack);
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1006;
  flex-shrink: 0;
  position: relative;
}

.lang-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.55rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  line-height: 1;
}

.lang-flag {
  width: 18px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}

.lang-flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-label {
  letter-spacing: 0.04em;
}

.lang-btn:hover .lang-flag {
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(139, 154, 255, 0.35);
}

.lang-btn:hover { color: var(--text); background: var(--surface-hover); }

.lang-btn.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.lang-btn.active .lang-flag {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 10px;
  transition: all 0.25s var(--ease);
  position: relative;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
  border-radius: 2px;
  opacity: 0.8;
}

.nav a:not(.nav-cta):hover::after {
  width: 55%;
  left: 22.5%;
}

.nav a.active {
  color: var(--hack);
  background: rgba(52, 211, 153, 0.08);
}

.nav a.active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--hack);
  border-radius: 50%;
  margin-inline-end: 6px;
  box-shadow: 0 0 8px var(--hack-glow);
  vertical-align: middle;
}

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  margin-inline-start: 0.35rem;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
  font-weight: 700;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45);
}

.nav-cta.active::before { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--hack);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1004;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.65rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 28px rgba(102, 126, 234, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  animation: btnShine 3.5s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 70% { left: -120%; }
  100% { left: 140%; }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(102, 126, 234, 0.45);
}

.btn-primary svg {
  transition: transform 0.35s var(--ease-bounce);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

html[dir="rtl"] .btn-primary:hover svg {
  transform: translateX(-3px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 154, 255, 0.15);
}

.btn-full { width: 100%; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 2.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: badgeBorderGlow 4s ease-in-out infinite;
}

@keyframes badgeBorderGlow {
  0%, 100% {
    border-color: rgba(52, 211, 153, 0.2);
    box-shadow: 0 0 0 rgba(52, 211, 153, 0);
  }
  50% {
    border-color: rgba(52, 211, 153, 0.45);
    box-shadow: 0 0 22px rgba(52, 211, 153, 0.14);
  }
}

.hero-wave { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 0.35rem; }

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 0 40px rgba(139, 154, 255, 0.15));
}

.hero h1 .gradient-text,
.hero h1 .glitch-ready {
  display: inline-block;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  min-height: 1.9rem;
  margin-bottom: 0.85rem;
}

.hero-tagline::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--accent);
  margin-inline-start: 2px;
}

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

.hero-desc {
  color: var(--text-muted);
  max-width: 500px;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.hero-stats { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2rem; }

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem 1.35rem;
  text-align: center;
  min-width: 95px;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.stat-pill:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.22), 0 0 24px rgba(139, 154, 255, 0.08);
}

.stat-pill:hover strong {
  filter: drop-shadow(0 0 12px rgba(139, 154, 255, 0.35));
}

.stat-pill strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em;
  font-size: 1.65rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-pill > span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-pill strong span[data-count] {
  font-size: inherit;
  font-weight: inherit;
  -webkit-text-fill-color: transparent;
}

.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Profile */
.hero-visual { position: relative; }

.stat-plus {
  font-size: 0.95em;
  color: var(--hack);
  font-weight: 900;
  line-height: 1;
  background: none;
  -webkit-text-fill-color: var(--hack);
}

.badge-plus {
  font-size: 0.72em;
  font-weight: 800;
  color: var(--hack);
  margin-inline-start: 0.1em;
  line-height: 1;
  -webkit-text-fill-color: var(--hack);
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.glow-card {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    conic-gradient(from var(--angle, 0deg), #667eea, #a78bfa, #f0abfc, #34d399, #67e8f9, #667eea) border-box;
  animation: spinBorder 5s linear infinite;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinBorder {
  to { --angle: 360deg; }
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}

.profile-orbit {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.25rem;
}

.orbit-ring {
  position: absolute;
  inset: -14px;
  border: 2px dashed rgba(139, 154, 255, 0.2);
  border-radius: 50%;
  animation: spin 25s linear infinite;
}

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

.profile-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient);
  padding: 4px;
  animation: profileFloat 4s ease-in-out infinite, ringGlow 3.5s ease-in-out infinite;
}

@keyframes ringGlow {
  0%, 100% { box-shadow: 0 0 28px rgba(102, 126, 234, 0.35); }
  50% { box-shadow: 0 0 48px rgba(240, 171, 252, 0.5); }
}

@keyframes profileFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.profile-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-elevated);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s var(--ease-bounce);
}

.hero-card:hover .profile-inner {
  transform: scale(1.05);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0;
  transition: opacity 0.5s;
}

.profile-photo.loaded { opacity: 1; }
.profile-photo.hidden { display: none; }

.profile-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  background: var(--gradient-soft);
}

.profile-placeholder.hidden { display: none; }

.profile-fallback-text {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-placeholder p {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 600;
}

.orbit-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
  padding: 0.35rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow);
  animation: orbitPulse 3s ease-in-out infinite;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero-card:hover .orbit-badge {
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

.orbit-badge-1 { top: 5%; right: -8%; }
.orbit-badge-2 { bottom: 10%; left: -14%; animation-delay: 1s; }
.orbit-badge-3 { top: 40%; right: -20%; animation-delay: 2s; }

@keyframes orbitPulse {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(139, 154, 255, 0.28); }
}

.asset-hint {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.hero-meta { list-style: none; }

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  border-radius: 12px;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.hero-meta li:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hero-meta li:last-child { border-bottom: none; }

.hero-meta a {
  color: var(--primary);
  font-weight: 700;
  transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease);
}

.hero-meta a:hover {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(240, 171, 252, 0.45);
}

.meta-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.hero-meta li:hover .meta-icon {
  transform: scale(1.1);
  border-color: var(--border-strong);
  box-shadow: 0 4px 18px rgba(139, 154, 255, 0.22);
}

.hero-meta small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-meta a { color: var(--primary); font-weight: 700; }

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Sections */
.section {
  padding: 5.5rem 0;
  scroll-margin-top: calc(var(--header-h) + 1rem);
  position: relative;
}

.section:not(#home)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 154, 255, 0.35), rgba(240, 171, 252, 0.25), transparent);
  opacity: 0.6;
  pointer-events: none;
}

#home::before {
  display: none;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { text-align: center; margin-bottom: 3.5rem; }

.section-label {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.label-shimmer {
  position: relative;
  overflow: hidden;
}

.label-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
  animation: labelShimmer 4s ease-in-out infinite;
}

@keyframes labelShimmer {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-head h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  margin: 0.85rem auto 0;
  background: var(--gradient);
  border-radius: 99px;
  opacity: 0.75;
  box-shadow: 0 0 16px rgba(139, 154, 255, 0.45);
  animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
  0%, 100% { width: 52px; opacity: 0.65; }
  50% { width: 72px; opacity: 1; }
}

.section-head p { color: var(--text-muted); font-size: 1.02rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

.about-card {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease);
}

.about-card:hover {
  transform: translateY(-4px);
}

.card-accent {
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: var(--gradient);
  opacity: 0.08;
  border-radius: 0 0 0 100%;
}

html[dir="ltr"] .card-accent { right: auto; left: 0; border-radius: 0 0 100% 0; }

.about-card p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.98rem; }

.highlight-line {
  color: var(--primary) !important;
  font-weight: 700;
  padding: 0.85rem 1rem;
  background: var(--gradient-soft);
  border-radius: 12px;
  border-inline-start: 3px solid var(--primary);
  animation: highlightPulse 4s ease-in-out infinite;
}

@keyframes highlightPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(139, 154, 255, 0); }
  50% { box-shadow: 0 0 28px rgba(139, 154, 255, 0.14); }
}

.timeline { display: flex; flex-direction: column; gap: 1rem; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  inset-inline-end: 18px;
  top: 24px; bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  opacity: 0.25;
}

.timeline-item {
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  position: relative;
  transition: transform 0.35s var(--ease-bounce);
}

.timeline-item:hover { transform: translateX(-6px); }
html[dir="ltr"] .timeline-item:hover { transform: translateX(6px); }

.timeline-dot {
  position: absolute;
  inset-inline-end: 12px;
  top: 1.5rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(139, 154, 255, 0.5);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(139, 154, 255, 0.4); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(240, 171, 252, 0.55); transform: scale(1.15); }
}

.timeline-item time { font-size: 0.78rem; color: var(--primary); font-weight: 700; }
.timeline-item h3 { font-size: 1.05rem; margin: 0.3rem 0 0.2rem; font-weight: 800; }
.timeline-item p { font-size: 0.88rem; color: var(--text-muted); }

/* Skills */
.skills-grid {
  display: grid;
  gap: 0.85rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.skill-item {
  display: grid;
  grid-template-columns: 132px 1fr 52px;
  align-items: center;
  gap: 1rem;
  border-radius: 16px;
  padding: 1.1rem 1.35rem;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.skill-item.reveal.visible {
  transition-delay: calc(var(--i, 0) * 0.07s + 0.05s);
}

.skill-item:hover { transform: scale(1.02); border-color: var(--border-strong); }

.skill-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.skill-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  padding: 4px;
}

.skill-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.skill-name { font-weight: 800; font-size: 0.92rem; }

.skill-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 99px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skill-pct { font-size: 0.85rem; font-weight: 800; color: var(--primary); }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; }

.skill-tags span {
  padding: 0.5rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.3s var(--ease);
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.skill-tag-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-tag-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tag-float {
  animation: tagFloat 4s ease-in-out infinite;
}

@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.skill-tags span:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 28px rgba(102, 126, 234, 0.35);
}

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
}

.projects-filter {
  padding: 0.45rem 0.9rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.projects-filter:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.projects-filter.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
  animation: filterPulse 3s ease-in-out infinite;
}

@keyframes filterPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35); }
  50% { box-shadow: 0 6px 22px rgba(240, 171, 252, 0.45); }
}

.projects-count {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hack);
  padding: 0.45rem 0.9rem;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 99px;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease);
}

.projects-count.is-bump {
  animation: countBump 0.45s var(--ease-bounce);
}

@keyframes countBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); box-shadow: 0 0 20px rgba(52, 211, 153, 0.25); }
  100% { transform: scale(1); }
}

.projects-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.projects-more svg {
  transition: transform 0.3s var(--ease-bounce);
}

.projects-more:hover svg {
  transform: translateY(3px);
}

.project-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-bounce);
}

.project-image {
  height: 108px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.5s var(--ease-bounce);
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.28), transparent 45%, transparent 70%, rgba(255, 255, 255, 0.12));
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.project-card:hover .project-image {
  transform: scale(1.04);
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-image.gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.project-image.gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.project-image.gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.project-image.gradient-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.project-image.gradient-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.project-image.gradient-6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.project-image.gradient-7 { background: linear-gradient(135deg, #ff9a9e, #fecfef); }

.project-image-add {
  background: var(--surface);
  border: 2px dashed var(--border-strong);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--primary);
}

.project-card-add {
  text-align: center;
}

.project-card-add h3,
.project-card-add p {
  position: relative;
  z-index: 1;
}

.project-card-add p { margin-bottom: 0.75rem; }

.project-add-link {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--mono);
}

.project-add-link:hover { color: var(--accent); }

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.18);
  border-color: var(--border-strong);
}

.project-card:hover::before { opacity: 0.1; }

.project-num { font-size: 0.72rem; font-weight: 800; color: var(--primary); opacity: 0.6; letter-spacing: 0.1em; position: relative; }

.project-icon-wrap {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 1.5rem;
  margin: 0.75rem 0 1rem;
  transition: transform 0.4s var(--ease-bounce);
  position: relative;
}

.project-card:hover .project-icon-wrap { transform: scale(1.1) rotate(-5deg); }

.project-card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 0.5rem; position: relative; }
.project-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.15rem; line-height: 1.7; position: relative; }

.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; position: relative; }

.project-tech span {
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  background: rgba(139, 154, 255, 0.1);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--border);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease-bounce);
}

.project-card:hover .project-tech span {
  border-color: rgba(139, 154, 255, 0.35);
  transform: translateY(-1px);
}

/* Contact */
.contact-wrapper { max-width: 960px; margin: 0 auto; }

.contact-box {
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.contact-box:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.12);
}

.contact-box::after {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 400px; height: 400px;
  background: var(--gradient);
  opacity: 0.06;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.contact-info h2 {
  font-size: 1.85rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.contact-info p { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-cards { display: flex; flex-direction: column; gap: 0.65rem; }

.contact-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s var(--ease);
}

.contact-chip:hover {
  border-color: var(--border-strong);
  transform: translateX(-4px);
  background: var(--surface-hover);
}

html[dir="ltr"] .contact-chip:hover { transform: translateX(4px); }

.contact-chip span:first-child {
  font-size: 1.2rem;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-chip small { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.contact-chip div { font-weight: 700; font-size: 0.9rem; }

.contact-form h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.3rem; }
.form-hint { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.contact-form label { display: block; margin-bottom: 0.9rem; }
.contact-form label span { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.4rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  transition: all 0.25s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); opacity: 0.7; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 154, 255, 0.15), 0 0 24px rgba(102, 126, 234, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

.form-success {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #34d399;
  font-weight: 700;
  text-align: center;
}

/* Footer */
.footer {
  position: relative;
  margin-top: 2rem;
  padding-bottom: 2rem;
  overflow: hidden;
}

.footer-wave {
  width: 100%;
  line-height: 0;
  margin-bottom: -1px;
}

.footer-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

.footer-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: var(--gradient);
  opacity: 0.08;
  filter: blur(80px);
  pointer-events: none;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 2.75rem;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    conic-gradient(from var(--angle, 0deg), #667eea, #a78bfa, #f0abfc, #34d399, #67e8f9, #667eea) border-box;
  animation: spinBorder 7s linear infinite;
}

.footer-cta-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.06;
  pointer-events: none;
}

.footer-cta-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 171, 252, 0.3) 0%, transparent 70%);
  animation: glowPulse 6s ease-in-out infinite;
}

.footer-cta-content {
  position: relative;
  z-index: 1;
}

.footer-cta h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 900;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.footer-cta p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-cta-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-main {
  position: relative;
  z-index: 1;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
}

.footer-made {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.footer-nav,
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a,
.footer-contact-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}

.footer-nav a:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

html[dir="ltr"] .footer-nav a:hover {
  transform: translateX(4px);
}

.footer-contact-list a {
  color: var(--primary);
  font-weight: 600;
}

.footer-contact-list a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-muted);
  transition: all 0.35s var(--ease-bounce);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s var(--ease-bounce);
  opacity: 0.7;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.back-to-top svg {
  transition: transform 0.3s var(--ease-bounce);
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal[style*="--i"] { transition-delay: calc(var(--i) * 0.1s); }

.project-card.reveal.visible {
  transition-delay: calc(var(--reveal-i, 0) * 0.08s + 0.05s);
}

/* ── FX: cursor & sparks ── */
.spark-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

body.custom-cursor,
body.custom-cursor * {
  cursor: none !important;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--hack);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--hack-glow);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(139, 154, 255, 0.55);
  border-radius: 50%;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
}

body.cursor-hover .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(240, 171, 252, 0.75);
  background: rgba(139, 154, 255, 0.06);
}

/* Form input glow — merged above in contact-form */

.contact-chip {
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s, border-color 0.3s;
}

.contact-chip:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* Fixed social sidebar — minimal */
.social-sidebar {
  position: fixed;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px;
  background: rgba(8, 8, 14, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  opacity: 0.55;
  transition: opacity 0.35s var(--ease), border-color 0.35s;
}

.social-sidebar:hover {
  opacity: 1;
  border-color: var(--border-strong);
}

.social-side-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.social-side-btn svg {
  width: 14px;
  height: 14px;
}

.social-side-btn:hover {
  color: var(--primary);
  background: rgba(139, 154, 255, 0.14);
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(139, 154, 255, 0.25);
}

html[dir="rtl"] .social-side-btn:hover {
  transform: scale(1.1);
}

.scroll-hint {
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Responsive */
@media (max-width: 1024px) {
  .cursor-dot,
  .cursor-ring { display: none; }

  body.custom-cursor,
  body.custom-cursor * { cursor: auto !important; }

  .social-sidebar { display: none; }

  .hero-side-strip { display: none; }

  .hero-grid, .about-grid, .contact-box, .projects-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }

  .projects-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-count { text-align: center; }

  .projects-filters { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 420px; margin: 0 auto; }

  #header { padding: 0.5rem 0; }

  .header-shell {
    width: calc(100% - 16px);
    border-radius: 14px;
  }

  .header-inner {
    padding: 0.45rem 0.75rem;
    gap: 0.5rem;
    min-height: 48px;
  }

  .logo-text-wrap {
    min-width: 0;
    max-width: min(160px, 42vw);
  }

  .logo-text {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .logo-tag { display: none; }

  .logo-img-wrap {
    width: 38px;
    height: 38px;
  }

  .lang-btn {
    padding: 0.32rem 0.45rem;
    font-size: 0.62rem;
  }

  .nav-toggle { display: flex; }

  /* Mobile drawer */
  #header .nav {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    inset-inline-start: auto;
    left: auto;
    right: auto;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(6, 6, 12, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 1rem) 1.25rem 2rem;
    gap: 0.25rem;
    z-index: 1005;
    border-inline-start: 1px solid var(--border);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.4s var(--ease), visibility 0.4s var(--ease);
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
  }

  html[dir="rtl"] #header .nav {
    transform: translate3d(-100%, 0, 0);
  }

  #header .nav.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  html[dir="rtl"] #header .nav.open {
    transform: translate3d(0, 0, 0);
  }

  .nav a {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .nav-cta {
    margin-inline-start: 0;
    margin-top: 0.75rem;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  .nav a.active::before {
    display: none;
  }

  .nav a.active {
    border-inline-start: 3px solid var(--hack);
    padding-inline-start: calc(1rem - 3px);
  }

  html[dir="ltr"] .nav a.active {
    border-inline-start: none;
    border-inline-end: 3px solid var(--hack);
    padding-inline-end: calc(1rem - 3px);
    padding-inline-start: 1rem;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
  }

  .logo-text { font-size: 0.92rem; }
  .logo-tag { font-size: 0.55rem; }
}

@media (max-width: 480px) {
  .logo-text-wrap {
    max-width: 110px;
  }

  .logo-text {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .lang-switch {
    padding: 2px;
  }

  .lang-btn {
    padding: 0.3rem 0.38rem;
    font-size: 0.58rem;
    gap: 0.2rem;
  }

  .lang-label {
    display: none;
  }

  .lang-flag {
    width: 16px;
    height: 11px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 640px) {

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

  .skill-item {
    grid-template-columns: 108px 1fr 44px;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
  }

  .skill-icon {
    width: 26px;
    height: 26px;
  }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .footer-cta {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-cta-btn { width: 100%; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand-col { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .lang-btn { padding: 0.35rem 0.45rem; font-size: 0.7rem; }

  .lang-flag { width: 15px; height: 10px; }
}

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

/* ── AI Assistant ── */
.ai-assistant {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 20px;
  z-index: 997;
}

.ai-toggle {
  position: relative;
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(167, 139, 250, 0.9));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.45), 0 0 0 0 rgba(139, 154, 255, 0.4);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease);
  animation: aiBtnPulse 3s ease-in-out infinite;
}

@keyframes aiBtnPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4); }
  50% { box-shadow: 0 8px 36px rgba(240, 171, 252, 0.55), 0 0 24px rgba(139, 154, 255, 0.25); }
}

.ai-toggle:hover {
  transform: scale(1.08) translateY(-2px);
}

.ai-assistant.is-open .ai-toggle {
  animation: none;
  transform: scale(0.92);
  opacity: 0.85;
}

.ai-toggle-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(139, 154, 255, 0.45);
  animation: aiRing 2.5s ease-out infinite;
  pointer-events: none;
}

.ai-assistant.is-open .ai-toggle-pulse {
  display: none;
}

@keyframes aiRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.ai-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  inset-inline-start: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, 72vh);
  display: none;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ai-panel[hidden] {
  display: none !important;
}

.ai-assistant.is-open .ai-panel {
  display: flex;
  animation: aiPanelIn 0.35s var(--ease-bounce);
}

@keyframes aiPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--gradient-soft);
  flex-shrink: 0;
}

.ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-header-text {
  flex: 1;
  min-width: 0;
}

.ai-header-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.15rem;
}

.ai-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.ai-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.ai-messages {
  flex: 1;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ai-msg {
  display: flex;
  max-width: 92%;
}

.ai-msg-user {
  align-self: flex-end;
}

.ai-msg-bot,
.ai-msg.ai-thinking {
  align-self: flex-start;
}

.ai-msg-bubble {
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre-line;
}

.ai-msg-user .ai-msg-bubble {
  background: var(--gradient);
  color: #fff;
  border-end-end-radius: 4px;
}

.ai-msg-bot .ai-msg-bubble,
.ai-thinking .ai-msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-end-start-radius: 4px;
}

.ai-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 20px;
}

.ai-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: aiDot 1.2s ease-in-out infinite;
}

.ai-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
}

.ai-chip {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.ai-chip:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.ai-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.ai-form input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ai-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 154, 255, 0.15);
}

.ai-send {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

.ai-send:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

@media (max-width: 640px) {
  .ai-assistant {
    inset-inline-start: 12px;
    bottom: 14px;
  }

  .ai-toggle {
    width: 50px;
    height: 50px;
  }

  .ai-panel {
    width: min(340px, calc(100vw - 24px));
    max-height: min(480px, 65vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Loading screen ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(124, 58, 237, 0.18), transparent 65%),
    #050508;
}

.loader-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 2rem;
  text-align: center;
}

.loader-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.loader-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 0 24px rgba(124, 58, 237, 0.45));
  animation: loader-pulse 2s ease-in-out infinite;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent, #7c3aed);
  border-right-color: rgba(124, 58, 237, 0.35);
  animation: loader-spin 1.1s linear infinite;
}

.loader-ring-2 {
  inset: 10px;
  border-top-color: rgba(167, 139, 250, 0.6);
  border-right-color: transparent;
  animation: loader-spin 1.6s linear infinite reverse;
}

.loader-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #f4f4f5);
  letter-spacing: 0.02em;
}

.loader-text {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  color: var(--text-muted, #a1a1aa);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loader-progress {
  width: 140px;
  height: 3px;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.loader-progress-fill {
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--accent, #7c3aed), #a78bfa);
  border-radius: 999px;
  animation: loader-progress 1.2s ease-in-out infinite;
}

body.is-loading {
  overflow: hidden;
}

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

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}

@keyframes loader-progress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
