/* ==========================================================================
   THEODORE VALENTINUS BACHRI - FUTURISTIC CYBER SECURITY PORTFOLIO
   Design System: Futuristic Obsidian Void, Cyber Cyan & Laser Indigo
   High-Contrast Legibility, Glassmorphic Surfaces, Zero Emojis
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-dark: #050811;
  --bg-deep-void: #03050a;
  --bg-surface: rgba(10, 16, 30, 0.85);
  --bg-surface-elevated: rgba(14, 22, 42, 0.92);
  --bg-surface-card: rgba(11, 18, 34, 0.82);
  --bg-surface-hover: rgba(18, 28, 52, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(0, 229, 255, 0.12);
  --border-card-top: rgba(0, 229, 255, 0.35);
  --border-focus: rgba(0, 229, 255, 0.5);

  --accent-cyan: #00f2fe;
  --accent-cyan-dim: rgba(0, 242, 254, 0.12);
  --accent-cyan-glow: rgba(0, 242, 254, 0.25);
  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.15);
  --accent-indigo: #6366f1;
  --accent-indigo-dim: rgba(99, 102, 241, 0.15);
  --accent-green: #10b981;
  --accent-green-dim: rgba(16, 185, 129, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-dim: rgba(245, 158, 11, 0.15);
  --accent-danger: #f43f5e;
  --accent-danger-dim: rgba(244, 63, 94, 0.15);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-cyan: #00f2fe;

  /* Futuristic Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing & Radii */
  --container-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows & Neon Radiance */
  --shadow-card: 0 8px 32px -4px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 16px 40px -8px rgba(0, 0, 0, 0.8), 0 0 25px -4px rgba(0, 242, 254, 0.25);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  /* Futuristic subtle cyber grid overlay */
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.04) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* Mouse-Reactive Canvas Layer */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

main {
  position: relative;
  z-index: 1;
}

/* Common Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* SVG Icons Helper */
.svg-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-external {
  width: 14px;
  height: 14px;
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   3. Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 242, 254, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all var(--trans-normal);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.brand-bracket {
  color: var(--accent-cyan);
}

.brand-name {
  color: var(--text-main);
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  transition: color var(--trans-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: width var(--trans-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--trans-fast);
}

.social-icon-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--border-focus);
  background: var(--accent-cyan-dim);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.menu-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: all var(--trans-fast);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--trans-normal);
  text-decoration: none;
  line-height: 1.2;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #0284c7 70%, #4338ca 100%);
  color: #020b14;
  font-weight: 700;
  border: 1px solid rgba(0, 242, 254, 0.6);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.45);
  color: #01060c;
}

.btn-secondary {
  background: rgba(14, 22, 42, 0.8);
  color: var(--text-main);
  border: 1px solid rgba(0, 242, 254, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.35);
}

.btn-outline-cyan:hover {
  background: rgba(0, 242, 254, 0.22);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

.btn-text {
  color: var(--text-secondary);
  padding: 0.5rem;
}

.btn-text:hover {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 8.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.85rem;
}

.hero-roles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

.role-highlight {
  position: relative;
  color: #f1f5f9;
}

.role-separator {
  color: var(--accent-cyan);
  opacity: 0.7;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-links-bar {
  margin-bottom: 2rem;
  padding: 1.15rem;
  background: rgba(10, 16, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-top: 1px solid var(--border-card-top);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.links-title {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.social-links-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.875rem;
  font-family: var(--font-display);
  font-weight: 600;
  transition: all var(--trans-fast);
}

.link-chip:hover {
  background: var(--accent-cyan-dim);
  border-color: var(--border-focus);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  transform: translateY(-2px);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   6. Interactive Cyber Terminal Card
   -------------------------------------------------------------------------- */
.hero-terminal {
  background: rgba(8, 13, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-top: 1px solid rgba(0, 242, 254, 0.5);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 242, 254, 0.12);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.terminal-header {
  background: rgba(4, 7, 14, 0.9);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.775rem;
  letter-spacing: 0.02em;
}

.terminal-chip {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.terminal-tabs {
  display: flex;
  background: rgba(6, 10, 18, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-tab {
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  border-bottom: 2px solid transparent;
  transition: all var(--trans-fast);
}

.term-tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.term-tab.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  border-bottom-color: var(--accent-cyan);
  box-shadow: inset 0 -2px 8px rgba(0, 242, 254, 0.3);
}

.terminal-body {
  padding: 1.25rem;
  min-height: 290px;
  max-height: 440px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.terminal-body::-webkit-scrollbar {
  width: 5px;
}

.terminal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.25);
  border-radius: 3px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

.term-tab-pane {
  display: none;
}

.term-tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

.term-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.term-prompt {
  color: var(--accent-cyan);
  font-weight: 600;
}

.term-cmd {
  color: #f1f5f9;
}

.term-response {
  margin-left: 0.5rem;
  margin-bottom: 1rem;
  color: #94a3b8;
  line-height: 1.6;
}

.res-row {
  margin-bottom: 0.4rem;
}

.res-label {
  color: #64748b;
  display: inline-block;
  min-width: 110px;
}

.res-val {
  color: #cbd5e1;
}

.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.text-danger { color: var(--accent-danger); }
.text-amber { color: var(--accent-amber); }

.res-log {
  margin-bottom: 0.35rem;
  color: #cbd5e1;
}

/* Interactive CLI Terminal Easter Egg Styles */
.term-cli-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.cli-entry {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: fadeIn 0.15s ease;
}

.cli-cmd-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.cli-output {
  margin-left: 0.5rem;
  font-size: 0.825rem;
  line-height: 1.5;
  color: #94a3b8;
  word-break: break-word;
}

.cli-output.out-success {
  color: var(--accent-green);
}

.cli-output.out-cyan {
  color: var(--accent-cyan);
}

.cli-output.out-warn {
  color: var(--accent-amber);
}

.cli-output.out-error {
  color: var(--accent-danger);
}

.cli-output.out-help {
  color: #cbd5e1;
  background: rgba(0, 242, 254, 0.03);
  padding: 0.5rem 0.75rem;
  border-left: 2px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  white-space: pre-line;
  line-height: 1.65;
}

.term-interactive-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(0, 242, 254, 0.18);
  font-size: 0.85rem;
  cursor: text;
}

.term-input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
  gap: 0.25rem;
}

.term-cli-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #f8fafc;
  caret-color: var(--accent-cyan);
  padding: 0.15rem 0;
}

.term-cli-input::placeholder {
  color: rgba(148, 163, 184, 0.45);
  font-style: italic;
  font-size: 0.785rem;
}

.term-cli-input:focus {
  outline: none;
}

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.term-cli-input:focus + .term-cursor {
  opacity: 0.3;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   7. Section Common Header
   -------------------------------------------------------------------------- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

.section-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  margin-top: 1.25rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   8. Skills Section
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.skill-category-card {
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-top: 1px solid var(--border-card-top);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-smooth);
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: var(--shadow-hover);
}

.category-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.category-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: #e2e8f0;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 500;
  transition: all var(--trans-fast);
}

.skill-tag:hover {
  background: var(--accent-cyan-dim);
  border-color: var(--border-focus);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. Featured Projects Section
   -------------------------------------------------------------------------- */
.project-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2.5rem;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(14, 22, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--trans-fast);
}

.filter-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-top: 1px solid var(--border-card-top);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-smooth);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: var(--shadow-hover);
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

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

.badge-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-family: var(--font-mono);
}

.badge-target {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

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

.project-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.project-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-family: var(--font-mono);
}

/* Attack Chain Preview Box */
.project-chain-preview {
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chain-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
}

.step-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10. Findings Bullet List with Glowing Indicators (Mobile Pentest)
   -------------------------------------------------------------------------- */
.findings-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.finding-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all var(--trans-fast);
}

.finding-bullet-item:hover {
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateX(4px);
}

.finding-bullet-item.severity-high {
  border-left: 3px solid var(--accent-danger);
  box-shadow: inset 4px 0 12px -4px rgba(244, 63, 94, 0.25);
}

.finding-bullet-item.severity-medium {
  border-left: 3px solid var(--accent-amber);
  box-shadow: inset 4px 0 12px -4px rgba(245, 158, 11, 0.25);
}

.bullet-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.bullet-dot.high {
  background-color: var(--accent-danger);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.8);
}

.bullet-dot.medium {
  background-color: var(--accent-amber);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.finding-bullet-content {
  flex: 1;
}

.finding-bullet-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

.finding-bullet-item.severity-high .finding-bullet-title {
  color: #fecdd3;
}

.finding-bullet-item.severity-medium .finding-bullet-title {
  color: #fde68a;
}

.finding-bullet-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.project-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   11. Modals
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-content {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 45px rgba(0, 242, 254, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  color: var(--text-muted);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

.modal-section {
  margin-bottom: 1.75rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.modal-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flow-item {
  background: rgba(6, 10, 20, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.flow-badge {
  font-size: 0.825rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.flow-item p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.modal-bullets {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.modal-bullets li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 10, 20, 0.95);
  display: flex;
  justify-content: flex-end;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   12. Education & Certifications Section
   -------------------------------------------------------------------------- */
.credentials-section {
  position: relative;
  border-top: 1px solid rgba(0, 242, 254, 0.08);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.credential-card {
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-top: 1px solid var(--border-card-top);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-smooth);
  position: relative;
}

.credential-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: var(--shadow-hover);
}

.cred-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cred-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

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

.cred-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-verified {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
}

.cred-type-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.cred-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.cred-subinfo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  margin-bottom: 0.45rem;
}

.cred-org {
  color: var(--text-secondary);
  font-weight: 600;
}

.cred-sep {
  color: var(--border-card);
}

.cred-focus {
  font-weight: 600;
}

.cred-hours {
  color: var(--accent-amber);
}

.cred-id-subtle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 1rem;
  word-break: break-all;
}

.cred-id-label {
  color: #475569;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cred-id-text {
  color: #64748b;
  font-size: 0.7rem;
}

.cred-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.cred-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #03050c;
  border-top: 1px solid rgba(0, 242, 254, 0.15);
  padding: 3.5rem 0 1.5rem;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.btn-scroll-top {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}

.btn-scroll-top:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.5rem;
}

.footer-bottom-container {
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   13. Responsive Design (Mobile / Tablet Queries)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .skills-grid,
  .credentials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    position: fixed;
    top: 61px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 61px);
    background: rgba(5, 8, 17, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    transition: left var(--trans-normal);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active .menu-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .menu-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-section {
    padding-top: 6.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero-links-bar {
    padding: 1rem;
  }

  .social-links-list {
    flex-direction: column;
    align-items: stretch;
  }

  .link-chip {
    justify-content: center;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }
}
