/* ====================================
   CAMARA YACOUBA — PORTFOLIO
   Thème : Bleu profond / Noir
   ==================================== */

:root {
  --bg-0: #020912;
  --bg-1: #050b18;
  --bg-2: #080f20;
  --bg-card: #0a1628;
  --bg-card2: #0d1f3c;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --accent-glow: rgba(37, 99, 235, 0.35);
  --accent-faint: rgba(37, 99, 235, 0.08);
  --gold: #f59e0b;
  --text-primary: #f0f6ff;
  --text-secondary: #94a3b8;
  --text-muted: #4b6180;
  --border: rgba(37, 99, 235, 0.18);
  --font-body: 'Space Grotesk', sans-serif;
  --font-head: 'Syne', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

html, body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--text-primary);
  overflow-x: hidden;
  max-width: 100vw;
}

::selection { background: var(--accent); color: #fff; }

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ====== CONTAINER ====== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ====== CURSOR ====== */
#cursor {
  width: 8px; height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
#cursor-follower {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(96,165,250,0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}
a:hover ~ #cursor, button:hover ~ #cursor { transform: translate(-50%,-50%) scale(2.5); }

/* ====== LOADER ====== */
#loader {
  position: fixed; inset: 0;
  background: var(--bg-0);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.loader-hex {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex; align-items: center; justify-content: center;
  animation: hexPulse 1.5s ease-in-out infinite;
}
.loader-hex span { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: #fff; }

@keyframes hexPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 16px transparent; }
}

.loader-bar-wrap {
  width: 180px; height: 3px;
  background: rgba(37,99,235,0.15);
  border-radius: 50px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 50px;
  animation: fillBar 1.6s ease forwards;
}
@keyframes fillBar { from { width: 0; } to { width: 100%; } }

.loader-name { color: var(--text-secondary); font-size: 0.85rem; letter-spacing: 0.1em; }

/* ====== SCROLL PROGRESS ====== */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 10000;
  transition: width 0.1s;
}

/* ====== SCROLL TOP ====== */
#scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: 12px;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 20px var(--accent-glow);
}
#scroll-top.visible { opacity: 1; visibility: visible; }
#scroll-top:hover { transform: translateY(-4px); background: var(--accent-light); }

/* ====================================
   NAVBAR
   ==================================== */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  transition: all 0.35s ease;
  padding: 1.25rem 0;
}
#navbar.scrolled {
  background: rgba(5, 11, 24, 0.95);
  backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}

.logo-hex {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
}
.logo-hex.sm { width: 32px; height: 32px; }
.logo-hex:hover { transform: rotate(15deg) scale(1.1); }
.logo-hex span { font-family: var(--font-head); font-size: 0.85rem; font-weight: 800; color: #fff; }

.logo-text { font-family: var(--font-head); font-size: 1.1rem; color: var(--text-primary); }
.logo-text strong { color: var(--accent-light); }

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent-light);
  border-radius: 1px;
  transition: width 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--accent-light); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  background: rgba(5,11,24,0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.mobile-menu.hidden { display: none; }
.mobile-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border);
  transition: color 0.25s;
}
.mobile-link:hover { color: var(--accent-light); }

/* ====================================
   HERO
   ==================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--bg-0);
  overflow: hidden;
  padding-top: 5rem;
}

#geo-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-diagonal {
  position: absolute;
  top: 0; right: -20%;
  width: 55%;
  height: 100%;
  background: linear-gradient(160deg, rgba(37,99,235,0.07) 0%, transparent 60%);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 1180px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  position: relative; z-index: 2;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s ease both 0.2s;
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  animation: fadeUp 0.7s ease both 0.35s;
}
.name-first { display: block; color: var(--text-primary); }
.name-last {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-light);
}

.hero-typed {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-light);
  min-height: 2rem;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s ease both 0.5s;
}
.typed-cursor::after {
  content: '|';
  animation: blink 0.7s infinite;
  color: var(--accent-light);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease both 0.65s;
}
.hero-desc strong { color: var(--accent-light); }

.hero-socials {
  display: flex; gap: 0.75rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease both 0.75s;
}

.social-btn {
  width: 44px; height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s;
  background: var(--accent-faint);
}
.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.7s ease both 0.85s;
}

.cta-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700; font-size: 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.cta-primary:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.cta-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: 1.5px solid var(--accent);
  color: var(--accent-light);
  font-weight: 700; font-size: 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}
.cta-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* Hero Photo */
.hero-photo {
  flex: 1;
  display: flex; justify-content: center;
  animation: fadeUp 0.7s ease both 0.5s;
}

.photo-hex-wrap {
  position: relative;
  width: 320px; height: 320px;
}

.photo-hex-ring {
  position: absolute;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.ring-1 {
  inset: -12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.3), transparent 60%);
  animation: hexSpin 12s linear infinite;
}
.ring-2 {
  inset: -4px;
  background: linear-gradient(315deg, rgba(96,165,250,0.2), transparent 60%);
  animation: hexSpin 8s linear infinite reverse;
}

@keyframes hexSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.photo-hex-frame {
  width: 100%; height: 100%;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  overflow: hidden;
  background: var(--bg-card);
  border: 0;
  position: relative; z-index: 2;
  animation: hexFloat 4s ease-in-out infinite;
}
@keyframes hexFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.photo-hex-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }

.photo-badge-float {
  position: absolute;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--accent-light);
  font-size: 0.7rem; font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  z-index: 5;
  animation: badgeFloat 3s ease-in-out infinite;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.badge-hqse      { top: 10%; right: -10%; animation-delay: 0s; }
.badge-rse       { bottom: 20%; right: -12%; animation-delay: 0.8s; }
.badge-iso       { bottom: 10%; left: -10%; animation-delay: 1.6s; }
.badge-chef      { top: -12%; left: 38%; animation-delay: 0.4s; }
.badge-ingenieur { top: 10%; left: -20%; animation-delay: 1.2s; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.1em;
  z-index: 5;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 1.5px solid var(--text-muted);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-dot {
  width: 4px; height: 8px;
  background: var(--accent-light);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================================
   STATS
   ==================================== */
.stats-section {
  background: var(--bg-2);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: var(--accent-faint);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  transition: all 0.3s;
  gap: 0.5rem;
}
.stat-card:hover, .stat-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.stat-icon {
  width: 48px; height: 48px;
  background: rgba(37,99,235,0.15);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-light);
}
.stat-card.featured .stat-icon { background: var(--accent); color: #fff; border-color: var(--accent); }

.stat-body { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.5rem; font-weight: 800;
  color: var(--accent-light); line-height: 1;
}
.stat-suffix { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--accent-light); }
.stat-body p { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.25rem; }
.stat-body small { color: var(--text-muted); font-size: 0.75rem; }

/* ====================================
   SECTION HEADER (shared)
   ==================================== */
.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.25);
  color: var(--accent-light);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
}
.section-title .accent { color: var(--accent-light); }

.section-line {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ====================================
   ABOUT
   ==================================== */
.about-section { padding: 6rem 0; background: var(--bg-1); }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.5rem;
}
.about-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.about-img-decor {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-card));
}

.about-id { padding: 0 1.25rem; margin-top: -2rem; position: relative; z-index: 2; }
.about-id h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; }
.about-title-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.75rem; border-radius: 50px;
  margin: 0.5rem 0;
}
.about-company {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  color: var(--text-muted); font-size: 0.85rem; margin: 0.25rem 0 1rem;
}

.cv-download-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-faint);
  border: 1px solid var(--border);
  color: var(--accent-light);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
}
.cv-download-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Timeline */
.about-timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-block {
  display: flex; gap: 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}
.timeline-block::before {
  content: '';
  position: absolute;
  left: 22px; top: 44px;
  width: 2px; height: calc(100% - 16px);
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-block:last-child::before { display: none; }

.tl-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  position: relative; z-index: 2;
}
.tl-edu  { background: rgba(37,99,235,0.2); border: 1px solid rgba(37,99,235,0.4); color: var(--accent-light); }
.tl-train{ background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.35); color: #f59e0b; }
.tl-cert { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.35); color: #10b981; }
.tl-biz  { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.35); color: #a855f7; }

.tl-content { flex: 1; }
.tl-date {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent-light);
  background: rgba(37,99,235,0.1);
  border: 1px solid var(--border);
  padding: 0.15rem 0.65rem; border-radius: 50px;
  margin-bottom: 0.5rem;
}
.tl-content h4 {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.4rem;
}
.tl-content p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; }

/* ====================================
   SKILLS
   ==================================== */
.skills-section { padding: 6rem 0; background: var(--bg-0); }

.skills-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.hex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.hex-skill {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  cursor: default;
}

.hex-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.2rem;
  background: var(--bg-card);
  border-radius: 50%;
  border: 1px solid var(--border);
  z-index: 2;
  transition: all 0.3s;
}
.hex-skill:hover .hex-body {
  background: var(--bg-card2);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.hex-body i { font-size: 1.4rem; color: var(--accent-light); }
.hex-name { font-size: 0.65rem; font-weight: 700; color: var(--text-secondary); text-align: center; line-height: 1.2; }
.hex-pct { font-family: var(--font-head); font-size: 0.85rem; font-weight: 800; color: var(--accent-light); }

.hex-ring {
  position: absolute; inset: 0;
  transform: rotate(-90deg);
  z-index: 1;
}

.ring-bg { fill: none; stroke: rgba(37,99,235,0.12); stroke-width: 4; }
.ring-fill {
  fill: none;
  stroke: url(#blueGrad);
  stroke-width: 4;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4,0,0.2,1);
}

/* Skills Feature List */
.skills-features { display: flex; flex-direction: column; gap: 1.5rem; }
.skills-features h3 {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 800;
  color: var(--text-primary); margin-bottom: 0.5rem;
}

.feature-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}
.feature-item:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.feat-dot {
  width: 10px; height: 10px;
  background: var(--accent-light);
  border-radius: 50%;
  flex-shrink: 0; margin-top: 0.35rem;
}
.feature-item strong { display: block; color: var(--text-primary); font-size: 0.95rem; margin-bottom: 0.3rem; }
.feature-item p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

/* ====================================
   SERVICES
   ==================================== */
.services-section { padding: 6rem 0; background: var(--bg-1); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s;
}
.service-card:hover, .service-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-4px);
}
.service-card.featured { background: var(--bg-card2); }

.svc-accent-line {
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 4px 0 0 4px;
  transition: width 0.3s;
}
.service-card:hover .svc-accent-line, .service-card.featured .svc-accent-line { width: 6px; }

.svc-icon-wrap {
  width: 60px; height: 60px;
  background: rgba(37,99,235,0.15);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--accent-light);
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}
.service-card:hover .svc-icon-wrap, .service-card.featured .svc-icon-wrap {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.75rem;
}
.service-card p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.75; margin-bottom: 1rem; }

.svc-list { list-style: none; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.svc-list li {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-secondary); font-size: 0.85rem;
}
.svc-list li i { color: var(--accent-light); font-size: 0.7rem; }

.svc-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent-light); font-size: 0.85rem; font-weight: 700;
  text-decoration: none; border: none; background: none;
  cursor: pointer;
  transition: gap 0.3s, color 0.3s;
}
.svc-btn.active { color: #fff; }
.svc-btn:hover { gap: 0.8rem; color: #fff; }

/* ====================================
   PROJECTS
   ==================================== */
.projects-section { padding: 6rem 0; background: var(--bg-0); }

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px var(--accent-glow);
  transform: translateY(-5px);
}

.proj-visual {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: rgba(96,165,250,0.6);
  position: relative;
  transition: transform 0.35s;
}
.project-card:hover .proj-visual { transform: scale(1.03); }

.proj-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 1rem;
  background: linear-gradient(to top, rgba(5,11,24,0.8), transparent);
}
.proj-overlay span {
  font-size: 0.7rem; font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(37,99,235,0.25);
  border: 1px solid var(--border);
  padding: 0.2rem 0.65rem; border-radius: 50px;
}

.proj-content { padding: 1.5rem; }
.proj-tag {
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent-light); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.4rem;
}
.proj-content h4 {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.5rem;
}
.proj-content p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1rem; }

.proj-techs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.proj-techs span {
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.25);
  color: var(--accent-light);
  font-size: 0.7rem; font-weight: 600;
  padding: 0.2rem 0.65rem; border-radius: 50px;
}

/* ====================================
   CERTIFICATIONS
   ==================================== */
.certs-section { padding: 6rem 0; background: var(--bg-1); }

.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.col-title {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 1.5rem;
}
.col-title i { color: var(--accent-light); }

/* ISO Cards */
.iso-card {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}
.iso-card:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }

.iso-badge {
  width: 60px; height: 60px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 800;
  color: #fff; text-align: center; line-height: 1.2;
}

.iso-info h4 { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.3rem; }
.iso-info p { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.6; }

/* Engage Cards */
.engage-card {
  display: flex; align-items: flex-start; gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}
.engage-card:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }

.engage-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #fff;
}

.engage-info h4 { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.engage-sub { color: var(--accent-light); font-size: 0.75rem; font-weight: 700; margin-bottom: 0.4rem; }
.engage-info p { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.6; }

/* ====================================
   CONTACT
   ==================================== */
.contact-section { padding: 6rem 0; background: var(--bg-0); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-brand {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-brand h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; }
.contact-brand p { color: var(--accent-light); font-size: 0.8rem; font-weight: 600; }

.contact-intro {
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-items { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }

.contact-item {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}
.contact-item:hover { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.ci-icon {
  width: 40px; height: 40px;
  background: rgba(37,99,235,0.15);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--accent-light);
  flex-shrink: 0;
}
.contact-item span { display: block; font-size: 0.75rem; color: var(--text-muted); }
.contact-item strong { display: block; font-size: 0.875rem; color: var(--text-primary); }

.contact-socials { display: flex; gap: 0.75rem; }
.cs-btn {
  width: 44px; height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s;
  background: var(--accent-faint);
}
.cs-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}

.form-row { display: flex; gap: 1rem; }
.form-group { flex: 1; margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--accent-glow);
  margin-top: 0.5rem;
}
.form-submit:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }

/* ====================================
   FOOTER
   ==================================== */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-head); font-size: 1rem; color: var(--text-primary);
}
.footer-logo strong { color: var(--accent-light); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.footer-copy strong { color: var(--accent-light); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-light); }

/* ====================================
   REVEAL ANIMATIONS
   ==================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-wrapper { grid-template-columns: 1fr; }
  .hex-grid { grid-template-columns: repeat(4, 1fr); }
}

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

  .hero-section { overflow: hidden; }
  .hero-content { flex-direction: column-reverse; padding-top: 2rem; }
  .hero-text { text-align: center; width: 100%; }
  .hero-badge { font-size: 0.7rem; padding: 0.35rem 0.75rem; text-align: center; }
  .hero-name { font-size: clamp(2rem, 10vw, 3.5rem); }
  .hero-desc { font-size: 0.875rem; }
  .hero-socials, .hero-cta { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .photo-hex-wrap { width: 220px; height: 220px; }
  .photo-badge-float { font-size: 0.65rem; padding: 0.25rem 0.6rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo-card { max-width: 300px; margin: 0 auto; }

  .services-grid, .projects-grid, .certs-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .hex-grid { grid-template-columns: repeat(4, 1fr); }

  .form-row { flex-direction: column; gap: 0; }

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

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-card { padding: 0.75rem; gap: 0.5rem; border-radius: 12px; }
  .stat-icon { width: 36px; height: 36px; font-size: 0.9rem; border-radius: 10px; }
  .stat-num { font-size: 1.5rem; }
  .stat-suffix { font-size: 1.1rem; }
  .stat-body p { font-size: 0.75rem; }
  .stat-body small { font-size: 0.65rem; }
  .hex-grid { grid-template-columns: repeat(2, 1fr); }
  .hex-body i { font-size: 1.1rem; }
  .hex-name { font-size: 0.6rem; }
  .hex-pct { font-size: 0.75rem; }
}
