:root {
  --bg-primary: #0a0c12;
  --bg-secondary: #10141f;
  --bg-card: rgba(18, 22, 35, 0.72);
  --bg-card-hover: rgba(26, 32, 50, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.035);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(0, 240, 255, 0.6);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --neon-cyan: #00f0ff;
  --neon-purple: #a855f7;
  --neon-green: #00ff9d;
  --neon-blue: #3b82f6;

  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.35);
  --glow-purple: 0 0 25px rgba(168, 85, 247, 0.35);
  --glow-green: 0 0 25px rgba(0, 255, 157, 0.35);
  --glow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-height: 74px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --surface-glass: rgba(16, 20, 33, 0.6);
  --surface-glass-strong: rgba(11, 14, 24, 0.8);
  --overlay-bg: rgba(4, 6, 12, 0.5);
  --field-bg: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #eef2f7;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(0, 0, 0, 0.02);
  
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-card: rgba(0, 0, 0, 0.1);
  --border-focus: rgba(14, 165, 233, 0.7);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --neon-cyan: #0284c7;
  --neon-purple: #7c3aed;
  --neon-green: #059669;

  --glow-cyan: 0 0 25px rgba(2, 132, 199, 0.25);
  --glow-purple: 0 0 25px rgba(124, 58, 237, 0.25);
  --glow-green: 0 0 25px rgba(5, 150, 105, 0.25);
  --glow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.08);

  --surface-glass: rgba(255, 255, 255, 0.65);
  --surface-glass-strong: rgba(255, 255, 255, 0.84);
  --overlay-bg: rgba(203, 213, 225, 0.45);
  --field-bg: rgba(15, 23, 42, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

ul {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

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

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-green));
  z-index: 1400;
  transition: width 0.1s ease-out;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 110px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 56px;
  text-align: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shineGradient 6s ease infinite;
}

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

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius);
  box-shadow: var(--glow-subtle);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.45);
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
}

.glow-1 {
  width: 480px;
  height: 480px;
  background: var(--neon-purple);
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 520px;
  height: 520px;
  background: var(--neon-cyan);
  bottom: 15%;
  left: -120px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1300;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.82);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.logo-bracket {
  color: var(--neon-purple);
  transition: transform var(--transition-fast);
}

.logo:hover .logo-bracket {
  color: var(--neon-cyan);
}

.logo-text {
  color: var(--text-primary);
  margin-left: 2px;
}

.logo-accent {
  color: var(--neon-cyan);
  font-weight: 700;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  position: relative;
}

.theme-toggle-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: rotate(15deg);
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .sun-icon { display: flex; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: flex; }

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.25);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--neon-green);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.typewriter-container {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neon-cyan);
  min-height: 40px;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.typewriter-prefix {
  color: var(--neon-purple);
  margin-right: 8px;
}

.typewriter-cursor {
  color: var(--neon-green);
  font-weight: 400;
  animation: blinkCursor 0.8s infinite;
  margin-left: 2px;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.meta-item svg {
  color: var(--neon-cyan);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: 340px;
  height: 380px;
}

.avatar-glow-ring {
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  background: conic-gradient(from 180deg, var(--neon-cyan), var(--neon-purple), var(--neon-green), var(--neon-cyan));
  filter: blur(20px);
  opacity: 0.5;
  animation: rotateRing 10s linear infinite;
  z-index: 0;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.badge-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: transform var(--transition-normal);
}

.badge-tag:hover {
  transform: translateY(-4px) scale(1.03);
}

.tag-top {
  top: 18px;
  right: -16px;
  border-color: rgba(0, 240, 255, 0.4);
}

.tag-bottom {
  bottom: 20px;
  left: -16px;
  border-color: rgba(168, 85, 247, 0.4);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform var(--transition-normal);
}

.about-card:hover .card-icon {
  transform: scale(1.1) rotate(4deg);
}

.cyan-icon {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.purple-icon {
  background: rgba(168, 85, 247, 0.1);
  color: var(--neon-purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.green-icon {
  background: rgba(0, 255, 157, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 157, 0.25);
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple), var(--neon-green));
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 24px;
  left: 13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  z-index: 2;
}

.cyan-dot { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.purple-dot { border-color: var(--neon-purple); box-shadow: var(--glow-purple); }
.green-dot { border-color: var(--neon-green); box-shadow: var(--glow-green); }

.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
}

.timeline-card {
  padding: 32px;
  position: relative;
}

.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.timeline-role {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--neon-purple);
  margin-bottom: 16px;
}

.timeline-text {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.tag-highlight {
  background: rgba(0, 255, 157, 0.12);
  border-color: rgba(0, 255, 157, 0.35);
  color: var(--neon-green);
  font-weight: 600;
}

.projects-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background: radial-gradient(circle at center, rgba(16, 20, 32, 0.6) 0%, transparent 70%);
}

.carousel-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.c-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
  transition: transform 0.25s ease-out;
}

.blob-cyan {
  width: 420px;
  height: 420px;
  background: var(--neon-cyan);
  top: 15%;
  left: 15%;
}

.blob-purple {
  width: 460px;
  height: 460px;
  background: var(--neon-purple);
  bottom: 10%;
  right: 15%;
}

.blob-green {
  width: 320px;
  height: 320px;
  background: var(--neon-green);
  top: 40%;
  left: 55%;
  opacity: 0.2;
}

.carousel-header-wrap {
  position: relative;
  z-index: 2;
}

.drag-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: -30px;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

.drag-icon {
  font-size: 0.9rem;
  letter-spacing: 2px;
  font-weight: 700;
  animation: pulseDrag 2.5s ease-in-out infinite;
}

@keyframes pulseDrag {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.05); }
}

.drag-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.carousel-viewport {
  position: relative;
  width: 100%;
  min-height: 520px;
  perspective: 1200px;
  perspective-origin: center center;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  z-index: 2;
  padding: 40px 0;
}

.carousel-viewport:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  align-items: center;
  position: relative;
  width: max-content;
  transform-style: preserve-3d;
  will-change: transform;
}

.project-3d-card {
  flex: 0 0 380px;
  max-width: 85vw;
  margin: 0 24px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: transform 0.1s ease-out, opacity 0.2s ease-out;
  border-radius: var(--border-radius-lg);
  position: relative;
}

.card-glass-body {
  position: relative;
  padding: 36px 30px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-glass-body::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    var(--neon-cyan),
    var(--neon-purple),
    var(--neon-green),
    var(--neon-cyan)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-3d-card.active .card-glass-body {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 35px rgba(0, 240, 255, 0.35),
    inset 0 0 20px rgba(168, 85, 247, 0.15);
}

.project-3d-card.active .card-glass-body::before {
  opacity: 1;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.project-category-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--neon-cyan);
}

.project-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  margin: 4px 0;
  transition: transform var(--transition-normal);
}

.cyan-glow { color: var(--neon-cyan); border-color: rgba(0, 240, 255, 0.3); box-shadow: var(--glow-cyan); }
.purple-glow { color: var(--neon-purple); border-color: rgba(168, 85, 247, 0.3); box-shadow: var(--glow-purple); }
.green-glow { color: var(--neon-green); border-color: rgba(0, 255, 157, 0.3); box-shadow: var(--glow-green); }

.card-project-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 66px;
}

.card-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-card {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-card-gh {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-card-gh:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-primary);
}

.btn-card-view {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #ffffff;
}

.btn-card-view:hover {
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.4);
}

.carousel-nav-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  position: relative;
  z-index: 2;
}

.c-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.c-arrow-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: scale(1.08);
}

.carousel-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-indicator {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.c-indicator.active {
  width: 42px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  box-shadow: var(--glow-cyan);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.skills-card {
  padding: 38px 34px;
}

.skills-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.skills-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skills-category-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.skills-category-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  position: relative;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyan-fill {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.purple-fill {
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-green));
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.skills-tags-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.tag-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag-badge:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

.contact-info-card,
.contact-form-card {
  padding: 40px 36px;
}

.contact-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.contact-row:hover {
  border-color: var(--neon-cyan);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.social-links-wrapper {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.social-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.social-links-row {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.social-link:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

.contact-card-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: -6px;
  margin-bottom: 24px;
}

.hp-wrapper {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.char-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cooldown-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.88rem;
  margin-bottom: 20px;
  animation: fadeInBanner 0.3s ease;
}

@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-status-toast {
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideToast {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.form-status-toast.toast-success {
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid rgba(0, 255, 157, 0.4);
  color: var(--neon-green);
  box-shadow: var(--glow-green);
}

.form-status-toast.toast-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.field-error-msg {
  font-size: 0.78rem;
  color: #f87171;
  display: none;
  font-weight: 500;
  margin-top: 2px;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.form-group.has-error .field-error-msg {
  display: block;
}

.form-group.has-success .form-input {
  border-color: rgba(0, 255, 157, 0.45);
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
}

.btn-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinLoader 0.7s linear infinite;
}

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

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 36px 0;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.back-to-top-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .status-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .typewriter-container {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

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

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

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

  .project-3d-card {
    flex: 0 0 330px;
    margin: 0 16px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .avatar-wrapper {
    width: 280px;
    height: 310px;
  }

  .badge-tag {
    font-size: 0.72rem;
    padding: 6px 12px;
  }

  .tag-top {
    right: -6px;
  }

  .tag-bottom {
    left: -6px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .project-3d-card {
    flex: 0 0 290px;
    margin: 0 12px;
  }

  .card-glass-body {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    word-break: break-word;
  }

  .typewriter-container {
    font-size: 1.15rem;
  }

  .avatar-wrapper {
    width: min(270px, 76vw);
    height: min(300px, 85vw);
  }

  .badge-tag {
    font-size: 0.68rem;
    padding: 5px 10px;
  }

  .tag-top {
    right: -2px;
  }

  .tag-bottom {
    left: -2px;
  }

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

  .hero-buttons .btn {
    width: 100%;
  }

  .timeline-item {
    padding-left: 36px;
  }

  .timeline-dot {
    left: 4px;
    width: 14px;
    height: 14px;
  }

  .timeline-line {
    left: 10px;
  }

  .timeline-card {
    padding: 20px 16px;
  }

  .timeline-role {
    font-size: 1.2rem;
  }

  .project-3d-card {
    flex: 0 0 270px;
    margin: 0 10px;
  }

  .card-glass-body {
    padding: 22px 18px;
  }

  .card-actions {
    flex-direction: column;
    gap: 8px;
  }

  .card-actions .btn-card {
    width: 100%;
  }

  .skills-card {
    padding: 26px 20px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 28px 20px;
  }
}

html { scrollbar-gutter: stable; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

.burger-btn {
  display: flex;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  transition: border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text-primary);
  transform-origin: center;
  transition: transform 0.7s var(--ease-out), opacity 0.35s ease, background-color 0.4s ease;
}

.burger-btn span:nth-child(2) { transform: scaleX(0.62); transform-origin: right center; }
.burger-btn:hover { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.burger-btn:hover span:nth-child(2) { transform: scaleX(1); }

.burger-btn.active {
  border-color: rgba(0, 240, 255, 0.55);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: var(--glow-cyan);
  transform: rotate(90deg);
}
.burger-btn.active span { background-color: var(--neon-cyan); }
.burger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header.menu-open { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header .logo, .site-header .theme-toggle-btn { transition: opacity 0.6s var(--ease-out), filter 0.6s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.3s; }
.site-header.menu-open .logo { opacity: 0.45; filter: blur(2px); pointer-events: none; }
.site-header.menu-open .theme-toggle-btn { opacity: 0; pointer-events: none; transform: scale(0.8); }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--overlay-bg);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease-out), backdrop-filter 0.9s var(--ease-out), -webkit-backdrop-filter 0.9s var(--ease-out), visibility 0s linear 0.9s;
}
.sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition-delay: 0s;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(420px, 88vw);
  z-index: 1200;
  display: flex;
  overflow: hidden;
  background: var(--surface-glass-strong);
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  border-left: 1px solid var(--border-card);
  box-shadow: -40px 0 90px rgba(0, 0, 0, 0.45);
  transform: translateX(104%);
  visibility: hidden;
  transition: transform 0.85s var(--ease-out), visibility 0s linear 0.85s;
}
.sidebar.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.85s var(--ease-out), visibility 0s;
}
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px circle at 100% 0%, rgba(168, 85, 247, 0.22), transparent 60%),
    radial-gradient(380px circle at 0% 100%, rgba(0, 240, 255, 0.16), transparent 60%);
}
.sidebar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.sidebar-inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: calc(var(--header-height) + 14px) 32px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar-section,
.side-nav li {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}
.sidebar.open .sidebar-section,
.sidebar.open .side-nav li {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease calc(0.22s + var(--i, 0) * 0.06s), transform 1s var(--ease-out) calc(0.22s + var(--i, 0) * 0.06s);
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  font-weight: 600;
  margin-bottom: 12px;
}
.sidebar-section:first-child .sidebar-label { margin-bottom: -10px; }

.side-nav { display: flex; flex-direction: column; }

.side-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  transition: color 0.4s ease, transform 0.6s var(--ease-out);
}
.side-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--neon-cyan);
  opacity: 0.55;
  transition: opacity 0.4s ease;
}
.side-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.side-link:hover, .side-link.active { color: var(--text-primary); transform: translateX(8px); }
.side-link:hover .side-num, .side-link.active .side-num { opacity: 1; }
.side-link:hover::after, .side-link.active::after { transform: scaleX(1); }
.side-link:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 4px; border-radius: 6px; }

.lang-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
}
.lang-thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(168, 85, 247, 0.3));
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.25);
  transition: transform 0.7s var(--ease-out);
}
.lang-switch[data-active="uz"] .lang-thumb { transform: translateX(100%); }
.lang-switch[data-active="en"] .lang-thumb { transform: translateX(200%); }
.lang-btn {
  position: relative;
  z-index: 1;
  padding: 11px 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.4s ease;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn[aria-pressed="true"] { color: var(--text-primary); }
.lang-btn:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: -2px; }

.btn-survey {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  background: linear-gradient(110deg, var(--neon-cyan), var(--neon-purple), #ff3df2, var(--neon-purple), var(--neon-cyan));
  background-size: 300% 100%;
  animation: surveyShimmer 6s linear infinite, surveyPulse 2.6s ease-out infinite;
  transition: transform 0.5s var(--ease-out);
}
.btn-survey::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: surveyShine 3.6s var(--ease-in-out) infinite;
  pointer-events: none;
}
.btn-survey:hover { transform: translateY(-3px) scale(1.02); }
.btn-survey:active { transform: scale(0.98); }
.btn-survey:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sidebar-hint { margin-top: 10px; text-align: center; font-size: 0.8rem; color: var(--text-muted); }

@keyframes surveyShimmer { to { background-position: -300% 0; } }
@keyframes surveyPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.55), 0 12px 32px rgba(168, 85, 247, 0.35); }
  70%  { box-shadow: 0 0 0 20px rgba(0, 240, 255, 0), 0 12px 32px rgba(168, 85, 247, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0), 0 12px 32px rgba(168, 85, 247, 0.35); }
}
@keyframes surveyShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

.sidebar-foot { display: flex; gap: 12px; margin-top: auto; padding-top: 8px; }

.reveal-ready .reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(46px) scale(0.985);
}
.reveal-ready .reveal {
  transition:
    opacity 1s var(--ease-out) var(--rd, 0s),
    transform 1.1s var(--ease-out) var(--rd, 0s),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.glass-panel { position: relative; }
.glass-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 240, 255, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.glass-panel:hover::after { opacity: 1; }

.about-card:hover, .skills-card:hover { transform: translateY(-6px); }
.about-card, .skills-card { transition: transform 0.6s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroVisualIn {
  from { opacity: 0; transform: translateY(30px) scale(0.92); }
  to   { opacity: 1; transform: none; }
}
.hero-content > * { animation: heroIn 1.1s var(--ease-out) both; }
.hero-content > :nth-child(1) { animation-delay: 0.1s; }
.hero-content > :nth-child(2) { animation-delay: 0.22s; }
.hero-content > :nth-child(3) { animation-delay: 0.34s; }
.hero-content > :nth-child(4) { animation-delay: 0.46s; }
.hero-content > :nth-child(5) { animation-delay: 0.58s; }
.hero-content > :nth-child(6) { animation-delay: 0.7s; }
.hero-visual { animation: heroVisualIn 1.4s var(--ease-out) 0.3s both; }

.btn, .btn-card, .social-link, .tag-badge, .c-arrow-btn { transition-timing-function: var(--ease-out); }

.products-section { overflow: hidden; }

.products-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px circle at 12% 20%, rgba(0, 240, 255, 0.1), transparent 60%),
    radial-gradient(640px circle at 88% 75%, rgba(168, 85, 247, 0.12), transparent 60%);
}
.products-section .container { position: relative; z-index: 1; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product-cell { display: flex; }

.product-card.accent-cyan   { --accent: var(--neon-cyan);   --accent-rgb: 0, 240, 255; }
.product-card.accent-purple { --accent: var(--neon-purple); --accent-rgb: 168, 85, 247; }
.product-card.accent-green  { --accent: var(--neon-green);  --accent-rgb: 0, 255, 157; }
.product-card.accent-blue   { --accent: var(--neon-blue);   --accent-rgb: 59, 130, 246; }
[data-theme="light"] .product-card.accent-cyan   { --accent-rgb: 2, 132, 199; }
[data-theme="light"] .product-card.accent-purple { --accent-rgb: 124, 58, 237; }
[data-theme="light"] .product-card.accent-green  { --accent-rgb: 5, 150, 105; }

@property --ba { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes productBorderSpin { to { --ba: 360deg; } }

.product-card {
  --accent: var(--neon-cyan);
  --accent-rgb: 0, 240, 255;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 32px 30px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-card);
  box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.6);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform 0.8s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.6s ease;
  will-change: transform;
}
.product-card.is-tilting {
  transition: transform 0.14s linear, box-shadow 0.6s var(--ease-out), border-color 0.6s ease;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ba), rgba(var(--accent-rgb), 0.95), rgba(168, 85, 247, 0.45), transparent 38%, rgba(var(--accent-rgb), 0.15) 62%, rgba(var(--accent-rgb), 0.95));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.6s ease;
  animation: productBorderSpin 7s linear infinite paused;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.product-card:hover, .product-card:focus-within {
  --s: 1.035;
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 44px 80px -28px rgba(var(--accent-rgb), 0.5), 0 0 0 1px rgba(var(--accent-rgb), 0.2);
}
.product-card:hover::before, .product-card:focus-within::before { opacity: 1; animation-play-state: running; }
.product-card:hover::after { opacity: 1; }

.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}
.product-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--neon-green);
}
.product-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulseDot 2s infinite ease-in-out;
}

.product-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 2px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 34px rgba(var(--accent-rgb), 0.28), inset 0 0 18px rgba(var(--accent-rgb), 0.1);
  transition: transform 0.7s var(--ease-out), box-shadow 0.6s ease;
}
.product-card:hover .product-icon { transform: scale(1.1) rotate(-6deg); box-shadow: 0 0 48px rgba(var(--accent-rgb), 0.5), inset 0 0 22px rgba(var(--accent-rgb), 0.18); }

.product-name {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.product-name .pn-dot { color: var(--accent); text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.8); }

.product-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.product-tags .tech-pill { border-color: rgba(var(--accent-rgb), 0.22); }

.product-cta {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.06);
  transition: all 0.5s var(--ease-out);
}
.product-cta svg { transition: transform 0.5s var(--ease-out); }
.product-cta:hover { background: var(--accent); color: #07090f; box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.45); }
.product-cta:hover svg { transform: translateX(4px); }
.product-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.products-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.products-more-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple);
  animation: pulseDot 2s infinite ease-in-out;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  transition: visibility 0s linear 0.8s;
}
.modal-overlay.open { visibility: visible; transition-delay: 0s; }

.modal-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  transition: opacity 0.6s ease, backdrop-filter 0.9s var(--ease-out), -webkit-backdrop-filter 0.9s var(--ease-out);
}
.modal-overlay.open::before {
  opacity: 1;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.modal-dialog {
  position: relative;
  width: min(580px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 34px 34px 30px;
  border-radius: 30px;
  background: var(--surface-glass-strong);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border-card);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(168, 85, 247, 0.18);
  opacity: 0;
  transform: translateY(28px) scale(0.88);
  transition: opacity 0.5s ease, transform 0.85s var(--ease-out);
}
.modal-overlay.open .modal-dialog {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}
.modal-dialog::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ba), var(--neon-cyan), var(--neon-purple), #ff3df2, var(--neon-green), var(--neon-cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  animation: productBorderSpin 10s linear infinite;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 2;
  transition: all 0.5s var(--ease-out);
}
.modal-close:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); transform: rotate(90deg); box-shadow: var(--glow-cyan); }
.modal-close:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }

.survey-head { margin-bottom: 26px; padding-right: 48px; }
.survey-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.survey-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--neon-cyan);
}
.survey-step-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.survey-progress { height: 5px; border-radius: 5px; background: var(--border-subtle); overflow: hidden; }
.survey-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), #ff3df2);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
  transition: width 0.9s var(--ease-out);
}

.survey-stage { min-height: 190px; }
.survey-step { animation: surveyStepIn 0.7s var(--ease-out) both; }
.survey-step.dir-back { animation-name: surveyStepInBack; }
@keyframes surveyStepIn     { from { opacity: 0; transform: translateX(34px); }  to { opacity: 1; transform: none; } }
@keyframes surveyStepInBack { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }

.survey-question { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; margin-bottom: 22px; }

.survey-options { display: grid; gap: 12px; }
.survey-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 600;
  background: var(--field-bg);
  border: 1px solid var(--border-card);
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s var(--ease-out), background 0.4s ease;
}
.survey-option:hover { transform: translateY(-2px) scale(1.01); border-color: rgba(0, 240, 255, 0.5); box-shadow: var(--glow-cyan); }
.survey-option input { position: absolute; opacity: 0; pointer-events: none; }
.survey-option:focus-within { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.survey-radio {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  display: grid;
  place-items: center;
  transition: border-color 0.4s ease;
}
.survey-radio::after {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  transform: scale(0);
  transition: transform 0.5s var(--ease-out);
}
.survey-option.selected {
  border-color: rgba(0, 240, 255, 0.7);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 247, 0.12));
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.22), inset 0 0 18px rgba(168, 85, 247, 0.08);
}
.survey-option.selected .survey-radio { border-color: var(--neon-cyan); }
.survey-option.selected .survey-radio::after { transform: scale(1); }

.survey-textarea-wrap { position: relative; }
.survey-counter { position: absolute; right: 12px; bottom: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); pointer-events: none; }

.survey-hint { min-height: 22px; margin-top: 14px; font-size: 0.86rem; font-weight: 500; color: #f87171; opacity: 0; transform: translateY(-4px); transition: opacity 0.4s ease, transform 0.5s var(--ease-out); }
.survey-hint.show { opacity: 1; transform: none; }

.survey-actions { display: flex; gap: 12px; margin-top: 18px; }
.survey-actions .btn { padding: 14px 26px; }
.survey-actions .survey-next { flex: 1; }
.survey-actions .survey-back[hidden] { display: none; }
.survey-next[disabled] { opacity: 0.75; cursor: progress; transform: none !important; }

.survey-success { text-align: center; padding: 18px 4px 6px; animation: surveyStepIn 0.8s var(--ease-out) both; }
.survey-success[hidden] { display: none; }
.success-burst { position: relative; display: inline-flex; margin-bottom: 18px; }
.success-burst::before, .success-burst::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 157, 0.55);
  animation: successRing 2.4s var(--ease-out) infinite;
}
.success-burst::after { animation-delay: 1.2s; }
@keyframes successRing { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
.success-check { filter: drop-shadow(0 0 18px rgba(0, 255, 157, 0.55)); }
.success-circle { stroke: var(--neon-green); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: successDraw 0.9s var(--ease-out) 0.15s forwards; }
.success-tick { stroke: var(--neon-green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: successDraw 0.6s var(--ease-out) 0.8s forwards; }
@keyframes successDraw { to { stroke-dashoffset: 0; } }
.success-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.success-text { color: var(--text-secondary); max-width: 380px; margin: 0 auto 26px; }

@media (max-width: 1100px) {
  .nav-menu { display: none; }
}

@media (max-width: 760px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card { padding: 28px 22px 24px; }
  .product-name { font-size: 1.4rem; }
  .modal-dialog { padding: 28px 20px 22px; border-radius: 26px; }
  .survey-question { font-size: 1.3rem; }
  .survey-head { padding-right: 44px; }
  .sidebar-inner { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 420px) {
  .survey-actions { flex-direction: column-reverse; }
  .survey-actions .btn { width: 100%; }
}

@media (max-height: 700px) {
  .side-link { font-size: 1.2rem; padding: 6px 0; }
  .sidebar-inner { gap: 18px; }
}

@media (hover: none) {
  .product-card:hover { --s: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal-ready .reveal:not(.in-view) { opacity: 1; transform: none; }
}

.btn-survey-hero {
  color: #fff;
  border: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  background: linear-gradient(110deg, var(--neon-cyan), var(--neon-purple), #ff3df2, var(--neon-purple), var(--neon-cyan));
  background-size: 300% 100%;
  animation: surveyShimmer 6s linear infinite, surveyPulse 2.6s ease-out infinite;
  transition: transform 0.5s var(--ease-out);
}
.btn-survey-hero::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: surveyShine 3.6s var(--ease-in-out) infinite;
  pointer-events: none;
}
.btn-survey-hero:hover { transform: translateY(-3px) scale(1.03); }
.btn-survey-hero:active { transform: scale(0.97); }
.btn-survey-hero:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }

.survey-intro { color: var(--text-secondary); font-size: 0.95rem; margin: -10px 0 20px; }
.survey-fields { display: grid; gap: 14px; }
.survey-fields .form-input { padding: 14px 18px; }
.survey-textarea-wrap .form-textarea { min-height: 150px; }

.modal-dialog { padding-top: 66px; }
.survey-head { padding-right: 0; }

.survey-choose { animation: surveyStepIn 0.7s var(--ease-out) both; }
.survey-choose[hidden] { display: none; }
.survey-choose-eyebrow { margin-bottom: 10px; }
.survey-picks { display: grid; gap: 14px; }

.survey-pick {
  --accent: var(--neon-cyan);
  --accent-rgb: 0, 240, 255;
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  border-radius: 22px;
  background: var(--field-bg);
  border: 1px solid var(--border-card);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.4s ease, background 0.4s ease;
}
.survey-pick.accent-cyan   { --accent: var(--neon-cyan);   --accent-rgb: 0, 240, 255; }
.survey-pick.accent-purple { --accent: var(--neon-purple); --accent-rgb: 168, 85, 247; }
[data-theme="light"] .survey-pick.accent-cyan   { --accent-rgb: 2, 132, 199; }
[data-theme="light"] .survey-pick.accent-purple { --accent-rgb: 124, 58, 237; }

.survey-pick::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.survey-pick:hover, .survey-pick:focus-visible {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(var(--accent-rgb), 0.6);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.02));
  box-shadow: 0 24px 50px -24px rgba(var(--accent-rgb), 0.6), 0 0 0 1px rgba(var(--accent-rgb), 0.25);
  outline: none;
}
.survey-pick:hover::after, .survey-pick:focus-visible::after { opacity: 1; }
.survey-pick:active { transform: scale(0.985); }

.pick-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.25);
  transition: transform 0.7s var(--ease-out);
}
.survey-pick:hover .pick-icon { transform: scale(1.1) rotate(-6deg); }
.pick-body { flex: 1; min-width: 0; }
.pick-title { display: block; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }
.pick-desc { display: block; margin-top: 5px; font-size: 0.86rem; line-height: 1.5; color: var(--text-secondary); }
.pick-meta {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 11px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}
.pick-arrow { flex: 0 0 auto; color: var(--accent); opacity: 0.7; transition: transform 0.6s var(--ease-out), opacity 0.4s ease; }
.survey-pick:hover .pick-arrow { transform: translateX(5px); opacity: 1; }

.modal-gear {
  position: absolute;
  top: 16px; left: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 3;
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.5s var(--ease-out), transform 0.9s var(--ease-out);
}
.modal-gear:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); transform: rotate(45deg); }
.modal-gear.active { color: var(--neon-cyan); border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); transform: rotate(120deg); }
.modal-gear:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }

.modal-settings {
  position: absolute;
  top: 64px; left: 16px;
  z-index: 4;
  width: min(290px, calc(100% - 32px));
  padding: 16px;
  display: grid;
  gap: 14px;
  border-radius: 20px;
  background: var(--surface-glass-strong);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 240, 255, 0.08);
  transform-origin: 20px -8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px) scale(0.92);
  transition: opacity 0.4s ease, transform 0.7s var(--ease-out), visibility 0s linear 0.7s;
}
.modal-settings.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}
.settings-row { display: grid; gap: 8px; }
.settings-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--neon-cyan); font-weight: 600; }

.theme-switch { grid-template-columns: repeat(2, 1fr); }
.theme-switch .lang-thumb { width: calc((100% - 8px) / 2); }
.theme-switch[data-active="light"] .lang-thumb { transform: translateX(0); }
.theme-switch[data-active="dark"] .lang-thumb { transform: translateX(100%); }
.seg-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 6px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.4s ease;
}
.seg-btn:hover, .seg-btn[aria-pressed="true"] { color: var(--text-primary); }
.seg-btn:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: -2px; }
.modal-settings .lang-btn { padding: 10px 0; }

@media (max-width: 760px) {
  .modal-dialog { padding-top: 64px; }
  .survey-pick { padding: 16px; gap: 14px; }
  .pick-icon { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; }
  .pick-arrow { display: none; }
}

.survey-promo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 18px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(255, 157, 61, 0.16), rgba(255, 61, 242, 0.12) 55%, rgba(168, 85, 247, 0.14)),
    var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 34px rgba(255, 120, 60, 0.28), 0 14px 34px -16px rgba(255, 61, 242, 0.5);
  animation: promoGlow 2.8s ease-in-out infinite;
}
.survey-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ba), #ff9d3d, #ff3df2, var(--neon-purple), var(--neon-cyan), #ff9d3d);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: productBorderSpin 5s linear infinite;
  pointer-events: none;
}
.survey-promo::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -50%;
  width: 36%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  animation: surveyShine 4.2s var(--ease-in-out) infinite;
  pointer-events: none;
}
.promo-flame {
  flex: 0 0 auto;
  font-size: 1.7rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255, 140, 40, 0.85));
  animation: promoFlame 1.6s ease-in-out infinite;
}
.promo-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.promo-badge {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a0b12;
  background: linear-gradient(90deg, #ffb347, #ff6fd8);
}
.promo-text { font-size: 0.95rem; font-weight: 700; line-height: 1.4; color: var(--text-primary); }

@keyframes promoGlow {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 120, 60, 0.22), 0 14px 34px -16px rgba(255, 61, 242, 0.4); }
  50%      { box-shadow: 0 0 44px rgba(255, 120, 60, 0.5),  0 14px 40px -14px rgba(255, 61, 242, 0.7); }
}
@keyframes promoFlame {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50%      { transform: scale(1.14) rotate(4deg); }
}

@media (max-width: 420px) {
  .survey-promo { padding: 12px 14px; gap: 12px; }
  .promo-text { font-size: 0.9rem; }
}
