/* ============================================================
   DENIS KOMBE KARISA — Portfolio Stylesheet
   Palette: Deep Slate Navy + Amber Gold + Off-white
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

:root {
  --navy: #0b0f1a;
  --navy-card: #121827;
  --navy-alt: #0f1624;
  --gold: #f59e0b;
  --gold-dim: rgba(245, 158, 11, 0.15);
  --gold-glow: rgba(245, 158, 11, 0.08);
  --white: #f8f9fa;
  --muted: #6b7a99;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(245, 158, 11, 0.4);
  --radius: 14px;
  --radius-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, .navbar-brand { font-family: 'Syne', sans-serif; }

a { text-decoration: none; }

/* ── Cursor Glow ─────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease, top 0.3s ease;
}

/* ── Navbar ──────────────────────────────── */
.navbar {
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(11, 15, 26, 0.97);
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}
.brand-dot { color: var(--gold); }

.navbar-toggler { border: none; background: transparent; padding: 4px; }
.toggler-bar { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

.nav-link {
  color: var(--muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 6px 14px !important;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--white) !important; background: rgba(255,255,255,0.05); }

.nav-cv-btn {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 8px;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-cv-btn:hover { background: #fbbf24; transform: translateY(-1px); }

/* ── Hero ────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  padding: 130px 0 80px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 75%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 500px; height: 500px; background: rgba(245,158,11,0.08); top: -100px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: rgba(99, 102, 241, 0.06); bottom: 0; left: -80px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.label-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
}
.hero-name-accent { color: var(--gold); }
.hero-name-light { color: rgba(248,249,250,0.35); }

.hero-role {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}
.role-sep { color: var(--gold); margin: 0 6px; }

.hero-bio {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.hero-bio strong { color: var(--white); font-weight: 500; }

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.stat-pill {
  background: var(--navy-card);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.stat-num { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.btn-primary-hero {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  transition: 0.25s ease;
  box-shadow: 0 0 30px rgba(245,158,11,0.25);
}
.btn-primary-hero:hover { background: #fbbf24; transform: translateY(-2px); box-shadow: 0 0 40px rgba(245,158,11,0.35); }

.btn-ghost-hero {
  border: 1px solid var(--border);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  transition: 0.25s ease;
}
.btn-ghost-hero:hover { border-color: var(--gold); color: var(--gold); }

.hero-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: 0.2s;
}
.social-chip:hover { border-color: var(--gold); color: var(--gold); }

/* Hero Photo */
.hero-photo-wrap {
  position: relative;
  display: inline-block;
  max-width: 340px;
  margin: 0 auto;
}
.photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(245,158,11,0.2);
  animation: spin-slow 20s linear infinite;
}
.ring-outer { width: 110%; height: 110%; top: -5%; left: -5%; }
.ring-inner { width: 88%; height: 88%; top: 6%; left: 6%; animation-direction: reverse; animation-duration: 15s; border-style: dotted; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.photo-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(245,158,11,0.25);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.hero-photo {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.5s ease;
}
.hero-photo-wrap:hover .hero-photo { transform: scale(1.03); }

.photo-badge {
  position: absolute;
  z-index: 3;
  background: var(--navy);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.badge-1 { top: 15px; left: -20px; }
.badge-2 { bottom: 30px; right: -15px; }

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-drop 1.5s infinite;
}
@keyframes scroll-drop { 0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ── Sections ────────────────────────────── */
.section-pad { padding: 100px 0; }
.bg-alt { background: var(--navy-alt); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
}

.subsection-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.subsection-title i { color: var(--gold); }

/* ── About ───────────────────────────────── */
.about-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.about-text {
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.8;
}
.about-text strong { color: var(--white); }
.about-text:last-of-type { margin-bottom: 1.5rem; }

.about-contact-strip { display: flex; flex-direction: column; gap: 8px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.contact-item:hover { color: var(--gold); }
.contact-item i { color: var(--gold); width: 16px; }

/* Skills grid */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.skill-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.skill-card-icon {
  width: 42px; height: 42px;
  background: var(--gold-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.skill-card-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-tags span {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: #94a3b8;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── Timeline ────────────────────────────── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 4px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--navy);
  box-shadow: 0 0 10px rgba(245,158,11,0.5);
}
.timeline-content {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s;
}
.timeline-content:hover { border-color: var(--border-hover); }
.timeline-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; }
.timeline-date { font-size: 0.78rem; color: var(--muted); font-family: monospace; }
.timeline-badge { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 100px; }
.timeline-badge.current { background: rgba(34,197,94,0.1); color: #4ade80; border-color: rgba(34,197,94,0.3); }
.timeline-role { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.timeline-org { font-size: 0.83rem; color: var(--gold); margin-bottom: 1rem; }
.timeline-list { list-style: none; padding: 0; }
.timeline-list li {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.7;
  padding: 4px 0 4px 18px;
  position: relative;
}
.timeline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 7px;
}
.timeline-list strong { color: var(--white); }

/* Education */
.edu-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.edu-card:hover { border-color: var(--border-hover); }
.edu-year { font-size: 0.75rem; color: var(--gold); font-family: monospace; margin-bottom: 4px; }
.edu-degree { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.edu-school { font-size: 0.82rem; color: var(--muted); }

/* Certifications */
.cert-list { display: flex; flex-direction: column; gap: 10px; }
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}
.cert-item:hover { border-color: var(--border-hover); }
.cert-date { font-size: 0.7rem; color: var(--gold); font-family: monospace; white-space: nowrap; padding-top: 2px; }
.cert-name { font-size: 0.88rem; font-weight: 600; margin: 0; }
.cert-org { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* ── CV Download Section ─────────────────── */
.cv-section { background: var(--navy); }
.cv-download-block {
  position: relative;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.cv-deco-text {
  position: absolute;
  top: -20px;
  right: 40px;
  font-family: 'Syne', sans-serif;
  font-size: 8rem;
  font-weight: 800;
  color: rgba(245,158,11,0.04);
  letter-spacing: -4px;
  pointer-events: none;
  user-select: none;
}
.cv-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px;
  position: relative;
  z-index: 1;
  align-items: center;
}
.cv-heading {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 1rem 0 0.75rem;
}
.cv-subtext { color: #94a3b8; font-size: 0.95rem; line-height: 1.8; margin-bottom: 2rem; }
.cv-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-download-cv {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 10px;
  transition: 0.2s ease;
  box-shadow: 0 0 30px rgba(245,158,11,0.3);
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.btn-download-cv .btn-meta { font-size: 0.7rem; font-weight: 400; opacity: 0.6; }
.btn-download-cv:hover { background: #fbbf24; transform: translateY(-2px); }

.btn-linkedin-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 22px;
  border-radius: 10px;
  transition: 0.2s;
}
.btn-linkedin-view:hover { border-color: var(--gold); color: var(--gold); }

/* CV Preview Card */
.cv-preview-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.cv-preview-header {
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.cv-preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.cv-preview-dot.red { background: #ff5f57; }
.cv-preview-dot.yellow { background: #febc2e; }
.cv-preview-dot.green { background: #28c840; }
.cv-preview-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.cv-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.06); }
.cv-line.long { width: 90%; }
.cv-line.medium { width: 65%; }
.cv-line.short { width: 40%; }
.cv-divider { height: 1px; background: var(--border); margin: 4px 0; }
.cv-preview-label {
  padding: 12px 20px;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv-preview-label i { color: var(--gold); }

/* ── Projects ────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  background: var(--navy-card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold-dim);
  border-color: rgba(245,158,11,0.4);
  color: var(--gold);
}

.project-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.project-card:hover::before { opacity: 1; }

.featured-project { border-color: rgba(245,158,11,0.2); }
.featured-tag {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.indev-tag {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #818cf8;
}
.active-build-card {
  border-color: rgba(99, 102, 241, 0.2);
}
.active-build-card::before {
  background: linear-gradient(90deg, transparent, #818cf8, transparent);
}
.active-build-card:hover { border-color: rgba(99, 102, 241, 0.5); }

.private-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.private-badge i { font-size: 0.6rem; }

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.p-num { font-family: monospace; font-size: 0.78rem; color: var(--gold); font-weight: 700; }
.p-links { display: flex; gap: 8px; }
.p-link-icon {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 4px;
}
.p-link-icon:hover { color: var(--gold); }
.p-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.p-desc { font-size: 0.85rem; color: #94a3b8; line-height: 1.7; flex: 1; }
.p-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 1.5rem; gap: 10px; }
.p-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.p-stack span {
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.15);
  color: var(--gold);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 100px;
}
.p-cta {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color 0.2s, gap 0.2s;
}
.p-cta:hover { color: var(--gold); gap: 8px; }
.p-cta.muted { color: var(--muted); pointer-events: none; font-style: italic; }

/* ── Contact ─────────────────────────────── */
.contact-info-block { padding: 2rem 0; }
.contact-intro { color: #94a3b8; margin-bottom: 2rem; line-height: 1.8; }
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2rem; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--white);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-row:hover { border-color: var(--border-hover); transform: translateX(4px); }
.contact-icon {
  width: 36px; height: 36px;
  background: var(--gold-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-label { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { display: block; font-size: 0.88rem; font-weight: 500; }

.cv-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 10px;
  transition: 0.2s;
}
.cv-inline-btn:hover { background: #fbbf24; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group-custom { display: flex; flex-direction: column; gap: 6px; }
.form-group-custom label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.form-group-custom input,
.form-group-custom textarea {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group-custom input:focus,
.form-group-custom textarea:focus { border-color: rgba(245,158,11,0.5); box-shadow: 0 0 0 3px rgba(245,158,11,0.08); }
.form-group-custom textarea { resize: vertical; }
.form-group-custom input::placeholder,
.form-group-custom textarea::placeholder { color: var(--muted); }

.btn-send {
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: 0.2s;
  box-shadow: 0 0 30px rgba(245,158,11,0.2);
  font-family: 'DM Sans', sans-serif;
}
.btn-send:hover { background: #fbbf24; transform: translateY(-2px); }

/* ── Footer ──────────────────────────────── */
.site-footer {
  background: var(--navy-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--white); }
.footer-copy { color: var(--muted); font-size: 0.85rem; margin: 0; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s;
}
.footer-socials a:hover { color: var(--gold); transform: translateY(-2px); }

/* ── Animations ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────── */

/* Prevent any horizontal overflow globally */
html, body {
  overflow-x: hidden;
  width: 100%;
}

.container {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 1199px) {
  .hero-title { font-size: clamp(2.6rem, 6vw, 4.5rem); }
}

@media (max-width: 991px) {
  .hero-section { text-align: center; padding-top: 110px; padding-bottom: 60px; }
  .hero-title { font-size: clamp(2.4rem, 8vw, 3.5rem); letter-spacing: -1.5px; }
  .hero-bio { margin: 0 auto 2rem; max-width: 100%; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-label { justify-content: center; }
  .hero-scroll-hint { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .cv-inner { grid-template-columns: 1fr; gap: 30px; padding: 36px 28px; }
  .cv-right { display: none; }
  .cv-heading { font-size: 1.8rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .timeline { padding-left: 20px; }
  .photo-badge { display: none; }
  .ring-outer, .ring-inner { display: none; }
  .hero-photo-wrap { max-width: 260px; margin: 0 auto 2rem; }
}

@media (max-width: 767px) {
  .section-pad { padding: 60px 0; }
  .section-heading { font-size: 1.8rem; }

  /* Hero */
  .hero-section { padding: 100px 0 50px; }
  .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); letter-spacing: -1px; }
  .hero-role { font-size: 0.88rem; }
  .hero-bio { font-size: 0.9rem; }
  .hero-photo-wrap { max-width: 200px; }
  .stat-pill { padding: 10px 14px; flex: 1; min-width: 85px; }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: 0.65rem; }
  .hero-stats { gap: 8px; }
  .btn-primary-hero, .btn-ghost-hero { padding: 12px 20px; font-size: 0.88rem; width: 100%; text-align: center; justify-content: center; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .social-chip { font-size: 0.75rem; padding: 6px 10px; }

  /* Navbar */
  .navbar-collapse { background: rgba(11,15,26,0.98); border: 1px solid var(--border); border-radius: 12px; margin-top: 10px; padding: 16px; }
  .nav-cv-btn { margin-top: 8px; justify-content: center; }

  /* About */
  .about-card { padding: 1.5rem; }
  .skill-card { flex-direction: column; gap: 0.75rem; }
  .skill-card-icon { width: 36px; height: 36px; font-size: 0.85rem; }

  /* Experience */
  .timeline { padding-left: 16px; }
  .timeline-content { padding: 1.2rem; }
  .timeline-role { font-size: 0.92rem; }
  .timeline-list li { font-size: 0.82rem; }

  /* CV section */
  .cv-download-block { border-radius: 16px; }
  .cv-inner { padding: 28px 20px; }
  .cv-heading { font-size: 1.5rem; }
  .cv-subtext { font-size: 0.88rem; }
  .btn-download-cv { width: 100%; justify-content: center; align-items: center; flex-direction: row; }
  .btn-download-cv .btn-meta { display: none; }
  .cv-actions { flex-direction: column; }
  .btn-linkedin-view { width: 100%; justify-content: center; }
  .cv-deco-text { font-size: 3.5rem; opacity: 0.5; }

  /* Projects */
  .project-card { padding: 1.25rem; }
  .p-title { font-size: 0.95rem; }
  .p-desc { font-size: 0.82rem; }
  .filter-tabs { gap: 6px; }
  .filter-btn { font-size: 0.75rem; padding: 6px 12px; }
  .p-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .project-item.hidden { display: none; }

  /* Active build cards */
  .active-build-card { padding: 1.25rem; }
  .active-build-card .p-desc { font-size: 0.82rem; }

  /* Contact */
  .contact-info-block { padding: 0; }
  .contact-row { padding: 12px 14px; }
  .contact-value { font-size: 0.82rem; word-break: break-all; }
  .form-group-custom input, .form-group-custom textarea { font-size: 0.88rem; padding: 10px 14px; }
  .btn-send { width: 100%; justify-content: center; }
  .cv-inline-btn { width: 100%; justify-content: center; }

  /* Footer */
  .site-footer { padding: 2rem 0; }
  .footer-inner { gap: 0.75rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.8rem, 11vw, 2.4rem); }
  .hero-role { font-size: 0.8rem; }
  .stat-pill { min-width: 70px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .section-heading { font-size: 1.55rem; letter-spacing: -0.5px; }
  .timeline::before { left: 4px; }
  .timeline-dot { left: -18px; width: 10px; height: 10px; }
  .cert-item { flex-direction: column; gap: 4px; }
  .cert-date { font-size: 0.68rem; }
  .edu-degree { font-size: 0.88rem; }
}