/* ========== DESIGN TOKENS & RESET ========== */
:root {
  --bg-primary: #07111B;
  --bg-secondary: #0D1824;
  --bg-tertiary: #111E2D;
  --bg-card: #0D1824;
  --bg-card-hover: #111E2D;

  --accent-green: #00E676;
  --accent-cyan: #00BCD4;
  --accent-purple: #9C27B0;
  --accent-orange: #FF6D00;

  --text-primary: #FFFFFF;
  --text-secondary: #B0BEC5;
  --text-muted: #546E7A;

  --border-color: rgba(0, 230, 118, 0.12);
  --border-hover: rgba(0, 230, 118, 0.3);
  --glow-green: 0 0 20px rgba(0, 230, 118, 0.3);
  --glow-cyan: 0 0 20px rgba(0, 188, 212, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-height: 72px;
  --section-spacing: 100px;
}

[data-theme="light"] {
  --bg-primary: #F0F4F8;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #E8EEF4;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F4F8;
  --text-primary: #0D1824;
  --text-secondary: #455A64;
  --text-muted: #90A4AE;
  --border-color: rgba(0, 150, 80, 0.15);
  --border-hover: rgba(0, 150, 80, 0.35);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

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

ul {
  list-style: none;
}

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

input,
textarea,
select {
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(7, 17, 27, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar.scrolled {
  height: 60px;
  background: rgba(7, 17, 27, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .navbar {
  background: rgba(240, 244, 248, 0.9);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(240, 244, 248, 0.97);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 15px;
  height: 15px;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 2px;
}

.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse 2s infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(0, 230, 118, 0.08);
}

.nav-link.active {
  color: var(--accent-green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

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

.btn-resume {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent-green), #00C853);
  color: #07111B;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-resume svg {
  width: 14px;
  height: 14px;
}

.btn-resume:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#networkCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}



.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-green);
  letter-spacing: 1.5px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.headline-line {
  display: inline-block;
  background: linear-gradient(to right,
      var(--accent-green) 0%,
      var(--accent-cyan) 25%,
      #ffffff 50%,
      var(--accent-cyan) 75%,
      var(--accent-green) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-name {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(15px);
  animation: subtitleFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.5s;
}

.role-item {
  color: var(--accent-cyan);
}

.role-sep {
  color: var(--text-muted);
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--accent-green), #00C853);
  color: #07111B;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  background: rgba(0, 188, 212, 0.1);
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 188, 212, 0.3);
  transition: var(--transition);
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
}

.btn-secondary:hover {
  background: rgba(0, 188, 212, 0.18);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.btn-outline svg {
  width: 16px;
  height: 16px;
}

.btn-outline:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-3px);
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: var(--transition);
}

.pill:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.06);
}

/* SOC Dashboard */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  overflow: hidden;
}

.soc-dashboard {
  background: rgba(13, 24, 36, 0.9);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  min-width: 0;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.dash-icon {
  width: 32px;
  height: 32px;
  background: rgba(0, 230, 118, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--accent-green);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

.status-dot.active {
  animation: pulse 2s infinite;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.dash-metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.metric-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.metric-val.green {
  color: var(--accent-green);
}

.metric-val.cyan {
  color: var(--accent-cyan);
}

.metric-val.orange {
  color: #FF9800;
}

.metric-lbl {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dash-chart {
  margin-bottom: 18px;
}

.chart-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
}

.bar {
  flex: 1;
  height: var(--h);
  background: rgba(0, 188, 212, 0.3);
  border-radius: 3px 3px 0 0;
  transition: var(--transition);
}

.bar.active {
  background: linear-gradient(180deg, var(--accent-green) 0%, rgba(0, 230, 118, 0.4) 100%);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

.bar:hover {
  background: rgba(0, 230, 118, 0.5);
}

.dash-alerts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.alert-item.high {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.2);
}

.alert-item.medium {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.2);
}

.alert-item.low {
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.2);
}

.alert-sev {
  font-weight: 700;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.alert-item.high .alert-sev {
  background: rgba(244, 67, 54, 0.2);
  color: #F44336;
}

.alert-item.medium .alert-sev {
  background: rgba(255, 152, 0, 0.2);
  color: #FF9800;
}

.alert-item.low .alert-sev {
  background: rgba(0, 188, 212, 0.2);
  color: var(--accent-cyan);
}

.alert-name {
  flex: 1;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-time {
  color: var(--text-muted);
  flex-shrink: 0;
}

.dash-tools {
  display: flex;
  gap: 6px;
}

.tool-tag {
  padding: 3px 10px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--accent-green);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent-green), transparent);
  animation: scroll-down 2s infinite;
}

/* ========== SECTION SHARED ========== */
.section {
  padding: var(--section-spacing) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-green);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  border-radius: 3px;
  margin: 0 auto;
}

.section-desc {
  max-width: 600px;
  margin: 20px auto 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Alternating section backgrounds */
.about {
  background: var(--bg-secondary);
}

.metrics {
  background: var(--bg-primary);
}

.competencies {
  background: var(--bg-secondary);
}

.arsenal {
  background: var(--bg-primary);
}

.experience {
  background: var(--bg-secondary);
}

.projects {
  background: var(--bg-primary);
}

.certs {
  background: var(--bg-secondary);
}

.recruiter {
  background: var(--bg-primary);
}



.contact {
  background: var(--bg-primary);
}

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

.about-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.photo-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.photo-initials {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-green);
  z-index: 1;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}

.photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ring-rotate 8s linear infinite;
}

.ring-1 {
  inset: -12px;
  border-color: rgba(0, 230, 118, 0.2);
  animation-duration: 12s;
}

.ring-2 {
  inset: -28px;
  border-color: rgba(0, 188, 212, 0.12);
  animation-duration: 18s;
  animation-direction: reverse;
}

.ring-3 {
  inset: -44px;
  border-color: rgba(0, 230, 118, 0.06);
  animation-duration: 25s;
}

.photo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-green);
}

.about-social {
  display: flex;
  gap: 12px;
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid;
}

.social-pill svg {
  width: 16px;
  height: 16px;
}

.social-pill.linkedin {
  background: rgba(0, 119, 181, 0.1);
  border-color: rgba(0, 119, 181, 0.3);
  color: #0077B5;
}

.social-pill.linkedin:hover {
  background: rgba(0, 119, 181, 0.2);
  transform: translateY(-2px);
}

.social-pill.github {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.social-pill.github:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-2px);
}

.about-intro {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-intro strong {
  color: var(--accent-green);
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}

.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-green), transparent);
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding: 0 0 28px 0;
  position: relative;
}

.tl-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-green);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

.future .future-dot {
  border-color: var(--accent-cyan);
  border-style: dashed;
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 4px;
}

.future .tl-year {
  color: var(--accent-cyan);
}

.tl-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.tl-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ========== METRICS SECTION ========== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
}

.metric-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.metric-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
}

.ring-svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 6;
}

.ring-fill {
  fill: none;
  stroke: var(--accent-green);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-fill.cyan {
  stroke: var(--accent-cyan);
}

.ring-fill.purple {
  stroke: #9C27B0;
}

.ring-fill.orange {
  stroke: #FF9800;
}

.metric-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-green);
}

.metric-card:nth-child(2) .metric-number {
  color: var(--accent-cyan);
}

.metric-card:nth-child(3) .metric-number {
  color: #9C27B0;
}

.metric-card:nth-child(4) .metric-number {
  color: #FF9800;
}

.metric-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.metric-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== COMPETENCIES SECTION ========== */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.comp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.03), transparent);
  opacity: 0;
  transition: var(--transition);
}

.comp-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.comp-card:hover::after {
  opacity: 1;
}

.comp-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.comp-icon svg {
  width: 24px;
  height: 24px;
}

.comp-icon.threat {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
}

.comp-icon.siem {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
}

.comp-icon.ir {
  background: rgba(255, 152, 0, 0.1);
  color: #FF9800;
}

.comp-icon.cloud {
  background: rgba(0, 188, 212, 0.1);
  color: var(--accent-cyan);
}

.comp-icon.ti {
  background: rgba(156, 39, 176, 0.1);
  color: #9C27B0;
}

.comp-icon.auto {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
}

.comp-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.comp-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.comp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comp-tags span {
  padding: 3px 10px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-green);
}

/* ========== ARSENAL SECTION ========== */
.arsenal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}



.cat-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tool-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: default;
}

.tool-badge:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateX(4px);
}

.tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon svg {
  width: 16px;
  height: 16px;
}

.tool-icon.sentinel {
  background: rgba(0, 120, 215, 0.15);
  color: #0078D7;
}

.tool-icon.splunk {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
}

.tool-icon.qradar {
  background: rgba(0, 61, 166, 0.15);
  color: #0062CC;
}

.tool-icon.snort {
  background: rgba(255, 100, 0, 0.1);
  color: #FF6400;
}

.tool-icon.defender {
  background: rgba(0, 120, 215, 0.15);
  color: #0078D7;
}

.tool-icon.crowdstrike {
  background: rgba(230, 0, 0, 0.1);
  color: #E60000;
}

.tool-icon.azure {
  background: rgba(0, 188, 212, 0.1);
  color: var(--accent-cyan);
}

.tool-icon.entraid {
  background: rgba(0, 120, 215, 0.15);
  color: #0078D7;
}

.tool-icon.python {
  background: rgba(55, 118, 171, 0.15);
  color: #3776AB;
}

.tool-icon.powershell {
  background: rgba(1, 36, 86, 0.3);
  color: #0089CF;
}

.tool-icon.bash {
  background: rgba(50, 50, 50, 0.3);
  color: #4EAA25;
}

.tool-icon.kql {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
}

.tool-icon.mitre {
  background: rgba(230, 57, 70, 0.1);
  color: #E63946;
}

.tool-icon.nist {
  background: rgba(0, 53, 102, 0.2);
  color: #003566;
}

.tool-icon.owasp {
  background: rgba(0, 105, 92, 0.15);
  color: #00695C;
}

.tool-icon.kalilinux {
  background: rgba(52, 152, 219, 0.12);
  color: #3498DB;
}

.tool-icon.metasploit {
  background: rgba(231, 76, 60, 0.12);
  color: #E74C3C;
}

.tool-icon.wireshark {
  background: rgba(0, 188, 212, 0.12);
  color: var(--accent-cyan);
}

/* ========== EXPERIENCE SECTION ========== */
.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.exp-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  position: relative;
}

.exp-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
}

.exp-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  z-index: 1;
  transition: var(--transition);
}

.exp-dot.active {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.15);
  background: var(--accent-green);
}

.exp-connector {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-green), var(--border-color));
  margin-top: 8px;
  margin-bottom: -8px;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
  transition: var(--transition);
}

.exp-card.active-card {
  border-color: rgba(0, 230, 118, 0.25);
  background: rgba(0, 230, 118, 0.03);
}

.exp-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.exp-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.exp-company {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.exp-company svg {
  width: 14px;
  height: 14px;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.exp-badge {
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.exp-badge.intern {
  background: rgba(0, 188, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 188, 212, 0.25);
}

.exp-badge.current {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.exp-badge.completed {
  background: rgba(255, 152, 0, 0.1);
  color: #FF9800;
  border: 1px solid rgba(255, 152, 0, 0.25);
}

.exp-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.exp-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-highlights li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.exp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tech span {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ========== PROJECTS SECTION ========== */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 230, 118, 0.1);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

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

.proj-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.proj-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.proj-badges {
  display: flex;
  gap: 6px;
}

.proj-badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.proj-badge.featured {
  background: rgba(255, 152, 0, 0.1);
  color: #FF9800;
  border: 1px solid rgba(255, 152, 0, 0.25);
}

.proj-badge.siem-badge {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.proj-badge.ids-badge {
  background: rgba(0, 188, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 188, 212, 0.2);
}

.proj-icon-area {
  height: 100px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proj-icon-area svg {
  width: 60px;
  height: 60px;
}

.sentinel-bg {
  background: linear-gradient(135deg, rgba(0, 120, 215, 0.15), rgba(0, 230, 118, 0.08));
  color: #60B0FF;
}

.splunk-bg {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 188, 212, 0.08));
  color: var(--accent-green);
}

.snort-bg {
  background: linear-gradient(135deg, rgba(255, 100, 0, 0.1), rgba(255, 152, 0, 0.08));
  color: #FF9800;
}

.proj-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.proj-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1;
}

.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proj-tech span {
  padding: 4px 10px;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.12);
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent-green);
}

.proj-actions {
  display: flex;
  gap: 10px;
}

.proj-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.proj-btn svg {
  width: 14px;
  height: 14px;
}

.proj-btn.primary {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: var(--accent-green);
}

.proj-btn.primary:hover {
  background: rgba(0, 230, 118, 0.2);
  border-color: var(--accent-green);
}

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

.proj-btn.secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ========== CERTIFICATIONS SECTION ========== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
  position: relative;
  /* Ensure all child elements - including .cert-verify - remain clickable */
  isolation: isolate;
}

.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cert-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-logo svg {
  width: 26px;
  height: 26px;
}

.cert-logo.microsoft {
  background: rgba(0, 120, 215, 0.1);
  color: #0078D7;
}

.cert-logo.google {
  background: rgba(66, 133, 244, 0.1);
  color: #4285F4;
}

.cert-logo.azure {
  background: rgba(0, 188, 212, 0.1);
  color: var(--accent-cyan);
}

.cert-logo.ehe {
  background: rgba(255, 152, 0, 0.1);
  color: #FF9800;
}

.cert-logo.nde {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
}

.cert-logo.dfe {
  background: rgba(156, 39, 176, 0.1);
  color: var(--accent-purple);
}

.cert-info {
  flex: 1;
  min-width: 0;
}

.cert-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 10px;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cert-skills span {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.cert-verify {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-green);
  transition: var(--transition);
  flex-shrink: 0;
  /* Ensure the button is always on top and clickable */
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.cert-verify svg {
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.cert-verify:hover {
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--accent-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.2);
}

/* Keyboard focus state for accessibility */
.cert-verify:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--accent-green);
}

/* ========== RECRUITER SECTION ========== */
.recruiter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.rec-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  transform: scaleX(0);
  transition: var(--transition);
}

.rec-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.rec-card:hover::before {
  transform: scaleX(1);
}

.rec-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 230, 118, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: var(--transition);
}

.rec-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-green);
}

.rec-card:hover .rec-icon {
  background: rgba(0, 230, 118, 0.18);
}

.rec-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.rec-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}



.gh-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  min-width: 180px;
  transition: var(--transition);
}

.gh-stat-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent-green);
  flex-shrink: 0;
}

.gh-stat-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gh-stat-lbl {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.pinned-repos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.pinned-repo {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.pinned-repo:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.repo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.repo-header svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.repo-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  transition: var(--transition);
  flex: 1;
}

.repo-name:hover {
  color: var(--text-primary);
}

.repo-visibility {
  padding: 2px 8px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.repo-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.lang-dot.kql {
  background: var(--accent-green);
}

.lang-dot.python {
  background: #3776AB;
}

.lang-dot.bash {
  background: #4EAA25;
}

.gh-cta {
  text-align: center;
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

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

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

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.linkedin-icon {
  background: rgba(0, 119, 181, 0.1);
  color: #0077B5;
}

.github-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.email-icon {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
}

.ct-label {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ct-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

.ct-value:hover {
  color: var(--accent-green);
}

.resume-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-green), #00C853);
  color: #07111B;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  margin-top: 8px;
}

.resume-download-btn svg {
  width: 18px;
  height: 18px;
}

.resume-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-green);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-green);
  background: rgba(0, 230, 118, 0.03);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.08);
}

.form-submit {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-success.visible {
  display: flex;
}

.form-success svg {
  width: 18px;
  height: 18px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-motto {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.motto-word {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-green);
}

.motto-sep {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.footer-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.footer-role {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.footer-built {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--accent-green);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-social-link:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.08);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========== RESPONSIVE DESIGN ========== */

/* == >= 1440px: Ultra Wide Desktop ========================================= */
@media (min-width: 1440px) {
  .container {
    max-width: 1380px;
  }
  .nav-container {
    max-width: 1400px;
  }
  .hero-container {
    max-width: 1380px;
  }
  .hero-headline {
    font-size: 5rem;
  }
}

/* == <= 1440px: Large Desktop ============================================== */
@media (max-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

/* == <= 1280px: Desktop / Laptop =========================================== */
@media (max-width: 1280px) {
  .hero-container {
    gap: 40px;
  }
  .about-grid {
    gap: 40px;
  }
  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .arsenal-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 900px) {
  :root {
    --section-spacing: 72px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    justify-content: center;
    order: -1;
    min-width: 0;
    overflow: hidden;
  }

  .soc-dashboard {
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo-col {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

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

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

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-links {
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ========== TRAINING SECTION ========== */
.training {
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.training-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-slow);
}

.stat-card:hover .stat-glow {
  opacity: 1;
}

.stat-glow.green {
  background: radial-gradient(circle, rgba(0, 230, 118, 0.05) 0%, transparent 60%);
}

.stat-glow.cyan {
  background: radial-gradient(circle, rgba(0, 188, 212, 0.05) 0%, transparent 60%);
}

.stat-glow.purple {
  background: radial-gradient(circle, rgba(156, 39, 176, 0.05) 0%, transparent 60%);
}

.stat-val-wrapper {
  margin-bottom: 12px;
}

.stat-card .metric-number {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card:hover .metric-number {
  background: linear-gradient(135deg, var(--accent-green) 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card:nth-child(2):hover .metric-number {
  background: linear-gradient(135deg, var(--accent-cyan) 30%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-static-val {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.stat-card:hover .stat-static-val {
  background: linear-gradient(135deg, var(--accent-purple) 30%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-lbl {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
}

/* Subsections */
.training-subsection {
  margin-bottom: 100px;
  display: flow-root;
  clear: both;
  position: relative;
}

.training-subsection:last-child {
  margin-bottom: 0;
}

.subsection-header {
  margin-bottom: 36px;
  text-align: left;
}

.subsection-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 50px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.police-training .subsection-badge {
  background: rgba(0, 188, 212, 0.06);
  border-color: rgba(0, 188, 212, 0.2);
  color: var(--accent-cyan);
}

.subsection-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.subsection-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
}

/* Image wrappings and Hover Effects */
.gallery-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  contain: layout style;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 27, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.overlay-content {
  text-align: center;
  color: var(--text-primary);
  transform: translateY(10px);
  transition: var(--transition);
}

.overlay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.overlay-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
}

.overlay-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-green);
}

.police-training .overlay-text {
  color: var(--accent-cyan);
}

/* Hover triggers */
.lightbox-trigger {
  cursor: pointer;
}

.lightbox-trigger:hover .gallery-img-wrapper {
  border-color: var(--accent-green);
  box-shadow: var(--glow-green);
}

.police-training .lightbox-trigger:hover .gallery-img-wrapper {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.lightbox-trigger:hover img {
  transform: scale(1.05);
}

.lightbox-trigger:hover .gallery-overlay {
  opacity: 1;
}

.lightbox-trigger:hover .overlay-content {
  transform: translateY(0);
}

/* Army Gallery Layout & Size Guide (2x2 Grid) */
.army-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.army-gallery-grid .gallery-img-wrapper {
  aspect-ratio: 1.4 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.army-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Police Masonry Grid */
.police-masonry {
  column-count: 3;
  column-gap: 20px;
  margin-top: 32px;
}

.police-masonry .masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.police-masonry .gallery-img-wrapper {
  height: auto;
  width: 100%;
  display: block;
}

.police-masonry img {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: cover;
}

/* Lightbox Modal Styles */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(7, 17, 27, 0.98);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 230, 118, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 230, 118, 0.15);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}

.lightbox-modal.active .lightbox-content img {
  opacity: 1;
  transform: scale(1);
}

.lightbox-caption-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(7, 17, 27, 0.7);
  border: 1px solid rgba(0, 230, 118, 0.12);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  backdrop-filter: blur(8px);
  min-height: 44px;
}

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-green);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Lightbox navigation buttons */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(7, 17, 27, 0.7);
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.lightbox-nav svg {
  width: 20px;
  height: 20px;
}

.lightbox-nav:hover {
  background: var(--accent-green);
  color: #07111B;
  border-color: var(--accent-green);
  box-shadow: var(--glow-green);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* Lightbox Controls */
.lightbox-close {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
  cursor: pointer;
  z-index: 2010;
  top: 24px;
  right: 24px;
}

.lightbox-close:hover {
  background: var(--accent-green);
  color: #07111B;
  border-color: var(--accent-green);
  box-shadow: var(--glow-green);
}

/* Responsive adjustments for Training section */
@media (max-width: 992px) {
  .training-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .training-stats .stat-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .training-stats {
    grid-template-columns: 1fr;
  }

  .training-stats .stat-card:last-child {
    grid-column: span 1;
  }

  .army-gallery-grid {
    grid-template-columns: 1fr;
  }

  .police-masonry {
    column-count: 2;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-nav svg {
    width: 16px;
    height: 16px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 576px) {

  .police-masonry {
    column-count: 1;
  }
}

/* ========== MOBILE RESPONSIVENESS (320px / 480px / 600px / 768px) ========== */

/* == Global mobile base ====================================================
   Prevent any element from causing horizontal scroll */


/* Instant touch response on all interactive elements */
a,
button,
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* == <= 820px: Tablets ===================================================== */
@media (max-width: 820px) {
  .arsenal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-headline {
    font-size: clamp(2.4rem, 6vw, 3.5rem);
  }
}

/* == <=768px: Tablet & large phone ======================================== */
@media (max-width: 768px) {

  /* --- Navbar -------------------------------------------------------- */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 13px 16px;
    /* 44px min touch target */
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  /* Resume button — icon-only circle */
  .btn-resume {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    flex-shrink: 0;
  }

  .btn-resume svg {
    margin: 0;
    width: 20px;
    height: 20px;
  }

  .btn-resume span {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  /* --- Hero ---------------------------------------------------------- */
  .hero {
    height: auto;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px 48px;
  }

  .hero-visual {
    justify-content: center;
    order: -1;
  }

  .soc-dashboard {
    max-width: 100%;
    padding: 20px;
  }

  .dash-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- About --------------------------------------------------------- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-photo-col {
    flex-direction: column;
    align-items: center;
  }

  /* --- Grids --------------------------------------------------------- */
  .comp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .recruiter-grid {
    grid-template-columns: 1fr;
  }

  /* --- Experience timeline ------------------------------------------ */
  .exp-item {
    grid-template-columns: 24px 1fr;
    gap: 16px;
  }

  .exp-dot-col {
    padding-top: 24px;
  }

  .exp-dot {
    width: 14px;
    height: 14px;
  }

  .exp-card {
    padding: 20px;
  }

  .exp-highlights li {
    align-items: flex-start;
    text-align: left;
  }

  .exp-highlights {
    gap: 12px;
  }

  .exp-tech {
    flex-wrap: wrap;
    gap: 6px;
  }

  .exp-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .exp-meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* --- About timeline ----------------------------------------------- */
  .timeline-item {
    gap: 16px;
  }

  /* --- Training section --------------------------------------------- */
  .training-stats {
    grid-template-columns: 1fr;
  }

  .training-stats .stat-card:last-child {
    grid-column: span 1;
  }

  .stat-static-val {
    white-space: normal;
    word-break: break-word;
    font-size: 1.8rem;
  }

  .army-gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .police-masonry {
    column-count: 2;
  }

  .subsection-title {
    font-size: 1.5rem;
  }

  /* --- Contact ------------------------------------------------------- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ct-value {
    word-break: break-all;
    font-size: 0.82rem;
  }

  /* --- Footer ------------------------------------------------------- */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }

  .footer-links {
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-motto {
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-social-link {
    /* 44px touch target */
    width: 44px;
    height: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px 20px;
  }

  /* --- Lightbox ----------------------------------------------------- */
  .lightbox-content {
    max-width: 95%;
    max-height: 90vh;
  }

  .lightbox-content img {
    max-height: 72vh;
  }

  .lightbox-caption-bar {
    padding: 10px 12px;
  }

  .lightbox-caption {
    font-size: 0.72rem;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    width: 44px !important;
    height: 44px !important;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    font-size: 1.5rem;
  }
}

/* == <=600px: Small phone landscape / large portrait ====================== */
@media (max-width: 600px) {

  .police-masonry {
    column-count: 2;
  }

  .section-header {
    margin-bottom: 44px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Hero buttons always center on narrower screens */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .comp-grid {
    grid-template-columns: 1fr;
  }

  /* --- Metrics ------------------------------------------------------ */
  .metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .metric-card {
    padding: 24px 16px;
    flex-direction: row;
    gap: 20px;
    text-align: left;
  }

  .metric-ring {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
  }

  .ring-svg {
    width: 72px;
    height: 72px;
  }

  .metric-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .metric-number {
    font-size: 1rem !important;
  }

  .metric-info {
    text-align: left;
  }

  .metric-title {
    font-size: 0.9rem;
  }

  .metric-desc {
    font-size: 0.8rem;
  }
}

/* == <=480px: Standard phones ============================================= */
@media (max-width: 480px) {

  /* Global spacing reduction */
  :root {
    --section-spacing: 64px;
  }

  .container,
  .nav-container,
  .hero-container,
  .footer-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* --- Experience timeline ------------------------------------------ */
  .exp-item {
    grid-template-columns: 16px 1fr;
    gap: 12px;
  }

  .exp-dot-col {
    padding-top: 18px;
  }

  .exp-dot {
    width: 12px;
    height: 12px;
  }

  .exp-card {
    padding: 16px;
    margin-bottom: 24px;
  }

  /* --- About timeline ----------------------------------------------- */
  .timeline-item {
    gap: 12px;
  }

  .tl-dot {
    width: 18px;
    height: 18px;
  }

  .about-timeline::before {
    left: 8px;
  }

  /* --- Technology Arsenal -------------------------------------------- */
  .arsenal-grid {
    grid-template-columns: 1fr;
  }

  /* --- Section headers --------------------------------------------- */
  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
    letter-spacing: -0.5px;
  }

  /* --- Hero --------------------------------------------------------- */
  .hero-container {
    padding: 32px 16px 40px;
    gap: 28px;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 6px 12px;
    margin-bottom: 20px;
    letter-spacing: 1px;
  }

  .hero-headline {
    font-size: clamp(2rem, 9vw, 2.8rem);
    letter-spacing: -1px;
  }

  .hero-role {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.82rem;
  }

  .role-sep {
    display: none;
  }

  .hero-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 28px;
  }

  .hero-ctas {
    gap: 10px;
    margin-bottom: 28px;
  }

  .tech-pills {
    gap: 6px;
  }

  .pill {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  /* SOC Dashboard */
  .soc-dashboard {
    padding: 16px;
    border-radius: var(--radius-lg);
    max-width: 100%;
  }

  .dash-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-tools {
    flex-wrap: wrap;
  }

  .dash-header {
    margin-bottom: 14px;
  }

  .dash-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
  }

  .dash-chart {
    margin-bottom: 12px;
  }

  .chart-bars {
    height: 48px;
  }

  .metric-val {
    font-size: 0.9rem;
  }

  .metric-lbl {
    font-size: 0.55rem;
  }

  /* --- About -------------------------------------------------------- */
  .about-grid {
    gap: 28px;
  }

  /* Scale down profile photo and rings to fit 320px */
  .photo-placeholder {
    width: 160px;
    height: 160px;
  }

  .ring-1 {
    inset: -8px;
  }

  .ring-2 {
    inset: -18px;
  }

  .ring-3 {
    inset: -28px;
  }

  /* Total ring footprint = 160 + 56 = 216px — fits 288px content width */
  .photo-frame {
    overflow: visible;
    /* Padding so outer ring isn't clipped by parent */
    padding: 32px;
    margin: -32px;
  }

  .about-social {
    flex-direction: column;
    width: 100%;
  }

  .social-pill {
    justify-content: center;
    min-height: 44px;
  }



  /* --- Projects ----------------------------------------------------- */
  .project-filters {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .filter-btn {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .project-card {
    padding: 20px;
  }

  .proj-actions {
    flex-direction: column;
    gap: 8px;
  }

  .proj-btn {
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }

  /* --- Certifications ----------------------------------------------- */
  .cert-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
  }

  .cert-verify {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 0.8rem;
  }

  /* --- Training stats ----------------------------------------------- */
  .training-stats {
    gap: 14px;
    margin-bottom: 48px;
  }

  .stat-card {
    padding: 24px 16px;
  }

  .stat-card .metric-number {
    font-size: 2.6rem;
  }

  .stat-static-val {
    font-size: 1.4rem;
    white-space: normal;
  }

  .stat-lbl {
    font-size: 0.72rem;
    letter-spacing: 1px;
  }

  .police-masonry {
    column-count: 1;
  }

  .army-gallery-grid {
    gap: 12px;
  }

  .training-subsection {
    margin-bottom: 64px;
  }

  /* --- Contact ------------------------------------------------------ */
  .contact-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .resume-download-btn {
    width: 100%;
    min-height: 48px;
  }

  .form-group input,
  .form-group textarea {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.875rem;
  }

  .form-submit {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  /* --- Footer ------------------------------------------------------- */
  .footer {
    padding-top: 44px;
  }

  .footer-motto {
    gap: 6px;
  }

  .motto-word {
    font-size: 0.72rem;
    letter-spacing: 2px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

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

/* == <= 412px: Large Phones ================================================ */
@media (max-width: 412px) {
  .hero-headline {
    font-size: clamp(2.2rem, 10vw, 2.6rem);
  }
  .stat-card .metric-number {
    font-size: 2.4rem;
  }
  .cert-logo {
    display: none;
  }
}

/* == <= 390px: Medium Phones =============================================== */
@media (max-width: 390px) {
  .hero-ctas {
    gap: 8px;
  }
  .btn-primary, .btn-secondary, .btn-outline {
    font-size: 0.85rem;
    padding: 12px 20px;
  }
  .project-card {
    padding: 16px;
  }
}

/* == <= 360px: Small Phones ================================================ */
@media (max-width: 360px) {
  .hero-badge {
    font-size: 0.6rem;
  }
  .hero-headline {
    font-size: 2rem;
  }
  .subsection-title {
    font-size: 1.3rem;
  }
}

/* == <=375px: Standard iPhone / small Android ============================ */
@media (max-width: 375px) {

  .hero-badge {
    font-size: 0.6rem;
    letter-spacing: 0.8px;
    padding: 5px 10px;
  }

  .hero-headline {
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  }

  .hero-role {
    font-size: 0.78rem;
  }

  .soc-dashboard {
    padding: 12px;
  }

  .dash-title span {
    /* Prevent "Security Operations Center" overflowing */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
  }

  .subsection-title {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 7vw, 1.8rem);
  }
}

/* == <=320px: iPhone SE / very small screens ============================== */
@media (max-width: 320px) {

  :root {
    --section-spacing: 52px;
  }

  .container,
  .nav-container,
  .hero-container,
  .footer-container,
  .footer-bottom {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-logo {
    gap: 4px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .hero-badge {
    font-size: 0.55rem;
    padding: 4px 8px;
    letter-spacing: 0.5px;
    /* Allow badge text to wrap so it doesn't overflow */
    white-space: normal;
    text-align: center;
  }

  .hero-headline {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
  }

  .hero-desc {
    font-size: 0.85rem;
  }

  /* Reduce photo frame to fit 288px content width */
  .photo-placeholder {
    width: 140px;
    height: 140px;
  }

  .ring-1 {
    inset: -6px;
  }

  .ring-2 {
    inset: -14px;
  }

  .ring-3 {
    inset: -22px;
  }

  /* Total = 140 + 44 = 184px — well within 288px */

  .soc-dashboard {
    padding: 12px;
  }

  .dash-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .metric-val {
    font-size: 0.8rem;
  }

  .chart-bars {
    height: 36px;
  }

  .stat-card .metric-number {
    font-size: 2.2rem;
  }

  .stat-static-val {
    font-size: 1.2rem;
  }

  .subsection-title {
    font-size: 1.1rem;
  }

  .cert-logo {
    width: 44px;
    height: 44px;
  }

  .footer-motto {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .motto-sep {
    display: none;
  }
}

/* ========== HERO CREDIBILITY MICRO-BADGE ========== */
.hero-credibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 14px 7px 10px;
  background: rgba(0, 188, 212, 0.06);
  border: 1px solid rgba(0, 188, 212, 0.22);
  border-radius: 50px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  letter-spacing: 0.4px;
  transition: var(--transition);
  text-decoration: none;
  width: fit-content;
}

.hero-credibility-badge:hover {
  background: rgba(0, 188, 212, 0.12);
  border-color: rgba(0, 188, 212, 0.45);
  color: var(--accent-cyan);
  transform: translateX(3px);
  box-shadow: 0 0 16px rgba(0, 188, 212, 0.18);
}

.hcb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(0, 188, 212, 0.12);
  border-radius: 50%;
  flex-shrink: 0;
}

.hcb-icon svg {
  width: 11px;
  height: 11px;
  color: var(--accent-cyan);
}

.hcb-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hcb-arrow {
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: var(--transition);
}

.hcb-arrow svg {
  width: 12px;
  height: 12px;
}

.hero-credibility-badge:hover .hcb-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Focus state */
.hero-credibility-badge:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* ========== FEATURED RECOGNITION SECTION ========== */

/* Section background - subtle gradient from primary */
.recognition {
  position: relative;
  background: var(--bg-primary);
}

/* == Keyframe animations ================================================== */
@keyframes rec-orb-pulse-1 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.35; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 0.55; }
}

@keyframes rec-orb-pulse-2 {
  0%, 100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.25; }
  50%       { transform: translate(-50%, -50%) scale(0.9);  opacity: 0.4;  }
}

@keyframes rec-orb-drift {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.18; }
  50%       { transform: translate(-50%, -50%) scale(1.2);  opacity: 0.3;  }
}

@keyframes rec-spotlight-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes rec-spotlight-counter {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* == Glassmorphism card =================================================== */
.recognition-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(13, 24, 36, 0.95) 0%,
    rgba(7, 17, 27, 0.98) 60%,
    rgba(13, 24, 36, 0.95) 100%
  );
  border: 1px solid rgba(0, 188, 212, 0.18);
  border-radius: var(--radius-xl);
  padding: 48px 52px;
  backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.04) inset,
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 188, 212, 0.04);
  transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.35s ease;
}

.recognition-card:hover {
  border-color: rgba(0, 188, 212, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.06) inset,
    0 32px 100px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(0, 188, 212, 0.12),
    0 0 40px rgba(0, 230, 118, 0.06);
  transform: translateY(-4px);
}

/* == Animated ambient orbs ================================================ */
.rec-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.rec-orb-1 {
  width: 380px;
  height: 380px;
  left: -10%;
  top: 50%;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.14) 0%, transparent 70%);
  animation: rec-orb-pulse-1 7s ease-in-out infinite;
}

.rec-orb-2 {
  width: 320px;
  height: 320px;
  right: 8%;
  top: 30%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.1) 0%, transparent 65%);
  animation: rec-orb-pulse-2 9s ease-in-out infinite;
}

.rec-orb-3 {
  width: 200px;
  height: 200px;
  right: 20%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(156, 39, 176, 0.07) 0%, transparent 70%);
  animation: rec-orb-drift 12s ease-in-out infinite;
}

/* == Top badge row ======================================================== */
.rec-top-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 50px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.rec-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.rec-platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(0, 188, 212, 0.06);
  border: 1px solid rgba(0, 188, 212, 0.18);
  border-radius: 50px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.rec-platform svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* == Main body grid ======================================================= */
.rec-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 52px;
  align-items: center;
}

/* == Left icon / spotlight ring =========================================== */
.rec-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-spotlight-ring {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 188, 212, 0.08) 0%,
    rgba(0, 230, 118, 0.04) 100%
  );
  border: 1px solid rgba(0, 188, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Outer ring pulse */
  box-shadow:
    0 0 0 1px rgba(0, 188, 212, 0.1),
    0 0 20px rgba(0, 188, 212, 0.1),
    0 0 50px rgba(0, 188, 212, 0.06);
  animation: rec-orb-pulse-1 6s ease-in-out infinite;
}

/* Outer animated dashed ring */
.rec-spotlight-ring::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 188, 212, 0.2);
  animation: rec-spotlight-rotate 18s linear infinite;
}

/* Second decorative ring */
.rec-spotlight-ring::after {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 230, 118, 0.1);
  animation: rec-spotlight-counter 24s linear infinite;
}

.rec-spotlight-inner {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(0, 188, 212, 0.08);
  border: 1px solid rgba(0, 188, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.rec-spotlight-inner svg {
  width: 44px;
  height: 44px;
}

/* == Text column ========================================================== */
.rec-text-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rec-outlet-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.rec-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--accent-cyan) 40%,
    var(--accent-green) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.rec-subline {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  opacity: 0.8;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

.rec-body-text {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: 600px;
}

.rec-body-text:last-of-type {
  margin-bottom: 0;
}

.rec-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  border-radius: 2px;
  margin: 24px 0;
  opacity: 0.6;
}

/* == CTA button =========================================================== */
.rec-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.12), rgba(0, 230, 118, 0.08));
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.3px;
  transition: var(--transition);
  width: fit-content;
  text-decoration: none;
}

.rec-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.rec-cta:hover {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.22), rgba(0, 230, 118, 0.14));
  border-color: rgba(0, 188, 212, 0.6);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 8px 28px rgba(0, 188, 212, 0.2);
}

.rec-cta:hover svg {
  transform: translateX(4px);
}

.rec-cta:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* == Light theme overrides ================================================ */
[data-theme="light"] .recognition-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f6fc 100%);
  border-color: rgba(0, 150, 210, 0.2);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .recognition-card:hover {
  border-color: rgba(0, 150, 210, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 40px rgba(0, 188, 212, 0.1);
}

[data-theme="light"] .hero-credibility-badge {
  background: rgba(0, 150, 210, 0.06);
  border-color: rgba(0, 150, 210, 0.2);
}

/* == Recognition section responsive ====================================== */
@media (max-width: 900px) {
  .recognition-card {
    padding: 40px 36px;
  }

  .rec-body {
    grid-template-columns: 140px 1fr;
    gap: 36px;
  }

  .rec-spotlight-ring {
    width: 120px;
    height: 120px;
  }

  .rec-spotlight-inner {
    width: 68px;
    height: 68px;
  }

  .rec-spotlight-inner svg {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 768px) {
  .recognition-card {
    padding: 32px 28px;
  }

  .rec-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rec-icon-col {
    justify-content: flex-start;
  }

  .rec-spotlight-ring {
    width: 100px;
    height: 100px;
  }

  .rec-spotlight-ring::before {
    inset: -10px;
  }

  .rec-spotlight-ring::after {
    inset: -20px;
  }

  .rec-spotlight-inner {
    width: 58px;
    height: 58px;
  }

  .rec-spotlight-inner svg {
    width: 28px;
    height: 28px;
  }

  .rec-headline {
    font-size: 2rem;
  }

  .rec-body-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .recognition-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .rec-top-row {
    margin-bottom: 24px;
  }

  .rec-badge {
    font-size: 0.6rem;
    padding: 5px 10px;
  }

  .rec-platform {
    font-size: 0.62rem;
    padding: 5px 10px;
  }

  .rec-body {
    gap: 20px;
  }

  .rec-spotlight-ring {
    width: 80px;
    height: 80px;
  }

  .rec-spotlight-ring::before {
    inset: -8px;
  }

  .rec-spotlight-ring::after {
    display: none;
  }

  .rec-spotlight-inner {
    width: 48px;
    height: 48px;
  }

  .rec-spotlight-inner svg {
    width: 24px;
    height: 24px;
  }

  .rec-headline {
    font-size: 1.7rem;
    letter-spacing: -0.8px;
  }

  .rec-outlet-label {
    font-size: 0.65rem;
  }

  .rec-subline {
    font-size: 0.75rem;
    margin-bottom: 18px;
  }

  .rec-body-text {
    font-size: 0.875rem;
  }

  .rec-divider {
    margin: 18px 0;
  }

  .rec-cta {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.875rem;
  }

  /* Hero badge — wrap on small screens */
  .hero-credibility-badge {
    font-size: 0.65rem;
    padding: 6px 10px 6px 8px;
    margin-top: 14px;
  }

  .hcb-text {
    white-space: normal;
  }
}

@media (max-width: 375px) {
  .recognition-card {
    padding: 20px 16px;
  }

  .rec-headline {
    font-size: 1.5rem;
  }

  .hero-credibility-badge {
    font-size: 0.6rem;
  }
}

@media (max-width: 320px) {
  .recognition-card {
    padding: 18px 14px;
  }

  .rec-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
  }

  .rec-headline {
    font-size: 1.35rem;
  }

  .rec-orb-1,
  .rec-orb-2,
  .rec-orb-3 {
    /* Disable heavy blur on very small/low-power devices */
    display: none;
  }
}

/* ========== ABOUT — COURSERA RECOGNITION CARD SPACING ========== */

.about-recognition {
  margin-top: 60px;
}

/* ================================================================
   FINAL MOBILE-FIRST POLISH  —  v1.3
   UX Audit: Layout Cropping · Timeline · Containers · Lightbox
   Target: 320 / 360 / 375 / 390 / 412 / 430 / 768 / 1024px+
   ================================================================ */

/* --- 1. Global layout safety guards --------------------------------- */

/* Prevent any of these grids from escaping their container */
.exp-timeline,
.about-grid,
.contact-grid,
.projects-grid,
.certs-grid,
.metrics-grid,
.comp-grid,
.arsenal-grid,
.recruiter-grid,
.training-stats,
.army-gallery-grid,
.police-masonry {
  width: 100%;
  max-width: 100%;
}

/* Gallery containers must never cause horizontal scroll */
.army-gallery-grid,
.training-subsection {
  overflow-x: hidden;
}

/* Police masonry column layout — explicit width */
.police-masonry {
  width: 100%;
}

/* --- 2. Lightbox modal polish --------------------------------------- */

/* Smoother backdrop fade */
.lightbox-modal {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slightly crisper image scale animation */
.lightbox-content img {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/*
 * Close button: switch to position:fixed so it is always anchored
 * to the viewport regardless of image height or scroll position.
 * env(safe-area-inset-*) prevents it hiding behind iOS notch / home bar.
 */
.lightbox-close {
  position: fixed;
  top:   max(20px, env(safe-area-inset-top,   20px));
  right: max(20px, env(safe-area-inset-right, 20px));
  z-index: 2100;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lightbox responsive sizing */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 96%;
    max-height: 95vh;
  }

  .lightbox-content img {
    max-height: 82vh;
  }

  .lightbox-close {
    top:   max(14px, env(safe-area-inset-top,   14px));
    right: max(14px, env(safe-area-inset-right, 14px));
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .lightbox-content img {
    max-height: 78vh;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 375px) {
  .lightbox-content img {
    max-height: 74vh;
  }
}

/* --- 3. @430px — fills the 412px→480px gap (iPhone 14/15/16 class) -- */
@media (max-width: 430px) {

  /* Core containers */
  .container,
  .nav-container,
  .hero-container,
  .footer-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Experience timeline — tighter dot column */
  .exp-item {
    grid-template-columns: 14px 1fr;
    gap: 10px;
  }

  .exp-dot-col {
    padding-top: 16px;
  }

  .exp-dot {
    width: 12px;
    height: 12px;
  }

  .exp-card {
    padding: 16px 14px;
    margin-bottom: 20px;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 36px;
  }

  /* Project cards */
  .project-card {
    padding: 18px 14px;
  }

  /* Certification cards */
  .cert-card {
    padding: 18px 14px;
    gap: 12px;
  }

  /* Competency cards */
  .comp-card {
    padding: 22px 16px;
  }

  /* Training stat cards */
  .stat-card {
    padding: 22px 14px;
  }

  /* Gallery breathing room */
  .army-gallery-grid {
    gap: 12px;
  }

  .police-masonry {
    column-gap: 12px;
  }

  .police-masonry .masonry-item {
    margin-bottom: 12px;
  }

  /* Training subsection */
  .subsection-title {
    font-size: 1.4rem;
  }

  .training-subsection {
    margin-bottom: 52px;
  }

  /* Contact cards */
  .contact-card {
    padding: 13px 14px;
    gap: 12px;
  }

  /* Footer */
  .footer-bottom {
    padding: 14px 16px;
  }
}

/* --- 4. @390px — fills the 375px→412px gap (iPhone 14 Pro / 15) ----- */
@media (max-width: 390px) {

  /* Tighter timeline */
  .exp-item {
    grid-template-columns: 12px 1fr;
    gap: 8px;
  }

  .exp-dot {
    width: 11px;
    height: 11px;
  }

  .exp-card {
    padding: 14px 12px;
  }

  /* Project filter buttons */
  .project-filters {
    gap: 6px;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 7px 12px;
    min-height: 42px;
  }

  /* Section title scaling */
  .section-title {
    font-size: clamp(1.4rem, 6.5vw, 1.7rem);
  }
}

/* --- 5. Supplement existing @360px rule ----------------------------- */
@media (max-width: 360px) {

  /* Minimum timeline at 360px */
  .exp-item {
    grid-template-columns: 10px 1fr;
    gap: 8px;
  }

  .exp-dot {
    width: 10px;
    height: 10px;
  }

  .exp-card {
    padding: 13px 11px;
    margin-bottom: 18px;
  }

  /* Gallery gap */
  .army-gallery-grid {
    gap: 10px;
  }

  /* Project filter */
  .filter-btn {
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  /* Certification card */
  .cert-card {
    padding: 15px 12px;
    gap: 10px;
  }

  /* Training subsection spacing */
  .training-subsection {
    margin-bottom: 44px;
  }
}

/* --- 6. Supplement existing @320px rule ----------------------------- */
@media (max-width: 320px) {

  /* Absolute minimum timeline */
  .exp-item {
    grid-template-columns: 10px 1fr;
    gap: 6px;
  }

  .exp-dot-col {
    padding-top: 14px;
  }

  .exp-dot {
    width: 10px;
    height: 10px;
  }

  .exp-card {
    padding: 12px 10px;
    margin-bottom: 16px;
  }

  /* Highlight list items — smaller text, tighter gap */
  .exp-highlights li {
    font-size: 0.82rem;
    gap: 8px;
    line-height: 1.5;
  }

  .exp-highlights li svg {
    width: 14px;
    height: 14px;
    margin-top: 1px;
  }

  /* About timeline alignment */
  .about-timeline::before {
    left: 6px;
  }

  /* Project card */
  .project-card {
    padding: 14px 12px;
  }

  /* Certification card */
  .cert-card {
    padding: 14px 10px;
    gap: 8px;
  }

  /* Training stat card */
  .stat-card {
    padding: 18px 12px;
  }

  /* Gallery minimum gap */
  .army-gallery-grid {
    gap: 8px;
  }

  /* Contact card */
  .contact-card {
    padding: 12px 10px;
    gap: 10px;
  }

  /* Section header — tighter vertical spacing */
  .section-header {
    margin-bottom: 28px;
  }

  /* Subsection title minimum */
  .subsection-title {
    font-size: 1rem;
  }
}
/* ================================================================
   END MOBILE-FIRST POLISH  —  v1.3
   ================================================================ */