/* ============================================================
   style.css — Professional Cybersecurity & Engineering Portfolio
   Candidate: RAHMATH B N
   MSc Computer Science (Cyber Security) · 2025–2027
   ============================================================ */

/* ---------- 1. Design Tokens & Variables ---------- */
:root {
  /* Palette — Modern Tech Slate with Security & Trust Accents */
  --bg-base:        #070b12;
  --bg-surface:     #0c1220;
  --bg-card:        #121a2c;
  --bg-card-hover:  #18233c;
  --bg-subtle:      rgba(255, 255, 255, 0.03);
  --bg-glass:       rgba(12, 18, 32, 0.88);

  /* Typography Colors */
  --text-primary:   #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-dim:       #475569;

  /* Accents */
  --accent-cyan:    #38bdf8;
  --accent-cyan-dim: rgba(56, 189, 248, 0.12);
  --accent-emerald: #10b981;
  --accent-emerald-dim: rgba(16, 185, 129, 0.12);
  --accent-amber:   #f59e0b;
  --accent-amber-dim: rgba(245, 158, 11, 0.12);
  --accent-blue:    #3b82f6;

  /* Borders & Highlights */
  --border-subtle:  rgba(255, 255, 255, 0.07);
  --border-card:    rgba(255, 255, 255, 0.1);
  --border-active:  rgba(56, 189, 248, 0.4);

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md:      0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg:      0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow:    0 0 24px rgba(56, 189, 248, 0.18);

  /* Fonts */
  --font-sans:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', Menlo, monospace;

  /* Font Sizes */
  --fs-2xs:  0.72rem;
  --fs-xs:   0.8rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  1.875rem;
  --fs-3xl:  2.35rem;
  --fs-4xl:  clamp(2.4rem, 5vw, 3.8rem);

  /* Layout & Radii */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  background-color: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

/* Subtle architectural gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

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

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

a:hover {
  color: #7dd3fc;
}

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

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

/* ---------- 3. Layout & Section Typography ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section {
  padding-block: var(--sp-20);
  position: relative;
}

.section-header {
  margin-bottom: var(--sp-12);
}

.section-header.text-center {
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-2);
}

.section-eyebrow::before {
  content: '//';
  opacity: 0.5;
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 720px;
  margin-top: var(--sp-3);
  line-height: 1.6;
}

.section-header.text-center .section-subtitle {
  margin-inline: auto;
}

/* ---------- 4. Site Header & Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-role {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--trans-fast);
  position: relative;
  padding-block: var(--sp-2);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.btn-nav-resume {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all var(--trans-fast);
}

.btn-nav-resume:hover {
  background: var(--accent-cyan);
  color: #04111d;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

/* Mobile Nav Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--trans-fast), opacity var(--trans-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 5. Hero Section ---------- */
.hero-section {
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-20);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--sp-12);
  align-items: center;
}

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

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--accent-emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  font-size: var(--fs-xs);
  font-weight: 600;
  width: fit-content;
  margin-bottom: var(--sp-4);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-emerald 2s infinite;
}

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

.hero-eyebrow-text {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent-cyan);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.04em;
}

.hero-name {
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.hero-name span {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}

.hero-bio {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: var(--sp-8);
}

/* CTA Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--accent-cyan);
  color: #04111d;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  transition: all var(--trans-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-social-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: color var(--trans-fast);
}

.social-link:hover {
  color: var(--accent-cyan);
}

/* Hero Visual / Photo Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.photo-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  padding: var(--sp-3);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  width: 100%;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal), border-color var(--trans-normal);
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.35);
}

.photo-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), transparent 60%, rgba(16, 185, 129, 0.2));
  z-index: -1;
  transition: opacity var(--trans-normal);
}

.photo-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.5), transparent 50%, rgba(16, 185, 129, 0.35));
}

.photo-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius-xl) - var(--sp-3));
  overflow: hidden;
  position: relative;
  background: #0f172a;
  cursor: zoom-in;
  outline: none;
  touch-action: manipulation;
  transition: transform var(--trans-fast);
}

.photo-img-wrap:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.photo-img-wrap:active {
  transform: scale(0.98);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, transform-origin;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-card:hover .hero-photo {
  transform: scale(1.28);
}

/* Hover & Touch Hint Badge */
.photo-overlay-badge {
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(12, 18, 32, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  font-size: var(--fs-2xs);
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.photo-card:hover .photo-overlay-badge,
.photo-img-wrap:focus-visible .photo-overlay-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* For touch screens, keep badge visible as clear tap hint */
@media (hover: none) {
  .photo-overlay-badge {
    opacity: 0.92;
    transform: translateX(-50%) translateY(0);
  }
}

.photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  font-family: var(--font-mono);
  font-size: var(--fs-4xl);
  color: var(--accent-cyan);
  font-weight: 700;
}

.photo-affiliation-badge {
  margin-top: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.affil-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-primary);
}

.affil-sub {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

/* Credentials Strip */
.credentials-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-12);
}

.cred-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.cred-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.cred-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.cred-card:nth-child(2) .cred-icon {
  color: var(--accent-emerald);
}

.cred-card:nth-child(3) .cred-icon {
  color: var(--accent-amber);
}

.cred-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.cred-desc {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}

/* ---------- 6. About Section ---------- */
.about-section {
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--sp-12);
  align-items: flex-start;
}

.about-narrative {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.about-narrative p {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-narrative p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-highlights-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.about-highlights-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-subtle);
}

.about-profile-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.about-profile-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.about-profile-list strong {
  color: var(--text-primary);
  min-width: 110px;
}

/* ---------- 7. Projects Section (Data-Driven Architecture) ---------- */
.projects-section {
  border-bottom: 1px solid var(--border-subtle);
}

.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all var(--trans-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.is-active {
  background: var(--accent-cyan);
  color: #04111d;
  font-weight: 600;
  border-color: var(--accent-cyan);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--sp-8);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-normal), border-color var(--trans-normal), box-shadow var(--trans-normal);
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-glow);
}

/* Primary Featured Card Distinction */
.project-card.is-featured-card {
  border-color: rgba(56, 189, 248, 0.25);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.04) 0%, var(--bg-card) 100%);
  grid-column: 1 / -1;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.project-badge-group {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.project-badge {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.status-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.status-ongoing {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-completed {
  background: var(--accent-emerald-dim);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.btn-detail-trigger {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: color var(--trans-fast);
}

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

.project-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--sp-1);
}

.project-subtitle {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: var(--sp-3);
}

.project-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.fuzzer-quick-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-2);
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
}

.fuzzer-spec-item {
  display: flex;
  flex-direction: column;
}

.fuzzer-spec-item .spec-label {
  font-weight: 600;
  color: var(--accent-cyan);
}

.fuzzer-spec-item .spec-val {
  color: var(--text-secondary);
}

.project-problem-solution {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.project-problem-solution strong {
  color: var(--text-primary);
}

.card-contributions {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}

.card-contributions .meta-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.card-contributions ul {
  padding-left: var(--sp-4);
  list-style: disc;
}

.card-contributions li {
  margin-bottom: 2px;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: auto;
  margin-bottom: var(--sp-6);
  padding-top: var(--sp-2);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-4);
}

.project-type-indicator {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.btn-view-details {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-cyan);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: all var(--trans-fast);
}

.btn-view-details:hover {
  background: var(--accent-cyan);
  color: #04111d;
}

.projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-12);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-card);
  color: var(--text-muted);
}

/* ---------- 8. Project Detail Modal / Case Study Drawer ---------- */
.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.modal-wrapper.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--sp-8);
  z-index: 10;
  animation: modal-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}

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

/* ---------- 8b. Enlarged Photo Lightbox Modal ---------- */
.photo-lightbox-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.18);
  max-width: 520px;
  width: 100%;
  padding: var(--sp-5);
  z-index: 10;
  animation: modal-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.photo-modal-close {
  z-index: 20;
}

.lightbox-img-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 60vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #080e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.lightbox-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
}

.lightbox-zoom-toolbar {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(12, 18, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 4px 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  z-index: 5;
}

.btn-zoom-control {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-zoom-control:hover {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
}

.zoom-level-badge {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-primary);
  padding-inline: var(--sp-2);
  font-weight: 600;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-1);
}

.lightbox-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.lightbox-sub {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.btn-sm {
  padding: 0.42rem 0.9rem;
  font-size: var(--fs-xs);
}

.modal-header {
  margin-bottom: var(--sp-6);
}

.modal-badge-group {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.modal-heading {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: var(--sp-1);
}

.modal-subtitle {
  font-size: var(--fs-sm);
  color: var(--accent-cyan);
  margin-bottom: var(--sp-3);
  font-weight: 500;
}

.modal-summary {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-section {
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-section h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.modal-section p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Fuzzer Specialized Specs in Modal */
.fuzzer-spec {
  background: rgba(56, 189, 248, 0.03);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}

.spec-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--accent-cyan) !important;
  margin-bottom: var(--sp-4) !important;
}

.spec-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.spec-detail-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  font-size: var(--fs-xs);
}

.spec-detail-box strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.spec-detail-box p {
  font-size: var(--fs-xs) !important;
  color: var(--text-secondary) !important;
  line-height: 1.5;
}

.sub-heading {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.fuzzer-modules-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.fuzzer-module-card {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
}

.module-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 2px;
}

.module-desc {
  font-size: var(--fs-xs) !important;
  color: var(--text-secondary) !important;
  line-height: 1.55;
}

.current-dev-callout {
  background: var(--accent-amber-dim);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  margin-top: var(--sp-4);
}

.current-dev-callout strong {
  color: var(--accent-amber);
  display: block;
  margin-bottom: 2px;
}

.current-dev-callout p {
  color: var(--text-primary) !important;
  font-size: var(--fs-xs) !important;
}

.modal-list {
  padding-left: var(--sp-4);
  list-style: disc;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.modal-list li {
  margin-bottom: var(--sp-2);
}

/* ---------- 9. Experience Section (Internships) ---------- */
.experience-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.experience-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  max-width: 900px;
  margin-inline: auto;
}

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.experience-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.25);
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}

.exp-role-info {
  display: flex;
  flex-direction: column;
}

.exp-role {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
}

.exp-company {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-cyan);
}

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.exp-duration {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-emerald);
  background: var(--accent-emerald-dim);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.exp-location {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  margin-top: 3px;
}

.exp-list {
  padding-left: var(--sp-4);
  list-style: disc;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.exp-list li {
  margin-bottom: var(--sp-2);
  line-height: 1.6;
}

/* ---------- 10. Skills Section ---------- */
.skills-section {
  border-bottom: 1px solid var(--border-subtle);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-6);
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}

.skill-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-cat-header h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
}

.skills-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  transition: all var(--trans-fast);
}

.skill-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.skill-badge.core {
  border-left: 3px solid var(--accent-cyan);
  color: var(--text-primary);
}

.skill-badge.security {
  border-left: 3px solid var(--accent-emerald);
}

.skill-badge.consulting {
  border-left: 3px solid var(--accent-amber);
}

/* ---------- 11. Education & Certifications Section ---------- */
.education-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.edu-cert-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-12);
  align-items: flex-start;
}

.timeline {
  position: relative;
  padding-left: var(--sp-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--border-subtle) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--sp-8);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--sp-8) + 4px);
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.timeline-item:nth-child(2) .timeline-marker {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.timeline-item:nth-child(3) .timeline-marker,
.timeline-item:nth-child(4) .timeline-marker {
  border-color: var(--text-muted);
  box-shadow: none;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform var(--trans-fast);
}

.timeline-card:hover {
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.timeline-badge {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--accent-emerald);
  background: var(--accent-emerald-dim);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.timeline-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.timeline-inst {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.timeline-score {
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

.timeline-score strong {
  color: var(--accent-cyan);
}

/* Certifications Column */
.certifications-col h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-subtle);
}

.certs-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.cert-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: transform var(--trans-fast);
}

.cert-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3);
}

.cert-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-info h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.cert-issuer {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---------- 12. Leadership Section ---------- */
.leadership-section {
  border-bottom: 1px solid var(--border-subtle);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-6);
  max-width: 900px;
  margin-inline: auto;
}

.leadership-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.lead-header {
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}

.lead-role {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
}

.lead-org {
  font-size: var(--fs-sm);
  color: var(--accent-amber);
  font-weight: 500;
}

.lead-duration {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.lead-list {
  padding-left: var(--sp-4);
  list-style: disc;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.lead-list li {
  margin-bottom: var(--sp-2);
}

/* ---------- 13. Contact Section ---------- */
.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-12);
  align-items: flex-start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.contact-channel-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-subtle);
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.channel-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}

.channel-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.channel-label {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.channel-value {
  color: var(--text-primary);
  font-weight: 500;
}

.channel-value a {
  color: var(--text-primary);
}

.channel-value a:hover {
  color: var(--accent-cyan);
}

.btn-copy-email,
.btn-request-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: all var(--trans-fast);
  width: fit-content;
}

.btn-copy-email:hover,
.btn-request-phone:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-primary);
}

.btn-copy-email.is-copied {
  background: var(--accent-emerald-dim);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}

.contact-form-card h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.contact-form-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--fs-sm);
  transition: border-color var(--trans-fast);
}

.form-input:focus,
.form-textarea:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
}

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

.form-status {
  font-size: var(--fs-xs);
  margin-top: var(--sp-2);
}

.form-status.success {
  color: var(--accent-emerald);
}

.form-status.error {
  color: #f87171;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  background: #05080e;
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-brand {
  color: var(--text-secondary);
}

.footer-brand strong {
  color: var(--text-primary);
}

.footer-validation {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer-validation a {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.footer-validation a:hover {
  color: var(--accent-cyan);
}

/* ---------- 15. Responsive Breakpoints ---------- */

/* Tablet & Smaller Laptops (992px and below) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .photo-card {
    max-width: 260px;
    margin-inline: auto;
  }

  .about-grid,
  .edu-cert-container,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
}

/* Mobile Devices & Small Tablets (768px and below)
   Optimized specifically for Android phones (Vivo, Samsung, Oppo, iQOO 6.3", 6.5", 6.8")
   Web / Desktop screens (>768px) remain completely untouched */
@media (max-width: 768px) {
  /* Prevent any rogue horizontal scrolling on mobile */
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding-inline: clamp(1rem, 4vw, 1.5rem);
    width: 100%;
    max-width: 100%;
  }

  .section {
    padding-block: clamp(2.5rem, 8vw, 3.5rem);
  }

  .section-header {
    margin-bottom: var(--sp-8);
  }

  .section-title {
    font-size: clamp(1.65rem, 5.5vw, 2.2rem);
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: var(--fs-sm);
    line-height: 1.6;
  }

  /* Site Header on Mobile — Remove backdrop-filter containing-block constraint */
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #070b12 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* Navigation Drawer — Full-Height Downward Screen Coverage */
  .nav-toggle {
    display: flex;
    z-index: 1002;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    background: #080d17 !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem 1.5rem clamp(3rem, 10vh, 5rem);
    gap: 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--border-card);
    z-index: 999;
  }

  .nav-menu.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    width: 100%;
    padding: 0.95rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--trans-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.06);
    padding-left: 0.85rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-actions {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    padding-bottom: 1rem;
  }

  .btn-nav-resume {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: var(--fs-sm);
    background: var(--accent-cyan);
    color: #04111d;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
  }

  /* Hero Section Alignment & Layout */
  .hero-section {
    padding-top: var(--sp-8);
    padding-bottom: var(--sp-12);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    width: 100%;
  }

  .hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-inline: auto;
  }

  .photo-card {
    max-width: min(260px, 72vw);
    margin-inline: auto;
  }

  .hero-text {
    width: 100%;
    align-items: flex-start;
  }

  .status-pill {
    max-width: 100%;
    white-space: normal;
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 0.35rem 0.75rem;
  }

  .hero-eyebrow-text {
    font-size: var(--fs-xs);
    word-break: break-word;
  }

  .hero-name {
    font-size: clamp(2.1rem, 8.5vw, 2.85rem);
    letter-spacing: -0.02em;
    line-height: 1.12;
    word-break: break-word;
  }

  .hero-tagline {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    line-height: 1.45;
    word-break: break-word;
    max-width: 100%;
  }

  .hero-bio {
    font-size: var(--fs-sm);
    line-height: 1.65;
    max-width: 100%;
    word-break: break-word;
  }

  /* Stack Hero Action Buttons Full-Width on Mobile */
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--sp-3);
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: var(--fs-sm);
    text-align: center;
  }

  /* Hero Social Links - Clean Vertical Stack to Prevent Offscreen Overflow */
  .hero-social-links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    width: 100%;
    margin-top: var(--sp-2);
  }

  .social-link {
    width: 100%;
    font-size: var(--fs-xs);
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  /* Credentials Strip */
  .credentials-strip {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    margin-top: var(--sp-8);
    width: 100%;
  }

  .cred-card {
    padding: var(--sp-3) var(--sp-4);
  }

  /* About Section Profile List */
  .about-highlights-card {
    padding: var(--sp-4);
  }

  .about-profile-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .about-profile-list strong {
    min-width: unset;
    font-size: var(--fs-xs);
    color: var(--text-muted);
  }

  /* Project Section Filter Pills (Horizontal Scroll for Native Mobile App Feel) */
  .projects-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    padding-inline: 2px;
    margin-bottom: var(--sp-6);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }

  .projects-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: var(--fs-xs);
    padding: 0.42rem 0.85rem;
  }

  /* Project Cards 1-Column Responsive Fitting */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    width: 100%;
  }

  .project-card {
    padding: 1.15rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  .project-badge-group {
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  .project-title {
    font-size: 1.15rem;
  }

  .fuzzer-quick-summary {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  /* Resolve Project Card Footer Collision */
  .project-footer {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
  }

  .project-type-indicator {
    font-size: var(--fs-2xs);
    word-break: break-word;
  }

  .btn-view-details {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
  }

  /* Experience Section */
  .experience-grid {
    width: 100%;
    gap: var(--sp-4);
  }

  .experience-card {
    padding: 1.15rem 1rem;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .exp-meta {
    text-align: left;
    margin-top: 2px;
  }

  /* Education Timeline */
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-marker {
    left: -1.5rem;
    top: 8px;
    width: 14px;
    height: 14px;
  }

  .timeline-card {
    padding: 1rem;
  }

  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  /* Skills & Leadership Grids */
  .skills-grid,
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    width: 100%;
  }

  .skill-category-card,
  .leadership-card {
    padding: 1.15rem 1rem;
  }

  /* Contact Section & Channel Item Text Wrapping */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    width: 100%;
  }

  .contact-channel-card,
  .contact-form-card {
    padding: 1.15rem 1rem;
  }

  .channel-item {
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .channel-content {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .channel-value a {
    word-break: break-all;
  }

  .btn-request-phone,
  .btn-copy-email {
    width: 100%;
    justify-content: center;
  }

  #btn-send-message {
    width: 100%;
    justify-content: center;
  }

  /* Footer Alignment */
  .site-footer {
    padding-block: var(--sp-6);
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-3);
  }

  .footer-validation {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2);
  }

  /* Modals on Mobile Viewports */
  .modal-wrapper {
    padding: 0.5rem;
  }

  .modal-container {
    padding: 1.25rem 1rem;
    max-height: 92vh;
    border-radius: var(--radius-lg);
  }

  .modal-heading {
    font-size: 1.35rem;
    word-break: break-word;
  }

  .spec-detail-grid {
    grid-template-columns: 1fr;
  }

  .photo-lightbox-card {
    padding: 0.85rem;
    max-width: calc(100vw - 1rem);
  }

  .lightbox-meta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: var(--sp-2);
  }

  .lightbox-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Extra Compact Android Phones (380px and below, e.g. Samsung Galaxy A/M series, Vivo Y series) */
@media (max-width: 380px) {
  .container {
    padding-inline: 0.85rem;
  }

  .hero-name {
    font-size: 1.95rem;
  }

  .brand-role {
    display: none;
  }

  .photo-card {
    max-width: 220px;
  }

  .skill-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
