/* ============================================
   Kenneth Nweke — Portfolio
   Dark Cybersecurity Theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary:    #0a0d14;
  --bg-secondary:  #0f1320;
  --bg-card:       #131928;
  --bg-card-hover: #1a2236;
  --accent:        #00c8ff;
  --accent-dim:    rgba(0, 200, 255, 0.15);
  --accent-glow:   rgba(0, 200, 255, 0.35);
  --accent2:       #7c4dff;
  --accent2-dim:   rgba(124, 77, 255, 0.15);
  --text-primary:  #e8edf5;
  --text-secondary:#8a94a8;
  --text-muted:    #4a5568;
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(0, 200, 255, 0.3);
  --radius:        10px;
  --radius-lg:     16px;
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 30px rgba(0, 200, 255, 0.12);
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

/* Light Theme */
body.light {
  --bg-primary:    #f0f4fc;
  --bg-secondary:  #e4eaf5;
  --bg-card:       #ffffff;
  --bg-card-hover: #f5f8ff;
  --text-primary:  #0d1120;
  --text-secondary:#3d4a63;
  --text-muted:    #8a94a8;
  --border:        rgba(0,0,0,0.08);
  --border-accent: rgba(0, 140, 200, 0.4);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.1);
  --shadow-glow:   0 0 30px rgba(0, 150, 200, 0.1);
  --accent:        #0077aa;
  --accent-dim:    rgba(0, 119, 170, 0.12);
  --accent-glow:   rgba(0, 119, 170, 0.25);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Noise overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

body.light .nav {
  background: rgba(240, 244, 252, 0.9);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* External link badge */
.nav-links a.ext-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent);
}

.nav-links a.ext-link::after { display: none; }
.nav-links a.ext-link:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%;
  z-index: 999;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

/* ---------- Layout ---------- */
main { padding-top: 70px; }
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5%;
}

section { padding: 80px 0; }

/* ---------- Section Headings ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: #33d4ff;
  color: var(--bg-primary);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Grid background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero text */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-name {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.05;
}

.hero-name .accent { color: var(--accent); }

.hero-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-title::before {
  content: '>';
  color: var(--accent);
  font-weight: 700;
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero photo */
.hero-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-photo-frame {
  position: relative;
  width: 340px;
  height: 400px;
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent2), transparent, var(--accent));
  border-radius: var(--radius-lg);
  z-index: 0;
  animation: borderRotate 6s linear infinite;
  background-size: 400% 400%;
}

@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Floating badges */
.hero-badge {
  position: absolute;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.hero-badge.b1 { top: 20px; right: -30px; border-color: var(--border-accent); color: var(--accent); }
.hero-badge.b2 { bottom: 60px; left: -30px; border-color: rgba(124,77,255,0.3); color: #b39ddb; }

.badge-icon { font-size: 1rem; }

/* ---------- About Section ---------- */
.about { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* Certifications */
.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.cert-badge:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Skills Section ---------- */
.skills-group { margin-bottom: 2.5rem; }
.skills-group-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: all var(--transition);
}

.skill-tag:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ---------- Projects Page Hero ---------- */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
}

/* ---------- Project Cards Grid ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  color: inherit;
}

.project-card:hover .card-arrow { transform: translateX(4px); }

/* Card image */
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-img img { transform: scale(1.05); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

/* Card content */
.card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
}

.card-arrow {
  transition: transform var(--transition);
  font-size: 1rem;
}

/* Coming Soon card */
.card-coming-soon {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.coming-soon-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--accent2-dim);
  border: 1px solid rgba(124,77,255,0.4);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: #b39ddb;
}

/* ---------- Project Detail Page ---------- */
.project-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--accent); }

.project-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.meta-item span { color: var(--text-muted); }

/* Project content layout */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.project-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-content h2:first-child { margin-top: 0; }

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.project-content ul {
  margin-left: 1.2rem;
  margin-bottom: 1.2rem;
}

.project-content li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Sidebar */
.project-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.sidebar-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

/* Tech stack badges in sidebar */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  padding: 4px 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 5px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
}

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.screenshot-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: block;
}

.screenshot-img:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.screenshot-placeholder {
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* Vulnerability severity badges */
.vuln-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.vuln-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}

.vuln-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

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

.sev-high { background: rgba(255, 80, 80, 0.15); color: #ff5050; border: 1px solid rgba(255,80,80,0.3); }
.sev-medium { background: rgba(255, 165, 0, 0.15); color: #ffa500; border: 1px solid rgba(255,165,0,0.3); }
.sev-low { background: rgba(80, 200, 120, 0.15); color: #50c878; border: 1px solid rgba(80,200,120,0.3); }

/* Code block */
pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 1rem 0;
}

pre code { color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* ---------- Fade-in animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---------- Back link ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  transition: color var(--transition);
}

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

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
  }

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .theme-toggle { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo-wrap { order: -1; }
  .hero-photo-frame { width: 220px; height: 260px; }
  .hero-badge { display: none; }
  .hero-summary { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
  section { padding: 60px 0; }
  .hero-name { font-size: 2.4rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}


/* ============================================
   ADDITIONS v2 — Project Sections & Scroll Rows
   ============================================ */

/* ---------- Project Category Sections (projects.html) ---------- */

/* Each named section (Security / Networking / Data Analysis) */
.project-section {
  margin-bottom: 3.5rem;
}

/* Section heading row */
.project-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.project-section-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.project-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Small count/status badge beside the heading */
.project-section-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}


/* ---------- More Page — Horizontal Scroll Sections ---------- */

/* Each named section on more.html */
.more-section {
  margin-bottom: 3.5rem;
}

/* Section header: title + description */
.more-section-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.more-section-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.more-section-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.more-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.more-section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Horizontal scrollable row of cards */
.scroll-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;     /* space for scrollbar on desktop */
  /* Smooth scroll snap */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;  /* smooth on iOS */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Custom scrollbar (webkit) */
.scroll-row::-webkit-scrollbar {
  height: 4px;
}
.scroll-row::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.scroll-row::-webkit-scrollbar-thumb:hover {
  background: var(--border-accent);
}

/* Individual scroll card */
.scroll-card {
  flex: 0 0 240px;          /* fixed width — prevents shrinking */
  min-width: 240px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* Hover lift — same feel as project cards */
.scroll-card:not(.card-coming-soon):hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* Coming soon state — subtle, no pointer */
.scroll-card.card-coming-soon {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

/* Large emoji icon at the top of each scroll card */
.scroll-card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* Card body inside scroll card */
.scroll-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.scroll-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.scroll-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── Responsive tweaks ── */
@media (max-width: 600px) {
  .scroll-card {
    flex: 0 0 200px;
    min-width: 200px;
  }

  .project-section-header {
    flex-wrap: wrap;
  }

  .project-section-count {
    margin-left: 0;
  }
}
