/* Professional Hacker Theme - Soft Blue Aesthetic with Light/Dark Mode */
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;500;600;700;900&family=Inter:wght@400;500;600;700&display=swap");

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

/* ============================================
   DARK THEME (Default)
   ============================================ */
:root {
  --primary-color: #00d9ff;
  --accent-cyan: #00ffff;
  --accent-pink: #ff00ff;
  --accent-blue: #00d9ff;
  --accent-purple: #b400ff;
  --terminal-blue: #00bfff;
  --matrix-blue: #00d9ff;
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --card-bg: rgba(10, 20, 30, 0.9);
  --terminal-bg: rgba(0, 0, 10, 0.95);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  --glow-sm: 0 0 3px var(--primary-color), 0 0 6px var(--primary-color);
  --glow-md:
    0 0 3px var(--primary-color), 0 0 6px var(--primary-color),
    0 0 9px var(--primary-color);
  --glow-lg:
    0 0 3px var(--primary-color), 0 0 6px var(--primary-color),
    0 0 12px var(--primary-color), 0 0 18px var(--primary-color);
  --glow-cyan: 0 0 3px var(--accent-cyan), 0 0 6px var(--accent-cyan);
  --glow-pink: 0 0 3px var(--accent-pink), 0 0 6px var(--accent-pink);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --scanline-opacity: 0.02;
  --grid-opacity: 0.02;
}

/* ============================================
   LIGHT THEME
   ============================================ */
html[data-theme="light"] {
  --primary-color: #1a1a2e;
  --accent-cyan: #16213e;
  --accent-pink: #7c3aed;
  --accent-blue: #1a1a2e;
  --accent-purple: #6d28d9;
  --terminal-blue: #1e293b;
  --matrix-blue: #334155;
  --dark-bg: #f8fafc;
  --darker-bg: #f1f5f9;
  --card-bg: rgba(255, 255, 255, 0.98);
  --terminal-bg: rgba(248, 250, 252, 0.98);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --glow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --glow-md: 0 2px 6px rgba(0, 0, 0, 0.1);
  --glow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
  --glow-cyan: 0 2px 6px rgba(30, 41, 59, 0.15);
  --glow-pink: 0 2px 6px rgba(109, 40, 217, 0.15);
  --scanline-opacity: 0.01;
  --grid-opacity: 0.015;
}

html[data-theme="light"] body {
  background: var(--dark-bg);
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(26, 26, 46, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(26, 26, 46, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(109, 40, 217, 0.03) 0%,
      transparent 50%
    );
  color: var(--text-primary);
}

html[data-theme="light"] body::before {
  background: repeating-linear-gradient(
    0deg,
    rgba(26, 26, 46, var(--scanline-opacity)) 0px,
    transparent 2px,
    transparent 4px,
    rgba(26, 26, 46, var(--scanline-opacity)) 6px
  );
}

html[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(26, 26, 46, var(--grid-opacity)) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(26, 26, 46, var(--grid-opacity)) 1px,
      transparent 1px
    );
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 {
  color: var(--text-primary);
}

html[data-theme="light"] .hero h1 {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

html[data-theme="light"] header::before,
html[data-theme="light"] footer::before,
html[data-theme="light"] .resume-header::before,
html[data-theme="light"] .contact-form::before,
html[data-theme="light"] .post-content pre::before {
  background: #f1f5f9;
  color: #059669;
  border-color: #059669;
  text-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .post-content pre {
  border-color: #059669;
  box-shadow:
    0 0 10px rgba(5, 150, 105, 0.3),
    inset 0 0 20px rgba(5, 150, 105, 0.1);
}

html[data-theme="light"] .post-content code {
  border-color: #059669;
  color: #059669;
}

html[data-theme="light"] .post-content table {
  border-color: #059669;
  background: #f8fafc;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.2);
}

html[data-theme="light"] .post-content th {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border-bottom-color: #059669;
}

html[data-theme="light"] .post-content td {
  color: var(--text-primary);
  border-bottom-color: rgba(5, 150, 105, 0.2);
}

html[data-theme="light"] .post-content tr:hover td {
  background: rgba(5, 150, 105, 0.05);
}

html[data-theme="light"] .responsibilities li,
html[data-theme="light"] .skill-category p,
html[data-theme="light"] .skill-category ul li,
html[data-theme="light"] .project-category ul li,
html[data-theme="light"] .about-preview p,
html[data-theme="light"] .post-preview p,
html[data-theme="light"] .intro,
html[data-theme="light"] .post-content,
html[data-theme="light"] .blog-intro,
html[data-theme="light"] .footer-section p {
  color: var(--text-secondary);
}

html[data-theme="light"] .post-content h2,
html[data-theme="light"] .post-content h3,
html[data-theme="light"] .post-content strong {
  color: var(--text-primary);
  text-shadow: none;
}

html[data-theme="light"] .footer-bottom,
html[data-theme="light"] .contact-info,
html[data-theme="light"] .footer-links a {
  color: var(--text-muted);
}

html[data-theme="light"] .footer-links a:hover {
  color: var(--primary-color);
}

html[data-theme="light"] header,
html[data-theme="light"] main,
html[data-theme="light"] footer {
  background: var(--card-bg);
  border-color: #059669;
  box-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .logo {
  color: #059669;
  text-shadow:
    0 0 4px rgba(5, 150, 105, 0.4),
    0 0 8px rgba(5, 150, 105, 0.2);
}

html[data-theme="light"] .logo::before {
  color: #059669;
}

html[data-theme="light"] .logo::after {
  color: #059669;
}

html[data-theme="light"] nav ul li a {
  color: #059669;
  border-color: #059669;
}

html[data-theme="light"] nav ul li a:hover {
  color: var(--text-primary);
}

html[data-theme="light"] .hero {
  background: rgba(5, 150, 105, 0.05);
  border-color: #059669;
  box-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-secondary {
  color: var(--text-primary);
}

html[data-theme="light"] .blog-post,
html[data-theme="light"] .post-preview,
html[data-theme="light"] .job,
html[data-theme="light"] .skill-category {
  background: var(--terminal-bg);
  border-color: #059669;
}

html[data-theme="light"] .blog-post h2 a,
html[data-theme="light"] .company,
html[data-theme="light"] .contact-info {
  color: var(--text-primary);
}

html[data-theme="light"] .resume-header {
  background: rgba(5, 150, 105, 0.05);
  border-color: #059669;
  box-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .resume-section {
  background: rgba(5, 150, 105, 0.03);
  border-color: #059669;
}

html[data-theme="light"] .contact-form {
  background: var(--terminal-bg);
  border-color: #059669;
  box-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .contact-form h2 {
  color: #059669;
  text-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .contact-hero h1 {
  color: #059669;
  text-shadow: none;
}

html[data-theme="light"] .education-item {
  background: var(--terminal-bg);
  border-color: var(--accent-purple);
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--primary-color);
}

html[data-theme="light"] .back-link {
  color: #059669;
  border-color: #059669;
}

html[data-theme="light"] .back-link:hover {
  background: #059669;
  color: white;
  box-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

html[data-theme="light"] .hero h1 {
  font-family: "Orbitron", monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #059669, #047857);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

html[data-theme="light"] .resume-header h1 {
  font-family: "Orbitron", monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #059669;
  text-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .resume,
html[data-theme="light"] .contact-info,
html[data-theme="light"] .company,
html[data-theme="light"] .dates,
html[data-theme="light"] .responsibilities li,
html[data-theme="light"] .skill-category p,
html[data-theme="light"] .skill-category ul li,
html[data-theme="light"] .project-category ul li,
html[data-theme="light"] .skill-category h3,
html[data-theme="light"] .education-item {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

html[data-theme="light"] .footer-content {
  border-bottom-color: rgba(5, 150, 105, 0.3);
}

html[data-theme="light"] .footer-section h3 {
  color: #059669;
  text-shadow: none;
}

html[data-theme="light"] .social-link {
  border-color: #059669;
  color: #059669;
}

html[data-theme="light"] .social-link svg {
  stroke: #059669;
}

html[data-theme="light"] .social-link:hover {
  background: #059669;
  color: white;
  box-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .social-link:hover svg {
  stroke: white;
}

html[data-theme="light"] .intro,
html[data-theme="light"] .about-preview p,
html[data-theme="light"] .post-preview p,
html[data-theme="light"] .post-content,
html[data-theme="light"] .footer-section p,
html[data-theme="light"] .footer-links a {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

html[data-theme="light"] .blog-intro {
  font-family: "Share Tech Mono", monospace;
  color: #059669;
  border-left-color: #059669;
}

html[data-theme="light"] .blog-list h1 {
  font-family: "Orbitron", monospace;
  color: #059669;
  text-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
  letter-spacing: 2px;
  text-transform: uppercase;
}

html[data-theme="light"] .blog-list h1::before,
html[data-theme="light"] .blog-list h1::after {
  color: #059669;
}

html[data-theme="light"] .blog-post h2 {
  font-family: "Orbitron", monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
}

html[data-theme="light"] .blog-post h2 a {
  color: #059669;
}

html[data-theme="light"] .blog-post h2 a:hover {
  color: #047857;
  text-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .post-header h1 {
  font-family: "Orbitron", monospace;
  color: #059669;
  text-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
  letter-spacing: 2px;
  text-transform: uppercase;
}

html[data-theme="light"] .post-header {
  border-color: #059669;
  background: rgba(5, 150, 105, 0.05);
  box-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

.home-page .hero {
  background: var(--card-bg);
  border-color: var(--primary-color);
}

.home-page .post-preview {
  background: var(--terminal-bg);
  border-color: var(--primary-color);
}

.footer-links-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-sm);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-color);
  display: block;
}

.social-link:hover svg {
  stroke: var(--dark-bg);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  background: var(--terminal-bg);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-md);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: all 0.3s ease;
  box-shadow: var(--glow-sm);
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-md);
  border-color: var(--accent-cyan);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.theme-toggle:hover svg {
  color: var(--accent-cyan);
  filter: drop-shadow(var(--glow-sm));
}

.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

/* Moon icon (shown in light mode) */
html[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}

html[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

html[data-theme="light"] .theme-toggle {
  border-color: #059669;
  box-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .theme-toggle svg {
  color: #059669;
}

html[data-theme="light"] .theme-toggle:hover {
  border-color: #047857;
}

html[data-theme="light"] .theme-toggle:hover svg {
  color: #047857;
  filter: drop-shadow(0 0 3px #059669);
}

/* ============================================
   HAMBURGER MENU - Mobile Navigation
   ============================================ */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 160;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  box-shadow: var(--glow-sm);
}

.nav-toggle:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Hamburger icon - three lines */
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-toggle-icon {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle-icon::before {
  content: "";
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-toggle-icon::after {
  content: "";
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
}

/* Animated X when menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* Light theme hamburger */
html[data-theme="light"] .nav-toggle {
  border-color: #059669;
}

html[data-theme="light"] .nav-toggle-icon,
html[data-theme="light"] .nav-toggle-icon::before,
html[data-theme="light"] .nav-toggle-icon::after {
  background: #059669;
}

html[data-theme="light"] .nav-toggle:hover {
  box-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

body {
  font-family: "Share Tech Mono", monospace;
  line-height: 1.6;
  color: #ffffff;
  background: #000;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(0, 217, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(0, 217, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(255, 0, 255, 0.03) 0%,
      transparent 50%
    );
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  overflow-x: hidden;
}
/* Scanline effect - blue tint, reduced */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 217, 255, 0.02) 0px,
    transparent 2px,
    transparent 4px,
    rgba(0, 217, 255, 0.02) 6px
  );
  pointer-events: none;
  z-index: 0;
  animation: scanline 8s linear infinite;
}
@keyframes scanline {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(50px);
  }
}
/* Grid overlay - blue tint */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}
/* Navigation */
header {
  background: var(--card-bg);
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  margin: 20px 0;
  box-shadow:
    var(--glow-sm),
    inset 0 0 20px rgba(0, 217, 255, 0.05);
  position: sticky;
  top: 20px;
  z-index: 120;
  backdrop-filter: blur(10px);
  animation: flicker 0.15s infinite;
}
@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.98;
  }
}
header::before {
  content: "[ SYSTEM ONLINE ]";
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--darker-bg);
  padding: 0 10px;
  font-size: 0.7rem;
  color: var(--primary-color);
  text-shadow: var(--glow-sm);
  font-family: "Orbitron", monospace;
  letter-spacing: 2px;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-sm);
  animation: glitch-pronounced 8s infinite;
}
header nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 10;
}

.nav-buttons {
  display: flex;
  gap: 0.75rem;
  justify-self: end;
}

.logo {
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--primary-color);
  text-shadow:
    0 0 4px var(--primary-color),
    0 0 8px rgba(0, 217, 255, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 3px;
  position: relative;
}
.logo::before {
  content: "> ";
  color: var(--accent-cyan);
}
.logo::after {
  content: "_";
  animation: blink 1s infinite;
  color: var(--primary-color);
}
@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
.logo:hover {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  transform: scale(1.05);
}
nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  justify-self: center;
}
nav ul li a {
  text-decoration: none;
  color: var(--primary-color);
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--primary-color);
  transition:
    color 0.2s ease,
    box-shadow 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: "Orbitron", monospace;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  border-radius: var(--border-radius-md);
  background-color: transparent;
  z-index: 1;
}
nav ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 217, 255, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
  border-radius: var(--border-radius-md);
}
nav ul li a:hover::before {
  opacity: 1;
}
nav ul li a:hover {
  color: #ffffff;
  box-shadow: var(--glow-sm);
  text-shadow: none;
}
@keyframes button-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
/* Main Content */
main {
  background: var(--card-bg);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  margin: 20px 0;
  box-shadow:
    var(--glow-md),
    inset 0 0 30px rgba(0, 217, 255, 0.05);
  min-height: 60vh;
  position: relative;
  z-index: 10;
  overflow: visible;
}
main::before {
  display: none;
}
@keyframes scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Orbitron", monospace;
  color: #ffffff;
  text-shadow: var(--glow-sm);
  letter-spacing: 2px;
  text-transform: uppercase;
}
h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  animation: glitch 8s infinite;
  position: relative;
}
@keyframes glitch {
  0%,
  90%,
  100% {
    text-shadow: var(--glow-md);
  }
  92% {
    text-shadow:
      -2px 0 var(--accent-cyan),
      2px 0 var(--accent-pink),
      var(--glow-md);
  }
  94% {
    text-shadow: var(--glow-md);
  }
}
@keyframes glitch-pronounced {
  0%,
  85%,
  100% {
    text-shadow: var(--glow-md);
    transform: translate(0, 0);
  }
  86% {
    text-shadow:
      -3px 0 var(--accent-cyan),
      3px 0 var(--accent-pink),
      var(--glow-md);
    transform: translate(-2px, 0);
  }
  88% {
    text-shadow:
      3px 0 var(--accent-cyan),
      -3px 0 var(--accent-pink),
      var(--glow-md);
    transform: translate(2px, 0);
  }
  90% {
    text-shadow:
      -2px 0 var(--accent-pink),
      2px 0 var(--accent-cyan),
      var(--glow-md);
    transform: translate(-1px, 0);
  }
  92% {
    text-shadow: var(--glow-md);
    transform: translate(0, 0);
  }
}
/* Resume Styles */
.resume {
  max-width: 1000px;
  margin: 0 auto;
}
.resume-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  border: 2px solid var(--accent-cyan);
  position: relative;
  background: rgba(0, 217, 255, 0.05);
  box-shadow: var(--glow-cyan);
  border-radius: var(--border-radius-lg);
}
.resume-header::before {
  content: "[ $ whoami ]";
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--darker-bg);
  padding: 0 10px;
  font-size: 0.7rem;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  font-family: "Orbitron", monospace;
  letter-spacing: 2px;
  animation: glitch-pronounced 8s infinite;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--border-radius-sm);
}
.resume-header h1 {
  font-size: 3rem;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 1rem;
}
.contact-info {
  font-size: 1rem;
  color: #ffffff;
  font-family: "Share Tech Mono", monospace;
}
.contact-info p {
  margin: 0.5rem 0;
}
.contact-info p::before {
  content: "$ ";
  color: var(--accent-cyan);
}
.contact-note {
  color: #ff2d95;
  font-style: italic;
  cursor: pointer;
  position: relative;
  display: inline-block;
  animation: glitch-subtle 3s infinite;
}
.contact-note:hover {
  animation: glitch-intense 0.3s infinite;
  text-shadow:
    0.05em 0 0 #00d9ff,
    -0.05em -0.025em 0 #ff2d95,
    0.025em 0.05em 0 #a855f7;
}
@keyframes glitch-subtle {
  0%,
  92%,
  100% {
    text-shadow: none;
    transform: none;
  }
  93% {
    text-shadow:
      -2px 0 #00d9ff,
      2px 0 #ff2d95;
    transform: translateX(-1px);
  }
  94% {
    text-shadow:
      2px 0 #00d9ff,
      -2px 0 #ff2d95;
    transform: translateX(1px);
  }
  95% {
    text-shadow: none;
    transform: none;
  }
}
@keyframes glitch-intense {
  0% {
    text-shadow:
      -2px 0 #00d9ff,
      2px 0 #ff2d95;
    transform: translateX(-2px);
  }
  25% {
    text-shadow:
      2px 0 #00d9ff,
      -2px 0 #ff2d95;
    transform: translateX(2px);
  }
  50% {
    text-shadow:
      -1px 0 #a855f7,
      1px 0 #00d9ff;
    transform: translateX(-1px);
  }
  75% {
    text-shadow:
      1px 0 #ff2d95,
      -1px 0 #a855f7;
    transform: translateX(1px);
  }
  100% {
    text-shadow:
      -2px 0 #00d9ff,
      2px 0 #ff2d95;
    transform: translateX(-2px);
  }
}
html[data-theme="light"] .contact-note {
  color: #ff6a00;
}
/* Resume Sections */
.resume-section {
  margin-bottom: 3rem;
  padding: 2rem;
  border-left: 3px solid var(--primary-color);
  background: rgba(0, 217, 255, 0.02);
  position: relative;
  border-radius: var(--border-radius-md);
}
.resume-section::before {
  content: ">";
  position: absolute;
  left: -15px;
  top: 2rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  text-shadow: var(--glow-sm);
}
.resume-section h2 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #ffffff;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.resume-section h3 {
  font-size: 1.3rem;
  color: var(--accent-cyan);
  margin-top: 0;
  margin-bottom: 0.5rem;
}
/* Job Entries */
.job {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 10, 0.5);
  border: 1px solid var(--primary-color);
  border-left: 4px solid var(--accent-cyan);
  transition: all 0.3s ease;
  position: relative;
  border-radius: var(--border-radius-md);
}
.job:hover {
  box-shadow: var(--glow-md);
  transform: translateX(10px);
  background: rgba(0, 217, 255, 0.05);
  animation: job-fade 1s ease-in-out;
}
@keyframes job-fade {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}
.company {
  font-weight: 600;
  color: #ffffff;
  margin: 0.3rem 0;
  font-family: "Orbitron", monospace;
}
.dates {
  font-style: italic;
  font-size: 0.9rem;
  margin: 0.3rem 0 0.8rem 0;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: date-highlight 2s infinite alternate;
  font-family: "Share Tech Mono", monospace;
}
@keyframes date-highlight {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}
.dates::before {
  content: "⌚ ";
}
.responsibilities {
  margin-left: 1.5rem;
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}
.responsibilities li {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  position: relative;
  padding-left: 1.5rem;
  transition: all 0.3s ease;
  font-family: "Share Tech Mono", monospace;
}
.responsibilities li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  text-shadow: var(--glow-sm);
}
.responsibilities li:hover {
  color: #ffffff;
  transform: translateX(5px);
}
/* Skills Section */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.skill-category {
  padding: 1.5rem;
  background: rgba(0, 0, 10, 0.6);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}
.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 217, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.skill-category:hover::before {
  transform: translateX(100%);
}
.skill-category:hover {
  box-shadow: var(--glow-lg);
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  animation: skill-glow 1.5s infinite alternate;
}
@keyframes skill-glow {
  0% {
    box-shadow: var(--glow-sm);
  }
  100% {
    box-shadow: var(--glow-lg);
  }
}
.skill-category h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 0.5rem;
}
.skill-category p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-family: "Share Tech Mono", monospace;
}
.skill-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.skill-category ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-family: "Share Tech Mono", monospace;
}
.skill-category ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  text-shadow: var(--glow-sm);
}
.project-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.project-category ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-family: "Share Tech Mono", monospace;
}
.project-category ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  text-shadow: var(--glow-sm);
}
/* Education */
.education-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 10, 0.5);
  border: 1px solid var(--accent-purple);
  border-left: 4px solid var(--accent-pink);
  border-radius: var(--border-radius-md);
}
/* Blog Styles */
.blog-list {
  max-width: 1000px;
  margin: 0 auto;
}
.blog-list h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  text-align: center;
}
.blog-list h1::before {
  content: "[ ";
  color: var(--primary-color);
}
.blog-list h1::after {
  content: " ]";
  color: var(--primary-color);
}
.blog-intro {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-bottom: 3rem;
  padding: 1.5rem;
  border-left: 3px solid var(--accent-cyan);
  background: rgba(0, 217, 255, 0.05);
  font-family: "Share Tech Mono", monospace;
  border-radius: var(--border-radius-md);
}
.blog-post {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: rgba(0, 0, 10, 0.6);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  border-radius: var(--border-radius-md);
}
.blog-post::before {
  content: "///";
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--accent-cyan);
  font-weight: bold;
}
.blog-post:hover {
  box-shadow: var(--glow-lg);
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.05);
  animation: blog-fade 1s ease-in-out;
}
@keyframes blog-fade {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}
.blog-post h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.blog-post h2 a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}
.blog-post h2 a:hover {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}
.post-meta {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: "Orbitron", monospace;
}
.post-meta::before {
  content: "⏱ ";
}
.tag {
  display: inline-block;
  background: rgba(0, 217, 255, 0.2);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  margin: 0 0.3rem;
  font-size: 0.75rem;
  font-family: "Orbitron", monospace;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: var(--border-radius-sm);
}
.tag:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  box-shadow: var(--glow-sm);
}
.read-more {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-family: "Orbitron", monospace;
  border: 1px solid var(--accent-cyan);
  padding: 0.5rem 1rem;
  display: inline-block;
  margin-top: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
}
.read-more:hover {
  background: var(--accent-cyan);
  color: var(--dark-bg);
  box-shadow: var(--glow-cyan);
  animation: button-pulse 1s infinite;
}
/* Blog intro section */
.blog-list-page .blog-list h1 {
  position: relative;
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 0;
}

.blog-list-page .blog-intro {
  position: relative;
  background: var(--card-bg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.blog-post-single {
  max-width: 900px;
  margin: 0 auto;
  overflow: visible;
}

.post-header {
  position: relative;
  margin: 20px 0 4rem 0;
  padding: 2rem;
  border: 2px solid var(--accent-cyan);
  background: var(--card-bg);
  box-shadow: var(--glow-cyan);
  border-radius: var(--border-radius-md);
}
.post-header::before {
  display: none;
}
.post-header h1 {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Share Tech Mono", monospace;
  overflow: visible;
  position: relative;
}
.post-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1rem 0;
  color: #ffffff;
  border-left: 4px solid var(--accent-cyan);
  padding-left: 1rem;
}
.post-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  color: var(--accent-cyan);
}
.post-content p {
  margin-bottom: 1.5rem;
}
.post-content strong {
  color: #ffffff;
  text-shadow: var(--glow-sm);
}
.post-content ul,
.post-content ol {
  margin: 1.5rem 0 1.5rem 2rem;
}
.post-content li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1rem;
}
.post-content li::before {
  content: "▸";
  position: absolute;
  left: -1rem;
  color: var(--primary-color);
}
.post-content code {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--primary-color);
  padding: 0.2rem 0.6rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9em;
  color: var(--primary-color);
  border-radius: var(--border-radius-sm);
}
.post-content pre {
  background: var(--darker-bg);
  border: 2px solid var(--primary-color);
  padding: 1.5rem;
  overflow: visible;
  margin: 2rem 0 1.5rem 0;
  box-shadow:
    var(--glow-sm),
    inset 0 0 20px rgba(0, 217, 255, 0.1);
  position: relative;
  border-radius: var(--border-radius-md);
  z-index: 1;
}
.post-content pre code {
  display: block;
  overflow-x: auto;
  background: none;
  border: none;
  padding: 0;
}
.post-content pre::before {
  content: "[ code ]";
  position: absolute;
  top: -12px;
  left: 20px;
  background: #050505;
  padding: 0 10px;
  font-size: 0.7rem;
  color: var(--primary-color);
  text-shadow: var(--glow-sm);
  font-family: "Orbitron", monospace;
  letter-spacing: 2px;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-sm);
  z-index: 10;
}
.post-content blockquote {
  border-left: 4px solid var(--accent-pink);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(255, 0, 255, 0.05);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--border-radius-sm);
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--darker-bg);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--glow-sm);
}
.post-content th,
.post-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 217, 255, 0.3);
}
.post-content th {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-cyan);
  font-family: "Orbitron", monospace;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary-color);
}
.post-content td {
  color: rgba(255, 255, 255, 0.9);
}
.post-content tr:last-child td {
  border-bottom: none;
}
.post-content tr:hover td {
  background: rgba(0, 217, 255, 0.05);
}
.post-content a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-cyan);
  transition: all 0.3s ease;
}
.post-content a:hover {
  text-shadow: var(--glow-cyan);
  border-bottom-width: 2px;
}
.back-link {
  margin-top: 4rem;
  color: #ffffff;
  text-decoration: none;
  font-family: "Orbitron", monospace;
  border: 1px solid var(--primary-color);
  padding: 0.7rem 1.5rem;
  display: inline-block;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
}
.back-link::before {
  content: "< ";
}
.back-link:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  box-shadow: var(--glow-sm);
}
/* Footer */
footer {
  margin: 3rem 0 0;
  padding: 3rem 2rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  box-shadow:
    var(--glow-sm),
    inset 0 0 20px rgba(0, 217, 255, 0.05);
  position: relative;
}
footer::before {
  content: "[ $ exit ]";
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--darker-bg);
  padding: 0 10px;
  font-size: 0.7rem;
  color: var(--primary-color);
  text-shadow: var(--glow-sm);
  font-family: "Orbitron", monospace;
  letter-spacing: 2px;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-sm);
  animation: glitch-pronounced 8s infinite;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}
.footer-section h3 {
  font-family: "Orbitron", monospace;
  font-size: 1rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: var(--glow-sm);
}
.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links a:hover {
  color: var(--primary-color);
  text-shadow: var(--glow-sm);
  transform: translateX(3px);
}
.footer-links a::before {
  content: "▸";
  color: var(--primary-color);
  font-size: 0.8rem;
}
.rss-link svg {
  color: var(--accent-cyan);
  transition: all 0.2s ease;
}
.rss-link:hover svg {
  color: var(--primary-color);
  filter: drop-shadow(0 0 3px var(--primary-color));
}
.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Orbitron", monospace;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.footer-bottom p::before {
  content: "[ ";
  color: var(--primary-color);
}
.footer-bottom p::after {
  content: " ]";
  color: var(--primary-color);
}
.footer-credit a {
  color: #ff2d9a;
}
html[data-theme="light"] .footer-credit a {
  color: #ff6a00;
}
/* Home Page */
.home-page {
  max-width: 1000px;
  margin: 0 auto;
}
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(0, 217, 255, 0.05);
  border: 3px solid var(--primary-color);
  margin-bottom: 4rem;
  position: relative;
  box-shadow: var(--glow-lg);
  border-radius: var(--border-radius-lg);
}
.hero h1 {
  font-size: 3.5rem;
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  animation: glitch 12s infinite;
}
.tagline {
  font-size: 1.3rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  font-family: "Orbitron", monospace;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.85);
}
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-family: "Orbitron", monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}
.btn-primary {
  background: transparent;
  color: #ffffff;
  border: 2px solid var(--primary-color);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
  opacity: 0.2;
}
.btn-primary:hover::before {
  transform: translateX(0);
}
.btn-primary:hover {
  color: var(--dark-bg);
  box-shadow: var(--glow-md);
}
.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid var(--accent-cyan);
}
.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-cyan);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
  opacity: 0.2;
}
.btn-secondary:hover::before {
  transform: translateX(0);
}
.btn-secondary:hover {
  color: var(--dark-bg);
  box-shadow: var(--glow-cyan);
}
.about-preview,
.recent-posts {
  margin-bottom: 4rem;
  padding: 2rem;
  border-left: 3px solid var(--primary-color);
  background: rgba(0, 217, 255, 0.02);
  border-radius: var(--border-radius-md);
}
.about-preview h2,
.recent-posts h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.about-preview p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}
.post-preview {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 10, 0.5);
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
  border-radius: var(--border-radius-md);
}
.post-preview:hover {
  box-shadow: var(--glow-md);
  border-color: var(--accent-cyan);
  transform: translateX(10px);
}
.post-preview h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}
.post-preview h3 a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}
.post-preview h3 a:hover {
  color: #ffffff;
}
.post-preview .post-meta {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--accent-pink);
}
.post-preview p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}
.post-preview .read-more {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
}
/* Contact Form */
.contact-hero {
  margin-bottom: 2rem;
}

.contact-hero h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.contact-page main {
  padding-top: 2rem;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: rgba(0, 0, 10, 0.7);
  border: 1px solid var(--primary-color);
  box-shadow: var(--glow-sm);
  position: relative;
  border-radius: var(--border-radius-lg);
}
.contact-form::before {
  content: "[ TRANSMISSION ]";
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--dark-bg);
  padding: 0 10px;
  font-size: 0.7rem;
  color: var(--primary-color);
  text-shadow: var(--glow-sm);
  font-family: "Orbitron", monospace;
  letter-spacing: 2px;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-sm);
  animation: glitch-pronounced 8s infinite;
}
.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-cyan);
  font-family: "Orbitron", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--darker-bg);
  border: 1px solid var(--primary-color);
  color: #ffffff;
  font-family: "Share Tech Mono", monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: var(--border-radius-md);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  outline: none;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.submit-btn {
  background: transparent;
  color: #ff2d9a;
  border: 2px solid #ff2d9a;
  padding: 1rem 2rem;
  font-family: "Orbitron", monospace;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}
.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff2d9a;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
  opacity: 0.2;
}
.submit-btn:hover::before {
  transform: translateX(0);
}
.submit-btn:hover {
  color: var(--dark-bg);
  box-shadow: var(--glow-pink);
}

html[data-theme="light"] .submit-btn {
  color: #ff6a00;
  border-color: #ff6a00;
}

html[data-theme="light"] .submit-btn::before {
  background: #ff6a00;
}
/* Matrix Rain Effect - blue version */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.matrix-column {
  position: absolute;
  top: -50px;
  width: 20px;
  height: 100%;
  font-size: 0.8rem;
  color: var(--matrix-blue);
  text-shadow: 0 0 5px var(--matrix-blue);
  animation: rain linear infinite;
  white-space: nowrap;
  overflow: hidden;
}
@keyframes rain {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100vh);
  }
}

/* ============================================
   RESUME DOWNLOAD BUTTON & MODAL
   ============================================ */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
  border-radius: var(--border-radius-md);
  font-family: "Orbitron", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: var(--accent-cyan);
  color: var(--dark-bg);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-download svg {
  transition: transform 0.3s ease;
}

.btn-download:hover svg {
  transform: translateY(2px);
}

html[data-theme="light"] .btn-download {
  color: #059669;
  border-color: #059669;
}

html[data-theme="light"] .btn-download:hover {
  background: #059669;
  color: white;
  box-shadow:
    0 0 6px #059669,
    0 0 12px #059669;
}

/* Download Modal */
.download-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 9999;
}

.download-modal.is-open {
  display: flex;
}

.download-modal-content {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 450px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Cloudflare Turnstile widget */
.download-modal-content .cf-turnstile {
  max-width: 100%;
  overflow: hidden;
}

.download-modal-content .cf-turnstile iframe {
  max-width: 100%;
  transform-origin: left top;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent-cyan);
}

.download-modal-content h3 {
  font-family: "Orbitron", monospace;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.download-modal-content > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.download-modal-content .form-group {
  margin-bottom: 1rem;
}

.download-modal-content .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent-cyan);
  font-family: "Orbitron", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.download-modal-content .form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--darker-bg);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: "Share Tech Mono", monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.download-modal-content .form-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.download-modal-content .submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--accent-cyan);
  color: var(--dark-bg);
  border: none;
  border-radius: var(--border-radius-md);
  font-family: "Orbitron", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-modal-content .submit-btn:hover {
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.download-modal-content .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-size: 0.9rem;
}

.form-message.success {
  background: rgba(0, 255, 100, 0.1);
  border: 1px solid #00ff64;
  color: #00ff64;
}

.form-message.error {
  background: rgba(255, 0, 100, 0.1);
  border: 1px solid #ff0064;
  color: #ff0064;
}

/* Light theme modal */
html[data-theme="light"] .download-modal-content {
  background: transparent;
  border-color: #059669;
}

html[data-theme="light"] .download-modal-content h3 {
  color: #059669;
  text-shadow: none;
}

html[data-theme="light"] .download-modal-content > p {
  color: white;
}

html[data-theme="light"] .download-modal-content .form-group label {
  color: #059669;
}

html[data-theme="light"] .download-modal-content .form-group input {
  border-color: #059669;
}

html[data-theme="light"] .download-modal-content .form-group input:focus {
  box-shadow: 0 0 6px #059669;
}

html[data-theme="light"] .download-modal-content .submit-btn {
  background: #059669;
  color: white;
}

html[data-theme="light"] .download-modal-content .submit-btn:hover {
  box-shadow: 0 0 12px #059669;
}

/* Additional animation for sections loading */
.about-preview,
.recent-posts,
.resume-section,
.contact-form {
  animation: power-on 0.8s ease-out forwards;
  opacity: 0;
}
@keyframes power-on {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.glitch-text {
  position: relative;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 100% 0);
}
.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 var(--accent-pink);
  animation: glitch-anim 6s infinite linear alternate-reverse;
}
.glitch-text::after {
  left: -2px;
  text-shadow: 1px 0 var(--accent-cyan);
  animation: glitch-anim 9s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
  0% {
    clip-path: inset(31px 0 94px 0);
  }
  5% {
    clip-path: inset(25px 0 50px 0);
  }
  10% {
    clip-path: inset(50px 0 102px 0);
  }
  15% {
    clip-path: inset(30px 0 92px 0);
  }
  20% {
    clip-path: inset(91px 0 98px 0);
  }
  25% {
    clip-path: inset(46px 0 8px 0);
  }
  30% {
    clip-path: inset(47px 0 16px 0);
  }
  35% {
    clip-path: inset(27px 0 98px 0);
  }
  40% {
    clip-path: inset(37px 0 24px 0);
  }
  45% {
    clip-path: inset(81px 0 32px 0);
  }
  50% {
    clip-path: inset(41px 0 64px 0);
  }
  55% {
    clip-path: inset(47px 0 23px 0);
  }
  60% {
    clip-path: inset(53px 0 27px 0);
  }
  65% {
    clip-path: inset(38px 0 58px 0);
  }
  70% {
    clip-path: inset(67px 0 39px 0);
  }
  75% {
    clip-path: inset(29px 0 14px 0);
  }
  80% {
    clip-path: inset(39px 0 47px 0);
  }
  85% {
    clip-path: inset(1px 0 96px 0);
  }
  90% {
    clip-path: inset(88px 0 90px 0);
  }
  95% {
    clip-path: inset(82px 0 33px 0);
  }
  100% {
    clip-path: inset(12px 0 59px 0);
  }
}
/* ============================================
   HOMEPAGE STYLES
   ============================================ */
.home-page {
  max-width: 900px;
  margin: 0 auto;
}

.home-page .hero {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 4rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--primary-color);
  box-shadow: var(--glow-sm);
}

.home-page .hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.home-page .tagline {
  font-size: clamp(0.75rem, 2.8vw, 1.125rem);
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.home-page .intro {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

.home-page .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.home-page .btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.home-page .btn-primary {
  background: var(--primary-color);
  color: var(--dark-bg);
  border: 1px solid var(--primary-color);
}

.home-page .btn-primary:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
  box-shadow: var(--glow-sm);
}

.home-page .btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.home-page .btn-secondary:hover {
  background: rgba(0, 217, 255, 0.1);
  transform: translateY(-1px);
}

/* Light theme overrides for homepage */
html[data-theme="light"] .home-page .tagline {
  color: #059669;
}

html[data-theme="light"] .home-page .btn-primary {
  background: #059669;
  color: white;
  border-color: #059669;
}

html[data-theme="light"] .home-page .btn-primary:hover {
  background: #047857;
  border-color: #047857;
  box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

html[data-theme="light"] .home-page .btn-secondary {
  color: #059669;
  border-color: #059669;
}

html[data-theme="light"] .home-page .btn-secondary:hover {
  background: rgba(5, 150, 105, 0.1);
}

html[data-theme="light"] .home-page .hero {
  border-color: #059669;
  box-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .home-page .post-preview {
  border-color: #059669;
}

html[data-theme="light"] .home-page .post-preview:hover {
  box-shadow:
    0 0 3px #059669,
    0 0 6px #059669;
}

html[data-theme="light"] .home-page .about-preview h2,
html[data-theme="light"] .home-page .recent-posts h2 {
  border-bottom-color: #059669;
}

html[data-theme="light"] .about-preview,
html[data-theme="light"] .recent-posts {
  border-left-color: #059669;
  background: rgba(5, 150, 105, 0.02);
}

.home-page .about-preview,
.home-page .recent-posts {
  margin-bottom: 4rem;
}

.home-page .about-preview h2,
.home-page .recent-posts h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  position: relative;
}

.home-page .about-preview h2::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #ff2d9a;
}

.home-page .recent-posts h2::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #ff2d9a;
}

html[data-theme="light"] .home-page .recent-posts h2::after {
  background: #ff6a00;
}

html[data-theme="light"] .home-page .about-preview h2::after {
  background: #ff6a00;
}

.home-page .about-preview p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.home-page .post-preview {
  margin-bottom: 1.5rem;
  padding: 1.75rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--primary-color);
  transition: all 0.2s ease;
}

.home-page .post-preview:hover {
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.home-page .post-preview h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.home-page .post-preview h3 a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.home-page .post-preview h3 a:hover {
  color: var(--primary-color);
}

.home-page .post-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.home-page .post-preview p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

.home-page .view-all {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  margin-top: 1rem;
}

.home-page .view-all:hover {
  color: var(--accent-cyan);
  gap: 0.75rem;
}

.home-page .view-all::after {
  content: "→";
  transition: transform 0.2s ease;
}

.home-page .view-all:hover::after {
  transform: translateX(2px);
}

/* ============================================
   RESPONSIVE DESIGN - Tablet/Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
  body {
    padding: 0 10px;
  }
  .home-page .hero {
    padding: 3rem 1.5rem;
  }
  .cta-buttons {
    gap: 0.75rem;
  }
  header {
    margin: 15px 0;
  }
  main {
    margin: 15px 0;
  }
  .nav-toggle {
    display: block;
    order: 1;
  }
  /* Header layout for mobile */
  header nav {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .logo {
    order: 2;
    font-size: 1.4rem;
    text-align: center;
    flex: 1;
  }

  .nav-buttons {
    order: 3;
    display: flex;
    gap: 0.5rem;
  }

  .nav-buttons .search-toggle,
  .nav-buttons .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-menu {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: min(85vw, 320px);
    max-height: calc(100vh - 2rem);
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 150;
  }

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

  .nav-menu li {
    list-style: none;
  }

  .nav-menu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    background: transparent;
    transition:
      background 0.2s ease,
      transform 0.15s ease;
  }

  .nav-menu a:hover,
  .nav-menu a:focus-visible {
    background: var(--hover-bg);
    transform: translateX(2px);
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    text-align: left;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
  }

  /* Light theme mobile menu */
  html[data-theme="light"] .nav-menu {
    background: var(--terminal-bg);
    border-color: #059669;
    box-shadow:
      0 0 6px #059669,
      0 0 12px #059669;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .skills-list {
    grid-template-columns: 1fr;
  }

  .home-page .hero h1 {
    font-size: 2rem;
  }

  .home-page .tagline {
    font-size: 1rem;
    white-space: normal;
  }

  .home-page .intro {
    font-size: 1rem;
  }

  .home-page .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* ============================================
   RESPONSIVE DESIGN - Small Phones (480px)
   ============================================ */
@media (max-width: 480px) {
  body {
    padding: 0 8px;
    font-size: 0.9375rem;
  }

  header {
    position: relative;
    top: 0;
    margin: 10px 0 15px 0;
    border-radius: var(--border-radius-md);
  }

  header nav {
    padding: 0.875rem;
  }

  .nav-menu {
    top: 4rem;
    left: 50%;
    right: auto;
    transform: translateX(150%);
    width: calc(100vw - 1rem);
    max-width: none;
  }

  .nav-menu.is-open {
    transform: translateX(-50%);
  }

  .logo {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .logo::before {
    content: "> ";
  }

  header::before {
    font-size: 0.55rem;
    left: 10px;
    top: -10px;
    padding: 0 6px;
    letter-spacing: 1px;
  }

  main {
    padding: 1.5rem 1rem;
    margin: 0 0 10px 0;
    border-radius: var(--border-radius-md);
  }

  h1 {
    font-size: 1.75rem;
    letter-spacing: 1px;
  }

  h2 {
    font-size: 1.25rem;
  }

  footer {
    padding: 1rem 0.75rem 0.75rem;
    margin: 1rem 0 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .footer-section h3 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .footer-section p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .footer-bottom {
    font-size: 0.68rem;
    margin-top: 0.5rem;
  }

  .footer-bottom p {
    margin-bottom: 0.25rem;
  }

  .footer-links li {
    margin-bottom: 0.25rem;
  }

  /* Homepage - Extra small */
  .home-page .hero {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }

  .home-page .hero h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .home-page .tagline {
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    white-space: normal;
  }

  .home-page .intro {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .home-page .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .home-page .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.8rem;
    text-align: center;
  }

  .home-page .about-preview,
  .home-page .recent-posts {
    margin-bottom: 2rem;
    padding: 1.25rem;
  }

  .home-page .about-preview h2,
  .home-page .recent-posts h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .home-page .about-preview p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.875rem;
  }

  .home-page .post-preview {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .home-page .post-preview h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .home-page .post-meta {
    font-size: 0.75rem;
  }

  .home-page .post-preview p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  /* Resume - Extra small */
  .resume-header {
    padding: 1.25rem;
    margin-bottom: 2rem;
  }

  .resume-header h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
  }

  .resume-header::before {
    font-size: 0.6rem;
    top: -10px;
    left: 10px;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  .contact-info {
    font-size: 0.8rem;
  }

  .contact-info p {
    margin: 0.375rem 0;
    word-break: break-word;
  }

  .resume-section {
    padding: 1.25rem;
    margin-bottom: 2rem;
  }

  .resume-section::before {
    left: -12px;
    font-size: 1.25rem;
  }

  .resume-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .job {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .job h3 {
    font-size: 1rem;
  }

  .company {
    font-size: 0.875rem;
  }

  .dates {
    font-size: 0.8rem;
  }

  .responsibilities {
    margin-left: 1rem;
  }

  .responsibilities li {
    font-size: 0.85rem;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
  }

  .skill-category {
    padding: 1rem;
  }

  .skill-category h3 {
    font-size: 0.95rem;
  }

  .skill-category p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .education-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .education-item h3 {
    font-size: 1rem;
  }

  /* Blog - Extra small */
  .blog-list h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
  }

  .blog-intro {
    font-size: 0.9rem;
    padding: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  .blog-post {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .blog-post::before {
    font-size: 0.7rem;
    top: 8px;
    left: 8px;
  }

  .blog-post h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
  }

  .post-meta {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    margin: 0.125rem;
  }

  .blog-post p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .read-more {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
  }

  .post-header h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .post-content {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .post-content h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem 0;
    padding-left: 0.75rem;
  }

  .post-content h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem 0;
  }

  .post-content pre {
    padding: 1rem;
    font-size: 0.8rem;
    margin: 1rem -0.5rem;
    border-radius: var(--border-radius-sm);
  }

  .post-content pre::before {
    font-size: 0.6rem;
    top: -10px;
  }

  .post-content code {
    font-size: 0.8em;
    padding: 0.15rem 0.4rem;
  }

  .post-content ul,
  .post-content ol {
    margin: 1rem 0 1rem 1.25rem;
  }

  .post-content li {
    margin-bottom: 0.6rem;
    padding-left: 0.75rem;
  }

  .post-content blockquote {
    padding: 0.75rem 1rem;
    margin: 1rem -0.25rem;
    font-size: 0.9rem;
  }

  .back-link {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
  }
}
/* ============================================
   RESPONSIVE DESIGN - Large Phones (640px)
   ============================================ */
@media (min-width: 481px) and (max-width: 640px) {
  body {
    padding: 0 12px;
  }

  header nav {
    padding: 1rem 1.25rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  main {
    padding: 2rem 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  /* Homepage - Small */
  .home-page .hero {
    padding: 2.5rem 1.5rem;
    margin-bottom: 2.5rem;
  }

  .home-page .hero h1 {
    font-size: 1.75rem;
  }

  .home-page .tagline {
    font-size: 0.875rem;
  }

  .home-page .cta-buttons {
    flex-direction: column;
    gap: 0.875rem;
  }

  .home-page .btn {
    width: 100%;
  }

  /* Resume - Small */
  .resume-header {
    padding: 1.5rem;
  }

  .resume-header h1 {
    font-size: 1.75rem;
  }

  .resume-section {
    padding: 1.5rem;
  }

  .job {
    padding: 1.25rem;
  }

  /* Blog - Small */
  .blog-list h1 {
    font-size: 2rem;
  }

  .blog-post {
    padding: 1.5rem;
  }

  .blog-post h2 {
    font-size: 1.25rem;
  }

  .post-header h1 {
    font-size: 1.75rem;
  }

  .post-content {
    font-size: 1rem;
  }
}

/* ============================================
   TOUCH-FRIENDLY IMPROVEMENTS
   ============================================ */
@media (pointer: coarse) {
  nav ul li a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  button,
  .btn,
  .btn-primary,
  .btn-secondary,
  .read-more,
  .back-link,
  .submit-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .tag {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  .social-link {
    min-width: 48px;
    min-height: 48px;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .form-group input,
  .form-group textarea {
    min-height: 48px;
    font-size: 16px;
  }
}

/* Active states for touch feedback */
@media (pointer: coarse) {
  nav ul li a:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .btn:active,
  .btn-primary:active,
  .btn-secondary:active {
    transform: scale(0.98);
  }

  .blog-post:active,
  .post-preview:active,
  .job:active,
  .skill-category:active {
    transform: scale(0.99);
  }

  .social-link:active {
    transform: scale(0.95);
  }

  .read-more:active,
  .back-link:active {
    transform: scale(0.98);
  }
}

@media (hover: none) {
  .blog-post:hover {
    box-shadow: none;
    transform: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 10, 0.6);
  }

  .post-preview:hover {
    box-shadow: none;
    transform: none;
  }

  .job:hover {
    box-shadow: none;
    transform: none;
    background: rgba(0, 0, 10, 0.5);
  }

  .skill-category:hover {
    box-shadow: none;
    transform: none;
    border-color: var(--primary-color);
  }

  .skill-category:hover::before {
    transform: translateX(-100%);
  }

  .home-page .post-preview:hover {
    box-shadow: none;
    transform: none;
  }
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links-icons {
  gap: 1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tag {
  margin: 0;
}

/* Visitor Counter */
.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.visitor-counter svg {
  opacity: 0.7;
}

.visitor-counter.loading #visitor-count {
  opacity: 0.5;
}

.visitor-counter.error {
  opacity: 0.5;
}

/* Search Toggle Button */
.search-toggle {
  background: var(--terminal-bg);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-md);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: all 0.3s ease;
  box-shadow: var(--glow-sm);
  flex-shrink: 0;
}

.search-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.search-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-md);
  border-color: var(--accent-cyan);
}

.search-toggle:hover svg {
  color: var(--accent-cyan);
  filter: drop-shadow(var(--glow-sm));
}

html[data-theme="light"] .search-toggle {
  border-color: #059669;
  box-shadow: 0 0 3px #059669, 0 0 6px #059669;
}

html[data-theme="light"] .search-toggle svg {
  color: #059669;
}

html[data-theme="light"] .search-toggle:hover {
  border-color: #047857;
}

html[data-theme="light"] .search-toggle:hover svg {
  color: #047857;
}

/* Search Container & Dropdown */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-dropdown {
  display: none;
  position: fixed;
  top: 70px;
  right: 80px;
  width: min(500px, calc(100vw - 100px));
  max-height: 70vh;
  background: var(--card-bg);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), 0 4px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 1000;
}

html[data-theme="light"] .search-dropdown {
  background: #ffffff;
  border-color: #059669;
  box-shadow: 0 0 15px rgba(5, 150, 105, 0.25), 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-dropdown.is-open {
  display: block;
}

.search-dropdown #search {
  padding: 1rem;
  max-height: calc(70vh - 2rem);
  overflow-y: auto;
  min-height: 60px;
}

@media (max-width: 768px) {
  .search-dropdown {
    top: 70px;
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

/* Pagefind UI Overrides */
.pagefind-ui {
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-primary: var(--primary-color);
  --pagefind-ui-text: var(--text-color);
  --pagefind-ui-background: var(--card-bg);
  --pagefind-ui-border: var(--primary-color);
  --pagefind-ui-tag: var(--accent-cyan);
  --pagefind-ui-border-width: 2px;
  --pagefind-ui-border-radius: 6px;
  --pagefind-ui-font: inherit;
}

.pagefind-ui .pagefind-ui__search-input {
  background: var(--terminal-bg);
  color: var(--text-color);
  border: 2px solid var(--primary-color) !important;
  font-size: 1rem;
}

.pagefind-ui .pagefind-ui__search-input::placeholder {
  color: var(--text-muted);
}

.pagefind-ui .pagefind-ui__search-input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

html[data-theme="light"] .pagefind-ui {
  --pagefind-ui-primary: #059669;
  --pagefind-ui-border: #059669;
  --pagefind-ui-background: #ffffff;
}

html[data-theme="light"] .pagefind-ui .pagefind-ui__search-input {
  background: #f8fafc;
  border-color: #059669 !important;
}

html[data-theme="light"] .pagefind-ui .pagefind-ui__search-input:focus {
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.25);
}

.pagefind-ui .pagefind-ui__result {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.pagefind-ui .pagefind-ui__result:hover {
  background: var(--card-bg);
}

.pagefind-ui .pagefind-ui__result-link {
  color: var(--primary-color);
  font-size: 0.95rem;
}

.pagefind-ui .pagefind-ui__result-excerpt {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   MODAL MOBILE OVERRIDES
   ============================================ */
@media (max-width: 480px) {
  .download-modal {
    padding: 0.5rem;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .download-modal-content {
    width: calc(100vw - 1rem);
    max-width: none;
    margin: 4rem 0 0 0;
  }

  .download-modal-content h3 {
    font-size: 1.1rem;
    margin-right: 2rem;
  }

  .download-modal-content > p {
    font-size: 0.85rem;
  }

  .download-modal-content .form-group input {
    font-size: 16px;
  }

  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}
