@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #060610;
  --bg-card: #0d0d1f;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #6366f1;
  --accent-2: #a78bfa;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --text: #f1f1f1;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --radius: 16px;
  --radius-sm: 10px;
  --header-bg: rgba(6, 6, 16, 0.6);
  --modal-bg: #0a0a1a;
  --input-bg: rgba(255,255,255,0.04);
  --input-border: rgba(255,255,255,0.10);
}

/* ── Light mode ── */
body.light {
  --bg: #f0f0ff;
  --bg-card: #ffffff;
  --bg-glass: rgba(99,102,241,0.05);
  --border: rgba(99,102,241,0.15);
  --text: #1a1a2e;
  --text-muted: #4b5563;
  --text-soft: #6b7280;
  --header-bg: rgba(240,240,255,0.75);
  --modal-bg: #ffffff;
  --input-bg: rgba(99,102,241,0.04);
  --input-border: rgba(99,102,241,0.2);
}

body.light::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(167,139,250,0.07) 0%, transparent 60%);
}

body.light header {
  background: var(--header-bg);
  border-color: rgba(99,102,241,0.15);
}

body.light .skill-desc-card,
body.light .card {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(99,102,241,0.08);
}

body.light .modal-box {
  background: var(--modal-bg);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.15), 0 24px 64px rgba(99,102,241,0.15);
}

body.light .form-group input {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text);
}

body.light .modal-overlay {
  background: rgba(99,102,241,0.08);
}

body.light .hero-banner-wrap {
  box-shadow: 0 0 0 6px rgba(99,102,241,0.12), 0 8px 48px rgba(99,102,241,0.2);
}

body.light .cursor-glow {
  background: radial-gradient(circle,
    rgba(99,102,241,0.15) 0%,
    rgba(139,92,246,0.07) 40%,
    transparent 70%
  );
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background mesh ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99,102,241,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(167,139,250,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Particles canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── LED Cursor glow ── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(139,92,246,0.22) 0%,
    rgba(99,102,241,0.12) 40%,
    transparent 70%
  );
  margin: 0;
}

/* ── Floating shapes ── */
.floating-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  animation: float-shape ease-in-out infinite;
}

.shape-1 {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(167,139,250,0.15));
  border: 1px solid rgba(99,102,241,0.3);
  top: 18%; left: 6%;
  animation-duration: 9s;
  animation-delay: 0s;
}
.shape-2 {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(167,139,250,0.18);
  border: 1px solid rgba(167,139,250,0.4);
  top: 65%; left: 4%;
  animation-duration: 11s;
  animation-delay: -3s;
}
.shape-3 {
  width: 55px; height: 55px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(96,200,245,0.12));
  border: 1px solid rgba(99,102,241,0.25);
  top: 28%; right: 5%;
  animation-duration: 10s;
  animation-delay: -5s;
}
.shape-4 {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(99,102,241,0.3);
  top: 78%; right: 9%;
  animation-duration: 7s;
  animation-delay: -2s;
}
.shape-5 {
  width: 90px; height: 90px;
  border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
  border: 1.5px solid rgba(99,102,241,0.2);
  background: transparent;
  top: 48%; left: 2%;
  animation-duration: 13s;
  animation-delay: -7s;
}
.shape-6 {
  width: 44px; height: 44px;
  border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%;
  border: 1.5px solid rgba(167,139,250,0.25);
  background: rgba(167,139,250,0.07);
  top: 82%; right: 4%;
  animation-duration: 12s;
  animation-delay: -4s;
}
.shape-7 {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(167,139,250,0.35);
  top: 40%; right: 12%;
  animation-duration: 8s;
  animation-delay: -6s;
}

@keyframes float-shape {
  0%   { transform: translateY(0px)   rotate(0deg)   scale(1); }
  25%  { transform: translateY(-20px) rotate(90deg)  scale(1.05); }
  50%  { transform: translateY(-35px) rotate(180deg) scale(0.95); }
  75%  { transform: translateY(-15px) rotate(270deg) scale(1.05); }
  100% { transform: translateY(0px)   rotate(360deg) scale(1); }
}

/* ── Currency bar ── */
.currency-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(6, 6, 16, 0.92);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(12px);
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.currency-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.currency-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.cur-flag { font-size: 0.9rem; }

.cur-rate {
  font-weight: 700;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.cur-divider {
  color: rgba(255,255,255,0.15);
  font-size: 0.75rem;
}

.cur-date {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  margin-left: 8px;
}

.weather-item {
  color: var(--text-muted);
  gap: 4px;
}

#weather-temp {
  font-weight: 700;
  color: #60c8f5;
}

#weather-city {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

/* ── Header ── */
header {
  position: fixed;
  top: 33px; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

/* Lang + theme controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  color: var(--text);
}

.lang-sep {
  color: var(--border);
  font-size: 0.75rem;
}

.theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  transform: rotate(20deg);
}

header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  cursor: default;
}

nav { display: flex; gap: 4px; }

nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  cursor: none;
}

nav a:hover,
nav a.active {
  color: var(--text);
  background: var(--bg-glass);
}

nav a.active { color: #818cf8; }

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.avatar-wrap {
  position: relative;
  margin-bottom: 32px;
  animation: float 4s ease-in-out infinite;
}

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

.avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  z-index: 1;
  border: 4px solid rgba(167,139,250,0.6);
  box-shadow:
    0 0 0 8px rgba(99,102,241,0.12),
    0 0 40px rgba(99,102,241,0.45),
    0 0 80px rgba(139,92,246,0.25);
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  filter: blur(36px);
  z-index: 0;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(1.1); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.22);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  animation: fade-down 0.6s ease both;
}

.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  box-shadow: 0 0 8px #4ade80;
  animation: blink 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2.9rem, 6.7vw, 5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 16px;
  animation: fade-up 0.7s 0.1s ease both;
}

.hero h1 .name {
  background: linear-gradient(135deg, #818cf8, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fade-up 0.7s 0.3s ease both;
}

/* Neon tavsif */
.neon-desc {
  font-size: 4.6rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  max-width: 1000px;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fade-up 0.7s 0.3s ease both;
  letter-spacing: 0.2px;
}

.neon-word {
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-shadow:
    0 0 6px  rgba(99,102,241,1),
    0 0 14px rgba(99,102,241,0.9),
    0 0 28px rgba(139,92,246,0.8),
    0 0 52px rgba(139,92,246,0.5),
    0 0 80px rgba(99,102,241,0.3);
  animation: neon-flicker 3.5s ease-in-out infinite;
}

.neon-word:nth-child(2) {
  animation-delay: 1.2s;
  text-shadow:
    0 0 6px  rgba(167,139,250,1),
    0 0 14px rgba(167,139,250,0.9),
    0 0 28px rgba(99,102,241,0.8),
    0 0 52px rgba(99,102,241,0.5),
    0 0 80px rgba(167,139,250,0.3);
}

@keyframes neon-flicker {
  0%, 100% {
    text-shadow:
      0 0 6px  rgba(99,102,241,1),
      0 0 14px rgba(99,102,241,0.9),
      0 0 28px rgba(139,92,246,0.8),
      0 0 52px rgba(139,92,246,0.5),
      0 0 80px rgba(99,102,241,0.3);
    opacity: 1;
  }
  45% {
    text-shadow:
      0 0 10px rgba(99,102,241,1),
      0 0 24px rgba(99,102,241,1),
      0 0 48px rgba(139,92,246,1),
      0 0 80px rgba(139,92,246,0.7),
      0 0 120px rgba(99,102,241,0.4);
    opacity: 1;
  }
  50% {
    opacity: 0.85;
    text-shadow:
      0 0 4px rgba(99,102,241,0.6),
      0 0 10px rgba(139,92,246,0.4);
  }
  55% {
    text-shadow:
      0 0 10px rgba(99,102,241,1),
      0 0 24px rgba(99,102,241,1),
      0 0 48px rgba(139,92,246,1),
      0 0 80px rgba(139,92,246,0.7);
    opacity: 1;
  }
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.7s 0.4s ease both;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px var(--accent-glow);
}

.btn-outline {
  background: var(--bg-glass);
  color: var(--text-soft);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
  transform: translateY(-2px);
}

/* ── Scroll reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.stagger-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-group > *.visible {
  opacity: 1;
  transform: none;
}

/* ── Sections ── */
.section {
  position: relative;
  z-index: 2;
  padding: 96px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(5.4rem, 9vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 48px;
}

/* ── Hero banner ── */
.hero-banner-wrap {
  width: 427px;
  height: 427px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(99,102,241,0.4);
  box-shadow:
    0 0 0 6px rgba(99,102,241,0.1),
    0 8px 48px rgba(0,0,0,0.6);
  margin-bottom: 28px;
  flex-shrink: 0;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-banner-wrap:hover .hero-banner-img {
  transform: scale(1.06);
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.skill-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: default;
}

.skill-card:hover {
  border-color: rgba(99,102,241,0.45);
  color: var(--text);
  background: rgba(99,102,241,0.07);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.15);
}

.skill-icon { font-size: 1.7rem; }

/* Skill bar */
.skill-bar-wrap {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
}

.skill-bar-track {
  height: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(99,102,241,0.4);
}

/* ── Skill description cards ── */
.skill-desc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.skill-desc-card {
  background: rgba(6, 6, 16, 0.85);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s;
}

/* Neon ramka */
.skill-desc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1.5px;
  background: linear-gradient(135deg,
    rgba(99,102,241,0.9),
    rgba(167,139,250,0.7),
    rgba(99,102,241,0.4),
    rgba(167,139,250,0.9)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: neon-border 3s linear infinite;
  background-size: 300% 300%;
}

@keyframes neon-border {
  0%   { background-position: 0% 50%;
    box-shadow: 0 0 8px rgba(99,102,241,0.6), inset 0 0 8px rgba(99,102,241,0.2); }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Neon glow soya */
.skill-desc-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  box-shadow:
    0 0 10px  rgba(99,102,241,0.4),
    0 0 24px  rgba(99,102,241,0.2),
    0 0 48px  rgba(139,92,246,0.15);
  pointer-events: none;
  animation: neon-glow-pulse 2.5s ease-in-out infinite;
}

@keyframes neon-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 8px  rgba(99,102,241,0.4),
      0 0 20px rgba(99,102,241,0.2),
      0 0 40px rgba(139,92,246,0.1);
  }
  50% {
    box-shadow:
      0 0 16px rgba(99,102,241,0.7),
      0 0 36px rgba(99,102,241,0.4),
      0 0 64px rgba(139,92,246,0.25);
  }
}

.skill-desc-card:hover {
  transform: translateY(-6px);
}

.skill-desc-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.skill-desc-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #a78bfa;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(167,139,250,0.5);
}

.skill-desc-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.75;
}

/* ── Projects ── */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s;
}

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

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #818cf8;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ── Neon project card ── */
.neon-card {
  background: rgba(6, 6, 16, 0.9);
  position: relative;
}

.neon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1.5px;
  background: linear-gradient(135deg,
    rgba(99,102,241,0.9),
    rgba(167,139,250,0.7),
    rgba(99,102,241,0.4),
    rgba(167,139,250,0.9)
  );
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: neon-border 3s linear infinite;
}

.neon-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  pointer-events: none;
  animation: neon-glow-pulse 2.5s ease-in-out infinite;
}

/* Murojaat tugmasi */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.08);
  color: #a78bfa;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s;
  position: relative;
  z-index: 2;
}

.contact-btn:hover {
  background: rgba(99,102,241,0.18);
  border-color: rgba(167,139,250,0.8);
  color: #fff;
  box-shadow: 0 0 16px rgba(99,102,241,0.4);
  transform: translateY(-2px);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #0a0a1a;
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s ease;
  border: 1px solid rgba(99,102,241,0.3);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.15),
    0 0 40px rgba(99,102,241,0.2),
    0 24px 64px rgba(0,0,0,0.6);
}

.modal-overlay.active .modal-box {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }

.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(99,102,241,0.6);
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-form { display: flex; flex-direction: column; gap: 16px; }

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.3px;
}

.form-group input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder { color: var(--text-muted); }

.form-group input:focus {
  border-color: rgba(99,102,241,0.6);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1), 0 0 12px rgba(99,102,241,0.2);
}

.form-submit {
  margin-top: 8px;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4);
  letter-spacing: 0.3px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.6);
}

/* ── Contact ── */

/* ── Social icon buttons ── */
.social-icons {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.25s;
  position: relative;
}

.social-btn svg {
  animation: icon-pulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px currentColor);
}

.social-btn.instagram svg {
  animation: ig-pulse 2.4s ease-in-out infinite;
}

.social-btn.telegram svg {
  animation: tg-pulse 2.4s ease-in-out infinite;
  animation-delay: 0.8s;
}

.social-btn.phone svg {
  animation: ph-pulse 2.4s ease-in-out infinite;
  animation-delay: 1.6s;
}

@keyframes ig-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px #e6683c) drop-shadow(0 0 10px #bc1888);
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 14px #f09433) drop-shadow(0 0 28px #dc2743) drop-shadow(0 0 40px #bc1888);
    opacity: 0.75;
  }
}

@keyframes tg-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px #229ED9);
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 14px #229ED9) drop-shadow(0 0 32px #60c8f5);
    opacity: 0.75;
  }
}

@keyframes ph-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px #25D366);
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 14px #25D366) drop-shadow(0 0 32px #5ef59a);
    opacity: 0.75;
  }
}

.social-btn:hover {
  transform: translateY(-6px) scale(1.12);
}

.social-btn.instagram:hover svg {
  animation: ig-pulse 0.7s ease-in-out infinite;
}

.social-btn.telegram:hover svg {
  animation: tg-pulse 0.7s ease-in-out infinite;
  animation-delay: 0s;
}

.social-btn.phone:hover svg {
  animation: ph-pulse 0.7s ease-in-out infinite;
  animation-delay: 0s;
}

/* ── Divider ── */
.divider {
  position: relative;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 960px;
  margin: 0 auto;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 36px 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

footer span { color: var(--accent); }

/* ── Entry animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Responsive: Tablet ── */
@media (max-width: 900px) {
  .neon-desc       { font-size: 2.2rem; }
  .section h2      { font-size: clamp(2.4rem, 6vw, 4rem); }
  .hero h1         { font-size: clamp(2rem, 5vw, 3.2rem); }
  .hero-banner-wrap{ width: 300px; height: 300px; }
  .social-btn      { width: 110px; height: 110px; }
  .social-btn svg  { width: 48px; height: 48px; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 640px) {
  .cursor-glow { display: none; }

  /* Header */
  header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .logo { font-size: 1rem; }
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    border-top: 1px solid var(--border);
    padding-top: 8px;
  }
  nav a {
    font-size: 0.72rem;
    padding: 5px 8px;
  }
  .header-controls { gap: 6px; }
  .lang-btn        { font-size: 0.72rem; padding: 2px 5px; }
  .theme-toggle    { width: 30px; height: 30px; font-size: 0.85rem; }

  /* Hero */
  .hero {
    padding: 130px 16px 60px;
    min-height: auto;
  }
  .hero-banner-wrap {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
  }
  .neon-desc {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
    max-width: 100%;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  /* Sections */
  .section {
    padding: 56px 16px;
  }
  .section h2 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 28px;
  }

  /* Skill cards */
  .skill-desc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }
  .skill-desc-card {
    padding: 18px 14px;
  }
  .skill-desc-card:last-child {
    grid-column: span 2;
  }

  /* Projects */
  .projects {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card { padding: 16px; }

  /* Social icons */
  .social-icons  { gap: 16px; }
  .social-btn    { width: 80px; height: 80px; }
  .social-btn svg{ width: 36px; height: 36px; }

  /* Modal */
  .modal-box {
    padding: 28px 20px;
    margin: 16px;
    max-width: calc(100% - 32px);
  }
  .modal-header h2 { font-size: 1.1rem; }

  /* Tags */
  .card-tags { gap: 4px; }
  .tag       { font-size: 0.65rem; padding: 2px 8px; }
}
