﻿:root {
  color-scheme: dark;
  --bg: #080d1b;
  --panel: #10182a;
  --panel-hover: #141f35;
  --text: #f2f5ff;
  --muted: #98a5bd;
  --blue: #54c8ff;
  --purple: #a78bfa;
  --emerald: #57e6a5;
  --red: #ff7285;
  --amber: #ffd166;
  --border: rgba(155, 177, 221, 0.15);
  --border-hover: rgba(84, 200, 255, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 80% 5%, #152047 0, transparent 38%),
    radial-gradient(ellipse at 20% 50%, rgba(114, 88, 220, 0.08) 0, transparent 40%),
    radial-gradient(ellipse at 75% 85%, rgba(84, 200, 255, 0.06) 0, transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS (SMOOTH & RELIABLE)
   ========================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Stagger helper delays */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(6%, calc((100% - 1180px) / 2));
  background: rgba(8, 13, 27, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -1px;
}

.brand-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border: 1px solid rgba(84, 200, 255, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(84, 200, 255, 0.12), rgba(16, 24, 42, 0.8));
  color: var(--blue);
  font-family: 'Inter', sans-serif;
  font-weight: 850;
  letter-spacing: -0.5px;
  transition: all 0.25s ease-in-out;
}

.brand:hover .brand-box {
  border-color: var(--blue);
  box-shadow: 0 0 16px rgba(84, 200, 255, 0.45);
  transform: translateY(-1px);
}

.brand-dot {
  color: var(--purple);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--blue);
}

nav a.active-link {
  color: var(--blue);
}

.nav-contact {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: all 0.2s;
}

.nav-contact:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

/* ==========================================
   SECTIONS & LAYOUT
   ========================================== */
.section {
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 90px 0;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1 {
  margin: 10px 0 20px;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -2.5px;
  font-weight: 800;
}

.gradient-text {
  color: var(--blue);
  background: linear-gradient(100deg, var(--blue), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr auto 1.1fr;
  align-items: center;
  gap: 36px;
  min-height: 620px;
  padding-top: 60px;
  padding-bottom: 70px;
}

/* ==========================================
   HERO PORTRAIT CYBER CAPSULE & PRIVACY SHIELD
   ========================================== */
.hero-portrait-capsule {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.portrait-glow {
  position: absolute;
  inset: -14px;
  background: radial-gradient(ellipse at center, rgba(84, 200, 255, 0.4) 0%, rgba(167, 139, 250, 0.25) 45%, transparent 70%);
  border-radius: 9999px;
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
  animation: pulsePortraitGlow 4s ease-in-out infinite alternate;
}

@keyframes pulsePortraitGlow {
  0% { opacity: 0.55; transform: scale(0.96); }
  100% { opacity: 0.95; transform: scale(1.04); }
}

.portrait-frame {
  position: relative;
  width: 240px;
  height: 340px;
  border-radius: 9999px;
  padding: 3px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--emerald) 100%);
  box-shadow: 0 0 32px rgba(84, 200, 255, 0.35), 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.hero-portrait-capsule:hover .portrait-frame {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 45px rgba(84, 200, 255, 0.55), 0 20px 50px rgba(0, 0, 0, 0.7);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: 9999px;
  display: block;
  filter: contrast(1.02) brightness(0.99);
  transition: filter 0.3s ease, transform 0.35s ease;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hero-portrait-capsule:hover .portrait-img {
  filter: contrast(1.05) brightness(1.02);
  transform: scale(1.02);
}

.portrait-overlay-glow {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(180deg, transparent 72%, rgba(8, 13, 27, 0.65) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Invisible security shield preventing image download & drag */
.portrait-shield {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: transparent;
  z-index: 5;
  cursor: default;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.portrait-badge {
  position: relative;
  margin-top: -18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(8, 13, 27, 0.94);
  border: 1px solid rgba(84, 200, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 14px rgba(84, 200, 255, 0.25);
  color: var(--text);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}

.hero-copy,
.terminal-card {
  position: relative;
  z-index: 1;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  background: rgba(16, 24, 42, 0.4);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-description {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  color: #06101d;
  background: linear-gradient(100deg, var(--blue), #a5a4ff);
  box-shadow: 0 4px 20px rgba(84, 200, 255, 0.25);
}

.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.secondary:hover {
  border-color: var(--blue);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-meta strong {
  color: var(--text);
}

.meta-divider {
  height: 16px;
  border-left: 1px solid var(--border);
}

/* ==========================================
   TERMINAL CARD (ANGLED & INTERACTIVE)
   ========================================== */
.terminal-card {
  overflow: hidden;
  border: 1px solid rgba(84, 200, 255, 0.25);
  border-radius: 16px;
  background: rgba(12, 19, 36, 0.96);
  box-shadow: 0 20px 80px rgba(21, 32, 71, 0.4);
  transform: rotate(1deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.terminal-card:hover {
  transform: rotate(0deg) translateY(-4px);
  border-color: rgba(84, 200, 255, 0.45);
}

.terminal-header,
.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.74rem;
}

.terminal-header {
  border-bottom: 1px solid var(--border);
}

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

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.window-dots span:nth-child(2) {
  background: var(--amber);
}

.window-dots span:nth-child(3) {
  background: var(--emerald);
}

.terminal-status {
  color: var(--emerald);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.terminal-body {
  padding: 20px 22px;
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.65;
  height: 290px;
  overflow-y: auto;
  cursor: text;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f2f5ff;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  caret-color: var(--blue);
  padding: 0;
}

.terminal-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.terminal-chip {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.68rem;
  font-family: 'Fira Code', monospace;
  cursor: pointer;
  transition: all 0.2s;
}

.terminal-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(84, 200, 255, 0.08);
}

.prompt {
  color: var(--blue);
  font-weight: 600;
}

.terminal-output {
  margin: 4px 0 16px 16px;
  color: #d2dcf6;
}

.success-output {
  color: var(--emerald);
  margin: 4px 0 16px 16px;
}

.cursor {
  color: var(--purple);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.terminal-footer {
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: var(--blue);
  letter-spacing: 0.5px;
  font-size: 0.72rem;
}

/* ==========================================
   SECTION HEADINGS
   ========================================== */
.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.section-description {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ==========================================
   GRIDS & CARDS (ABOUT & SKILLS)
   ========================================== */
.about-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-card,
.skill-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--panel), rgba(16, 24, 42, 0.5));
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.about-card:hover,
.skill-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(8, 13, 27, 0.6);
}

.card-icon {
  color: var(--blue);
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}

.about-card h3,
.skill-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

.about-card p,
.skill-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.skill-index,
.project-number {
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ==========================================
   INTERACTIVE PIPELINE SECTION
   ========================================== */
/* ==========================================
   PIPELINE SIMULATOR CONTROLS
   ========================================== */
.pipeline-heading-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 100%;
}

.pipeline-heading-copy {
  max-width: 680px;
}

.pipeline-action-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pipeline-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 9px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(84, 200, 255, 0.08);
  border: 1px solid rgba(84, 200, 255, 0.35);
  box-shadow: 0 0 16px rgba(84, 200, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.pipeline-run-btn:hover {
  background: rgba(84, 200, 255, 0.16);
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(84, 200, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.pipeline-run-btn:active {
  transform: translateY(0);
}

.pipeline-run-btn.running {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(255, 209, 102, 0.1);
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.25);
  cursor: wait;
}

.pipeline-run-btn.completed {
  color: var(--emerald);
  border-color: var(--emerald);
  background: rgba(87, 230, 165, 0.12);
  box-shadow: 0 0 20px rgba(87, 230, 165, 0.25);
}

.pipeline-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.pipeline-progress-bar {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--blue), var(--emerald));
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(84, 200, 255, 0.6);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.run-btn-icon {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.pipeline-run-btn.running .run-btn-icon {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .pipeline-heading-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pipeline-run-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }
}

.pipeline-box {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.pipeline-step {
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8, 13, 27, 0.6);
  cursor: pointer;
  transition: all 0.2s;
}

.pipeline-step:hover,
.pipeline-step.active {
  border-color: var(--blue);
  background: rgba(84, 200, 255, 0.08);
  transform: translateY(-3px);
}

.step-num {
  font-size: 0.7rem;
  color: var(--purple);
  font-family: ui-monospace, monospace;
  font-weight: 700;
}

.step-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 6px 0 2px;
  color: var(--text);
}

.step-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.step-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  background: rgba(87, 230, 165, 0.12);
  color: var(--emerald);
  font-family: ui-monospace, monospace;
}

.pipeline-console {
  background: #060a14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.65;
  overflow-x: auto;
}

/* ==========================================
   DEVSECOPS MATRIX
   ========================================== */
.devsecops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.devsecops-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--panel), rgba(16, 24, 42, 0.5));
  transition: all 0.25s;
}

.devsecops-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.security-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-family: ui-monospace, monospace;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.badge-red { background: rgba(255, 114, 133, 0.12); color: var(--red); border-color: rgba(255, 114, 133, 0.3); }
.badge-blue { background: rgba(84, 200, 255, 0.12); color: var(--blue); border-color: rgba(84, 200, 255, 0.3); }
.badge-purple { background: rgba(167, 139, 250, 0.12); color: var(--purple); border-color: rgba(167, 139, 250, 0.3); }
.badge-emerald { background: rgba(87, 230, 165, 0.12); color: var(--emerald); border-color: rgba(87, 230, 165, 0.3); }

/* ==========================================
   PROJECTS (CLEAN HORIZONTAL CARDS)
   ========================================== */
.projects-list {
  display: grid;
  gap: 16px;
}

.project-card {
  display: grid;
  grid-template-columns: 50px 1fr 30px;
  align-items: start;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  transition: transform 0.25s, border-color 0.25s;
}

.project-content h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.project-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #b8c6e1;
  font-size: 0.74rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.project-arrow {
  color: var(--blue);
  font-size: 1.4rem;
  transition: transform 0.2s;
}

.project-card:hover .project-arrow {
  transform: translate(3px, -3px);
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience-card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.exp-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.exp-date {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--blue);
  font-family: ui-monospace, monospace;
}

.exp-list {
  padding-left: 20px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.exp-list li strong {
  color: var(--text);
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
  padding: 85px 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(114, 88, 220, 0.18), transparent 45%),
    radial-gradient(ellipse at 20% 80%, rgba(84, 200, 255, 0.12), transparent 45%),
    var(--panel);
  text-align: center;
}

.contact h2 {
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -2px;
}

.contact > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================
   CINEMATIC INTRO SPLASH OVERLAY
   ========================================== */
#introOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(ellipse at 50% 40%, #152047 0%, #080d1b 85%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.7s ease;
}

#introOverlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(84, 200, 255, 0.35);
  border-radius: 30px;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  margin-bottom: 22px;
  background: rgba(16, 24, 42, 0.7);
  box-shadow: 0 0 20px rgba(84, 200, 255, 0.2);
}

#introQuoteWrap {
  text-align: center;
  width: min(860px, 88vw);
}

.intro-quote {
  /* hidden — JS clears and rebuilds this from scratch */
  display: none;
}

.intro-author {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
}


.contact-meta {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: ui-monospace, monospace;
}

.quote-banner {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed rgba(155, 177, 221, 0.2);
  text-align: center;
}

.quote-text {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(100deg, var(--blue), var(--emerald));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.quote-sub {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer a:hover {
  color: var(--blue);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 50px;
  }

  .terminal-card {
    max-width: 580px;
  }

  .about-grid,
  .skills-grid,
  .devsecops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  }

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

  .pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    grid-template-columns: 35px 1fr 20px;
    padding: 20px;
    gap: 14px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   METRICS & KEY ACHIEVEMENTS SECTION
   ========================================== */
.metrics-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 30px;
  box-sizing: border-box;
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(16, 24, 42, 0.75);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box;
  align-items: center;
  justify-items: center;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  box-sizing: border-box;
  width: 100%;
}

.metric-number {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 850;
  letter-spacing: -0.5px;
  background: linear-gradient(100deg, var(--blue), var(--emerald));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 8px;
  text-align: center;
  display: block;
}

.metric-label {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
  text-align: center;
  display: block;
  max-width: 250px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .metrics-section {
    padding: 0 0 24px;
  }

  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
    padding: 22px 18px;
  }
}

@media (max-width: 520px) {
  .metrics-section {
    padding: 0 0 20px;
  }

  .metrics-bar {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px;
    width: 92%;
  }

  .metric-item {
    padding: 6px 4px;
  }

  .metric-number {
    font-size: 1.85rem;
  }

  .metric-label {
    font-size: 0.82rem;
    max-width: 280px;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-portrait-capsule {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .terminal-card {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 760px;
    margin: 12px auto 0;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 50px;
    padding-bottom: 60px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    order: 1;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-portrait-capsule {
    order: 2;
    margin: 10px auto 16px;
  }

  .portrait-frame {
    width: 210px;
    height: 295px;
  }

  .terminal-card {
    order: 3;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ==========================================
   VISITOR & PROFILE ANALYTICS TELEMETRY
   ========================================== */
.visitor-analytics-card {
  max-width: 680px;
  margin: 36px auto 0;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(16, 24, 42, 0.75);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 1px;
}

.analytics-network-label {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.66rem;
  color: var(--muted);
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.analytics-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.analytics-number {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 850;
  font-family: 'Fira Code', ui-monospace, monospace;
  letter-spacing: -0.5px;
  background: linear-gradient(100deg, var(--blue), var(--emerald));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.analytics-label {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
}

.analytics-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
}

.analytics-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  color: var(--muted);
}

@media (max-width: 580px) {
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .analytics-divider {
    display: none;
  }
  .analytics-header {
    justify-content: center;
  }
}
