/* ==========================================
   PORTFOLIO - STYLES.CSS
   Software Engineering Creative Portfolio
   ========================================== */

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

/* ==========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================== */
:root {
  --bg: #050508;
  --bg-alt: #080b12;
  --surface: #0d1117;
  --surface-2: #161b22;
  --surface-3: #1c2330;
  --border: #21262d;
  --border-bright: #30363d;

  --neon-green: #00ff88;
  --neon-blue: #00d4ff;
  --neon-purple: #bd00ff;
  --neon-orange: #ff6b00;
  --neon-pink: #ff0080;
  --neon-yellow: #ffe600;

  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --text-accent: #58a6ff;

  --glow-green:
    0 0 10px rgba(0, 255, 136, 0.5), 0 0 30px rgba(0, 255, 136, 0.2),
    0 0 60px rgba(0, 255, 136, 0.1);
  --glow-blue:
    0 0 10px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.2),
    0 0 60px rgba(0, 212, 255, 0.1);
  --glow-purple:
    0 0 10px rgba(189, 0, 255, 0.5), 0 0 30px rgba(189, 0, 255, 0.2),
    0 0 60px rgba(189, 0, 255, 0.1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(0, 212, 255, 0.25);
  color: var(--neon-blue);
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--neon-green), var(--neon-blue));
  border-radius: 2px;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================
   TYPOGRAPHY SYSTEM
   ========================================== */
.font-mono {
  font-family: "JetBrains Mono", monospace;
}
.font-orbitron {
  font-family: "Orbitron", sans-serif;
}

/* ==========================================
   ANIMATED BACKGROUND CANVAS
   ========================================== */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ==========================================
   GLITCH TEXT EFFECT
   ========================================== */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--neon-blue);
  animation: glitch-before 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  color: var(--neon-green);
  animation: glitch-after 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-before {
  0%,
  90%,
  100% {
    transform: translate(0);
    opacity: 0;
  }
  91% {
    transform: translate(-2px, -1px);
    opacity: 0.8;
  }
  93% {
    transform: translate(2px, 1px);
    opacity: 0.8;
  }
  95% {
    transform: translate(-1px, 2px);
    opacity: 0.8;
  }
  97% {
    transform: translate(1px, -1px);
    opacity: 0.8;
  }
  99% {
    transform: translate(0);
    opacity: 0;
  }
}

@keyframes glitch-after {
  0%,
  90%,
  100% {
    transform: translate(0);
    opacity: 0;
  }
  92% {
    transform: translate(2px, 1px);
    opacity: 0.8;
  }
  94% {
    transform: translate(-2px, -1px);
    opacity: 0.8;
  }
  96% {
    transform: translate(1px, 2px);
    opacity: 0.8;
  }
  98% {
    transform: translate(-1px, -2px);
    opacity: 0.8;
  }
}

/* ==========================================
   GLOW EFFECTS
   ========================================== */
.glow-green {
  text-shadow: var(--glow-green);
  color: var(--neon-green);
}

.glow-blue {
  text-shadow: var(--glow-blue);
  color: var(--neon-blue);
}

.glow-purple {
  text-shadow: var(--glow-purple);
  color: var(--neon-purple);
}

.glow-green-box {
  box-shadow:
    0 0 20px rgba(0, 255, 136, 0.15),
    inset 0 0 20px rgba(0, 255, 136, 0.03);
  border-color: rgba(0, 255, 136, 0.3) !important;
}

.glow-blue-box {
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.15),
    inset 0 0 20px rgba(0, 212, 255, 0.03);
  border-color: rgba(0, 212, 255, 0.3) !important;
}

.glow-purple-box {
  box-shadow:
    0 0 20px rgba(189, 0, 255, 0.15),
    inset 0 0 20px rgba(189, 0, 255, 0.03);
  border-color: rgba(189, 0, 255, 0.3) !important;
}

/* ==========================================
   CIRCUIT BOARD PATTERN BACKGROUND
   ========================================== */
.circuit-bg {
  position: relative;
  background-color: var(--bg);
}

.circuit-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Hero specific crosshair dots at grid intersections */
.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(0, 255, 136, 0.15) 1px,
    transparent 1px
  );
  background-size: 60px 60px;
  background-position: 30px 30px;
  pointer-events: none;
}

/* ==========================================
   SCANLINES OVERLAY
   ========================================== */
.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.05) 3px,
    rgba(0, 0, 0, 0.05) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ==========================================
   TERMINAL WINDOW COMPONENT
   ========================================== */
.terminal-window {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.1),
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 212, 255, 0.08);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
  box-shadow: 0 0 8px rgba(255, 95, 87, 0.5);
}
.dot-yellow {
  background: #ffbd2e;
  box-shadow: 0 0 8px rgba(255, 189, 46, 0.5);
}
.dot-green {
  background: #28ca41;
  box-shadow: 0 0 8px rgba(40, 202, 65, 0.5);
}

.terminal-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.terminal-body {
  padding: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.8;
}

/* ==========================================
   CURSOR BLINK
   ========================================== */
@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.cursor-blink {
  animation: blink 1s step-start infinite;
}

/* ==========================================
   TYPING ANIMATION
   ========================================== */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typed-text {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 0.5s steps(20, end) forwards;
}

/* ==========================================
   ANIMATED GRADIENT TEXT
   ========================================== */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--neon-green) 0%,
    var(--neon-blue) 50%,
    var(--neon-purple) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

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

/* ==========================================
   STATUS BADGE
   ========================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--neon-green);
  letter-spacing: 0.05em;
}

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 5px var(--neon-green);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 15px var(--neon-green),
      0 0 30px rgba(0, 255, 136, 0.3);
    transform: scale(1.2);
  }
}

/* ==========================================
   NAVIGATION
   ========================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(33, 38, 45, 0.5);
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  border-bottom-color: rgba(0, 255, 136, 0.15);
  box-shadow:
    0 1px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 255, 136, 0.05);
}

.nav-link {
  position: relative;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.05em;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon-green);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--neon-green);
}

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

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

.nav-logo-icon {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  color: var(--neon-green);
  text-shadow: var(--glow-green);
  font-size: 18px;
}

/* ==========================================
   MOBILE MENU
   ========================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  z-index: 200;
  background: var(--surface);
  border-left: 1px solid var(--border-bright);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-accent-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ==========================================
   AVATAR COMPONENT
   ========================================== */
.avatar-container {
  position: relative;
  display: inline-block;
}

.avatar-ring {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-bright);
  transition: all 0.3s ease;
  position: relative;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.avatar-container:hover .avatar-ring::before {
  opacity: 1;
}
.avatar-container:hover .avatar-ring {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.avatar-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-green), #00c864);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
  border: 2px solid var(--bg);
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--neon-green);
  text-transform: uppercase;
  text-shadow: var(--glow-green);
}

.section-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--neon-green);
  text-shadow: var(--glow-green);
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, var(--border-bright), transparent);
  flex: 1;
}

/* ==========================================
   CARD COMPONENTS
   ========================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.03),
    rgba(0, 212, 255, 0.03)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Article card */
.article-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.02), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.article-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 212, 255, 0.08);
}

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

/* GitHub project card */
.github-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.github-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-green),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.github-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 255, 136, 0.08);
  transform: translateY(-4px);
}

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

/* ==========================================
   3D TILT CARD EFFECT
   ========================================== */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.1s ease;
}

/* ==========================================
   TAG BUTTON STYLES
   ========================================== */
.tag-btn {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.tag-btn:hover:not(.active) {
  border-color: var(--border-bright);
  color: var(--text-primary);
  background: var(--surface-2);
}

.tag-btn.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

/* ==========================================
   CODE SYNTAX HIGHLIGHTING (VS Code Dark+)
   ========================================== */
.syn-keyword {
  color: #ff79c6;
}
.syn-function {
  color: #50fa7b;
}
.syn-string {
  color: #f1fa8c;
}
.syn-comment {
  color: #6272a4;
  font-style: italic;
}
.syn-type {
  color: #8be9fd;
}
.syn-number {
  color: #bd93f9;
}
.syn-variable {
  color: #cdd6f4;
}
.syn-operator {
  color: #ff79c6;
}
.syn-tag {
  color: #ff5555;
}
.syn-attr {
  color: #bd93f9;
}
.syn-bracket {
  color: #f8f8f2;
}
.syn-neon {
  color: var(--neon-green);
}
.syn-neonblue {
  color: var(--neon-blue);
}
.syn-import {
  color: #ff79c6;
}
.syn-path {
  color: #f1fa8c;
}

/* ==========================================
   LINE NUMBERS FOR CODE BLOCKS
   ========================================== */
.line-numbers {
  counter-reset: line;
}

.line-numbers .line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2.5em;
  margin-right: 16px;
  text-align: right;
  color: var(--text-muted);
  font-size: 11px;
  user-select: none;
  border-right: 1px solid var(--border);
  padding-right: 8px;
}

/* ==========================================
   TECH SKILL PILLS
   ========================================== */
.tech-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  background: var(--surface-2);
  transition: all 0.2s ease;
  cursor: default;
  display: inline-block;
}

.tech-pill:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.1);
  transform: translateY(-1px);
}

/* ==========================================
   SKILL PROGRESS BARS
   ========================================== */
.skill-bar-track {
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-bar-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6));
  border-radius: 2px;
  animation: shimmer-bar 2s ease-in-out infinite;
}

@keyframes shimmer-bar {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.bar-green {
  background: linear-gradient(90deg, var(--neon-green), #00c864);
}
.bar-blue {
  background: linear-gradient(90deg, var(--neon-blue), #0099cc);
}
.bar-purple {
  background: linear-gradient(90deg, var(--neon-purple), #8800cc);
}
.bar-orange {
  background: linear-gradient(90deg, var(--neon-orange), #cc5500);
}

/* ==========================================
   FADE-IN SCROLL REVEAL
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   STAT COUNTER CARDS
   ========================================== */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.5;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   EXPERIENCE TIMELINE
   ========================================== */
.timeline-item {
  position: relative;
  padding-left: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: var(--bg);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 18px;
  width: 1px;
  bottom: -20px;
  background: var(--border);
}

.timeline-item:last-child::after {
  display: none;
}

/* ==========================================
   NEWSLETTER / CTA SECTION
   ========================================== */
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(0, 212, 255, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Newsletter input */
.newsletter-input {
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
  transition: all 0.2s ease;
  outline: none;
}

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

.newsletter-input:focus {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow:
    0 0 0 3px rgba(0, 212, 255, 0.08),
    0 0 15px rgba(0, 212, 255, 0.1);
}

/* ==========================================
   BUTTON COMPONENTS
   ========================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-green), #00c864);
  color: #000;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px rgba(0, 255, 136, 0.3),
    0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  border: 1px solid var(--border-bright);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
  background: var(--surface-2);
}

/* ==========================================
   SOCIAL LINK ICONS
   ========================================== */
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--surface-2);
}

.social-link:hover {
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.12);
  transform: translateY(-2px);
}

/* ==========================================
   CONTACT LINK ITEMS
   ========================================== */
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.25s ease;
  background: var(--surface-2);
}

.contact-link:hover {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.05);
  transform: translateX(4px);
}

.contact-link:hover .contact-icon {
  color: var(--neon-blue);
}

.contact-icon {
  color: var(--text-muted);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

/* ==========================================
   TOAST NOTIFICATION
   ========================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--surface);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 136, 0.1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================
   LOADING ANIMATION
   ========================================== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   FLOATING ANIMATION
   ========================================== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* ==========================================
   HEXAGON GRID DECORATIVE
   ========================================== */
.hex-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300ff88' fill-opacity='0.03'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .terminal-body {
    font-size: 11px;
  }
  .glitch::before,
  .glitch::after {
    display: none;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-neon-green {
  color: var(--neon-green);
}
.text-neon-blue {
  color: var(--neon-blue);
}
.text-neon-purple {
  color: var(--neon-purple);
}
.text-neon-orange {
  color: var(--neon-orange);
}
.text-primary {
  color: var(--text-primary);
}
.text-secondary-c {
  color: var(--text-secondary);
}
.text-muted-c {
  color: var(--text-muted);
}

.border-neon-green {
  border-color: rgba(0, 255, 136, 0.3);
}
.bg-neon-green-dim {
  background: rgba(0, 255, 136, 0.08);
}
.bg-neon-blue-dim {
  background: rgba(0, 212, 255, 0.08);
}
.bg-neon-purple-dim {
  background: rgba(189, 0, 255, 0.08);
}

.rounded-code {
  border-radius: 6px;
}

/* ==========================================
   ARTICLE IMAGE HOVER
   ========================================== */
.article-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition:
    transform 0.5s ease,
    opacity 0.3s ease;
}

.article-card:hover .article-img-wrap img {
  transform: scale(1.05);
  opacity: 0.7;
}

.article-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface) 0%, transparent 60%);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
#back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: var(--surface);
  color: var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.2);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer-terminal-line {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-terminal-line span.cmd {
  color: var(--neon-green);
}
.footer-terminal-line span.val {
  color: var(--text-secondary);
}

/* ==========================================
   ANIMATED NUMBER COUNTER
   ========================================== */
.counter-num {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  display: block;
}

/* ==========================================
   PROJECT SHOWCASE CARDS
   ========================================== */

/* ── Featured Project (full-width hero card) ── */
.project-featured {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.04) 0%,
    rgba(0, 212, 255, 0.04) 50%,
    rgba(189, 0, 255, 0.04) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-featured:hover::before {
  opacity: 1;
}

.project-featured:hover {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 255, 136, 0.08);
  transform: translateY(-4px);
}

/* Animated gradient banner / preview area */
.project-banner {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-banner-gradient {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition:
    transform 0.6s ease,
    opacity 0.4s ease;
}

.project-featured:hover .project-banner img {
  transform: scale(1.06);
  opacity: 0.5;
}

.project-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, var(--surface) 100%);
}

/* Floating browser–chrome mockup inside banner */
.browser-mockup {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  max-width: 420px;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.browser-bar {
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-dots {
  display: flex;
  gap: 5px;
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-secondary);
}

.browser-body {
  padding: 10px;
  min-height: 80px;
}

/* ── Standard project grid card ── */
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.proj-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proj-card.green-accent::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-green),
    transparent
  );
}
.proj-card.blue-accent::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-blue),
    transparent
  );
}
.proj-card.purple-accent::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-purple),
    transparent
  );
}
.proj-card.orange-accent::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-orange),
    transparent
  );
}

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

.proj-card.green-accent:hover {
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(0, 255, 136, 0.07);
  transform: translateY(-5px);
}
.proj-card.blue-accent:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(0, 212, 255, 0.07);
  transform: translateY(-5px);
}
.proj-card.purple-accent:hover {
  border-color: rgba(189, 0, 255, 0.35);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(189, 0, 255, 0.07);
  transform: translateY(-5px);
}
.proj-card.orange-accent:hover {
  border-color: rgba(255, 107, 0, 0.35);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(255, 107, 0, 0.07);
  transform: translateY(-5px);
}

/* Mini preview area at the top of each card */
.proj-preview {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.proj-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition:
    transform 0.5s ease,
    opacity 0.3s ease;
}

.proj-card:hover .proj-preview img {
  transform: scale(1.07);
  opacity: 0.6;
}

.proj-preview-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--surface) 100%);
}

/* Animated floating icon on preview */
.proj-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.proj-card:hover .proj-icon {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.status-active {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.25);
}
.status-wip {
  background: rgba(255, 230, 0, 0.1);
  color: #ffe600;
  border: 1px solid rgba(255, 230, 0, 0.25);
}
.status-archived {
  background: rgba(72, 79, 88, 0.3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.status-dot-pill {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Project action buttons */
.proj-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-decoration: none;
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  background: var(--surface-2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.proj-action.primary {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--neon-green);
}

.proj-action.primary:hover {
  background: rgba(0, 255, 136, 0.18);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.proj-action:hover:not(.primary) {
  border-color: var(--border-bright);
  color: var(--text-primary);
  background: var(--surface-3);
}

/* ==========================================
   POWERFUL FILTER BAR
   ========================================== */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.filter-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-green),
    var(--neon-blue),
    transparent
  );
  opacity: 0.4;
}

/* Row 1: search + status + sort */
.filter-row-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Search */
.filter-search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.filter-search-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 9px 36px 9px 36px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.25s ease;
}

.filter-search-input::placeholder {
  color: var(--text-muted);
}

.filter-search-input:focus {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow:
    0 0 0 3px rgba(0, 212, 255, 0.07),
    0 0 15px rgba(0, 212, 255, 0.08);
}

.filter-search-input:focus + .filter-search-icon,
.filter-search-wrap:focus-within .filter-search-icon {
  color: var(--neon-blue);
}

.filter-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.filter-search-clear:hover {
  color: var(--text-secondary);
}

/* Status segmented control */
.filter-status-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.filter-status-btn {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 8px 14px;
  border: none;
  border-right: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.filter-status-btn:last-child {
  border-right: none;
}

.filter-status-btn:hover:not(.active) {
  background: var(--surface-2);
  color: var(--text-secondary);
}

.filter-status-btn.active {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
}

/* Sort select */
.filter-sort-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 8px 12px;
  flex-shrink: 0;
}

.filter-sort-select {
  background: transparent;
  border: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  appearance: none;
  padding-right: 4px;
}

.filter-sort-select option {
  background: var(--surface-2);
  color: var(--text-primary);
}

/* Row 2: Tech tags */
.filter-row-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tag-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

/* Tech filter btn (multi-select aware) */
.proj-filter-btn {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.proj-filter-btn:hover:not(.active) {
  color: var(--text-primary);
  background: var(--surface-2);
  border-color: var(--border-bright);
}

.proj-filter-btn.active {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.08);
}

/* Multi-selected (not "all") */
.proj-filter-btn.active-multi {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.08);
}

/* Row 3: Active filter chips + count */
.filter-row-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  flex-wrap: wrap;
}

.filter-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

/* Individual active chip */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 3px 10px 3px 10px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--neon-blue);
  animation: chip-pop 0.2s ease;
}

@keyframes chip-pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.filter-chip-remove {
  display: flex;
  align-items: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

.filter-chip-remove:hover {
  opacity: 1;
}

.filter-chip.chip-search {
  background: rgba(189, 0, 255, 0.1);
  border-color: rgba(189, 0, 255, 0.3);
  color: var(--neon-purple);
}

.filter-chip.chip-status {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.25);
  color: var(--neon-green);
}

.filter-clear-all {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-clear-all:hover {
  color: var(--text-secondary);
  border-color: var(--border-bright);
}

/* Result count */
.filter-result-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  margin-left: auto;
}

#result-count-num {
  color: var(--neon-green);
  font-weight: 700;
  transition: all 0.3s ease;
}

/* ── Project card filter transitions ── */
.proj-card,
.project-featured {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-card.filter-hiding,
.project-featured.filter-hiding {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
}

.proj-card.filter-showing,
.project-featured.filter-showing {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.proj-card.hidden-proj,
.project-featured.hidden-proj {
  display: none;
}

/* No results empty state */
#no-proj-msg {
  animation: chip-pop 0.3s ease;
}

/* ── "View all on GitHub" CTA row ── */
.github-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.github-cta:hover {
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.06);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.1);
  transform: translateY(-2px);
}
