/* ═══════════════════════════════════════════════════════════
   YASHAB ALAM — Light Theme Personal Blog
   Design System & Styles
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ──────────────────────────────── */
:root {
  /* Core palette — dark space retro future */
  --bg-primary: #06050c;
  --bg-secondary: #0c0a1a;
  --bg-tertiary: #120e28;
  --bg-accent: #191436;

  /* Text */
  --text-primary: #f1f0f7;
  --text-secondary: #9ea4cf;
  --text-tertiary: #6b719e;
  --text-muted: #484c6e;

  /* Accent colors */
  --accent-primary: #ff007f;       /* Neon Pink */
  --accent-primary-light: #ff5eaf;
  --accent-primary-dark: #cc0066;
  --accent-secondary: #00f0ff;     /* Neon Cyan */
  --accent-tertiary: #00ff88;      /* Neon Green */
  --accent-warm: #ff8800;          /* Solar Orange */

  /* Gradients */
  --gradient-hero: linear-gradient(to bottom, #110d29 0%, #06050c 100%);
  --gradient-card: linear-gradient(135deg, #0e0b24 0%, #17123d 100%);
  --gradient-accent: linear-gradient(135deg, #ff007f 0%, #00f0ff 100%);
  --gradient-warm: linear-gradient(135deg, #ff8800 0%, #ff007f 100%);
  --gradient-cool: linear-gradient(135deg, #00f0ff 0%, #7000ff 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(255, 0, 127, 0.06) 0%, rgba(0, 240, 255, 0.06) 100%);

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 240, 255, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 0, 127, 0.15);
  --shadow-glow: 0 0 20px rgba(255, 0, 127, 0.35);
  --shadow-card-hover: 0 12px 35px rgba(0, 240, 255, 0.18), 0 0 20px rgba(255, 0, 127, 0.15);

  /* Glass */
  --glass-bg: rgba(12, 10, 26, 0.78);
  --glass-border: rgba(0, 240, 255, 0.15);
  --glass-blur: 24px;

  /* Borders */
  --border-light: rgba(0, 240, 255, 0.08);
  --border-medium: rgba(255, 0, 127, 0.15);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-narrow: 800px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  /* Cyber grid pattern overlay */
  background-image: 
    linear-gradient(rgba(6, 5, 12, 0.45) 0%, rgba(6, 5, 12, 0.98) 100%),
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-primary);
  color: #fff;
}

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

a {
  text-decoration: none;
  color: var(--accent-secondary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary-light);
}

ul {
  list-style: none;
}

/* ── SVG Icon Defaults ──────────────────────────────────── */
svg {
  flex-shrink: 0;
}

.section-label svg,
.info-card h3 svg,
.blog-card-meta svg,
.footer-bottom svg {
  vertical-align: -2px;
}

.card-icon svg {
  display: block;
}

.highlight-icon svg,
.skill-category-icon svg,
.contact-item-icon svg,
.stat-icon svg {
  display: block;
}

/* ── Skip Link ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: var(--container-narrow);
}

/* ── Header / Navigation ────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.45));
  display: inline-flex;
  align-items: center;
  min-width: 220px;
  white-space: nowrap;
}

.logo-cursor {
  color: var(--accent-primary);
  animation: logo-blink 0.8s infinite step-end;
  margin-left: 3px;
  font-weight: 500;
  font-family: monospace;
  font-size: 1.25rem;
  filter: drop-shadow(0 0 6px rgba(255, 0, 127, 0.5));
}

@keyframes logo-blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

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

.nav-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-list a:hover,
.nav-list a.active {
  color: #fff;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.05), 0 0 10px rgba(0, 240, 255, 0.1);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--bg-tertiary);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn.primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn.ghost {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid rgba(99, 102, 241, 0.25);
}

.btn.ghost:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn.small {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: float-blob 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(236, 72, 153, 0.04) 0%, transparent 70%);
  pointer-events: none;
  animation: float-blob 25s ease-in-out infinite reverse;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-wrapper {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 24px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.typing-dynamic {
  margin-left: 8px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.45));
}

.typing-cursor {
  color: var(--accent-primary);
  animation: typing-blink 0.8s infinite step-end;
  margin-left: 2px;
  font-weight: 400;
}

@keyframes typing-blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
}

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

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

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

.hero-card-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-card-role {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.hero-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
  padding: 14px 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-item strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-item span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-card-focus {
  padding: 16px;
  background: var(--gradient-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.hero-card-focus h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.hero-card-focus ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-card-focus li {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll-reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ── Section Shared ─────────────────────────────────────── */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section.alt {
  background: var(--bg-secondary);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

.section-title .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 0, 127, 0.45));
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── About Section ──────────────────────────────────────── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.highlight-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}

.highlight-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.highlight-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.highlight-text span {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  padding: 28px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.info-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

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

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ── Projects Section ───────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card .card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card .project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.project-card .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.badge-viral {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  background: linear-gradient(135deg, #ff007f, #ff8800);
  color: #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

.badge-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  font-family: 'JetBrains Mono', monospace;
  transition: all var(--transition-fast);
}

.project-card:hover .badge-stat {
  color: #fff;
}

.project-card:hover .star-stat {
  border-color: rgba(255, 136, 0, 0.4);
  box-shadow: 0 0 10px rgba(255, 136, 0, 0.15);
}

.project-card:hover .fork-stat {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tags li,
.tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.tags li:hover,
.tag:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-primary);
  border-color: rgba(99, 102, 241, 0.2);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-primary);
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.project-link:hover {
  gap: 12px;
}

/* ── Skills / Radar Chart + Bars ────────────────────────── */

/* Radar section layout */
.radar-section {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.radar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.05), var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.radar-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-subtle);
  pointer-events: none;
}

.radar-wrapper canvas {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
}

/* Radar legend */
.radar-legend {
  padding: 8px 0;
}

.radar-legend h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.radar-legend-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.radar-legend-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  cursor: default;
  transition: all var(--transition-base);
}

.radar-legend-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
  border-color: rgba(99, 102, 241, 0.2);
}

.radar-legend-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
  box-shadow: 0 0 8px color-mix(in srgb, var(--c) 40%, transparent);
}

.radar-legend-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.radar-legend-pct {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

/* Animated Skill Bars */
.skill-bars-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.skill-bar-category {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.skill-bar-category:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.skill-bar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.skill-bar-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.skill-bar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  align-items: center;
  gap: 12px;
}

.skill-bar-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-bar-track {
  width: 100%;
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: var(--bar-color);
  position: relative;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-bar-fill.animated {
  width: calc(var(--target) * 1%);
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: bar-shimmer 2s ease-in-out infinite;
  opacity: 0;
}

.skill-bar-fill.animated::after {
  opacity: 1;
  animation-delay: 1.2s;
}

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

.skill-bar-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
}


/* ── Blog Section ───────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-primary);
  margin-top: 16px;
  transition: gap var(--transition-fast);
}

.blog-card-link:hover {
  gap: 12px;
}

/* ── Achievements / Stats ───────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ── Awards / Timeline ──────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 100%;
  background: var(--border-medium);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 40px;
}

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

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.timeline-card {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* ── Contact Section ────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.contact-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-item-icon {
  font-size: 1.3rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-item-text a,
.contact-item-text span {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-secondary);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

/* ── Social Links ───────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition-base);
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #04030a;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ── Scroll to Top ──────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ── Responsive Design ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    max-width: 100%;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .radar-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .radar-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list a {
    width: 100%;
    padding: 12px 16px;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .skill-bars-section {
    grid-template-columns: 1fr;
  }

  .skill-bar-row {
    grid-template-columns: 120px 1fr 36px;
    gap: 8px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

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

  .hero-card-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

/* GitHub Stats Card Hover */
.github-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary) !important;
  box-shadow: var(--shadow-card-hover) !important;
}
