/* ══════════════════════════════════════════════════════════════
   PORTFOLIO — SYSOPS & ARCHITECTE INFRASTRUCTURE
   style.css — Design System Cybersec/Terminal
   ══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables / Tokens ─── */
:root {
  /* Light mode */
  --bg-primary:    #f3f4f6;
  --bg-secondary:  #ffffff;
  --bg-card:       #ffffff;
  --bg-alt:        #eef0f4;
  --bg-terminal:   #1a1d27;
  --text-primary:  #111827;
  --text-secondary:#374151;
  --text-muted:    #6b7280;
  --accent:        #2563eb;
  --accent-hover:  #1d4ed8;
  --accent2:       #7c3aed;
  --border:        #e5e7eb;
  --border-strong: #d1d5db;
  --shadow:        0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-hover:  0 8px 32px rgba(37,99,235,0.15);
  --shadow-card:   0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  --glow:          rgba(37,99,235,0.08);
  --t-green:       #10b981;
  --t-red:         #ef4444;
  --t-yellow:      #f59e0b;
  --t-cyan:        #06b6d4;

  /* Navbar */
  --nav-bg:        rgba(243,244,246,0.9);
  --nav-border:    rgba(229,231,235,0.8);

  /* Bar fill */
  --bar-bg:        #e5e7eb;
  --bar-fill:      var(--accent);

  /* Typography */
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;
  --font-sans:     'DM Sans', sans-serif;

  /* Timing */
  --transition:    200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary:    #0d1117;
  --bg-secondary:  #161b22;
  --bg-card:       #161b22;
  --bg-alt:        #0d1117;
  --bg-terminal:   #0a0c10;
  --text-primary:  #e2e8f0;
  --text-secondary:#cbd5e1;
  --text-muted:    #94a3b8;
  --accent:        #10b981;
  --accent-hover:  #059669;
  --accent2:       #06b6d4;
  --border:        #30363d;
  --border-strong: #3d444d;
  --shadow:        0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-hover:  0 8px 32px rgba(16,185,129,0.2);
  --shadow-card:   0 2px 8px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.2);
  --glow:          rgba(16,185,129,0.06);
  --nav-bg:        rgba(13,17,23,0.92);
  --nav-border:    rgba(48,54,61,0.8);
  --bar-bg:        #21262d;
  --bar-fill:      var(--accent);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo .prompt { color: var(--accent); }
.nav-logo .name-logo { color: var(--text-primary); }
.cursor-blink {
  color: var(--accent);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--glow);
}

/* Theme Toggle */
.theme-toggle {
  flex-shrink: 0;
  padding: 4px;
  background: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 50px;
  transition: border-color var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); }

.toggle-track {
  display: flex;
  width: 52px;
  height: 26px;
  background: var(--bar-bg);
  border-radius: 50px;
  position: relative;
  transition: background var(--transition);
  overflow: hidden;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
  font-size: 0.6rem;
  color: white;
}

[data-theme="dark"] .toggle-thumb {
  transform: translateX(26px);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--glow); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--transition-slow);
}

[data-theme="dark"] .hero-bg-grid { opacity: 0.15; }

.hero-glow {
  position: absolute;
  top: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--t-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.hero-name .line-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.hero-name .accent { color: var(--accent); }

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1.5rem;
  min-height: 1.8em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.type-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 0.75s step-end infinite;
  margin-left: 1px;
  font-weight: 300;
}

.hero-accroche {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-accroche strong { color: var(--text-primary); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Terminal widget */
.hero-terminal {
  flex: 0 0 360px;
  max-width: 100%;
  background: var(--bg-terminal);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }
.terminal-title {
  font-size: 0.72rem;
  color: #7a8394;
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.6;
}
.t-prompt { color: #10b981; margin-right: 0.5rem; }
.t-cmd    { color: #e2e8f0; }
.t-out    { color: #7a8394; padding-left: 1.25rem; }
.t-green  { color: #10b981; }
.t-blink  { color: #e2e8f0; animation: blink 1s step-end infinite; }

/* ═══════════════════════════════════════════
   SECTIONS GENERIQUES
═══════════════════════════════════════════ */
.section {
  padding: 6rem 0;
}
.section-alt {
  background: var(--bg-alt);
  transition: background var(--transition-slow);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--glow);
  border: 1px solid rgba(37,99,235,0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .section-tag {
  border-color: rgba(16,185,129,0.2);
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   PHILOSOPHIE
═══════════════════════════════════════════ */
.philo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.philo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.philo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity var(--transition);
}
.philo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.philo-card:hover::before { opacity: 1; }

.philo-icon {
  width: 48px; height: 48px;
  background: var(--glow);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
[data-theme="dark"] .philo-icon {
  border-color: rgba(16,185,129,0.2);
}

.philo-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.philo-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.philo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.philo-tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   PROJETS
═══════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.project-featured {
  grid-column: 1 / -1;
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-alt) 100%);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.status-dot.active {
  background: var(--t-green);
  animation: pulse 2s ease-in-out infinite;
}

.project-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--glow);
  border: 1px solid rgba(37,99,235,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
[data-theme="dark"] .project-label {
  border-color: rgba(16,185,129,0.25);
}

.project-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.project-title i { color: var(--accent); font-size: 1rem; }

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

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.highlight i { color: var(--t-green); font-size: 0.8rem; flex-shrink: 0; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid transparent;
}
.tag-blue   { background: rgba(37,99,235,0.1);  color: #2563eb; border-color: rgba(37,99,235,0.2); }
.tag-green  { background: rgba(16,185,129,0.1); color: #10b981; border-color: rgba(16,185,129,0.2); }
.tag-red    { background: rgba(239,68,68,0.1);  color: #ef4444; border-color: rgba(239,68,68,0.2); }
.tag-orange { background: rgba(245,158,11,0.1); color: #f59e0b; border-color: rgba(245,158,11,0.2); }
.tag-purple { background: rgba(124,58,237,0.1); color: #7c3aed; border-color: rgba(124,58,237,0.2); }
.tag-cyan   { background: rgba(6,182,212,0.1);  color: #06b6d4; border-color: rgba(6,182,212,0.2); }

/* ═══════════════════════════════════════════
   STACK TECHNIQUE
═══════════════════════════════════════════ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.stack-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stack-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stack-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.stack-cat-header i {
  color: var(--accent);
  font-size: 1rem;
}
.stack-cat-header h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stack-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.2rem 0.5rem;
  align-items: center;
}
.item-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  grid-column: 1;
  grid-row: 1;
}
.item-pct {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}
.item-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 4px;
  background: var(--bar-bg);
  border-radius: 4px;
  overflow: hidden;
}
.item-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.item-fill.animated {
  width: var(--w);
}

/* ═══════════════════════════════════════════
   CERTIFICATIONS
═══════════════════════════════════════════ */
.certifs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.sub-section-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sub-section-title i { color: var(--accent); }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.tl-marker {
  position: absolute;
  left: -2.55rem;
  top: 6px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--glow);
  flex-shrink: 0;
}
[data-theme="dark"] .tl-marker {
  border-color: var(--bg-alt);
}

.tl-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.tl-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 0.35rem;
}
.tl-content h4 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.tl-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.tl-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  background: var(--glow);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 3px;
  color: var(--accent);
}
[data-theme="dark"] .tl-tags span {
  border-color: rgba(16,185,129,0.2);
}

/* Certifications list */
.certifs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.certif-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition);
}
.certif-item:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}
.certif-item.future { opacity: 0.7; }

.certif-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.certif-icon.wazo   { background: rgba(37,99,235,0.1);  color: #2563eb; }
.certif-icon.tplink { background: rgba(16,185,129,0.1); color: #10b981; }
.certif-icon.veeam  { background: rgba(124,58,237,0.1); color: #7c3aed; }
.certif-icon.future-icon { background: var(--bar-bg); color: var(--text-muted); }

.certif-info { flex: 1; min-width: 0; }
.certif-info h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.certif-org {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.certif-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}
.certif-badge.active  { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.certif-badge.pending { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }

/* ═══════════════════════════════════════════
   FOOTER / CONTACT
═══════════════════════════════════════════ */
#contact {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
  transition: background var(--transition-slow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem;
  max-width: 280px;
  line-height: 1.7;
}
.footer-logo {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.footer-self-hosted {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--t-green);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--glow);
  transform: translateX(4px);
}
.contact-link i:first-child {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  color: var(--accent);
}
.contact-link span { flex: 1; }
.contact-link .ext {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-stack { display: flex; align-items: center; gap: 0.4rem; }

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .certifs-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Navbar */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
    width: 100%;
  }

  /* Hero */
  #hero {
    flex-direction: column;
    padding: 7rem 1.5rem 3rem;
    align-items: flex-start;
  }
  .hero-terminal {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  /* Projects grid */
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-featured { grid-column: 1; }

  /* Stack */
  .stack-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 1rem;
  }
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2rem; }
}
