/* ============================================================
   W3B MAIN STYLESHEET — Design System & Global Styles
   Author: tn27x3b0 | h4x0r.pages.dev
   License: MIT
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── CSS Design Tokens ────────────────────────────────────── */
:root {
  /* Background */
  --bg-base:        #020305;
  --bg-surface:     #080a0f;
  --bg-card:        rgba(10, 14, 22, 0.80);
  --bg-card-hover:  rgba(14, 19, 30, 0.90);

  /* Accent */
  --accent-cyan:    #00e5ff;
  --accent-green:   #00ff88;
  --accent-purple:  #a855f7;
  --accent-red:     #ff4757;
  --accent-orange:  #ff9f43;

  /* Text */
  --text-primary:   #e8eaf0;
  --text-secondary: #7a8499;
  --text-muted:     #4a5568;

  /* Borders */
  --border-dim:     rgba(255, 255, 255, 0.06);
  --border-glow:    rgba(0, 229, 255, 0.25);

  /* Typography */
  --font-body:  'Space Grotesk', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow:  0 0 30px rgba(0, 229, 255, 0.12);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* ── Theme: Hacker (green phosphor) ──────────────────────── */
[data-theme="hacker"] {
  --accent-cyan:  #00ff88;
  --accent-green: #00e5ff;
  --bg-base:      #010a04;
  --bg-surface:   #021208;
  --bg-card:      rgba(2, 14, 8, 0.85);
  --border-glow:  rgba(0, 255, 136, 0.25);
  --shadow-glow:  0 0 30px rgba(0, 255, 136, 0.12);
}

/* ── Theme: Light ─────────────────────────────────────────── */
[data-theme="light"] {
  --bg-base:       #f0f4ff;
  --bg-surface:    #ffffff;
  --bg-card:       rgba(255, 255, 255, 0.90);
  --bg-card-hover: rgba(248, 250, 255, 0.95);
  --text-primary:  #111827;
  --text-secondary:#4b5563;
  --text-muted:    #9ca3af;
  --border-dim:    rgba(0, 0, 0, 0.08);
  --border-glow:   rgba(0, 100, 220, 0.30);
  --accent-cyan:   #0055cc;
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-glow:   0 0 30px rgba(0, 85, 204, 0.10);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background: rgba(0, 229, 255, 0.25);
  color: var(--accent-cyan);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

code, pre, .mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
}

.section {
  padding: var(--section-pad) 0;
}

/* ── Background Canvas ────────────────────────────────────── */
#canvas-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ── Ambient Glow Orbs ────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(0,229,255,0.07), transparent 70%);
  animation: orb-drift-1 18s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  bottom: -150px; right: -100px;
  background: radial-gradient(circle, rgba(168,85,247,0.06), transparent 70%);
  animation: orb-drift-2 22s ease-in-out infinite alternate;
}
.orb-3 {
  width: 400px; height: 400px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(0,255,136,0.04), transparent 70%);
  animation: orb-drift-3 26s ease-in-out infinite alternate;
}

/* ── Navigation ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-smooth), border-color 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
  background: rgba(2, 3, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
}

[data-theme="light"] #navbar.scrolled {
  background: rgba(240, 244, 255, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-dot {
  width: 8px; height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.nav-links a::before {
  content: '> ';
  color: var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.nav-links a:hover::before { opacity: 1; }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme Cycler Button */
.btn-theme {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-theme:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn-theme svg { width: 14px; height: 14px; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(2, 3, 5, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--accent-cyan); }

/* ── Hero Section ─────────────────────────────────────────── */
#hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.20);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
  animation: badge-slide-in 0.6s var(--ease-out-expo) 0.2s both;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: hero-rise 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-title .name-highlight {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Terminal typing animation */
.hero-terminal {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  animation: hero-rise 0.8s var(--ease-out-expo) 0.4s both;
  position: relative;
}
.hero-terminal::before {
  content: '> ';
  color: var(--accent-green);
  font-weight: 600;
}
.hero-cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--accent-cyan);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.1s step-end infinite;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
  animation: hero-rise 0.8s var(--ease-out-expo) 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
  animation: hero-rise 0.8s var(--ease-out-expo) 0.6s both;
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
  animation: hero-rise 0.8s var(--ease-out-expo) 0.7s both;
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-smooth);
  backdrop-filter: blur(12px);
}
.social-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.social-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  animation: hero-rise 0.8s var(--ease-out-expo) 0.9s both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scroll-drop 2s ease-in-out infinite;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.45);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dim);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  background: rgba(0, 229, 255, 0.05);
}

/* ── Section Heading ──────────────────────────────────────── */
.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-tag::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent-cyan);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.7;
}

/* ── Cards (Glass) ────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.18);
  box-shadow: var(--shadow-hover), var(--shadow-glow);
}

/* ── About Section ────────────────────────────────────────── */
#about { position: relative; z-index: 10; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-terminal {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 2rem;
}
.at-header {
  background: rgba(255,255,255,0.04);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-dim);
}
.at-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.at-dot.r { background: #ff5f57; }
.at-dot.y { background: #febc2e; }
.at-dot.g { background: #28c840; }
.at-path {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.at-body { padding: 1.2rem 1.2rem; line-height: 2; }
.at-key { color: var(--accent-cyan); }
.at-val { color: var(--accent-green); }
.at-str { color: #ffa657; }
.at-num { color: #a7d3f3; }
.at-comment { color: var(--text-muted); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-card-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

/* ── Skills Section ───────────────────────────────────────── */
#skills { position: relative; z-index: 10; }

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  padding: 1.75rem;
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-group-title svg { width: 14px; height: 14px; }

.skill-item {
  margin-bottom: 1.1rem;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
}
.skill-name { color: var(--text-primary); }
.skill-pct  { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.75rem; }

.skill-bar-bg {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out-expo);
}

.tool-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.tool-badge:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
}

/* ── Projects Section ─────────────────────────────────────── */
#projects { position: relative; z-index: 10; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.project-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.10);
  border: 1px solid rgba(0, 229, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.project-icon svg { width: 20px; height: 20px; }

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-status.active {
  background: rgba(0, 255, 136, 0.10);
  border: 1px solid rgba(0, 255, 136, 0.20);
  color: var(--accent-green);
}
.project-status.wip {
  background: rgba(255, 159, 67, 0.10);
  border: 1px solid rgba(255, 159, 67, 0.20);
  color: var(--accent-orange);
}
.status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border-radius: 5px;
  padding: 0.2rem 0.55rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  margin-top: auto;
  transition: gap 0.2s;
}
.project-link svg { width: 14px; height: 14px; }
.project-link:hover { gap: 0.7rem; }

/* Loading skeleton */
.project-skeleton {
  padding: 1.75rem;
  animation: skeleton-pulse 1.8s ease-in-out infinite;
}
.sk-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 0.75rem;
}
.sk-line.short { width: 40%; }
.sk-line.med   { width: 70%; }
.sk-line.long  { width: 100%; }

/* ── Contact Section ──────────────────────────────────────── */
#contact { position: relative; z-index: 10; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-text h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.contact-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all 0.25s var(--ease-smooth);
  backdrop-filter: blur(12px);
}
.contact-card svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent-cyan); }
.contact-card:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Search bar */
.search-section { margin-top: 2rem; }
.search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(16px);
  transition: border-color 0.2s;
}
.search-form:focus-within { border-color: var(--border-glow); }
.search-prompt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
}
#search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  min-width: 0;
}
#search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  padding: 0.25rem;
}
.search-btn:hover { color: var(--accent-cyan); }
.search-btn svg { width: 18px; height: 18px; }

/* ── Footer ───────────────────────────────────────────────── */
#footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-dim);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

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

.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-oss {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: var(--accent-cyan);
}

.badge-secure {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.18);
  color: var(--accent-green);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent-cyan); }
  50% { opacity: 0.5; box-shadow: 0 0 14px var(--accent-cyan); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes badge-slide-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-drop {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.5); }
}

@keyframes orb-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.1); }
}
@keyframes orb-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -30px) scale(0.95); }
}
@keyframes orb-drift-3 {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1.15) rotate(30deg); }
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Utility Classes ──────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid  { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-socials { flex-wrap: wrap; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .skills-categories { grid-template-columns: 1fr; }
}

/* ── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Focus Visible ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
