/**
 * ============================================================================
 * Hashimi Blog — Premium Dark-Themed Design System (modern.css)
 * High-performance, futuristic dark aesthetics with glassmorphism,
 * neon/violet/cyan glow effects, responsive typography, and micro-interactions.
 * ============================================================================
 */

/* ==========================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */

:root {
  /* Brand Core Palette — Futuristic Violet / Indigo / Cyan */
  --hb-primary: #7c3aed;
  --hb-primary-light: #9061f9;
  --hb-primary-dark: #6d28d9;
  --hb-primary-rgb: 124, 58, 237;

  --hb-accent: #06b6d4;
  --hb-accent-light: #22d3ee;
  --hb-accent-dark: #0891b2;
  --hb-accent-rgb: 6, 182, 212;

  --hb-neon: #00ff88;
  --hb-neon-rgb: 0, 255, 136;
  --hb-neon-alt: #8b5cf6;
  --hb-neon-alt-rgb: 139, 92, 246;

  /* Surfaces & Backgrounds — Obsidian Depth */
  --hb-bg: #050510;
  --hb-bg-subtle: #090918;
  --hb-bg-alt: #0d0d22;
  --hb-surface: #121226;
  --hb-surface-elevated: #1a1a36;
  --hb-surface-hover: #222247;
  --hb-surface-active: #2b2b58;

  /* Glassmorphism Overlays */
  --hb-glass-bg: rgba(18, 18, 38, 0.72);
  --hb-glass-bg-card: rgba(18, 18, 38, 0.65);
  --hb-glass-bg-hover: rgba(26, 26, 54, 0.85);
  --hb-glass-border: rgba(148, 163, 184, 0.12);
  --hb-glass-border-hover: rgba(124, 58, 237, 0.45);
  --hb-glass-border-active: rgba(6, 182, 212, 0.55);
  --hb-glass-blur: blur(16px);
  --hb-glass-blur-lg: blur(24px);

  /* Typography Colors */
  --hb-text: #f8fafc;
  --hb-text-heading: #ffffff;
  --hb-text-subtle: #cbd5e1;
  --hb-body-text: #94a3b8;
  --hb-muted: #64748b;
  --hb-muted-dark: #475569;

  /* State & Semantic Colors */
  --hb-success: #10b981;
  --hb-warning: #f59e0b;
  --hb-danger: #ef4444;
  --hb-info: #3b82f6;

  /* Borders & Dividers */
  --hb-border: rgba(148, 163, 184, 0.14);
  --hb-border-light: rgba(255, 255, 255, 0.08);
  --hb-border-glow: rgba(124, 58, 237, 0.35);

  /* Gradients */
  --hb-gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #8b5cf6 100%);
  --hb-gradient-hover: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 50%, #a78bfa 100%);
  --hb-gradient-accent: linear-gradient(135deg, #06b6d4 0%, #00ff88 100%);
  --hb-gradient-dark: linear-gradient(180deg, rgba(5, 5, 16, 0.6) 0%, #050510 100%);
  --hb-gradient-card: linear-gradient(145deg, rgba(26, 26, 54, 0.4) 0%, rgba(18, 18, 38, 0.8) 100%);
  --hb-gradient-border: linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(6, 182, 212, 0.4), transparent);
  --hb-gradient-mesh: radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.18) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
                      radial-gradient(at 50% 100%, rgba(139, 92, 246, 0.12) 0px, transparent 50%);

  /* Glow Shadows */
  --hb-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.65);
  --hb-shadow-lg: 0 30px 60px -15px rgba(0, 0, 0, 0.85);
  --hb-shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --hb-glow-primary: 0 0 25px rgba(124, 58, 237, 0.45);
  --hb-glow-accent: 0 0 25px rgba(6, 182, 212, 0.45);
  --hb-glow-neon: 0 0 20px rgba(0, 255, 136, 0.4);
  --hb-glow-subtle: 0 0 15px rgba(124, 58, 237, 0.25);

  /* Radius Tokens */
  --hb-radius-sm: 0.5rem;
  --hb-radius: 0.875rem;
  --hb-radius-md: 1.125rem;
  --hb-radius-lg: 1.5rem;
  --hb-radius-xl: 2rem;
  --hb-radius-full: 9999px;

  /* Typography Stacks */
  --hb-font-display: "Playfair Display", Georgia, serif;
  --hb-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hb-font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Navigation Specific */
  --hb-nav-bg: rgba(5, 5, 16, 0.8);
  --hb-nav-bg-fixed: rgba(5, 5, 16, 0.94);
  --hb-nav-height: 4.5rem;

  /* Transitions */
  --hb-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --hb-transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --hb-transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --hb-transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* About Theme Token Aliases */
  --about-bg: var(--hb-bg);
  --about-surface: var(--hb-surface);
  --about-neon: var(--hb-neon);
  --about-neon-alt: var(--hb-neon-alt);
  --about-mono: var(--hb-font-mono);
  --about-glass: var(--hb-glass-bg);
  --about-glass-border: var(--hb-glass-border);
  --about-radius: var(--hb-radius);
  --about-radius-lg: var(--hb-radius-lg);
}

/* ==========================================================================
   LIGHT MODE OVERRIDES — html.theme-light
   Clean, luminous aesthetic preserving brand elegance
   ========================================================================== */

html.theme-light {
  --hb-bg: #f8fafc;
  --hb-bg-subtle: #f1f5f9;
  --hb-bg-alt: #e2e8f0;
  --hb-surface: #ffffff;
  --hb-surface-elevated: #f8fafc;
  --hb-surface-hover: #f1f5f9;
  --hb-surface-active: #e2e8f0;

  --hb-glass-bg: rgba(255, 255, 255, 0.85);
  --hb-glass-bg-card: rgba(255, 255, 255, 0.88);
  --hb-glass-bg-hover: rgba(255, 255, 255, 0.98);
  --hb-glass-border: rgba(15, 23, 42, 0.08);
  --hb-glass-border-hover: rgba(124, 58, 237, 0.35);
  --hb-glass-border-active: rgba(6, 182, 212, 0.45);

  --hb-text: #0f172a;
  --hb-text-heading: #020617;
  --hb-text-subtle: #334155;
  --hb-body-text: #475569;
  --hb-muted: #64748b;
  --hb-muted-dark: #94a3b8;

  --hb-border: rgba(15, 23, 42, 0.08);
  --hb-border-light: rgba(15, 23, 42, 0.04);
  --hb-border-glow: rgba(124, 58, 237, 0.2);

  --hb-gradient: linear-gradient(135deg, #6d28d9 0%, #0891b2 50%, #7c3aed 100%);
  --hb-gradient-hover: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #8b5cf6 100%);
  --hb-gradient-dark: linear-gradient(180deg, rgba(248, 250, 252, 0.7) 0%, #f8fafc 100%);
  --hb-gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --hb-gradient-mesh: radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.08) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
                      radial-gradient(at 50% 100%, rgba(139, 92, 246, 0.06) 0px, transparent 50%);

  --hb-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.08);
  --hb-shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
  --hb-shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  --hb-glow-primary: 0 0 20px rgba(124, 58, 237, 0.2);
  --hb-glow-accent: 0 0 20px rgba(6, 182, 212, 0.2);
  --hb-glow-neon: 0 0 16px rgba(0, 255, 136, 0.2);

  --hb-nav-bg: rgba(248, 250, 252, 0.88);
  --hb-nav-bg-fixed: rgba(255, 255, 255, 0.96);

  --about-bg: var(--hb-bg);
  --about-surface: var(--hb-surface);
  --about-glass: var(--hb-glass-bg);
  --about-glass-border: var(--hb-glass-border);
}

/* ==========================================================================
   2. GLOBAL RESETS, SCROLLBAR & TYPOGRAPHY
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Custom Pro Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--hb-bg);
  border-left: 1px solid var(--hb-border);
}

::-webkit-scrollbar-thumb {
  background: var(--hb-surface-elevated);
  border: 2px solid var(--hb-bg);
  border-radius: var(--hb-radius-full);
  transition: background var(--hb-transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--hb-primary);
  box-shadow: var(--hb-glow-subtle);
}

/* Global Selection */
::selection {
  background: rgba(124, 58, 237, 0.4);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

/* Body Styling */
body.modern-blog {
  font-family: var(--hb-font-body);
  background-color: var(--hb-bg);
  background-image: var(--hb-gradient-mesh);
  background-attachment: fixed;
  color: var(--hb-text);
  line-height: 1.7;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--hb-transition-smooth), color var(--hb-transition-smooth);

  /* Bootstrap 5 Overrides */
  --bs-body-color: var(--hb-text);
  --bs-body-bg: var(--hb-bg);
  --bs-link-color: var(--hb-accent);
  --bs-link-hover-color: var(--hb-accent-light);
  --bs-primary: var(--hb-primary);
}

/* Headings */
body.modern-blog h1,
body.modern-blog h2,
body.modern-blog h3,
body.modern-blog h4,
body.modern-blog h5,
body.modern-blog h6,
body.modern-blog .h1,
body.modern-blog .h2,
body.modern-blog .h3,
body.modern-blog .h4,
body.modern-blog .h5,
body.modern-blog .h6 {
  font-family: var(--hb-font-display);
  color: var(--hb-text-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 1rem;
}

body.modern-blog h1, body.modern-blog .h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
body.modern-blog h2, body.modern-blog .h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
body.modern-blog h3, body.modern-blog .h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
body.modern-blog h4, body.modern-blog .h4 { font-size: 1.35rem; }
body.modern-blog h5, body.modern-blog .h5 { font-size: 1.15rem; }
body.modern-blog h6, body.modern-blog .h6 { font-size: 1rem; }

body.modern-blog p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--hb-body-text);
}

body.modern-blog a {
  color: var(--hb-accent);
  text-decoration: none;
  transition: color var(--hb-transition-fast), text-shadow var(--hb-transition-fast);
}

body.modern-blog a:hover,
body.modern-blog a:focus {
  color: var(--hb-accent-light);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

body.modern-blog code,
body.modern-blog kbd,
body.modern-blog pre {
  font-family: var(--hb-font-mono);
}

/* Gradient Text Utility */
.text-gradient {
  background: var(--hb-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Glow Utilities */
.glow-primary {
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

.glow-accent {
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

.glow-neon {
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

/* ==========================================================================
   3. NAVIGATION BAR (#mainNav)
   ========================================================================== */

body.modern-blog #mainNav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--hb-nav-bg);
  backdrop-filter: var(--hb-glass-blur);
  -webkit-backdrop-filter: var(--hb-glass-blur);
  border-bottom: 1px solid var(--hb-border);
  padding: 0.85rem 0;
  transition: background-color var(--hb-transition-smooth),
              box-shadow var(--hb-transition-smooth),
              transform var(--hb-transition-smooth),
              border-color var(--hb-transition-smooth),
              padding var(--hb-transition-smooth);
}

body.modern-blog #mainNav .container,
body.modern-blog #mainNav .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
body.modern-blog #mainNav .navbar-brand {
  font-family: var(--hb-font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  background: var(--hb-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: transform var(--hb-transition-fast), filter var(--hb-transition-fast);
}

body.modern-blog #mainNav .navbar-brand:hover {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.45));
}

/* Nav Links */
body.modern-blog #mainNav .navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

body.modern-blog #mainNav .nav-link {
  font-family: var(--hb-font-body);
  font-weight: 500;
  font-size: 0.925rem;
  letter-spacing: 0.01em;
  color: var(--hb-muted) !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--hb-radius-sm);
  position: relative;
  transition: color var(--hb-transition-fast), background-color var(--hb-transition-fast);
}

body.modern-blog #mainNav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--hb-gradient);
  border-radius: var(--hb-radius-full);
  transform: translateX(-50%);
  transition: width var(--hb-transition-smooth);
}

body.modern-blog #mainNav .nav-link:hover,
body.modern-blog #mainNav .nav-link:focus,
body.modern-blog #mainNav .nav-link.active {
  color: var(--hb-text) !important;
  background: rgba(255, 255, 255, 0.03);
}

body.modern-blog #mainNav .nav-link:hover::after,
body.modern-blog #mainNav .nav-link.active::after {
  width: calc(100% - 1.8rem);
}

/* Fixed & Visible States */
body.modern-blog #mainNav.is-fixed {
  position: fixed;
  top: -100px;
  background: var(--hb-nav-bg-fixed);
  box-shadow: var(--hb-shadow);
  border-bottom: 1px solid var(--hb-border);
  padding: 0.65rem 0;
}

body.modern-blog #mainNav.is-visible {
  transform: translateY(100px);
}

/* Navbar Toggler */
body.modern-blog #mainNav .navbar-toggler {
  border: 1px solid var(--hb-border);
  background: var(--hb-surface);
  color: var(--hb-text);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border-radius: var(--hb-radius-sm);
  transition: border-color var(--hb-transition-fast), box-shadow var(--hb-transition-fast);
}

body.modern-blog #mainNav .navbar-toggler:focus,
body.modern-blog #mainNav .navbar-toggler:hover {
  border-color: var(--hb-primary);
  box-shadow: var(--hb-glow-subtle);
  outline: none;
}

/* Global Theme Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0.25rem 0.5rem;
  padding: 0;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-full);
  background: var(--hb-surface);
  color: var(--hb-text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--hb-transition-fast),
              box-shadow var(--hb-transition-fast),
              transform var(--hb-transition-fast),
              background-color var(--hb-transition-fast);
}

.theme-toggle:hover {
  border-color: var(--hb-primary);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
  transform: scale(1.08) rotate(10deg);
  background: var(--hb-surface-elevated);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle i {
  font-size: 1rem;
  transition: transform var(--hb-transition-bounce);
}

.theme-toggle .theme-icon-light { display: none; }
html.theme-light .theme-toggle .theme-icon-dark { display: none; }
html.theme-light .theme-toggle .theme-icon-light {
  display: inline;
  color: #f59e0b;
}

@media (min-width: 992px) {
  .theme-toggle {
    margin: 0 0 0 0.85rem;
  }
}

/* ==========================================================================
   4. HERO MODERN SECTION (.hero-modern)
   ========================================================================== */

.hero-modern {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--hb-bg);
  padding: 8rem 0 5rem;
}

/* Futuristic Animated Gradient Mesh Background */
.hero-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(5, 5, 16, 0.4) 0%, rgba(5, 5, 16, 0.95) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Grid Line Matrix Overlay */
.hero-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 20%, transparent 75%);
  z-index: 1;
  pointer-events: none;
}

/* Hero Background Image with Cinematic Zoom */
.hero-modern .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.2) brightness(0.65);
  transform: scale(1.04);
  animation: heroZoom 24s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes heroZoom {
  0% { transform: scale(1.04) rotate(0deg); }
  50% { transform: scale(1.12) rotate(0.4deg); }
  100% { transform: scale(1.06) rotate(-0.3deg); }
}

/* Particle Canvas Container */
.particle-canvas,
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

/* Hero Content Area */
.hero-modern .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}

/* Hero Badge */
.hero-modern .hero-badge,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: var(--hb-radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.45);
  color: #c4b5fd;
  backdrop-filter: var(--hb-glass-blur);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
  transition: border-color var(--hb-transition-fast), box-shadow var(--hb-transition-fast);
}

.hero-modern .hero-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hb-accent);
  box-shadow: 0 0 10px var(--hb-accent);
  animation: aboutPulse 2s ease-in-out infinite;
}

.hero-modern h1 {
  font-family: var(--hb-font-display);
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-modern .hero-subtitle {
  font-family: var(--hb-font-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--hb-text-subtle);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Hero Stats Counter Bar */
.hero-stats {
  display: inline-flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.25rem 2.25rem;
  background: var(--hb-glass-bg);
  border: 1px solid var(--hb-glass-border);
  border-radius: var(--hb-radius-xl);
  backdrop-filter: var(--hb-glass-blur-lg);
  box-shadow: var(--hb-shadow-lg);
  margin-top: 1rem;
}

.hero-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  position: relative;
}

.hero-stats .stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--hb-border);
}

.hero-stats .stat-item strong {
  font-family: var(--hb-font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--hb-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.4));
}

.hero-stats .stat-item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hb-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ==========================================================================
   5. BLOG MAIN & SECTION LABELS
   ========================================================================== */

.blog-main {
  padding: 5rem 0 6rem;
  position: relative;
  z-index: 2;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--hb-accent);
  margin-bottom: 0.6rem;
  position: relative;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hb-accent);
  box-shadow: 0 0 8px var(--hb-accent);
}

.section-title {
  font-family: var(--hb-font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2.75rem;
  position: relative;
  display: inline-block;
}

/* ==========================================================================
   6. FEATURED STORY POST CARD (.featured-post)
   ========================================================================== */

.featured-post {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--hb-gradient-card);
  border: 1px solid var(--hb-glass-border);
  border-radius: var(--hb-radius-lg);
  overflow: hidden;
  box-shadow: var(--hb-shadow-lg);
  position: relative;
  backdrop-filter: var(--hb-glass-blur);
  margin-bottom: 4.5rem;
  transition: transform var(--hb-transition-smooth),
              box-shadow var(--hb-transition-smooth),
              border-color var(--hb-transition-smooth);
}

.featured-post::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--hb-gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity var(--hb-transition-base);
}

.featured-post:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(124, 58, 237, 0.25);
}

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

@media (min-width: 992px) {
  .featured-post {
    grid-template-columns: 1.25fr 1fr;
  }
}

.featured-post-image {
  min-height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--hb-transition-smooth);
}

.featured-post:hover .featured-post-image {
  transform: scale(1.03);
}

.featured-post-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 60%,
    var(--hb-surface) 100%
  );
  pointer-events: none;
}

@media (max-width: 991px) {
  .featured-post-image::after {
    background: linear-gradient(
      to bottom,
      transparent 50%,
      var(--hb-surface) 100%
    );
  }
}

.featured-post-content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.featured-post .featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.featured-post .featured-label::before {
  content: "★";
  font-size: 0.85rem;
}

.featured-post h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.featured-post h2 a {
  color: var(--hb-text);
  text-decoration: none;
  transition: color var(--hb-transition-fast);
}

.featured-post h2 a:hover {
  color: var(--hb-primary-light);
  text-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.featured-post-content .text-muted {
  color: var(--hb-body-text) !important;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================================================
   7. POST CARDS (.post-card) & ARCHIVE GRID
   ========================================================================== */

.post-card {
  background: var(--hb-glass-bg-card);
  border: 1px solid var(--hb-glass-border);
  border-radius: var(--hb-radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: var(--hb-glass-blur);
  box-shadow: var(--hb-shadow-card);
  transition: transform var(--hb-transition-smooth),
              box-shadow var(--hb-transition-smooth),
              border-color var(--hb-transition-smooth);
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(6, 182, 212, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity var(--hb-transition-base);
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.75), 0 0 28px rgba(124, 58, 237, 0.22);
}

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

.post-card a:first-child {
  display: block;
  overflow: hidden;
}

.post-card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform var(--hb-transition-smooth), filter var(--hb-transition-smooth);
}

.post-card:hover .post-card-image {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.post-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--hb-surface) 0%, rgba(18, 18, 38, 0.2) 65%, transparent 100%);
  pointer-events: none;
}

.post-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}

.post-card .post-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--hb-radius-full);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--hb-accent);
  margin-bottom: 0.95rem;
  transition: background-color var(--hb-transition-fast), border-color var(--hb-transition-fast);
}

.post-card:hover .post-tag {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.post-card h2 {
  font-family: var(--hb-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 0.75rem;
}

.post-card h2 a {
  color: var(--hb-text);
  text-decoration: none;
  transition: color var(--hb-transition-fast);
}

.post-card h2 a:hover {
  color: var(--hb-primary-light);
  text-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.post-card .post-excerpt {
  color: var(--hb-body-text);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--hb-muted);
  padding-top: 1.15rem;
  border-top: 1px solid var(--hb-border);
  margin-top: auto;
}

.post-card-meta .author {
  font-weight: 600;
  color: var(--hb-text);
}

/* Post Card Loading Shimmer Effect */
.post-card.loading,
.post-card-shimmer {
  position: relative;
  overflow: hidden;
}

.post-card.loading::after,
.post-card-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ==========================================================================
   8. BUTTONS & CALLS TO ACTION
   ========================================================================== */

body.modern-blog .btn-primary {
  background: var(--hb-gradient);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--hb-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform var(--hb-transition-fast),
              box-shadow var(--hb-transition-fast),
              filter var(--hb-transition-fast);
}

body.modern-blog .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hb-gradient-hover);
  opacity: 0;
  transition: opacity var(--hb-transition-fast);
}

body.modern-blog .btn-primary:hover,
body.modern-blog .btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.55), 0 0 20px rgba(6, 182, 212, 0.4);
  color: #ffffff;
}

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

body.modern-blog .btn-primary:active {
  transform: translateY(1px);
}

body.modern-blog .btn-primary * {
  position: relative;
  z-index: 1;
}

body.modern-blog .btn-outline-light {
  border: 1px solid var(--hb-border);
  background: var(--hb-glass-bg);
  backdrop-filter: var(--hb-glass-blur);
  color: var(--hb-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--hb-radius-sm);
  transition: border-color var(--hb-transition-fast),
              background-color var(--hb-transition-fast),
              transform var(--hb-transition-fast),
              box-shadow var(--hb-transition-fast);
}

body.modern-blog .btn-outline-light:hover,
body.modern-blog .btn-outline-light:focus {
  background: var(--hb-surface-elevated);
  border-color: var(--hb-primary);
  color: var(--hb-text);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}

/* Read Button with Arrow Slide Animation */
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hb-accent);
  text-decoration: none;
  transition: gap var(--hb-transition-fast), color var(--hb-transition-fast);
}

.btn-read i,
.btn-read svg {
  transition: transform var(--hb-transition-fast);
}

.btn-read:hover {
  gap: 0.75rem;
  color: var(--hb-accent-light);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.btn-read:hover i,
.btn-read:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   9. ARTICLE & POST DETAILS PAGE
   ========================================================================== */

/* Fixed Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--hb-gradient);
  box-shadow: 0 0 10px var(--hb-accent), 0 0 5px var(--hb-primary);
  z-index: 1040;
  transition: width 0.1s ease-out;
}

/* Post Hero Masthead */
body.modern-blog header.masthead.post-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 9rem 0 6rem;
  margin-bottom: 0;
}

body.modern-blog header.masthead.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 16, 0.45) 0%,
    rgba(5, 5, 16, 0.96) 100%
  );
  z-index: 1;
}

body.modern-blog .post-heading {
  position: relative;
  z-index: 2;
  text-align: center;
}

body.modern-blog .post-heading h1 {
  font-family: var(--hb-font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

body.modern-blog .post-heading .subheading {
  font-family: var(--hb-font-body);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--hb-text-subtle);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

body.modern-blog .post-heading .meta {
  font-size: 0.92rem;
  color: var(--hb-muted);
  display: inline-block;
  margin: 0.25rem 0.75rem;
}

body.modern-blog .post-heading .meta a {
  color: var(--hb-accent);
  font-weight: 600;
}

/* Main Post Content Glass Container */
body.modern-blog article .post-content {
  background: var(--hb-gradient-card);
  border: 1px solid var(--hb-glass-border);
  border-radius: var(--hb-radius-lg);
  padding: 3.5rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 3;
  backdrop-filter: var(--hb-glass-blur-lg);
  box-shadow: var(--hb-shadow-lg);
  line-height: 1.85;
  font-size: 1.1rem;
  color: var(--hb-body-text);
}

body.modern-blog article .post-content p {
  margin-bottom: 1.65rem;
  color: var(--hb-body-text);
}

body.modern-blog article .post-content h2,
body.modern-blog article .post-content h3,
body.modern-blog article .post-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  color: var(--hb-text-heading);
}

body.modern-blog article .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--hb-radius);
  border: 1px solid var(--hb-border);
  box-shadow: var(--hb-shadow);
  margin: 2rem 0;
}

body.modern-blog article .post-content blockquote {
  border-left: 4px solid var(--hb-primary);
  background: rgba(124, 58, 237, 0.08);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--hb-radius) var(--hb-radius) 0;
  font-style: italic;
  color: var(--hb-text);
}

body.modern-blog article .post-content pre {
  background: #090914;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}

body.modern-blog article .post-content code {
  color: var(--hb-neon);
  background: rgba(0, 255, 136, 0.08);
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.9em;
}

/* ==========================================================================
   10. COMMENTS SECTION (.comment-section)
   ========================================================================== */

body.modern-blog .comment-section {
  background: var(--hb-glass-bg-card);
  border: 1px solid var(--hb-glass-border);
  border-radius: var(--hb-radius-lg);
  padding: 2.75rem;
  margin-top: 3rem;
  box-shadow: var(--hb-shadow);
  backdrop-filter: var(--hb-glass-blur);
}

body.modern-blog .comment-section h3 {
  font-family: var(--hb-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

body.modern-blog .commentList {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

body.modern-blog .commentList li {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hb-border);
  align-items: flex-start;
}

body.modern-blog .commentList li:last-child {
  border-bottom: none;
}

body.modern-blog .commenterImage img {
  width: 52px;
  height: 52px;
  border-radius: var(--hb-radius-full);
  border: 2px solid var(--hb-primary);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.35);
  object-fit: cover;
}

body.modern-blog .commentText {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 1.25rem 1.5rem;
  color: var(--hb-body-text);
}

body.modern-blog .commentText p:last-child {
  margin-bottom: 0;
}

body.modern-blog .commentText .date {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hb-accent);
}

/* ==========================================================================
   11. CONTENT CARDS (About / Contact general)
   ========================================================================== */

body.modern-blog .content-card {
  background: var(--hb-gradient-card);
  border: 1px solid var(--hb-glass-border);
  border-radius: var(--hb-radius-lg);
  padding: 3.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--hb-shadow-lg);
  backdrop-filter: var(--hb-glass-blur-lg);
}

body.modern-blog .content-card p {
  color: var(--hb-body-text);
  line-height: 1.85;
  font-size: 1.05rem;
}

body.modern-blog .profile-image {
  border-radius: var(--hb-radius-md);
  border: 2px solid rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.25);
  transition: transform var(--hb-transition-smooth), box-shadow var(--hb-transition-smooth);
}

body.modern-blog .profile-image:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.35);
}

/* ==========================================================================
   12. FORM CONTROLS & FLOATING INPUTS
   ========================================================================== */

body.modern-blog .form-control,
body.modern-blog .form-floating > .form-control {
  background: var(--hb-bg-subtle);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-sm);
  color: var(--hb-text);
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  transition: border-color var(--hb-transition-fast),
              box-shadow var(--hb-transition-fast),
              background-color var(--hb-transition-fast);
}

body.modern-blog .form-floating > label {
  color: var(--hb-muted);
  padding: 0.85rem 1.2rem;
}

body.modern-blog .form-control:focus,
body.modern-blog .form-floating > .form-control:focus {
  background: var(--hb-surface);
  border-color: var(--hb-primary);
  color: var(--hb-text);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25), 0 0 15px rgba(124, 58, 237, 0.3);
  outline: none;
}

body.modern-blog .form-control::placeholder {
  color: var(--hb-muted-dark);
}

/* Flash Messages */
body.modern-blog .flash-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #ddd6fe;
  padding: 1rem 1.25rem;
  border-radius: var(--hb-radius-sm);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15);
}

/* Admin Bar */
.admin-bar {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.delete-link {
  color: var(--hb-danger);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--hb-radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  transition: all var(--hb-transition-fast);
}

.delete-link:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* Legacy Separators */
body.modern-blog hr.my-4 {
  border-color: var(--hb-border);
  opacity: 0.8;
}

/* ==========================================================================
   13. SITE FOOTER
   ========================================================================== */

body.modern-blog footer.site-footer {
  background: var(--hb-surface);
  border-top: 1px solid var(--hb-border);
  position: relative;
  padding: 4.5rem 0 3rem;
  margin-top: 4rem;
}

body.modern-blog footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hb-gradient);
  opacity: 0.6;
}

body.modern-blog footer.site-footer .fa-stack-2x {
  color: var(--hb-surface-elevated);
  transition: color var(--hb-transition-fast), transform var(--hb-transition-fast);
}

body.modern-blog footer.site-footer .fa-inverse {
  color: var(--hb-text);
  transition: color var(--hb-transition-fast);
}

body.modern-blog footer.site-footer a:hover .fa-stack-2x {
  color: var(--hb-primary);
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.6));
}

body.modern-blog footer.site-footer a:hover .fa-inverse {
  color: #ffffff;
}

body.modern-blog footer .copyright {
  color: var(--hb-muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* Scroll To Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: var(--hb-radius-full);
  background: var(--hb-surface-elevated);
  border: 1px solid var(--hb-border);
  color: var(--hb-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--hb-transition-smooth);
  box-shadow: var(--hb-shadow);
}

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

.scroll-top:hover {
  background: var(--hb-primary);
  border-color: var(--hb-primary-light);
  box-shadow: var(--hb-glow-primary);
  transform: translateY(-4px);
  color: #fff;
}

/* ==========================================================================
   14. ABOUT ME — DEVELOPER PORTFOLIO SECTION
   ALL about-* classes carefully preserved and enhanced
   ========================================================================== */

.about-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 4rem;
  background: var(--about-bg);
  overflow: hidden;
}

.about-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.about-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: aboutOrbFloat 16s ease-in-out infinite alternate;
}

.about-orb--1 {
  width: 480px;
  height: 480px;
  background: var(--about-neon-alt);
  top: -10%;
  left: -5%;
}

.about-orb--2 {
  width: 380px;
  height: 380px;
  background: var(--about-neon);
  bottom: 5%;
  right: 10%;
  animation-delay: -5s;
}

.about-orb--3 {
  width: 300px;
  height: 300px;
  background: var(--hb-accent);
  top: 40%;
  left: 45%;
  animation-delay: -8s;
}

@keyframes aboutOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
  100% { transform: translate(-25px, 20px) scale(0.95); }
}

.about-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 46rem;
}

.about-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--hb-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--about-glass);
  border: 1px solid var(--about-glass-border);
  color: var(--hb-muted);
  backdrop-filter: var(--hb-glass-blur);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-badge--active {
  color: var(--about-neon);
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.about-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--about-neon);
  box-shadow: 0 0 10px var(--about-neon);
  animation: aboutPulse 2s ease-in-out infinite;
}

@keyframes aboutPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.about-hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--hb-accent);
  margin-bottom: 0.65rem;
}

.about-hero__title {
  font-family: var(--hb-font-body);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.about-hero__gradient {
  background: linear-gradient(135deg, var(--about-neon) 0%, var(--about-neon-alt) 50%, var(--hb-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.25));
}

.about-typing {
  font-family: var(--about-mono);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--about-neon);
  margin-bottom: 1.35rem;
  min-height: 1.7em;
  display: flex;
  align-items: center;
}

.about-typing__prompt {
  color: var(--about-neon-alt);
  margin-right: 0.65rem;
  font-weight: 700;
}

.about-typing__cursor {
  animation: aboutBlink 1s step-end infinite;
  color: var(--about-neon);
  font-weight: 700;
}

@keyframes aboutBlink {
  50% { opacity: 0; }
}

.about-hero__subtitle {
  font-size: 1.15rem;
  color: var(--hb-text-subtle);
  line-height: 1.75;
  max-width: 38rem;
}

/* About Grid Layout */
.about-main {
  background: var(--about-bg);
  padding: 0 0 6rem;
  position: relative;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: -1.5rem;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 3.2fr 2fr;
    gap: 2rem;
    align-items: start;
  }
}

/* About Glass Containers */
.about-glass {
  background: var(--about-glass);
  border: 1px solid var(--about-glass-border);
  border-radius: var(--about-radius-lg);
  backdrop-filter: var(--hb-glass-blur-lg);
  padding: 2.25rem;
  box-shadow: var(--hb-shadow-card);
  position: relative;
  transition: border-color var(--hb-transition-smooth),
              box-shadow var(--hb-transition-smooth),
              transform var(--hb-transition-smooth);
}

.about-glass:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.2);
  transform: translateY(-3px);
}

.about-section-title {
  font-family: var(--hb-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hb-accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-section-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hb-accent);
}

/* Profile Card */
.about-profile {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.about-profile__img {
  width: 105px;
  height: 105px;
  border-radius: var(--about-radius);
  object-fit: cover;
  border: 2px solid rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.2);
  transition: transform var(--hb-transition-smooth);
}

.about-profile:hover .about-profile__img {
  transform: scale(1.04);
}

.about-profile__name {
  font-family: var(--hb-font-body);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.about-profile__role {
  font-size: 0.95rem;
  color: var(--hb-muted);
  margin-bottom: 0.85rem;
}

.about-profile__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--hb-text-subtle);
}

.about-profile__meta li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.about-profile__meta i {
  width: 1rem;
  color: var(--about-neon-alt);
  font-size: 0.85rem;
}

/* Bio Text */
.about-bio {
  margin-bottom: 2rem;
}

.about-bio__text p {
  color: var(--hb-body-text);
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.about-bio__text p:last-child {
  margin-bottom: 0;
}

/* Philosophy Terminal Window */
.about-philosophy {
  margin-bottom: 2rem;
  padding: 0;
  overflow: hidden;
  border-radius: var(--about-radius-lg);
}

.about-philosophy__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--about-glass-border);
}

.about-philosophy__dots span,
.about-terminal__dots span {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 6px;
}

.about-philosophy__dots span:nth-child(1),
.about-terminal__dots span:nth-child(1) { background: #ff5f57; box-shadow: 0 0 6px rgba(255, 95, 87, 0.5); }
.about-philosophy__dots span:nth-child(2),
.about-terminal__dots span:nth-child(2) { background: #febc2e; box-shadow: 0 0 6px rgba(254, 188, 46, 0.5); }
.about-philosophy__dots span:nth-child(3),
.about-terminal__dots span:nth-child(3) { background: #28c840; box-shadow: 0 0 6px rgba(40, 200, 64, 0.5); }

.about-philosophy__label {
  font-family: var(--about-mono);
  font-size: 0.78rem;
  color: var(--hb-muted);
}

.about-philosophy__code {
  margin: 0;
  padding: 1.5rem 1.75rem;
  font-family: var(--about-mono);
  font-size: 0.88rem;
  line-height: 1.75;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.2);
}

/* Syntax Token Colors */
.tok-comment { color: #6a9955; font-style: italic; }
.tok-keyword { color: #c586c0; font-weight: 600; }
.tok-string { color: #ce9178; }
.tok-prompt { color: var(--about-neon); font-weight: 700; }
.tok-path { color: var(--about-neon-alt); }
.tok-output { color: #9cdcfe; margin-bottom: 0.35rem; }
.tok-output--dim { color: var(--hb-muted); }

/* About Action Buttons & Socials */
.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--hb-radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--hb-transition-fast),
              box-shadow var(--hb-transition-fast),
              border-color var(--hb-transition-fast);
}

.about-btn--primary {
  background: linear-gradient(135deg, var(--about-neon-alt), var(--hb-primary));
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
}

.about-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.55);
  color: #ffffff;
}

.about-btn--ghost {
  background: transparent;
  border: 1px solid var(--about-glass-border);
  color: var(--hb-text);
}

.about-btn--ghost:hover {
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.2);
  color: var(--hb-text);
  transform: translateY(-2px);
}

.about-social {
  display: flex;
  gap: 0.65rem;
  margin-left: auto;
}

.about-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: var(--hb-radius-full);
  border: 1px solid var(--about-glass-border);
  color: var(--hb-muted);
  background: rgba(255, 255, 255, 0.02);
  transition: color var(--hb-transition-fast),
              border-color var(--hb-transition-fast),
              box-shadow var(--hb-transition-fast),
              transform var(--hb-transition-fast);
}

.about-social a:hover {
  color: var(--about-neon);
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
  transform: translateY(-2px);
}

/* About Terminal Block */
.about-terminal {
  padding: 0;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: var(--about-radius-lg);
}

.about-terminal__chrome {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--about-glass-border);
}

.about-terminal__title {
  font-family: var(--about-mono);
  font-size: 0.76rem;
  color: var(--hb-muted);
}

.about-terminal__body {
  padding: 1.5rem 1.75rem;
  font-family: var(--about-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25);
}

.about-terminal__body p {
  margin-bottom: 0.45rem;
}

.about-terminal__blink {
  animation: aboutBlink 1s step-end infinite;
  color: var(--about-neon);
  font-weight: 700;
}

/* Tech Stack Skill Badges */
.about-stack {
  margin-bottom: 2rem;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-skill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--hb-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--hb-text);
  cursor: default;
  transition: border-color var(--hb-transition-fast),
              box-shadow var(--hb-transition-fast),
              transform var(--hb-transition-fast),
              background var(--hb-transition-fast);
}

.about-skill i {
  font-size: 1rem;
  color: var(--about-neon-alt);
  transition: color var(--hb-transition-fast);
}

.about-skill:hover {
  border-color: var(--about-neon);
  background: rgba(0, 255, 136, 0.12);
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.25);
  transform: translateY(-3px);
}

.about-skill:hover i {
  color: var(--about-neon);
}

/* Stats Dashboard Grid */
.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.about-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--about-radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--about-glass-border);
  transition: border-color var(--hb-transition-fast), box-shadow var(--hb-transition-fast);
}

.about-stat:hover {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.about-stat__value {
  display: block;
  font-family: var(--hb-font-display);
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--about-neon), var(--about-neon-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.about-stat__label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hb-muted);
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (min-width: 992px) {
  .about-col--stack .reveal:nth-child(2) { transition-delay: 0.15s; }
  .about-col--stack .reveal:nth-child(3) { transition-delay: 0.3s; }
}

@media (max-width: 575px) {
  .about-profile {
    flex-direction: column;
    text-align: center;
  }
  .about-profile__meta li {
    justify-content: center;
  }
  .about-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .about-social {
    margin-left: 0;
    justify-content: center;
  }
}

/* ==========================================================================
   15. AUTH PAGES — LOGIN & REGISTER
   ALL auth-* classes carefully preserved and enhanced
   ========================================================================== */

.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  background: var(--hb-bg);
  overflow: hidden;
}

.auth-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: authOrbFloat 18s ease-in-out infinite alternate;
}

.auth-orb--1 {
  width: 440px;
  height: 440px;
  background: var(--hb-neon-alt);
  top: -8%;
  right: -5%;
}

.auth-orb--2 {
  width: 360px;
  height: 360px;
  background: var(--hb-neon);
  bottom: 8%;
  left: -5%;
  animation-delay: -6s;
}

.auth-orb--3 {
  width: 280px;
  height: 280px;
  background: var(--hb-accent);
  top: 50%;
  left: 40%;
  animation-delay: -10s;
}

@keyframes authOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 25px) scale(1.1); }
  100% { transform: translate(25px, -20px) scale(0.95); }
}

.auth-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--hb-radius-xl);
  overflow: hidden;
  border: 1px solid var(--hb-glass-border);
  box-shadow: var(--hb-shadow-lg);
  background: var(--hb-gradient-card);
  backdrop-filter: var(--hb-glass-blur-lg);
}

@media (min-width: 768px) {
  .auth-shell {
    grid-template-columns: 1fr 1.15fr;
    min-height: 600px;
  }
}

/* Decorative Auth Side Panel */
.auth-panel {
  display: none;
  position: relative;
  padding: 3.5rem 3rem;
  background: linear-gradient(
    145deg,
    rgba(124, 58, 237, 0.3) 0%,
    rgba(0, 255, 136, 0.08) 50%,
    rgba(6, 182, 212, 0.2) 100%
  );
  border-right: 1px solid var(--hb-glass-border);
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .auth-panel {
    display: flex;
  }
}

.auth-panel__brand {
  font-family: var(--hb-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--hb-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-panel__tagline {
  font-size: 0.92rem;
  color: var(--hb-muted);
  margin-top: 0.45rem;
}

.auth-terminal {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--hb-radius);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--hb-border);
  font-family: var(--hb-font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
}

.auth-terminal .tok-green { color: var(--hb-neon); }
.auth-terminal .tok-purple { color: #c586c0; }
.auth-terminal .tok-blue { color: #9cdcfe; }
.auth-terminal .tok-dim { color: var(--hb-muted); }

.auth-panel__quote {
  font-size: 0.95rem;
  color: var(--hb-text-subtle);
  line-height: 1.75;
  font-style: italic;
  border-left: 3px solid var(--hb-primary);
  padding-left: 1.25rem;
  margin-top: auto;
}

/* Auth Form Side */
.auth-form-side {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .auth-form-side {
    padding: 4rem 3.5rem;
  }
}

.auth-form-side__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--hb-accent);
  margin-bottom: 0.55rem;
}

.auth-form-side h1 {
  font-family: var(--hb-font-body);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.auth-form-side__sub {
  color: var(--hb-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.auth-flash {
  padding: 1rem 1.25rem;
  border-radius: var(--hb-radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.auth-flash p {
  margin: 0;
}

/* Auth Form Fields */
.auth-form .mb-3 {
  margin-bottom: 1.35rem !important;
}

.auth-form label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--hb-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.auth-form .form-control {
  background: var(--hb-bg);
  border: 1px solid var(--hb-border);
  color: var(--hb-text);
  border-radius: var(--hb-radius-sm);
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  font-size: 0.98rem;
  transition: border-color var(--hb-transition-fast), box-shadow var(--hb-transition-fast);
}

.auth-form .form-control:focus {
  background: var(--hb-bg);
  border-color: var(--hb-primary);
  color: var(--hb-text);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25), 0 0 15px rgba(124, 58, 237, 0.3);
}

.auth-input-wrap {
  position: relative;
}

.auth-field__icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hb-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color var(--hb-transition-fast);
  z-index: 2;
}

.auth-input-wrap:focus-within .auth-field__icon {
  color: var(--hb-accent);
}

.auth-form input[type="submit"],
.auth-form .btn-primary {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--hb-radius-sm);
  background: var(--hb-gradient);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition: transform var(--hb-transition-fast),
              box-shadow var(--hb-transition-fast),
              filter var(--hb-transition-fast);
}

.auth-form input[type="submit"]:hover,
.auth-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.6), 0 0 20px rgba(6, 182, 212, 0.4);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.75rem 0;
  color: var(--hb-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hb-border);
}

.auth-switch {
  text-align: center;
  font-size: 0.92rem;
  color: var(--hb-muted);
}

.auth-switch a {
  color: var(--hb-accent);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  color: var(--hb-primary-light);
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hb-muted);
  text-decoration: none;
  transition: color var(--hb-transition-fast), transform var(--hb-transition-fast);
}

.auth-back:hover {
  color: var(--hb-text);
  transform: translateX(-3px);
}

/* ==========================================================================
   16. CONTACT PAGE
   ALL contact-* classes carefully preserved and enhanced
   ========================================================================== */

.contact-mobile-email {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--hb-radius-sm);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: var(--hb-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  transition: border-color var(--hb-transition-fast), box-shadow var(--hb-transition-fast);
}

.contact-mobile-email i {
  color: var(--hb-neon);
  flex-shrink: 0;
}

.contact-mobile-email:hover {
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  color: var(--hb-text);
}

.contact-shell {
  max-width: 1080px;
}

@media (min-width: 768px) {
  .contact-shell {
    min-height: 650px;
  }
}

.contact-panel {
  justify-content: flex-start;
  gap: 1.75rem;
}

.contact-cards {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-cards > li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--hb-radius);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--hb-border);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--hb-transition-fast),
              box-shadow var(--hb-transition-fast),
              transform var(--hb-transition-fast),
              background var(--hb-transition-fast);
}

.contact-card:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.2);
  transform: translateX(5px);
  color: inherit;
}

.contact-card--highlight {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.08);
}

.contact-card--highlight:hover {
  border-color: rgba(0, 255, 136, 0.65);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.25);
}

.contact-card--static {
  cursor: default;
}

.contact-card--static:hover {
  transform: none;
  box-shadow: none;
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--hb-radius-sm);
  background: rgba(124, 58, 237, 0.18);
  color: var(--hb-neon-alt);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-card--highlight .contact-card__icon {
  background: rgba(0, 255, 136, 0.16);
  color: var(--hb-neon);
}

.contact-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hb-muted);
}

.contact-card__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hb-text);
  word-break: break-all;
}

.contact-card__arrow {
  font-size: 0.85rem;
  color: var(--hb-muted);
  flex-shrink: 0;
  transition: transform var(--hb-transition-fast), color var(--hb-transition-fast);
}

.contact-card:hover .contact-card__arrow {
  color: var(--hb-accent);
  transform: translateX(4px);
}

.contact-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-left: 3.75rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hb-muted);
  background: transparent;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-full);
  cursor: pointer;
  transition: all var(--hb-transition-fast);
}

.contact-copy-btn:hover {
  color: var(--hb-neon);
  border-color: rgba(0, 255, 136, 0.5);
  background: rgba(0, 255, 136, 0.08);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.contact-copy-btn.is-copied {
  color: var(--hb-neon);
  border-color: rgba(0, 255, 136, 0.6);
  background: rgba(0, 255, 136, 0.12);
}

.contact-terminal {
  margin-top: auto;
}

.contact-textarea-wrap {
  position: relative;
}

.contact-textarea__icon {
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  color: var(--hb-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color var(--hb-transition-fast);
  z-index: 2;
}

.contact-textarea-wrap:focus-within .contact-textarea__icon {
  color: var(--hb-accent);
}

.contact-form .contact-textarea {
  padding: 0.95rem 1.25rem 0.95rem 3rem;
  min-height: 9rem;
  resize: vertical;
  line-height: 1.7;
}

.contact-form-side .btn-primary {
  width: 100%;
}

.contact-direct {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--hb-muted);
}

.contact-direct a {
  color: var(--hb-accent);
  font-weight: 700;
  text-decoration: none;
}

.contact-direct a:hover {
  color: var(--hb-primary-light);
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

/* ==========================================================================
   17. RICH EDITOR (QUILL) INTEGRATION
   ========================================================================== */

.ql-toolbar.ql-snow {
  background: var(--hb-surface-elevated);
  border: 1px solid var(--hb-border) !important;
  border-top-left-radius: var(--hb-radius-sm);
  border-top-right-radius: var(--hb-radius-sm);
}

.ql-container.ql-snow {
  background: var(--hb-bg-subtle);
  border: 1px solid var(--hb-border) !important;
  border-bottom-left-radius: var(--hb-radius-sm);
  border-bottom-right-radius: var(--hb-radius-sm);
  color: var(--hb-text);
  font-family: var(--hb-font-body);
  font-size: 1rem;
}

.ql-snow .ql-stroke {
  stroke: var(--hb-muted) !important;
}

.ql-snow .ql-fill {
  fill: var(--hb-muted) !important;
}

.ql-snow .ql-picker {
  color: var(--hb-muted) !important;
}

.ql-snow .ql-picker-options {
  background-color: var(--hb-surface-elevated) !important;
  border: 1px solid var(--hb-border) !important;
  border-radius: var(--hb-radius-sm);
}

.ql-snow .ql-picker-item:hover,
.ql-snow button:hover .ql-stroke {
  stroke: var(--hb-primary-light) !important;
}

.ql-snow button:hover .ql-fill {
  fill: var(--hb-primary-light) !important;
}

/* ==========================================================================
   18. COMPREHENSIVE KEYFRAME ANIMATIONS
   ========================================================================== */

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

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 0 30px rgba(6, 182, 212, 0.6); }
}

@keyframes borderRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   19. LIGHT MODE COMPONENT REFINEMENTS
   ========================================================================== */

html.theme-light .hero-modern::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(248, 250, 252, 0.98) 100%);
}

html.theme-light .hero-modern::after {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

html.theme-light body.modern-blog header.masthead.post-hero::before {
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.4) 0%,
    rgba(248, 250, 252, 0.98) 100%
  );
}

html.theme-light .featured-post-image::after {
  background: linear-gradient(to right, transparent 60%, #ffffff 100%);
}

@media (max-width: 991px) {
  html.theme-light .featured-post-image::after {
    background: linear-gradient(to bottom, transparent 50%, #ffffff 100%);
  }
}

html.theme-light .post-card-image::after {
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0.2) 65%, transparent 100%);
}

html.theme-light .about-orb,
html.theme-light .auth-orb {
  opacity: 0.18;
}

html.theme-light .about-philosophy__header,
html.theme-light .about-terminal__chrome {
  background: rgba(15, 23, 42, 0.06);
}

html.theme-light .about-philosophy__code,
html.theme-light .about-terminal__body,
html.theme-light .auth-terminal {
  background: rgba(15, 23, 42, 0.03);
}

html.theme-light .about-stat {
  background: rgba(15, 23, 42, 0.04);
}

html.theme-light .contact-card {
  background: rgba(255, 255, 255, 0.7);
}

html.theme-light .contact-card:hover {
  background: #ffffff;
}

html.theme-light .flash-message {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: #5b21b6;
}

html.theme-light body.modern-blog #mainNav.navbar-dark .nav-link {
  color: var(--hb-muted) !important;
}

html.theme-light body.modern-blog #mainNav.navbar-dark .nav-link:hover,
html.theme-light body.modern-blog #mainNav.navbar-dark .nav-link:focus {
  color: var(--hb-text) !important;
}

/* ==========================================================================
   20. RESPONSIVE BREAKPOINTS & ACCESSIBILITY
   ========================================================================== */

@media (max-width: 991px) {
  body.modern-blog #mainNav .navbar-collapse {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    padding: 1.25rem;
    margin-top: 1rem;
    box-shadow: var(--hb-shadow-lg);
  }

  body.modern-blog #mainNav .nav-link::after {
    display: none;
  }

  body.modern-blog article .post-content {
    padding: 2.25rem 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero-modern {
    padding: 6.5rem 0 4rem;
  }

  .hero-stats {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .hero-stats .stat-item strong {
    font-size: 1.6rem;
  }

  .featured-post-content {
    padding: 2rem 1.5rem;
  }

  .post-card-body {
    padding: 1.35rem;
  }

  .about-glass {
    padding: 1.5rem;
  }

  .auth-form-side {
    padding: 2.5rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
