/* ==========================================================================
   MINHHK | CYBERSECURITY PORTFOLIO - DESIGN SYSTEM & STYLE
   Theme: Sleek Dark Mode (#0a0b0e), Neon Cyan (#00f0ff) & Neon Green (#00ff66)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-main: #0a0b0e;
  --bg-secondary: #0f1117;
  --bg-card: #12141a;
  --bg-card-hover: #171b24;
  --border-color: #1c212d;
  --border-glow: rgba(0, 240, 255, 0.4);
  
  /* Neon Accents */
  --neon-cyan: #00f0ff;
  --neon-green: #00ff66;
  --neon-purple: #8a2be2;
  --neon-blue: #3a86ff;
  --neon-orange: #ff7800;
  --neon-red: #ff3366;
  
  /* Text Colors */
  --text-main: #f0f4f8;
  --text-muted: #8b95a5;
  --text-dark: #0a0b0e;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-cyan: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-green: 0 0 25px rgba(0, 255, 102, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Cyber Grid & Noise */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(0, 255, 102, 0.04) 0%, transparent 40%),
    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%, 100% 100%, 40px 40px, 40px 40px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #242a38;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Utility & Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

ul {
  list-style: none;
}

.mono {
  font-family: var(--font-mono);
}

.section-padding {
  padding: 100px 0;
}

/* Section Headings */
.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title .hash {
  color: var(--neon-cyan);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 760px;
}

/* ==========================================================================
   HEADER / NAVIGATION BAR (Reference: image_0.png)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
  transition: all var(--transition-fast);
}

.header.scrolled {
  background: rgba(10, 11, 14, 0.95);
  border-bottom-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-shield {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.logo-shield svg {
  width: 100%;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  transition: width var(--transition-fast);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-text {
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.hero-tag .pulse {
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #b0c4de 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--neon-cyan);
  margin-bottom: 24px;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.typing-text {
  border-right: 2px solid var(--neon-cyan);
  padding-right: 4px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--neon-cyan); }
}

.hero-bio {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-mono);
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), #00a8ff);
  color: var(--text-dark);
  border: none;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: rgba(0, 255, 102, 0.05);
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
  transform: translateY(-2px);
}

/* Hero Terminal Card */
.hero-visual {
  position: relative;
  z-index: 1;
}

.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 40px rgba(0, 240, 255, 0.1);
}

.terminal-header {
  background: #181c26;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

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

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

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

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

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.8;
}

.terminal-line {
  display: flex;
  gap: 12px;
}

.prompt { color: var(--neon-green); font-weight: 600; }
.cmd { color: var(--neon-cyan); }
.flag { color: #ffd700; }
.output { color: var(--text-muted); padding-left: 20px; }
.output-highlight { color: var(--neon-cyan); font-weight: 600; }

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-info h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.about-info p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

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

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: all var(--transition-fast);
}

.stat-box:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-cyan);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Skills Matrix */
.skills-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
}

.skills-heading {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--neon-green);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category {
  margin-bottom: 24px;
}

.skill-category:last-child {
  margin-bottom: 0;
}

.skill-cat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

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

.skill-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   BUG BOUNTY & CTF SECTION (Reference: image_1.png)
   ========================================================================== */
.bb-ctf-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sub-section-title {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-section-title .hash {
  color: var(--neon-green);
}

.cards-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.cards-grid-2x2:last-child {
  margin-bottom: 0;
}

.sleek-card {
  background: #15181f;
  border: 1px solid #222733;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.sleek-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--neon-cyan);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.sleek-card:hover {
  background: #191d26;
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.15);
  transform: translateY(-3px);
}

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

.sleek-card.green-hover:hover {
  border-color: rgba(0, 255, 102, 0.5);
  box-shadow: 0 8px 24px rgba(0, 255, 102, 0.15);
}

.sleek-card.green-hover::before {
  background: var(--neon-green);
}

.platform-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.platform-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
}

.platform-logo svg {
  width: 100%;
  height: 100%;
}

.platform-name {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.platform-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.platform-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.platform-badge.ctf-badge {
  background: rgba(0, 255, 102, 0.1);
  color: var(--neon-green);
  border-color: rgba(0, 255, 102, 0.3);
}

/* ==========================================================================
   CERTIFICATIONS SECTION (Reference: image_2.png)
   ========================================================================== */
.cert-section {
  position: relative;
}

.cert-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  width: 100%;
}

.cert-row-top {
  max-width: 1100px;
}

.cert-row-bottom {
  max-width: 850px;
}

.cert-badge-item {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1a1e29 0%, #0c0e14 100%);
  border: 3px solid;
  border-color: var(--neon-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3), inset 0 0 15px rgba(0, 240, 255, 0.15);
}

/* Badge Color Variations matching image_2 glow aesthetics */
.cert-badge-item.glow-blue {
  border-color: #00f0ff;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.4), inset 0 0 18px rgba(0, 240, 255, 0.2);
}

.cert-badge-item.glow-red {
  border-color: #ff3366;
  box-shadow: 0 0 28px rgba(255, 51, 102, 0.4), inset 0 0 18px rgba(255, 51, 102, 0.2);
}

.cert-badge-item.glow-purple {
  border-color: #a855f7;
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.4), inset 0 0 18px rgba(168, 85, 247, 0.2);
}

.cert-badge-item.glow-orange {
  border-color: #ff7800;
  box-shadow: 0 0 28px rgba(255, 120, 0, 0.4), inset 0 0 18px rgba(255, 120, 0, 0.2);
}

.cert-badge-item:hover {
  transform: scale(1.08) translateY(-6px);
  filter: brightness(1.15);
}

.cert-inner-border {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.cert-shield-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-shield-icon svg {
  width: 100%;
  height: 100%;
}

.cert-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  text-transform: uppercase;
}

.cert-vendor {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   PUBLISHED VULNERABILITIES (CVEs) SECTION (Reference: image_3.png)
   ========================================================================== */
.cve-section {
  background: #0d0f14;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cve-header-center {
  text-align: center;
  margin-bottom: 56px;
}

.cve-sub-top {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  display: block;
}

.cve-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.cve-desc-text {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.cve-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1050px;
  margin: 0 auto;
}

.cve-card {
  background: var(--bg-card);
  border: 1px solid #1c212d;
  border-radius: 12px;
  padding: 26px 28px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: all var(--transition-fast);
  position: relative;
}

.cve-card:hover {
  background: #161a23;
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1);
  transform: translateY(-3px);
}

.cve-left-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  flex-shrink: 0;
}

.cve-shield-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
  margin-bottom: 10px;
}

.cve-id {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 8px;
  text-align: center;
}

.cve-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cve-severity {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.cve-severity.critical {
  background: rgba(255, 51, 102, 0.15);
  color: #ff3366;
  border: 1px solid rgba(255, 51, 102, 0.4);
}

.cve-severity.high {
  background: rgba(255, 120, 0, 0.15);
  color: #ff7800;
  border: 1px solid rgba(255, 120, 0, 0.4);
}

.cve-severity.medium {
  background: rgba(255, 189, 46, 0.15);
  color: #ffbd2e;
  border: 1px solid rgba(255, 189, 46, 0.4);
}

.cve-cvss {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cve-content {
  flex: 1;
}

.cve-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.cve-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cve-ext-link {
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 4px;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}

.cve-card:hover .cve-ext-link {
  color: var(--neon-cyan);
}

/* ==========================================================================
   HALL OF FAME SECTION (Reference: image_7.png)
   ========================================================================== */
.hof-section {
  padding: 80px 0;
}

.hof-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
}

.hof-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  flex: 0 1 400px;
  max-width: 450px;
  width: 100%;
}

.hof-card:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
  transform: translateY(-5px);
}

.hof-logo-box {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.hof-logo-box img,
.hof-logo-box svg {
  max-height: 48px;
  max-width: 160px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

.hof-company {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hof-honor {
  font-size: 0.85rem;
  color: var(--neon-cyan);
  font-weight: 500;
  margin-bottom: 12px;
}

.hof-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   WRITEUPS & BLOG SECTION
   ========================================================================== */
.writeups-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.writeups-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.writeup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  cursor: pointer;
  flex: 1 1 450px;
  max-width: 800px;
  width: 100%;
}

.writeup-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 10px 30px rgba(0, 255, 102, 0.12);
  transform: translateY(-4px);
}

.writeup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.writeup-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(0, 255, 102, 0.1);
  color: var(--neon-green);
}

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

.writeup-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
}

.writeup-snippet {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.writeup-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neon-cyan);
}

.writeup-card:hover .writeup-read-more {
  color: var(--neon-green);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.contact-info-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 18px 20px;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.contact-item:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px;
  transition: color var(--transition-fast);
}

.copy-btn:hover {
  color: var(--neon-cyan);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: #0f1117;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.pgp-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.pgp-toggle input[type="checkbox"] {
  accent-color: var(--neon-green);
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   FOOTER (Reference: image_4.png)
   ========================================================================== */
.footer {
  background: #0d0f14;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 0 36px;
  text-align: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-icon {
  color: #b0b8c4;
  font-size: 1.6rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.footer-icon:hover {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #8b95a5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal span.divider {
  color: #3b4252;
}

/* ==========================================================================
   MODAL / POPUP
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--neon-cyan);
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.25);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--neon-red);
  color: #fff;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #181c26;
  border: 1px solid var(--neon-green);
  color: var(--text-main);
  padding: 14px 24px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 255, 102, 0.2);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

}

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
  }
  
  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #0f1117;
    flex-direction: column;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav-list.open {
    clip-path: circle(150% at 100% 0);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .cards-grid-2x2,
  .writeups-grid {
    grid-template-columns: 1fr;
  }
  
  .hof-card {
    max-width: 100%;
    flex: 1 1 100%;
  }
  
  .cve-card {
    flex-direction: column;
  }
  
  .cve-left-badge {
    min-width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .cve-shield-icon {
    margin-bottom: 0;
  }
  
  .cert-row {
    gap: 24px;
  }
  
  .cert-badge-item {
    width: 140px;
    height: 140px;
  }
}

/* ==========================================================================
   CYBER-SECURITY EASTER EGG — CyberBug + Quarantine + Glitch + Particles
   ========================================================================== */

/* ── Phase 1: Idle Bug ─────────────────────────────────────────────────── */
#cyber-bug {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  pointer-events: none;   /* CRITICAL: never blocks page clicks */
  z-index: 9999;
  will-change: transform; /* hint browser to GPU-composite this layer */
  filter: drop-shadow(0 0 6px #00ff66) drop-shadow(0 0 12px #00ff66);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.bug-svg {
  display: block;
  animation: bug-idle-breathe 2.4s ease-in-out infinite;
}

/* Subtle pulsing glow to make the bug feel alive while it idles */
@keyframes bug-idle-breathe {
  0%, 100% { filter: brightness(1);   }
  50%       { filter: brightness(1.4) drop-shadow(0 0 8px #00ff66); }
}

/* ── Phase 2: Quarantine Ring ──────────────────────────────────────────── */
#bug-quarantine-ring {
  position: fixed;
  width: 80px;
  height: 80px;
  margin-left: -40px;
  margin-top: -40px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transform: scale(1.8);
  /* Cyber crosshair via layered box-shadows */
  border: 2px solid #ff3366;
  box-shadow:
    0 0 0  6px rgba(255, 51, 102, 0.15),
    0 0 0 12px rgba(255, 51, 102, 0.08),
    0 0 20px  6px rgba(255, 51, 102, 0.4),
    inset 0 0 20px rgba(255, 51, 102, 0.1);
  transition: opacity 0.1s;
}

/* Crosshair tick-marks using pseudo-elements */
#bug-quarantine-ring::before,
#bug-quarantine-ring::after {
  content: '';
  position: absolute;
  background: #ff3366;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#bug-quarantine-ring::before { width: 90px; height: 1px; }
#bug-quarantine-ring::after  { width: 1px;  height: 90px; }

/* Activate: scale in from large + fade in */
#bug-quarantine-ring.active {
  animation: quarantine-lock 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes quarantine-lock {
  0%   { opacity: 0; transform: scale(1.8) rotate(0deg);  }
  60%  { opacity: 1; transform: scale(1.0) rotate(15deg); }
  80%  { opacity: 1; transform: scale(1.1) rotate(-5deg); }
  100% { opacity: 0.85; transform: scale(1.0) rotate(0deg); }
}

/* ── Phase 3: Glitch Effect ────────────────────────────────────────────── */
.glitch-effect {
  animation: glitch-strike 0.35s steps(1) forwards !important;
}

@keyframes glitch-strike {
  0%  {
    filter: drop-shadow(-3px 0 #ff3366) drop-shadow(3px 0 #00f0ff);
    transform: translate(var(--bug-tx, 0), var(--bug-ty, 0)) rotate(var(--bug-r, 0)) skew(0deg);
  }
  10% {
    filter: drop-shadow(4px -2px #ff3366) drop-shadow(-4px 2px #00f0ff);
    transform: translate(calc(var(--bug-tx, 0) + 6px), calc(var(--bug-ty, 0) - 4px)) rotate(var(--bug-r, 0)) skew(5deg, -2deg);
    clip-path: polygon(0 15%, 100% 15%, 100% 45%, 0 45%);
  }
  20% {
    filter: drop-shadow(-5px 3px #ff3366) drop-shadow(5px -3px #00f0ff);
    transform: translate(calc(var(--bug-tx, 0) - 8px), calc(var(--bug-ty, 0) + 3px)) rotate(var(--bug-r, 0)) skew(-4deg, 3deg);
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 60%);
  }
  30% {
    filter: drop-shadow(3px 5px #ff3366) drop-shadow(-3px -5px #00f0ff);
    transform: translate(calc(var(--bug-tx, 0) + 4px), calc(var(--bug-ty, 0) - 6px)) rotate(calc(var(--bug-r, 0) + 8deg)) skew(3deg);
    clip-path: polygon(0 40%, 100% 40%, 100% 100%, 0 100%);
  }
  40% {
    filter: brightness(3) saturate(0);
    transform: translate(var(--bug-tx, 0), var(--bug-ty, 0)) rotate(var(--bug-r, 0)) scale(1.2);
    clip-path: none;
  }
  60% {
    filter: drop-shadow(0 0 12px #ff3366) drop-shadow(0 0 12px #00f0ff);
    transform: translate(calc(var(--bug-tx, 0) - 3px), calc(var(--bug-ty, 0) + 2px)) rotate(var(--bug-r, 0)) skew(-2deg, 1deg);
  }
  80% {
    filter: brightness(5);
    transform: translate(var(--bug-tx, 0), var(--bug-ty, 0)) rotate(var(--bug-r, 0)) scale(1.4);
  }
  100% {
    opacity: 0;
    filter: none;
    clip-path: none;
  }
}

/* ── Phase 4: Status Text ──────────────────────────────────────────────── */
#bug-status-text {
  position: fixed;
  pointer-events: none;
  z-index: 10002;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #00ff66;
  text-shadow: 0 0 8px #00ff66, 0 0 20px #00ff66;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: none;
}

#bug-status-text.show {
  animation: status-rise 1.6s ease-out forwards;
}

@keyframes status-rise {
  0%   { opacity: 0;   transform: translate(-50%, -20%); }
  15%  { opacity: 1;   transform: translate(-50%, -60%); }
  70%  { opacity: 1;   transform: translate(-50%, -90%); }
  100% { opacity: 0;   transform: translate(-50%, -110%); }
}

/* Flicker effect on the text itself */
#bug-status-text.show::before {
  content: attr(data-text);
  animation: text-flicker 0.15s steps(1) 3;
}

@keyframes text-flicker {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Canvas overlay (managed by ParticleSystem class) ──────────────────── */
#bug-particle-canvas {
  image-rendering: pixelated;
}

