/* ==========================================================================
   JACEK SZEWCZYK // IT INFRASTRUCTURE & NETWORK SYSTEMS
   Aesthetic: Windows Terminal / Dark Engineering HUD
   Mobile-First & Fully Responsive
   ========================================================================== */

:root {
  --bg-dark: #090c10;
  --bg-surface: #0f141c;
  --bg-card: #131b26;
  --bg-card-hover: #182232;
  --border-color: #212e42;
  --border-glow: rgba(0, 255, 157, 0.35);
  
  --accent-green: #00ff9d;
  --accent-cyan: #00e5ff;
  --accent-purple: #9d4edd;
  --accent-amber: #ffb703;
  --accent-red: #ff3366;
  
  --text-main: #e2e8f0;
  --text-muted: #8b9bb4;
  --text-dim: #526177;
  
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-glow: 0 0 20px rgba(0, 255, 157, 0.15);
  --shadow-cyan: 0 0 20px rgba(0, 229, 255, 0.2);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(0, 255, 157, 0.04) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* Subtle Terminal Scanline Overlay */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.12;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-green);
}

/* Top System Status Bar */
.sys-banner {
  background: #06080c;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 1rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sys-banner .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

/* Navigation Header */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 20, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-prompt-icon {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-green);
  font-size: 1.05rem;
  background: rgba(0, 255, 157, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
  color: #fff;
}

.logo-text span {
  color: var(--accent-cyan);
}

/* Mobile Nav Toggle Button */
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  font-size: 1.25rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-green);
  background: rgba(0, 255, 157, 0.08);
  border-color: rgba(0, 255, 157, 0.3);
}

.nav-link.active {
  border-bottom: 2px solid var(--accent-green);
}

/* Embedded Social Buttons */
.social-buttons-container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-embed-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  min-height: 42px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-embed-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.btn-github {
  background: #1e2633;
  color: #ffffff;
  border-color: #38455a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-github:hover {
  background: #2b3648;
  color: #ffffff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

.btn-linkedin {
  background: #004182;
  color: #ffffff;
  border-color: #0077b5;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.25);
}

.btn-linkedin:hover {
  background: #0077b5;
  color: #ffffff;
  border-color: #70c4ff;
  box-shadow: 0 0 16px rgba(0, 119, 181, 0.5);
  transform: translateY(-2px);
}

.btn-cyber-primary {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.15), rgba(0, 229, 255, 0.2));
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.btn-cyber-primary:hover {
  background: var(--accent-green);
  color: #090c10;
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.6);
  transform: translateY(-2px);
}

.btn-cyber-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--border-color);
}

.btn-cyber-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-tagline {
  font-family: var(--font-mono);
  color: var(--accent-green);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-title {
  font-size: clamp(2rem, 5vw + 0.5rem, 3.1rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.8px;
  word-break: break-word;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 80%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bio {
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-stats-badge {
  display: flex;
  gap: 8px;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.stat-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-pill strong {
  color: var(--accent-cyan);
}

/* Terminal Console Box */
.terminal-window {
  background: #070a0f;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.08);
  overflow: hidden;
  font-family: var(--font-mono);
  max-width: 100%;
}

.terminal-header {
  background: #0d121a;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  overflow: hidden;
  white-space: nowrap;
}

.terminal-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.terminal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-body {
  padding: 1rem;
  font-size: 0.82rem;
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: break-word;
}

.term-line {
  margin-bottom: 6px;
}

.term-prompt {
  color: var(--accent-green);
  user-select: none;
}

.term-cmd {
  color: #fff;
}

.term-output {
  color: var(--text-muted);
  padding-left: 10px;
  border-left: 2px solid var(--border-color);
  margin-top: 4px;
}

.term-highlight {
  color: var(--accent-cyan);
}

/* Section Headers */
.section-header {
  margin-bottom: 1.75rem;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: none;
  color: var(--accent-green);
  letter-spacing: 1.2px;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* Projects Grid - Fully responsive with min(100%, 320px) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 157, 0.4);
  box-shadow: var(--shadow-glow);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 8px;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  text-transform: uppercase;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-stats-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-amber);
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.tag-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: 3px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  gap: 8px;
  flex-wrap: wrap;
}

/* Certifications Showcase */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
  min-height: 72px;
}

.cert-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.cert-info h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.cert-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Filter & Search Bar */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.filter-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(0, 255, 157, 0.15);
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.search-box {
  position: relative;
  min-width: 240px;
  flex-grow: 1;
}

.search-box input {
  width: 100%;
  background: #090c10;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 12px 9px 34px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  min-height: 38px;
}

.search-box input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* Modal Popup - Mobile Optimized */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 8, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 157, 0.1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close:hover {
  color: #fff;
  border-color: var(--accent-red);
  background: rgba(255, 51, 102, 0.15);
}

/* Footer */
footer {
  background: #06090e;
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.25rem;
  margin-top: 3.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERRIDES
   ========================================================================== */

/* Tablet & Mobile Screens (< 880px) */
@media (max-width: 880px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 0 2.5rem 0;
  }
  
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }
}

/* Phone Screens (< 640px) */
@media (max-width: 640px) {
  .container {
    padding: 1.5rem 1rem;
  }

  /* Compact System Banner */
  .sys-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 12px;
    font-size: 0.7rem;
    gap: 2px;
  }

  /* Responsive Navigation */
  .main-nav {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .nav-toggle-btn {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-link {
    padding: 10px 14px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
  }

  /* Full Width Buttons on Phones */
  .social-buttons-container {
    flex-direction: column;
    width: 100%;
  }

  .btn-embed-social {
    width: 100%;
    justify-content: center;
  }

  /* Projects Grid on Phone */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .project-footer button,
  .project-footer a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Modal on Phone */
  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-content {
    padding: 1.25rem 1rem;
    max-height: 92vh;
  }

  /* Education Cards */
  .section-title {
    font-size: 1.5rem;
  }
}

/* Dossier & Education Responsive Layouts */
.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.education-section {
  margin-top: 4.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.education-badge {
  display: block;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 4px;
  padding: 6px 10px;
  margin: 8px 0 10px 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent-cyan);
  word-break: break-word;
  overflow-wrap: break-word;
}

.education-badge.badge-green {
  background: rgba(0, 255, 157, 0.1);
  border-color: rgba(0, 255, 157, 0.3);
  color: var(--accent-green);
}

.education-badge.badge-amber {
  background: rgba(255, 183, 3, 0.1);
  border-color: rgba(255, 183, 3, 0.3);
  color: var(--accent-amber);
}

@media (max-width: 880px) {
  .dossier-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .education-section {
    padding: 1.5rem 1.15rem;
    margin-top: 3.5rem;
  }

  .education-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .education-section {
    padding: 1.25rem 0.85rem;
  }
  
  .education-badge {
    font-size: 0.85rem;
    padding: 5px 8px;
  }
  .terminal-window {
    display: none;
  }
}

/* Pinned Badge & Compact Multi-Categories */
.categories-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #090c10;
  background: var(--accent-amber);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(255, 183, 3, 0.4);
}

.badge-compact {
  font-size: 0.68rem;
  padding: 2px 6px;
}

.card-pinned {
  border-color: rgba(255, 183, 3, 0.35);
}

.toggle-more-btn {
  border-style: dashed;
  color: var(--accent-cyan);
}

.toggle-more-btn.active-toggle {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
}

/* Experience Cards Section */
.experience-section {
  margin-top: 4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.experience-role-badge {
  display: inline-block;
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: 4px;
  padding: 4px 10px;
  margin: 6px 0 8px 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-amber);
}

.project-modal-image-wrapper {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 880px) {
  .experience-section {
    padding: 1.5rem 1.15rem;
    margin-top: 3rem;
  }
}

@media (max-width: 640px) {
  .experience-section {
    padding: 1.25rem 0.85rem;
  }
}

/* ==========================================================================
   MODAL SCROLLBAR, LOCK BACKGROUND, LIGHTBOX & TECHNICAL SEARCH LOADER
   ========================================================================== */

/* Darker Blue Scrollbar for Modal, Terminal, and Output */
.modal-content::-webkit-scrollbar,
.terminal-body::-webkit-scrollbar,
#term-output-area::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.modal-content::-webkit-scrollbar-track,
.terminal-body::-webkit-scrollbar-track,
#term-output-area::-webkit-scrollbar-track {
  background: #080d14;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb,
.terminal-body::-webkit-scrollbar-thumb,
#term-output-area::-webkit-scrollbar-thumb {
  background: #112840;
  border: 1px solid #1e456b;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.terminal-body::-webkit-scrollbar-thumb:hover,
#term-output-area::-webkit-scrollbar-thumb:hover {
  background: #1b4570;
  border-color: #2b68a3;
}

.modal-content,
.terminal-body,
#term-output-area {
  scrollbar-width: thin;
  scrollbar-color: #112840 #080d14;
}

/* Background Scroll Lock when modal is open */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Pinned Badge - Emoji Only */
.pinned-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 2px;
  cursor: default;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Clickable Zoomable Images in Modal */
.modal-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  margin-top: 10px;
}

.project-detail-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-detail-img:hover {
  transform: scale(1.02);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* Image Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 6, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
  object-fit: contain;
  cursor: zoom-out;
}

.lightbox-close {
  position: fixed !important;
  top: 1.5rem !important;
  right: 1.5rem !important;
  background: rgba(18, 24, 38, 0.95) !important;
  border: 1px solid var(--accent-cyan) !important;
  color: #fff !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  font-size: 1.7rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  z-index: 9999999 !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 229, 255, 0.3) !important;
}

.lightbox-close:hover {
  border-color: var(--accent-red);
  color: #fff;
  background: rgba(255, 51, 102, 0.25);
}

/* Technical Search Loading State (0.25s Animation) */
.tech-search-loader {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.03);
  border: 1px dashed rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.tech-search-loader .loader-cursor {
  color: var(--accent-green);
  font-weight: 700;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.loader-scanline {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: scanAcross 0.6s infinite linear;
}

@keyframes scanAcross {
  0% { transform: translateY(0); }
  100% { transform: translateY(90px); }
}

/* ==========================================================================
   AUTHENTIC WINDOWS TERMINAL / POWERSHELL CONTROLS
   ========================================================================== */
.terminal-window {
  background: #080b11;
  border: 1px solid #1e2638;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 229, 255, 0.05);
  overflow: hidden;
  font-family: var(--font-mono);
}

.win-terminal-header {
  background: #10141d;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0;
  user-select: none;
}

.win-tab-active {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #080b11;
  border-top: 2px solid var(--accent-cyan);
  border-right: 1px solid #1e293b;
  height: 100%;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
  line-height: 1.4;
}

.win-ps-icon {
  display: inline-block;
  flex-shrink: 0;
}

.win-tab-close {
  font-size: 0.65rem;
  color: #64748b;
  margin-left: 6px;
  padding: 1px 3px;
  border-radius: 2px;
  cursor: pointer;
}

.win-tab-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.win-controls {
  display: flex;
  height: 100%;
}

.win-btn {
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.win-btn.win-close:hover {
  background: #e81123;
  color: #fff;
}

/* ==========================================================================
   GLITCH ENTRANCE ANIMATION FOR PROJECT CARDS
   ========================================================================== */
@keyframes cardGlitchIn {
  0% {
    opacity: 0;
    transform: translateY(14px) skewX(-2deg);
    filter: drop-shadow(-2px 0 rgba(0, 229, 255, 0.45));
  }
  30% {
    opacity: 0.75;
    transform: translateY(-2px) skewX(1.5deg);
    filter: drop-shadow(2px 0 rgba(0, 255, 157, 0.4));
  }
  65% {
    opacity: 0.92;
    transform: translateY(1px) skewX(-0.5deg);
    filter: drop-shadow(-1px 0 rgba(0, 229, 255, 0.2));
  }
  100% {
    opacity: 1;
    transform: translateY(0) skewX(0);
    filter: none;
  }
}

.card-glitch-enter {
  animation: cardGlitchIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--card-index, 0) * 0.045s);
}

/* ==========================================================================
   MOBILE PINCH-TO-ZOOM LIGHTBOX
   ========================================================================== */
.lightbox-overlay {
  touch-action: none;
  overflow: hidden;
}

.lightbox-img-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
  object-fit: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.lightbox-zoom-hint {
  position: absolute;
  bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}

/* ==========================================================================
   MATRIX SEQUENTIAL CARD LOAD ANIMATION
   Loads each card from nothing in order with digital matrix-style reveal
   ========================================================================== */
@keyframes matrixCardLoad {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    filter: brightness(2) contrast(200%) drop-shadow(0 0 12px #00ff9d);
    clip-path: inset(0 0 100% 0);
  }
  35% {
    opacity: 0.85;
    clip-path: inset(0 0 25% 0);
    filter: brightness(1.6) contrast(150%) drop-shadow(0 0 8px #00e5ff);
  }
  70% {
    opacity: 0.96;
    clip-path: inset(0 0 0 0);
    transform: translateY(-2px) scale(1.005);
    filter: drop-shadow(0 0 4px #00ff9d);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
    clip-path: inset(0 0 0 0);
  }
}

.matrix-card-enter {
  animation: matrixCardLoad 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--card-index, 0) * 0.08s);
}

/* Modal Top Bar: Right Padding so Status Badges Never Overlap Close Button */
.modal-top-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-right: 56px; /* Guaranteed clearance for .modal-close on all screens */
  word-break: break-word;
}

/* Enhanced Lightbox Zoom & Desktop Mouse Dragging */
.lightbox-img-wrapper {
  cursor: zoom-in;
}

.lightbox-img-wrapper.is-zoomed {
  cursor: grab;
}

.lightbox-img-wrapper.is-dragging {
  cursor: grabbing !important;
}

.lightbox-img {
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center center;
}

.lightbox-img-wrapper.is-dragging .lightbox-img {
  transition: none; /* Instant tracking while dragging */
}

/* Mobile specific pad-y adjustment for PowerShell Titlebar */
@media (max-width: 640px) {
  .win-terminal-header {
    min-height: 48px;
  }
  .win-tab-active {
    padding: 10px 12px;
    font-size: 0.74rem;
  }
  .modal-top-bar {
    padding-right: 50px;
  }
}

/* ==========================================================================
   TECHY DATA HYDRATION ANIMATIONS
   PowerShell command stream & cyber decode effect on load
   ========================================================================== */

/* Terminal output line stream animation */
/* High-tech PowerShell terminal stream & typing decode animation */
@keyframes termStreamIn {
  0% {
    opacity: 0;
    transform: translateX(-10px);
    filter: drop-shadow(0 0 8px var(--accent-green)) brightness(2);
    clip-path: inset(0 100% 0 0);
  }
  25% {
    opacity: 0.6;
    filter: drop-shadow(0 0 6px var(--accent-cyan)) brightness(1.6);
    clip-path: inset(0 60% 0 0);
  }
  60% {
    opacity: 0.85;
    clip-path: inset(0 15% 0 0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: none;
    clip-path: inset(0 0 0 0);
  }
}

.term-stream-line {
  display: block;
  animation: termStreamIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--line-index, 0) * 0.075s);
  position: relative;
}

/* Hero cert pills cyber pop-in */
@keyframes pillDecodeIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(4px);
    filter: brightness(1.6) drop-shadow(0 0 8px #00e5ff);
  }
  60% {
    opacity: 0.95;
    transform: scale(1.04) translateY(-1px);
    filter: drop-shadow(0 0 4px #00ff9d);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: none;
  }
}

.hero-stats-badge .stat-pill {
  animation: pillDecodeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--pill-index, 0) * 0.05s);
}

/* Cert card cyber hydration */
@keyframes certHydrateIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

.cert-card.hydrated {
  animation: certHydrateIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--cert-index, 0) * 0.06s);
}

/* Education & Experience cyber stream */
@keyframes sectionCardIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: brightness(1.3) drop-shadow(0 0 6px rgba(0, 255, 157, 0.3));
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }
}

.education-card.hydrated,
.experience-card.hydrated {
  animation: sectionCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--card-index, 0) * 0.07s);
}


/* High-Visibility PowerShell Loading Animation & Blinking Cursor */
.term-loading-spinner {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: termGlowPulse 0.65s infinite alternate ease-in-out;
}

@keyframes termGlowPulse {
  0% {
    opacity: 0.4;
    color: var(--accent-cyan);
    text-shadow: 0 0 4px rgba(0, 229, 255, 0.5);
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    color: var(--accent-green);
    text-shadow: 0 0 12px #00ff9d, 0 0 20px #00ff9d;
    transform: translateX(2px);
  }
}

.term-cursor {
  display: inline-block;
  color: var(--accent-green);
  font-weight: 900;
  margin-left: 2px;
  animation: termCursorBlink 0.4s infinite steps(1);
}

@keyframes termCursorBlink {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px #00ff9d; }
  50% { opacity: 0; text-shadow: none; }
}

@keyframes termStreamIn {
  0% {
    opacity: 0;
    transform: translateX(-12px);
    filter: brightness(2.2) drop-shadow(0 0 10px var(--accent-green));
    clip-path: inset(0 100% 0 0);
  }
  30% {
    opacity: 0.75;
    filter: brightness(1.7) drop-shadow(0 0 6px var(--accent-cyan));
    clip-path: inset(0 40% 0 0);
  }
  70% {
    opacity: 0.95;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: none;
    clip-path: inset(0 0 0 0);
  }
}

.term-stream-line {
  display: block;
  margin-bottom: 3px;
  animation: termStreamIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--line-index, 0) * 0.08s);
}
  50% { opacity: 0; }
}
.home-page .container {
  padding-top: 0;
}

.home-page .hero-section {
  padding-top: 0;
}
