/* ============================================
   DESIGN SYSTEM — THE MATRIX EDITION
   Abhishek Bagul Portfolio
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Matrix Colors */
  --matrix-green: #00ff41;
  --matrix-green-dim: #00cc33;
  --matrix-green-dark: #008f11;
  --matrix-green-glow: rgba(0, 255, 65, 0.6);
  --matrix-green-subtle: rgba(0, 255, 65, 0.08);
  --matrix-green-border: rgba(0, 255, 65, 0.15);
  --matrix-green-border-hover: rgba(0, 255, 65, 0.35);
  --matrix-cyan: #00e5ff;
  --matrix-white: #c0ffcc;

  /* Backgrounds */
  --bg-primary: #000000;
  --bg-secondary: #030d03;
  --bg-card: rgba(0, 255, 65, 0.03);
  --bg-card-hover: rgba(0, 255, 65, 0.07);
  --bg-glass: rgba(0, 255, 65, 0.04);
  --border-glass: var(--matrix-green-border);
  --border-glass-hover: var(--matrix-green-border-hover);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00ff41 0%, #00cc33 50%, #008f11 100%);
  --gradient-accent: linear-gradient(135deg, #00ff41 0%, #00e5ff 100%);
  --gradient-hero: linear-gradient(160deg, #000000 0%, #000a00 30%, #001a00 50%, #000000 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 65, 0.08) 0%, transparent 60%);
  --gradient-card-border: linear-gradient(135deg, rgba(0, 255, 65, 0.4), rgba(0, 255, 65, 0.05), rgba(0, 229, 255, 0.3));

  /* Text */
  --text-primary: #c0ffc8;
  --text-secondary: #5a9e62;
  --text-muted: #2d6e35;
  --text-accent: #00ff41;

  /* Fonts */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Share Tech Mono', 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --card-radius: 4px;
  --card-radius-sm: 2px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s 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;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* CRT scan line overlay across entire site */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

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

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: var(--matrix-green-dark);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--matrix-green-dim);
}

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

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

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--matrix-green-dim);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--matrix-green);
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.4), 0 0 60px rgba(0, 255, 65, 0.1);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 16px auto 0;
  font-weight: 400;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--matrix-green);
  text-shadow: 0 0 10px var(--matrix-green-glow);
  letter-spacing: 2px;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--matrix-green);
  box-shadow: 0 0 8px var(--matrix-green-glow);
  transition: width var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--matrix-green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

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

.nav-cta {
  padding: 8px 20px !important;
  background: transparent !important;
  border: 1px solid var(--matrix-green) !important;
  color: var(--matrix-green) !important;
  text-shadow: 0 0 10px var(--matrix-green-glow);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: rgba(0, 255, 65, 0.1) !important;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), inset 0 0 20px rgba(0, 255, 65, 0.05);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--matrix-green);
  border-radius: 0;
  transition: all var(--transition-fast);
  box-shadow: 0 0 4px var(--matrix-green-glow);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Matrix rain canvas */
#matrixCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Floating orbs - green */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: orbFloat 15s ease-in-out infinite;
  z-index: 2;
}

.hero-orb:nth-child(1) {
  width: 500px;
  height: 500px;
  background: rgba(0, 255, 65, 0.15);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.hero-orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: rgba(0, 200, 50, 0.1);
  bottom: 10%;
  right: -10%;
  animation-delay: -5s;
}

.hero-orb:nth-child(3) {
  width: 250px;
  height: 250px;
  background: rgba(0, 229, 255, 0.08);
  top: 55%;
  left: 35%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.9); }
  75% { transform: translate(25px, 15px) scale(1.05); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 24px;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 0;
  margin: 0 auto 32px;
  border: 1px solid var(--matrix-green);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.2), inset 0 0 30px rgba(0, 255, 65, 0.05);
  animation: avatarGlow 3s ease-in-out infinite;
}

/* Green overlay on avatar */
.hero-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 65, 0.1);
  mix-blend-mode: color;
  pointer-events: none;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%) brightness(1.1);
}

@keyframes avatarGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.2); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.4), 0 0 80px rgba(0, 255, 65, 0.1); }
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--matrix-green-dim);
  margin-bottom: 16px;
  font-weight: 400;
  letter-spacing: 2px;
}

.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--matrix-green);
  text-shadow: 0 0 30px rgba(0, 255, 65, 0.5), 0 0 80px rgba(0, 255, 65, 0.2);
  position: relative;
}

/* Glitch effect on name */
.hero-name .gradient-text {
  color: var(--matrix-green);
  background: none;
  -webkit-text-fill-color: var(--matrix-green);
  position: relative;
  display: inline-block;
  animation: glitch 4s infinite;
}

@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); text-shadow: 0 0 30px rgba(0, 255, 65, 0.5); }
  91% { transform: translate(-2px, 1px); text-shadow: 2px 0 #00e5ff, -2px 0 #ff0040; }
  92% { transform: translate(2px, -1px); text-shadow: -2px 0 #00e5ff, 2px 0 #ff0040; }
  93% { transform: translate(0); text-shadow: 0 0 30px rgba(0, 255, 65, 0.5); }
  95% { transform: translate(1px, 1px); text-shadow: 1px 0 #00e5ff, -1px 0 #ff0040; }
  96% { transform: translate(0); text-shadow: 0 0 30px rgba(0, 255, 65, 0.5); }
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Typing effect */
.typing-wrapper {
  display: inline-flex;
  align-items: center;
}

.typing-text {
  color: var(--matrix-green);
  font-weight: 400;
  border-right: 2px solid var(--matrix-green);
  animation: blink 0.7s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 0 10px var(--matrix-green-glow);
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
}

.hero-socials a {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
}

.hero-socials a:hover {
  color: var(--matrix-green);
  border-color: var(--matrix-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), inset 0 0 20px rgba(0, 255, 65, 0.05);
  transform: translateY(-3px);
}

.hero-socials svg {
  width: 20px;
  height: 20px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 10;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--matrix-green), transparent);
  box-shadow: 0 0 6px var(--matrix-green-glow);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.btn-primary {
  background: transparent;
  color: var(--matrix-green);
  border: 1px solid var(--matrix-green);
  text-shadow: 0 0 10px var(--matrix-green-glow);
}

.btn-primary:hover {
  background: rgba(0, 255, 65, 0.1);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.2), inset 0 0 30px rgba(0, 255, 65, 0.05);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  color: var(--matrix-green);
  border-color: var(--matrix-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- About Section ---------- */
.about {
  background: var(--bg-secondary);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--matrix-green-dark), transparent);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--matrix-green);
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

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

.about-text strong {
  color: var(--matrix-green);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat-card {
  text-align: center;
  padding: 20px 12px;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: 0;
  transition: all var(--transition-smooth);
  position: relative;
}

.stat-card:hover {
  border-color: var(--matrix-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1), inset 0 0 30px rgba(0, 255, 65, 0.03);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 400;
  color: var(--matrix-green);
  text-shadow: 0 0 20px var(--matrix-green-glow);
  display: block;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  letter-spacing: 0.5px;
}

.tech-badge:hover {
  border-color: var(--matrix-green);
  color: var(--matrix-green);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.tech-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

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

.project-card {
  position: relative;
  background: rgba(0, 255, 65, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 0;
  padding: 28px;
  transition: all var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Scan line animation on hover */
.project-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--matrix-green);
  box-shadow: 0 0 15px var(--matrix-green-glow), 0 0 40px rgba(0, 255, 65, 0.3);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover {
  border-color: var(--matrix-green);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.08), inset 0 0 40px rgba(0, 255, 65, 0.02);
  transform: translateY(-4px);
}

.project-card:hover::before {
  opacity: 1;
  animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
  0% { top: -2px; }
  100% { top: 100%; }
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--matrix-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--matrix-green);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
}

.project-icon svg {
  width: 22px;
  height: 22px;
}

.project-links {
  display: flex;
  gap: 8px;
}

.project-links a {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.project-links a:hover {
  color: var(--matrix-green);
  border-color: var(--matrix-green);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.project-links svg {
  width: 15px;
  height: 15px;
}

.project-name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--matrix-green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

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

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 10px;
  background: rgba(0, 255, 65, 0.06);
  color: var(--matrix-green-dim);
  border-radius: 0;
  font-weight: 400;
  border: 1px solid rgba(0, 255, 65, 0.1);
  letter-spacing: 0.5px;
}

.project-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.project-stars svg {
  width: 14px;
  height: 14px;
  color: var(--matrix-green);
}

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

.blog-card {
  background: rgba(0, 255, 65, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 0;
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.blog-card:hover {
  border-color: var(--matrix-green);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.08);
  transform: translateY(-4px);
}

/* Horizontal scan on hover */
.blog-card:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
  animation: hScan 1.5s linear infinite;
  z-index: 5;
}

@keyframes hScan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.blog-card-cover {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #001a00, #000a00);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

/* Matrix code pattern — fallback when no image */
.blog-card-cover::before {
  content: '01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100';
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(0, 255, 65, 0.12);
  padding: 10px;
  line-height: 1.8;
  word-break: break-all;
  overflow: hidden;
  z-index: 1;
}

/* Green tint overlay on cover images */
.blog-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 10, 0, 0.4) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  filter: brightness(0.9) saturate(0.8);
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.blog-card:hover .blog-card-cover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(0.9);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-card-meta .tag {
  padding: 2px 8px;
  background: rgba(0, 255, 65, 0.06);
  color: var(--matrix-green-dim);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  border: 1px solid rgba(0, 255, 65, 0.1);
}

.blog-card-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--matrix-green);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.15);
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--matrix-green-dim);
  transition: all var(--transition-fast);
  letter-spacing: 1px;
}

.blog-card:hover .blog-card-read-more {
  color: var(--matrix-green);
  gap: 10px;
  text-shadow: 0 0 8px var(--matrix-green-glow);
}

/* ---------- Contact Section ---------- */
.contact {
  background: var(--bg-secondary);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--matrix-green-dark), transparent);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: 0;
  padding: 32px;
  text-align: center;
  transition: all var(--transition-smooth);
}

.contact-card:hover {
  border-color: var(--matrix-green);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.1), inset 0 0 30px rgba(0, 255, 65, 0.02);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: transparent !important;
  border: 1px solid var(--matrix-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--matrix-green);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h4 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--matrix-green);
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.contact-card a {
  color: var(--matrix-green-dim);
}

.contact-card a:hover {
  color: var(--matrix-green);
  text-shadow: 0 0 8px var(--matrix-green-glow);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  background: #000;
}

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

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

.footer-text span {
  color: var(--matrix-green);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}

.footer-links a:hover {
  color: var(--matrix-green);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

/* ---------- Blog Page Styles ---------- */
.blog-page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: #000;
  position: relative;
}

.blog-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.blog-list {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.blog-list-item {
  display: flex;
  gap: 24px;
  background: rgba(0, 255, 65, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 0;
  padding: 24px;
  transition: all var(--transition-smooth);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.blog-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--matrix-green);
  box-shadow: 0 0 10px var(--matrix-green-glow);
  transition: height var(--transition-smooth);
}

.blog-list-item:hover {
  border-color: var(--matrix-green);
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.06);
  transform: translateX(4px);
}

.blog-list-item:hover::before {
  height: 100%;
}

.blog-list-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 90px;
  text-align: center;
}

.blog-list-info {
  flex: 1;
}

.blog-list-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--matrix-green);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.15);
}

.blog-list-excerpt {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.blog-list-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.blog-list-thumb {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.blog-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.8);
  transition: transform var(--transition-smooth);
}

.blog-list-item:hover .blog-list-thumb img {
  transform: scale(1.08);
}

.blog-list-date-inline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------- Blog Post Styles ---------- */
.post-hero {
  padding: 160px 0 60px;
  background: #000;
  position: relative;
}

.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.post-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-meta-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-title {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--matrix-green);
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.post-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Post Cover Image */
.post-cover {
  max-width: 760px;
  margin: -20px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.post-cover img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--border-glass);
  border-radius: 0;
  filter: brightness(0.9) saturate(0.85);
}

/* Post Content (rendered Markdown) */
.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: var(--font-mono);
  font-weight: 400;
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.3;
  color: var(--matrix-green);
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.2);
}

.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.4rem; }
.post-content h3 { font-size: 1.2rem; }
.post-content h4 { font-size: 1rem; }

.post-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5em;
}

.post-content a {
  color: var(--matrix-green);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 65, 0.3);
  text-underline-offset: 3px;
}

.post-content a:hover {
  text-shadow: 0 0 8px var(--matrix-green-glow);
  text-decoration-color: var(--matrix-green);
}

.post-content strong {
  color: var(--matrix-green);
  font-weight: 600;
}

.post-content em {
  color: var(--matrix-white);
}

.post-content ul,
.post-content ol {
  color: var(--text-secondary);
  padding-left: 1.5em;
  margin-bottom: 1.5em;
  line-height: 1.9;
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content li::marker {
  color: var(--matrix-green-dark);
}

.post-content blockquote {
  border-left: 2px solid var(--matrix-green);
  padding: 16px 20px;
  margin: 1.5em 0;
  background: rgba(0, 255, 65, 0.03);
  border-radius: 0;
  color: var(--text-secondary);
  font-style: italic;
  box-shadow: inset 4px 0 20px rgba(0, 255, 65, 0.03);
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 8px;
  background: rgba(0, 255, 65, 0.08);
  color: var(--matrix-green);
  border-radius: 0;
  border: 1px solid rgba(0, 255, 65, 0.1);
}

.post-content pre {
  background: rgba(0, 10, 0, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 0;
  padding: 20px 24px;
  margin: 1.5em 0;
  overflow-x: auto;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.03);
}

.post-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--matrix-green-dim);
  font-size: 0.85rem;
  line-height: 1.7;
}

.post-content img {
  border-radius: 0;
  margin: 2em auto;
  border: 1px solid var(--border-glass);
  filter: grayscale(30%);
}

.post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--matrix-green-dark), transparent);
  margin: 3em 0;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.15);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.post-content th,
.post-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.post-content th {
  color: var(--matrix-green);
  font-weight: 400;
  background: rgba(0, 255, 65, 0.03);
}

/* Back to blog link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 8px 0;
  transition: all var(--transition-fast);
  letter-spacing: 1px;
}

.back-link:hover {
  color: var(--matrix-green);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ---------- Animations (Scroll Reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.project-card.reveal { transition-delay: calc(var(--card-index, 0) * 0.08s); }

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

.view-all-wrapper {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Loading Spinner ---------- */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--matrix-green);
  margin: 0 5px;
  animation: loaderPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--matrix-green-glow);
}

.loader-dot:nth-child(1) { animation-delay: 0s; }
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderPulse {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.empty-state p {
  font-size: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  body::after {
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0, 0, 0, 0.06) 1px,
      rgba(0, 0, 0, 0.06) 2px
    );
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 20px;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--border-glass);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .stat-number {
    font-size: 1.5rem;
  }

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

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

  .blog-list-item {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .hero-name {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero-avatar {
    width: 100px;
    height: 100px;
  }

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

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

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }
}
