/* =====================
   Scroll progress bar
   ===================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200;
  transition: width 0.1s linear;
}

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

:root {
  --bg: #07090f;
  --bg-2: #0d1117;
  --bg-card: #111827;
  --border: rgba(255,255,255,0.07);
  --accent: #3b82f6;
  --accent-2: #6366f1;
  --accent-glow: rgba(59,130,246,0.3);
  --text: #f1f5f9;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* =====================
   Navigation
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(7,9,15,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.nav.scrolled { border-color: var(--border); }
.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-subtle);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 0.5rem 1.25rem !important;
  background: var(--accent) !important;
  color: white !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: opacity var(--transition) !important;
}
.nav-cta:hover { opacity: 0.85; }

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul { list-style: none; padding: 1rem 2rem; }
.mobile-menu li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-link { font-size: 1rem; font-weight: 500; color: var(--text-subtle); }

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 2rem 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent), transparent);
  top: -200px; left: -200px;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-2), transparent);
  bottom: -150px; right: -150px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #93c5fd;
  margin-bottom: 2rem;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

.hero-name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero-name span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-subtle);
  font-weight: 400;
  margin-bottom: 1rem;
  min-height: 1.8em;
  font-family: var(--mono);
}
.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1rem 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
}
.hero-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 0 40px rgba(59,130,246,0.5);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-subtle);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-indicator {
  width: 24px; height: 40px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* =====================
   Sections
   ===================== */
.section { padding: 100px 2rem; }
.section-dark {
  background: var(--bg-2);
  position: relative;
}
.section-dark::before,
.section-dark::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}
.section-dark::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg), transparent);
}
.section-dark::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg), transparent);
}
.container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-family: var(--mono);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* =====================
   About
   ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-desc {
  color: var(--text-subtle);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-desc strong { color: var(--text); }
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat {}
.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-card { position: relative; }
.card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card-inner:hover {
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 0 40px rgba(59,130,246,0.08);
}
.card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.card-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 0 30px var(--accent-glow);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.card-avatar img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.card-avatar.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}
.card-avatar:not(.no-photo) .avatar-initials { display: none; }
.card-avatar.no-photo img { display: none; }
.card-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.card-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.card-details { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.card-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-subtle);
}
.card-detail svg { color: var(--accent); flex-shrink: 0; }
.card-langs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
}
.lang-name { flex: 1; color: var(--text-subtle); }
.lang-level {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
}

.card-linkedin {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #93c5fd;
  transition: all var(--transition);
}
.card-linkedin:hover {
  background: rgba(59,130,246,0.2);
  border-color: var(--accent);
}

/* =====================
   Timeline
   ===================== */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 3rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:nth-child(1) { transition-delay: 0ms; }
.timeline-item:nth-child(2) { transition-delay: 80ms; }
.timeline-item:nth-child(3) { transition-delay: 160ms; }
.timeline-item:nth-child(4) { transition-delay: 240ms; }
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-2);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25), 0 0 15px rgba(59,130,246,0.4);
}
.timeline-dot-active {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25), 0 0 15px rgba(34,197,94,0.4);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25), 0 0 15px rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 0 7px rgba(34,197,94,0.1), 0 0 25px rgba(34,197,94,0.3); }
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.timeline-content:hover { border-color: rgba(59,130,246,0.3); }
.timeline-content-current {
  border-color: rgba(34,197,94,0.2);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34,197,94,0.03) 100%);
}
.timeline-content-current:hover { border-color: rgba(34,197,94,0.4); }
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.timeline-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.3rem;
}
.timeline-header em { font-style: normal; color: var(--text-muted); font-weight: 400; }
.timeline-company {
  margin: 0 0 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.company-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: #a5b4fc;
  font-weight: 600;
}
.current-label {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px;
  font-size: 0.7rem;
  color: #4ade80;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.date-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--mono);
}
.date-badge.current {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.25);
  color: #86efac;
}
.timeline-tasks {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.timeline-tasks li {
  color: var(--text-subtle);
  font-size: 0.93rem;
  padding-left: 1.25rem;
  position: relative;
}
.timeline-tasks li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.timeline-tasks strong { color: var(--text); }
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}
.timeline-tags span {
  padding: 3px 10px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #93c5fd;
  font-family: var(--mono);
}

/* =====================
   Skills
   ===================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition);
}
.skill-category:hover { border-color: rgba(59,130,246,0.3); }
.skill-cat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.skill-category h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.skill-bars { display: flex; flex-direction: column; gap: 1rem; }
.skill-bar-item {}
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.87rem;
}
.skill-pct {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.skill-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 100px;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-bar-item:nth-child(1) .skill-bar-fill { transition-delay: 0ms; }
.skill-bar-item:nth-child(2) .skill-bar-fill { transition-delay: 120ms; }
.skill-bar-item:nth-child(3) .skill-bar-fill { transition-delay: 240ms; }
.skill-bar-item:nth-child(4) .skill-bar-fill { transition-delay: 360ms; }
.skill-bar-item:nth-child(5) .skill-bar-fill { transition-delay: 480ms; }

/* =====================
   Education
   ===================== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.edu-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-4px);
}
.edu-year {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.edu-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}
.edu-card:hover .edu-icon {
  background: rgba(59,130,246,0.18);
  border-color: rgba(59,130,246,0.35);
}
.edu-card-cert .edu-icon {
  background: rgba(251,191,36,0.1);
  border-color: rgba(251,191,36,0.2);
  color: #fbbf24;
}
.edu-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.edu-card p { font-size: 0.85rem; color: var(--text-muted); }
.edu-card-cert { border-color: rgba(251,191,36,0.2); }
.edu-card-cert:hover { border-color: rgba(251,191,36,0.4); }
.cert-badge {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 2px 10px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 100px;
  font-size: 0.72rem;
  color: #fbbf24;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =====================
   Contact
   ===================== */
.contact-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.contact-desc {
  color: var(--text-subtle);
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
}
.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  transition: all var(--transition);
  text-align: center;
}
.contact-card:hover {
  transform: translateY(-4px);
}
.contact-card--phone:hover  { border-color: rgba(148,163,184,0.5); box-shadow: 0 10px 30px rgba(148,163,184,0.08); }
.contact-card--email:hover  { border-color: rgba(34,197,94,0.5);  box-shadow: 0 10px 30px rgba(34,197,94,0.08); }
.contact-card--linkedin:hover { border-color: rgba(59,130,246,0.5); box-shadow: 0 10px 30px rgba(59,130,246,0.1); }

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.contact-card--phone   .contact-icon { background: rgba(148,163,184,0.1); border: 1px solid rgba(148,163,184,0.2); color: #94a3b8; }
.contact-card--email   .contact-icon { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.2);  color: #22c55e; }
.contact-card--linkedin .contact-icon { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: #3b82f6; }
.contact-card--phone:hover   .contact-icon { background: rgba(148,163,184,0.18); }
.contact-card--email:hover   .contact-icon { background: rgba(34,197,94,0.18); }
.contact-card--linkedin:hover .contact-icon { background: rgba(59,130,246,0.18); }
.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.contact-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* =====================
   Projects
   ===================== */
.project-featured {
  max-width: 860px;
  margin: 0 auto;
}
.project-featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.project-featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.project-featured-card:hover {
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 0 40px rgba(59,130,246,0.08);
}
.project-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}
.project-oss {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 100px;
  font-size: 0.72rem;
  color: #fbbf24;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.project-features {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.project-features li {
  color: var(--text-subtle);
  font-size: 0.93rem;
  padding-left: 1.25rem;
  position: relative;
}
.project-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.project-features strong { color: var(--text); }
.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-subtle);
  transition: all var(--transition);
}
.project-link:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(59,130,246,0.08);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-4px);
}
.project-card:hover::before { opacity: 1; }
.project-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.project-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.project-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.project-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #86efac;
}
.project-desc {
  color: var(--text-subtle);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-stack span {
  padding: 3px 10px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #93c5fd;
  font-family: var(--mono);
}
.inline-code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: #93c5fd;
  background: rgba(59,130,246,0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

/* =====================
   Footer
   ===================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.footer-mono { font-family: var(--mono); color: var(--accent); }
.footer-dot { color: var(--border); }
.footer-updated { color: var(--text-muted); font-style: italic; }

/* Print header (hidden on screen) */
.print-header { display: none; }
.print-photo { display: none; }


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

/* =====================
   Responsive
   ===================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card { max-width: 400px; margin: 0 auto; }
  .contact-links { grid-template-columns: 1fr; }
}

/* =====================
   Scroll to top
   ===================== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =====================
   Print / PDF
   ===================== */
@media print {
  @page { margin: 1.2cm 1.8cm; size: A4; }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    animation: none !important;
    transition: none !important;
  }

  .scroll-progress, .scroll-top { display: none !important; }
  .section-dark::before, .section-dark::after { display: none !important; }

  /* Show print header, hide screen-only elements */
  .print-header {
    display: flex !important;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #2563eb;
  }
  .print-photo {
    display: block !important;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    border: 2px solid #2563eb;
  }
  .print-header-left { flex: 1; }
  .print-header h1 {
    font-size: 22pt;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.03em;
    margin-bottom: 0.2rem;
  }
  .print-header h1 span { color: #2563eb; }
  .print-header p { font-size: 11pt; color: #444; }
  .print-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    font-size: 8.5pt;
    color: #555;
  }

  .nav, .mobile-menu, .hero, .footer,
  .section#contact, .btn-print,
  .hero-scroll, .scroll-indicator { display: none !important; }

  body { background: #fff !important; color: #111 !important; font-size: 10pt; }

  .section, .section-dark {
    background: #fff !important;
    padding: 0.8rem 0 !important;
  }

  .section-tag { color: #2563eb !important; }

  .section-title {
    font-size: 14pt !important;
    color: #111 !important;
    margin-bottom: 0.75rem !important;
  }

  .section-header { margin-bottom: 1rem !important; }

  /* About */
  .about-grid { grid-template-columns: 1fr !important; }
  .about-card { display: none !important; }
  .about-desc { color: #333 !important; font-size: 9.5pt !important; margin-bottom: 0.4rem !important; }
  .about-desc strong { color: #111 !important; }
  .about-stats { display: none !important; }

  /* Timeline */
  .timeline::before { background: #2563eb !important; }
  .timeline-dot { background: #2563eb !important; border-color: #fff !important; box-shadow: none !important; }
  .timeline-content {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    padding: 0.6rem 0.75rem !important;
    break-inside: avoid;
  }
  .timeline-item { padding-bottom: 1rem !important; }
  .timeline-header h3 { font-size: 10.5pt !important; color: #111 !important; }
  .company-badge { background: #eff6ff !important; color: #2563eb !important; border-color: #bfdbfe !important; }
  .date-badge { background: #f9fafb !important; color: #555 !important; border-color: #e5e7eb !important; }
  .date-badge.current { background: #f0fdf4 !important; color: #16a34a !important; border-color: #bbf7d0 !important; }
  .timeline-tasks li { color: #333 !important; font-size: 9pt !important; }
  .timeline-tasks li::before { color: #2563eb !important; }
  .timeline-tasks strong { color: #111 !important; }
  .timeline-tags span {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
    font-size: 7pt !important;
  }

  /* Skills */
  .skills-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.6rem !important; }
  .skill-category {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    padding: 0.6rem 0.75rem !important;
    break-inside: avoid;
  }
  .skill-cat-icon { background: #eff6ff !important; border-color: #bfdbfe !important; color: #2563eb !important; width: 32px !important; height: 32px !important; }
  .skill-category h3 { font-size: 9.5pt !important; color: #111 !important; margin-bottom: 0.75rem !important; }
  .skill-bar-header span { color: #111 !important; font-size: 8.5pt !important; }
  .skill-pct { color: #555 !important; }
  .skill-bar-track { background: #e5e7eb !important; }
  .skill-bar-fill { background: linear-gradient(90deg, #2563eb, #6366f1) !important; }

  /* Education */
  .edu-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 0.5rem !important; }
  .edu-card {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    padding: 0.6rem 0.75rem !important;
    break-inside: avoid;
  }
  .edu-card h3 { font-size: 8.5pt !important; color: #111 !important; }
  .edu-card p { font-size: 8pt !important; color: #555 !important; }
  .edu-year { color: #2563eb !important; font-size: 7.5pt !important; }
  .edu-icon { font-size: 1.2rem !important; margin-bottom: 0.4rem !important; }
  .edu-card-cert { border-color: #fde68a !important; }
  .cert-badge { background: #fffbeb !important; color: #d97706 !important; border-color: #fde68a !important; }

  /* Projects */
  .project-featured-card {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    padding: 0.75rem !important;
    break-inside: avoid;
  }
  .project-featured-card::before { display: none !important; }
  .project-header h3 { font-size: 11pt !important; color: #111 !important; }
  .project-desc { color: #333 !important; font-size: 9pt !important; }
  .project-desc strong { color: #111 !important; }
  .project-features li { color: #333 !important; font-size: 9pt !important; }
  .project-features li::before { color: #2563eb !important; }
  .project-features strong { color: #111 !important; }
  .project-oss { background: #fffbeb !important; color: #d97706 !important; border-color: #fde68a !important; }
  .project-links { display: none !important; }

  /* Reveal — tout afficher */
  .reveal { opacity: 1 !important; transform: none !important; }

  /* Page breaks */
  #skills { page-break-before: auto; }
  #education { page-break-before: auto; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 70px 1.25rem; }
  .edu-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.25rem; }
  .timeline-item { padding-left: 1.75rem; }
  .timeline-dot { left: -1.75rem; }
  .about-stats { gap: 1.5rem; }
  .contact-links { grid-template-columns: 1fr; }
  .contact-card { width: 100%; }
  .hero { padding: 100px 1.25rem 60px; }
  .hero-scroll { display: none; }
  .hero-stats { padding: 0.75rem 1rem; gap: 0; }
  .hero-stat { padding: 0.5rem 1rem; width: 100%; }
  .hero-stat-divider { width: 100%; height: 1px; }
  .timeline-content { padding: 1.25rem; }
}
