/* =====================================================
   AHMED CHANNOUFI PORTFOLIO — style.css
   Dark & Futuristic Theme
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #050a14;
  --bg-secondary: #080f1e;
  --bg-card: rgba(12, 20, 40, 0.7);
  --bg-card-hover: rgba(16, 28, 56, 0.9);

  --cyan: #00f5d4;
  --cyan-dim: rgba(0, 245, 212, 0.15);
  --cyan-glow: rgba(0, 245, 212, 0.4);
  --purple: #7b2ff7;
  --purple-dim: rgba(123, 47, 247, 0.15);
  --purple-glow: rgba(123, 47, 247, 0.4);
  --pink: #f72f8b;

  --text-primary: #e8f0fe;
  --text-secondary: #8899bb;
  --text-muted: #4a5a7a;

  --border: rgba(0, 245, 212, 0.12);
  --border-hover: rgba(0, 245, 212, 0.35);

  --gradient: linear-gradient(135deg, var(--cyan), var(--purple));
  --gradient-text: linear-gradient(135deg, #00f5d4, #7b2ff7, #f72f8b);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 30px rgba(0, 245, 212, 0.2);
  --shadow-glow-purple: 0 0 30px rgba(123, 47, 247, 0.25);

  --nav-h: 70px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ---------- Selection ---------- */
::selection { background: var(--cyan-dim); color: var(--cyan); }

/* ---------- Utility ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 20px var(--cyan-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--cyan-glow), 0 8px 24px rgba(0,0,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan-dim);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ---------- Section shared ---------- */
.section { padding: 110px 0; position: relative; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 5px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0, 245, 212, 0.25);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 4px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}
.logo-dot { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}

.nav-cta { margin-left: 12px; padding: 9px 22px; font-size: 0.88rem; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 6px 12px;
  border-radius: 50px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}
.lang-toggle:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow-cyan);
}
.lang-option {
  color: var(--text-muted);
  transition: var(--transition);
}
.lang-option.active { color: var(--cyan); }
.lang-sep { color: var(--text-muted); opacity: 0.4; }
.mobile-menu .lang-toggle { align-self: center; margin: 10px 0 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: rgba(5, 10, 20, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}
.mobile-link:hover { color: var(--cyan); background: var(--cyan-dim); }
.mobile-cta { margin-top: 8px; text-align: center; justify-content: center; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(123, 47, 247, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(0, 245, 212, 0.12) 0%, transparent 60%),
    var(--bg-primary);
  z-index: 0;
}

.particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  animation: fadeInUp 0.9s ease both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.25);
  color: var(--cyan);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 28px;
  animation: fadeInUp 0.9s 0.1s ease both;
}

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

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

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  animation: fadeInUp 0.9s 0.2s ease both;
}

.hero-role {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 400;
  animation: fadeInUp 0.9s 0.3s ease both;
}

.role-prefix { margin-right: 8px; }

.role-typed {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.cursor-blink {
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.9s 0.4s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.9s 0.5s ease both;
}

.hero-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  animation: fadeInUp 0.9s 0.6s ease both;
}

.social-link {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-3px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  z-index: 2;
  animation: fadeInUp 1s 0.8s ease both;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* =====================================================
   ABOUT
   ===================================================== */
.about-section { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-intro {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-intro strong { color: var(--cyan); }

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  flex: 1;
  min-width: 100px;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-4px);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* About visual */
.about-card-glow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-card-glow::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--cyan-dim), transparent);
  border-radius: 50%;
}

.about-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-ring {
  position: absolute;
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-photo {
  width: 170px; height: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 0 30px var(--cyan-glow);
  position: relative;
  z-index: 1;
}

.about-certs {
  margin-top: 36px;
}
.about-certs h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── Certificate Cards Grid ── */
.cert-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}
@media (max-width: 768px) {
  .cert-cards-grid {
    grid-template-columns: 1fr;
  }
}
.cert-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(0, 245, 212, 0.04);
  border: 1px solid rgba(0, 245, 212, 0.15);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,245,212,0.08), rgba(123,47,247,0.06));
  opacity: 0;
  transition: opacity 0.3s;
}
.cert-card:hover::before { opacity: 1; }
.cert-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0,245,212,0.22);
  transform: translateY(-3px);
}
.cert-card-icon { font-size: 1.8rem; flex-shrink: 0; }
.cert-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cert-card-body strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-card-body span {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-view-btn {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding-left: 10px;
}
.cert-card:hover .cert-view-btn { opacity: 1; }

/* ── Lightbox Modal ── */
.cert-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.cert-lightbox.active { display: flex; }
.cert-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,245,212,0.3);
  animation: popIn 0.3s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
.cert-lightbox-inner img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.cert-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.cert-close-btn:hover { background: rgba(0,245,212,0.3); }


/* =====================================================
   SKILLS
   ===================================================== */
.skills-section { background: var(--bg-primary); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.skill-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}

.skill-cat-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-icon { font-size: 1rem; }

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.pill-accent {
  background: var(--purple-dim);
  border-color: rgba(123, 47, 247, 0.3);
  color: #c4a0ff;
}
.pill-accent:hover {
  border-color: var(--purple);
  color: #d8bcff;
  background: rgba(123, 47, 247, 0.2);
}

/* Language bars */
.lang-bars { display: flex; flex-direction: column; gap: 14px; }

.lang-bar-item { display: flex; flex-direction: column; gap: 6px; }

.lang-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.lang-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  width: var(--w);
  background: var(--gradient);
  border-radius: 3px;
  transform-origin: left;
  animation: barGrow 1.2s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* =====================================================
   EXPERIENCE / TIMELINE
   ===================================================== */
.experience-section {
  background: var(--bg-secondary);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border), var(--cyan), var(--purple), transparent);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  width: 50%;
  padding-right: 48px;
  margin-bottom: 48px;
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-item[data-side="right"] {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 48px;
  align-self: flex-end;
  margin-left: 50%;
  transform: translateX(30px);
}
.timeline-item[data-side="right"].visible { transform: translateX(0); }

.timeline-dot {
  position: absolute;
  right: -10px;
  top: 24px;
  width: 20px; height: 20px;
  background: var(--bg-primary);
  border: 3px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--cyan-glow);
  z-index: 1;
}
.timeline-item[data-side="right"] .timeline-dot { right: auto; left: -10px; }
.edu-dot { border-color: var(--purple); box-shadow: 0 0 16px var(--purple-glow); }

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: rgba(0,245,212,0.3);
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
  transform: translateY(-3px);
}

.edu-card:hover {
  border-color: rgba(123, 47, 247, 0.3);
  box-shadow: var(--shadow-card), var(--shadow-glow-purple);
}

.tcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.tcard-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 12px;
  border-radius: 50px;
}
.tcard-type.work { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,245,212,0.25); }
.tcard-type.edu { background: var(--purple-dim); color: #c4a0ff; border: 1px solid rgba(123,47,247,0.25); }

.tcard-date { font-size: 0.8rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

.tcard-title { font-size: 1.08rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }

.tcard-org { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 14px; }

.tcard-bullets { padding-left: 16px; margin-bottom: 16px; }
.tcard-bullets li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 7px;
  list-style: disc;
}
.tcard-bullets li strong { color: var(--cyan); }

.tcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tcard-tags span {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.tcard-note { font-size: 0.9rem; color: var(--text-secondary); }

/* =====================================================
   PROJECTS
   ===================================================== */
.projects-section { background: var(--bg-primary); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(0,245,212,0.3);
  transform: translateY(-5px);
}

.project-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, var(--cyan-dim), transparent);
  border-radius: 50%;
  transition: var(--transition);
}
.project-card:hover .project-glow {
  background: radial-gradient(circle, rgba(0, 245, 212, 0.2), transparent);
}

.featured-card {
  grid-column: 1 / -1;
  border-color: rgba(0, 245, 212, 0.25);
  background: linear-gradient(135deg, rgba(12, 24, 48, 0.9), rgba(20, 10, 40, 0.9));
}
.featured-card:hover { box-shadow: 0 16px 60px rgba(0,245,212,0.15); }
.featured-card .project-glow {
  background: radial-gradient(circle, rgba(123,47,247,0.15), transparent);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-icon { font-size: 2rem; }

.project-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,245,212,0.25);
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
  display: inline-block;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

.project-metrics {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 16px 24px;
  background: rgba(0,245,212,0.05);
  border: 1px solid rgba(0,245,212,0.1);
  border-radius: var(--radius-md);
  justify-content: space-around;
}

.metric { display: flex; flex-direction: column; align-items: center; }
.metric-val { font-size: 1.5rem; font-weight: 800; color: var(--cyan); }
.metric-label { font-size: 0.73rem; color: var(--text-muted); }

/* ML Specific Components */
.dist-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 12px;
  margin-top: 20px;
}

.class-dist {
  background: rgba(8, 15, 30, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.dist-rows { display: flex; flex-direction: column; gap: 10px; }

.dist-row {
  display: grid;
  grid-template-columns: 160px 1fr 50px;
  align-items: center;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.dist-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.dist-bar-fill {
  height: 100%;
  width: var(--w);
  border-radius: 4px;
}
.dist-bar-fill.no-churn { background: var(--cyan); box-shadow: 0 0 10px var(--cyan-glow); }
.dist-bar-fill.churn-bar { background: var(--pink); box-shadow: 0 0 10px rgba(247, 47, 139, 0.4); }

.dist-pct { font-weight: 700; font-family: 'JetBrains Mono', monospace; text-align: right; color: var(--text-primary); }

.model-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.model-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.model-table th, .model-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.model-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.model-table td { color: var(--text-secondary); }

.model-table tr.best-model td {
  color: var(--cyan);
  font-weight: 700;
  background: rgba(0, 245, 212, 0.06);
}

.validation-section {
  background: rgba(123, 47, 247, 0.08);
  border: 1px solid rgba(123, 47, 247, 0.25);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.validation-note {
  font-size: 0.82rem;
  color: #c4a0ff;
  margin-top: 10px;
  font-style: italic;
}

/* PFA Workflow Components */
.pfa-featured {
  border-color: rgba(123, 47, 247, 0.35);
  background: linear-gradient(135deg, rgba(16, 12, 40, 0.9), rgba(10, 24, 48, 0.9));
}

.pfa-featured:hover {
  box-shadow: 0 16px 60px rgba(123, 47, 247, 0.2);
}

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wf-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 170px;
}

.wf-step div {
  display: flex;
  flex-direction: column;
}

.wf-step strong {
  font-size: 0.88rem;
  color: var(--cyan);
}

.wf-step span {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.wf-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-dim);
  border: 1px solid rgba(123, 47, 247, 0.4);
  color: #c4a0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.wf-arrow {
  color: var(--cyan);
  font-size: 1.2rem;
}

.wf-rule {
  font-size: 0.83rem;
  color: var(--pink);
  background: rgba(247, 47, 139, 0.08);
  border: 1px dashed rgba(247, 47, 139, 0.3);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

.pfa-val {
  background: rgba(0, 245, 212, 0.05);
  border-color: rgba(0, 245, 212, 0.2);
}

.project-stack { display: flex; flex-wrap: wrap; gap: 7px; }
.project-stack span {
  font-size: 0.75rem;
  padding: 4px 11px;
  border-radius: 50px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.proj-link {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.proj-link svg { width: 16px; height: 16px; }
.proj-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.projects-cta { text-align: center; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact-section { background: var(--bg-secondary); }

.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 550px;
  margin: 0 auto;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; width: 100%; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  width: 100%;
  overflow-wrap: break-word;
}
.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-glow-cyan);
}

.contact-icon-wrap {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border-radius: 50%;
  color: var(--cyan);
  flex-shrink: 0;
}
.contact-icon-wrap svg { width: 18px; height: 18px; }

.contact-label { display: block; font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 3px; }
.contact-value { font-size: 0.9rem; color: var(--text-primary); transition: var(--transition); word-break: break-word; }
.contact-value:hover { color: var(--cyan); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

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

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-socials a:hover { color: var(--cyan); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 500px; margin: 0 auto; width: 100%; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta, .navbar > .nav-inner > .lang-toggle { display: none; }
  .menu-toggle { display: flex; }

  .section { padding: 80px 0; }

  .skills-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 20px; }
  .timeline-item {
    width: 100%;
    padding-left: 56px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-item[data-side="right"] {
    margin-left: 0;
    padding-left: 56px;
  }
  .timeline-dot,
  .timeline-item[data-side="right"] .timeline-dot { left: 10px; right: auto; }

  .projects-grid { grid-template-columns: 1fr; }
  .featured-card { grid-column: 1; }

  .contact-grid { max-width: 100%; }

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

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .about-stats { justify-content: center; }
  .stat-card { min-width: 85px; }
  .section-title { font-size: 1.8rem; }
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}