/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors - AI/Tech Section (Blue/Purple) */
  --ai-primary: #4A148C;
  --ai-secondary: #1A237E;
  --ai-accent: #7C4DFF;
  --ai-light: #E1BEE7;

  /* Colors - Projects Section (Purple/Black) */
  --proj-primary: #1A1A2E;
  --proj-secondary: #16213E;
  --proj-accent: #6A4C93;
  --proj-light: #9A8C98;

  /* Colors - Agro Section (Green/Yellow) */
  --agro-primary: #2E7D32;
  --agro-secondary: #558B2F;
  --agro-accent: #8BC34A;
  --agro-light: #C8E6C9;
  --agro-yellow: #FFD54F;

  /* Neutral Colors */
  --dark-bg: #0A0A0B;
  --dark-surface: #1A1A1D;
  --dark-surface-2: #2A2A2D;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #808080;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-ai: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
  --gradient-proj: linear-gradient(135deg, var(--proj-primary) 0%, var(--proj-secondary) 100%);
  --gradient-agro: linear-gradient(135deg, var(--agro-primary) 0%, var(--agro-secondary) 100%);

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 16px 64px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== SECTION BADGES (Top Left Corner) ===== */
.section-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: linear-gradient(135deg, #FFD54F, #7C4DFF, #8BC34A);
  background-size: 200% 200%;
  padding: 12px 24px;
  border-radius: 20px;
  min-width: 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  color: #ffffff;
  font-weight: 800;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(124, 77, 255, 0.4);
  animation: badgePulse 3s ease-in-out infinite, gradientShift 8s ease infinite;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(124, 77, 255, 0.6);
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Badge Accueil spécifique - plus bas pour être visible sous la navbar */
.hero-section .section-badge {
  top: 90px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Cursor custom pour une touche pro */
* {
  cursor: default;
}

a,
button,
.nav-link,
.project-btn,
.skill-details-btn,
.expertise-details-btn {
  cursor: pointer;
}

/* Selection styling */
::selection {
  background: rgba(124, 77, 255, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(124, 77, 255, 0.3);
  color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
  background: rgba(10, 10, 11, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: #7C4DFF;
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition-fast);
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.75rem;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all 0.25s ease;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.lang-btn.active {
  color: #FFD54F;
  background: rgba(255, 213, 79, 0.15);
  border-color: rgba(255, 213, 79, 0.3);
}

.lang-sep {
  color: var(--text-muted);
  font-size: 1rem;
  user-select: none;
}


.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  padding: 120px 0 80px 0;
  /* Padding top pour la navbar, padding bottom pour l'espacement */
  background:
    radial-gradient(circle at 20% 30%, #1a1a2e 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, #16213e 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, #0f3460 0%, transparent 70%),
    radial-gradient(circle at 30% 80%, #533483 0%, transparent 50%),
    linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(83, 52, 131, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(15, 52, 96, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(26, 26, 46, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(22, 33, 62, 0.3) 0%, transparent 50%),
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  animation: heroFloat 25s ease-in-out infinite;
}

/* Motifs de fond sophistiqués */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(45deg,
      rgba(83, 52, 131, 0.05) 0px,
      rgba(83, 52, 131, 0.05) 2px,
      transparent 2px,
      transparent 30px),
    repeating-linear-gradient(-45deg,
      rgba(15, 52, 96, 0.03) 0px,
      rgba(15, 52, 96, 0.03) 1px,
      transparent 1px,
      transparent 25px),
    radial-gradient(circle at 25% 25%, rgba(255, 213, 79, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(139, 195, 74, 0.06) 0%, transparent 50%);
  z-index: 2;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(83, 52, 131, 0.02) 0deg,
      transparent 10deg,
      rgba(15, 52, 96, 0.02) 20deg,
      transparent 30deg,
      rgba(255, 213, 79, 0.02) 40deg,
      transparent 50deg,
      rgba(139, 195, 74, 0.02) 60deg,
      transparent 70deg,
      rgba(83, 52, 131, 0.02) 80deg,
      transparent 90deg);
  z-index: 2;
  animation: patternFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {

  0%,
  100% {
    background:
      radial-gradient(circle at 20% 80%, rgba(83, 52, 131, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(15, 52, 96, 0.2) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(26, 26, 46, 0.4) 0%, transparent 50%);
  }

  50% {
    background:
      radial-gradient(circle at 80% 20%, rgba(83, 52, 131, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 20% 80%, rgba(15, 52, 96, 0.2) 0%, transparent 50%),
      radial-gradient(circle at 60% 60%, rgba(26, 26, 46, 0.4) 0%, transparent 50%);
  }
}

@keyframes patternFloat {

  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0px);
  }

  50% {
    opacity: 0.6;
    transform: translateY(-10px);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  /* Give slightly more room to the text column so the description card can be wider */
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: center;
  /* Centrer verticalement les éléments */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  /* small nudge to the right so the profile appears better centered relative to the title */
  margin-left: 8px;
}

.profile-image {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  /* nudge the focal point so the head is better centered in the circle */
  object-position: 50% 42%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.45s cubic-bezier(.2, .9, .3, 1);
  position: relative;
  z-index: 4;
}

.profile-image:hover {
  transform: scale(1.05);
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(83, 52, 131, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 2;
  animation: pulse 5s ease-in-out infinite;
}

/* Nouvelle structure hero */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  text-align: center;
}

/* Motifs décoratifs autour de la photo */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image::before {
  /* Disabled rotating color ring per request: keep pseudo-element but hide it so markup remains stable */
  content: '';
  display: none;
}


@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-text {
  /* Allow a wider text column so the "A propos de moi" card can be larger */
  max-width: 980px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* align badge and content to the left */
  width: 100%;
}

/* ===== ABOUT ROW (description + stats) ===== */
.about-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  text-align: left;
  width: 100%;
  letter-spacing: -0.02em;
}

.about-row {
  display: flex;
  gap: 2rem;
  width: 100%;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.about-row .hero-description-card {
  flex: 1 1 auto;
  min-width: 0;
  /* permet au contenu de rétrécir si nécessaire */
}

.about-row .hero-stats-grid {
  flex: 0 0 auto;
  /* ne rétrécit ni ne grandit */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

/* Make the three stat cards square and identical */
.hero-stats-grid .stat-card {
  width: 110px;
  height: 110px;
  /* carrés parfaits */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: all 0.3s ease;
}

.hero-stats-grid .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-stats-grid .stat-card .stat-icon {
  font-size: 1.75rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 0.15rem;
  flex-shrink: 0;
}

.hero-stats-grid .stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.1rem;
}

.hero-stats-grid .stat-number {
  font-weight: 700;
  color: #FFD54F;
  font-size: 1rem;
  line-height: 1.2;
}

.hero-stats-grid .stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.2;
  max-width: 90px;
}

.hero-stats-grid .stat-icon {
  font-size: 1.75rem;
}

/* Ensure the three stat cards appear with equal sizing in larger screens */
@media (min-width: 900px) {
  .hero-stats-grid {
    justify-content: center;
  }

  .hero-stats-grid .stat-card {
    width: 110px;
    height: 110px;
  }
}

.hero-badge {
  /* ensure badge is centered above the text block */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 1.5rem 0;
  width: 100%;
  align-self: center;
}

.title-line {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 0.8s ease forwards;
}

.title-line:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 0.65rem 1.2rem;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.badge-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  line-height: 1.3;
}

.hero-description-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  /* add a subtle layered background to make the card pop */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
  margin-bottom: 2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: visible;
  /* don't clip children when expanding */
  box-shadow: 0 12px 40px rgba(4, 8, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 2.5rem;
  /* make room for the left accent bar */
  /* Permet au texte de définir la largeur naturellement */
  width: fit-content;
  min-width: 400px;
  max-width: 100%;
}

.hero-description-card {
  /* cap the width so the card doesn't become too wide on very large screens */
  width: fit-content;
  min-width: 400px;
  max-width: 100%;
}

.hero-description-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(83, 52, 131, 0.1) 0%, transparent 50%);
  z-index: -1;
}

/* Decorative left accent bar */
.hero-description-card::after {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
  width: 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 213, 79, 0.9), rgba(139, 195, 74, 0.9));
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero-description-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.02) 100%);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.description-header {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  /* pill style to highlight the small header */
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(4, 8, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 3;
}

.description-icon {
  font-size: 1.35rem;
}

.description-title {
  /* Titre plus visible pour la section 'A propos de moi' */
  font-size: 1.45rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.4rem;
}

.hero-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  /* meilleur espacement vertical pour retours à la ligne */
  line-height: 1.8;
  margin: 0;
}

.accent-text {
  color: #FFD54F;
  font-weight: 600;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card:nth-child(1)::before {
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.15) 0%, transparent 50%);
}

.stat-card:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(83, 52, 131, 0.15) 0%, transparent 50%);
}

.stat-card:nth-child(3)::before {
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, transparent 50%);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFD54F;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ===== AI SKILLS SECTION ===== */
.ai-skills-section {
  padding: 6rem 0;
  background:
    radial-gradient(circle at 30% 20%, #4A148C 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, #1A237E 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, #7C4DFF 0%, transparent 70%),
    linear-gradient(135deg, #4A148C 0%, #1A237E 50%, #7C4DFF 100%);
  position: relative;
}

.ai-skills-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px),
    repeating-linear-gradient(-45deg,
      transparent,
      transparent 2px,
      rgba(124, 77, 255, 0.1) 2px,
      rgba(124, 77, 255, 0.1) 4px);
  z-index: 1;
}

.ai-skills-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(225, 190, 231, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(124, 77, 255, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

/* Responsive: stack hero content on narrow viewports */
@media (max-width: 800px) {
  .hero-section {
    min-height: auto;
    padding: 100px 0 60px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }

  .hero-left {
    align-items: center;
  }

  .hero-text {
    align-items: center;
    max-width: 100%;
    padding: 0 1rem;
  }

  .hero-badge {
    align-self: center;
    margin-bottom: 1rem;
  }

  .badge-text {
    font-size: 0.85rem;
    text-align: center;
  }

  .about-title {
    text-align: center;
  }

  .profile-image {
    width: 180px;
    height: 180px;
  }

  .image-glow {
    width: 220px;
    height: 220px;
  }

  /* Stack about row vertically and make stat cards share space */
  .about-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }

  .about-row .hero-description-card {
    width: 100%;
    min-width: auto;
  }

  .about-row .hero-stats-grid {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  .about-row .hero-stats-grid .stat-card {
    width: 95px;
    height: 95px;
    min-width: 90px;
    flex: 0 0 95px;
  }

  /* Make CV buttons stretch on small screens */
  .cv-downloads .cv-buttons {
    width: 100%;
    align-items: center;
  }

  .cv-btn {
    width: 100%;
    justify-content: flex-start;
  }
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ===== NEW CAROUSEL SKILLS DESIGN ===== */
.skill-category-section {
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.skill-category-section .category-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--ai-light);
  text-align: center;
}

.skills-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  /* Masquer les cartes en dehors */
  padding: 20px 30px;
  /* Espace pour les boutons et le scale des images */
}

.skills-carousel {
  display: flex;
  /* Utiliser flexbox au lieu de grid */
  gap: 2rem;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.skill-tech-card {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(16, 16, 30, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: visible;
  min-height: 260px;
  width: calc((100% - 4rem) / 3);
  /* 3 cartes avec gap de 2rem */
  flex-shrink: 0;
  /* Empêcher le rétrécissement */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.skill-tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.skill-tech-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(124, 77, 255, 0.5);
  box-shadow: 0 20px 60px rgba(124, 77, 255, 0.3);
}

.skill-tech-card:hover::before {
  opacity: 1;
}

.skill-tech-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(124, 77, 255, 0.3));
  position: relative;
  z-index: 1;
}

.skill-tech-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.skill-tech-mastery {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.skill-details-btn {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.2) 0%, rgba(124, 77, 255, 0.1) 100%);
  color: var(--ai-light);
  border: 1px solid rgba(124, 77, 255, 0.3);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.skill-details-btn:hover {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.4) 0%, rgba(124, 77, 255, 0.2) 100%);
  border-color: rgba(124, 77, 255, 0.6);
  transform: translateY(-2px);
}

.carousel-nav-btn {
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid rgba(124, 77, 255, 0.3);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: absolute;
  z-index: 10;
}

.carousel-nav-btn.prev {
  left: 0;
}

.carousel-nav-btn.next {
  right: 0;
}

.carousel-nav-btn:hover {
  background: rgba(124, 77, 255, 0.3);
  border-color: rgba(124, 77, 255, 0.6);
  transform: scale(1.1);
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: scale(1);
}

.carousel-nav-btn.btn-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: scale(1);
}

.carousel-nav-btn.btn-disabled:hover {
  background: rgba(124, 77, 255, 0.1);
  border-color: rgba(124, 77, 255, 0.3);
  transform: scale(1);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-indicator.active {
  background: var(--ai-accent);
  width: 24px;
  border-radius: 4px;
}

/* Modal détaillé */
.skill-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 2rem;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.skill-modal-content {
  background: linear-gradient(135deg, rgba(22, 33, 62, 0.98) 0%, rgba(16, 16, 30, 0.98) 100%);
  border: 1px solid rgba(124, 77, 255, 0.3);
  border-radius: 24px;
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalSlideIn {
  to {
    transform: scale(1);
  }
}

.skill-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.skill-modal-close:hover {
  background: rgba(255, 77, 77, 0.3);
  border-color: rgba(255, 77, 77, 0.5);
  transform: rotate(90deg);
}

.skill-modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-modal-icon {
  font-size: 4rem;
  filter: drop-shadow(0 4px 12px rgba(124, 77, 255, 0.4));
}

.skill-modal-title-group h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-modal-title-group p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.skill-modal-section {
  margin-bottom: 2rem;
}

.skill-modal-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ai-light);
  margin-bottom: 1rem;
}

.skill-modal-section p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.skill-progress-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1rem;
  position: relative;
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ai-accent), var(--ai-light));
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(124, 77, 255, 0.5);
}

.skill-projects-list {
  list-style: none;
  padding: 0;
}

.skill-projects-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.skill-projects-list li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ai-accent);
  font-size: 1.5rem;
  line-height: 1;
}

/* Responsive pour les carrousels */
@media (max-width: 1200px) {
  .skill-tech-card {
    min-width: calc(50% - 1rem);
    /* 2 cartes visibles sur tablette */
  }

  .skills-carousel-wrapper {
    padding: 0 55px;
  }
}

@media (max-width: 900px) {
  .skill-tech-card {
    min-width: calc(50% - 1rem);
    /* 2 cartes visibles */
  }

  .skill-tech-card {
    min-height: 240px;
  }

  .skills-carousel-wrapper {
    padding: 0 50px;
  }

  .carousel-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }
}

@media (max-width: 600px) {
  .skill-tech-card {
    min-width: 100%;
    /* 1 carte visible sur mobile */
  }

  .skills-carousel-wrapper {
    padding: 0 50px;
  }

  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .skill-modal-content {
    padding: 2rem;
  }
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  padding: 6rem 0 4rem 0;
  background:
    radial-gradient(circle at 25% 25%, #1A1A2E 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, #16213E 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, #6A4C93 0%, transparent 70%),
    linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #6A4C93 100%);
  position: relative;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      transparent 0deg,
      rgba(106, 76, 147, 0.05) 10deg,
      transparent 20deg),
    radial-gradient(circle at 20% 20%, rgba(154, 140, 152, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(106, 76, 147, 0.08) 0%, transparent 50%);
  z-index: 1;
}

.projects-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(106, 76, 147, 0.03) 49%, rgba(106, 76, 147, 0.03) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(154, 140, 152, 0.02) 49%, rgba(154, 140, 152, 0.02) 51%, transparent 52%);
  z-index: 1;
}

.projects-carousel-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 60px;
}

.projects-carousel-container {
  position: relative;
  width: 100%;
  overflow: visible;
  border-radius: 24px;
  flex: 1;
}

.projects-carousel-container.animating {
  transform: scale(0.98);
}

.project-card {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: none;
}

.project-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card.prev {
  display: none;
}

.project-card.slide-out-left,
.project-card.slide-out-right,
.project-card.slide-in-left,
.project-card.slide-in-right {
  display: none;
}

.project-image {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.9) 50%, rgba(16, 16, 30, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
  opacity: 0.7;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.project-content {
  padding: 2.5rem;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.7) 0%, rgba(22, 33, 62, 0.9) 100%);
}

.project-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-description {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.tech-tag {
  background: rgba(106, 76, 147, 0.6);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(154, 140, 152, 0.5);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(106, 76, 147, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 76, 147, 0.4);
}

.project-btn {
  background: linear-gradient(135deg, #7C4DFF 0%, #9A8C98 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.project-btn:hover {
  background: linear-gradient(135deg, #9A67FF 0%, #B5A8AA 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 77, 255, 0.4);
}

.btn-icon {
  font-size: 1.2rem;
}

.project-nav-btn {
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.project-nav-btn:hover:not(:disabled) {
  background: rgba(124, 77, 255, 0.8);
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(124, 77, 255, 0.5);
}

.project-nav-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.project-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.project-carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  z-index: 2;
  position: relative;
}

.project-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.project-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: rgba(106, 76, 147, 0.5);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease;
}

.project-indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.project-indicator:active::after {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0;
}

.project-indicator.active {
  background: linear-gradient(135deg, rgba(106, 76, 147, 1) 0%, rgba(154, 140, 152, 1) 100%);
  width: 30px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.5);
  animation: indicatorPulse 0.5s ease;
}

@keyframes indicatorPulse {
  0% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(106, 76, 147, 0.7);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(106, 76, 147, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 76, 147, 0);
  }
}

/* Project Modal */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  padding: 2rem;
}

.project-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.project-modal-content {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.9);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.project-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

#projectModalBody {
  padding: 3rem;
}

.modal-project-header {
  margin-bottom: 2rem;
}

.modal-project-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-project-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.modal-project-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.modal-section {
  margin-bottom: 2.5rem;
}

.modal-section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section-content {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.modal-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.modal-achievements-list {
  list-style: none;
  padding: 0;
}

.modal-achievements-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.modal-achievements-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: rgba(106, 76, 147, 1);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ===== PROJECT MODAL LINKS ===== */
.modal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.project-link-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(106, 76, 147, 0.2);
  border: 2px solid rgba(106, 76, 147, 0.4);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.project-link-btn:hover {
  background: rgba(106, 76, 147, 0.4);
  border-color: rgba(106, 76, 147, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(106, 76, 147, 0.3);
}

.project-link-btn.demo-link {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.4);
}

.project-link-btn.demo-link:hover {
  background: rgba(255, 107, 107, 0.4);
  border-color: rgba(255, 107, 107, 0.8);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.link-icon {
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.link-text {
  font-size: 1rem;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ===== AGRO SKILLS SECTION ===== */
.agro-skills-section {
  padding: 6rem 0;
  background:
    radial-gradient(circle at 20% 30%, #2E7D32 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, #558B2F 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, #8BC34A 0%, transparent 70%),
    radial-gradient(circle at 30% 80%, #FFD54F 0%, transparent 40%),
    linear-gradient(135deg, #2E7D32 0%, #558B2F 50%, #8BC34A 100%);
  position: relative;
  overflow: hidden;
}

.agro-skills-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(200, 230, 201, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(255, 213, 79, 0.08) 0%, transparent 50%),
    linear-gradient(45deg, transparent 30%, rgba(139, 195, 74, 0.05) 50%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.agro-skills-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-radial-gradient(circle at 25% 25%,
      transparent 0px,
      transparent 40px,
      rgba(139, 195, 74, 0.03) 40px,
      rgba(139, 195, 74, 0.03) 42px),
    repeating-radial-gradient(circle at 75% 75%,
      transparent 0px,
      transparent 60px,
      rgba(255, 213, 79, 0.04) 60px,
      rgba(255, 213, 79, 0.04) 62px);
  z-index: 1;
  pointer-events: none;
}

.agro-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.agro-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
}

.leaf {
  position: absolute;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.leaf-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.leaf-2 {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.leaf-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}

.leaf-4 {
  bottom: 20%;
  right: 25%;
  animation-delay: 3s;
}

.leaf-5 {
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}

.leaf-6 {
  top: 70%;
  left: 70%;
  animation-delay: 5s;
}

.leaf-7 {
  top: 15%;
  right: 40%;
  animation-delay: 6s;
}

.leaf-8 {
  bottom: 10%;
  left: 60%;
  animation-delay: 7s;
}

/* Nouvelle grille d'expertise */
.agro-expertise-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.agro-expertise-card {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.15) 0%, rgba(85, 139, 47, 0.1) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(200, 230, 201, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.agro-expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.agro-expertise-card:hover {
  transform: translateY(-10px);
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.25) 0%, rgba(85, 139, 47, 0.15) 100%);
  box-shadow: 0 20px 60px rgba(139, 195, 74, 0.3);
  border-color: rgba(200, 230, 201, 0.5);
}

.agro-expertise-card:hover::before {
  opacity: 1;
}

.expertise-icon-wrapper {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.4) 0%, rgba(200, 230, 201, 0.3) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(200, 230, 201, 0.4);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.2);
}

.agro-expertise-card:hover .expertise-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.6) 0%, rgba(200, 230, 201, 0.4) 100%);
  border-color: rgba(255, 213, 79, 0.6);
  box-shadow: 0 8px 20px rgba(139, 195, 74, 0.4);
}

.expertise-icon {
  font-size: 3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.expertise-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.expertise-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.expertise-mastery {
  margin-bottom: 1.5rem;
}

.mastery-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.mastery-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.mastery-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(139, 195, 74, 1) 0%, rgba(255, 213, 79, 1) 100%);
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
  box-shadow: 0 0 10px rgba(139, 195, 74, 0.5);
}

.agro-expertise-card:hover .mastery-fill {
  box-shadow: 0 0 20px rgba(139, 195, 74, 0.8);
}

.mastery-percent {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.expertise-details-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.3) 0%, rgba(200, 230, 201, 0.2) 100%);
  border: 1px solid rgba(200, 230, 201, 0.4);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 10;
  margin-top: 1.5rem;
}

.expertise-details-btn:hover {
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.5) 0%, rgba(200, 230, 201, 0.3) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 195, 74, 0.3);
}

.expertise-details-btn svg {
  transition: transform 0.3s ease;
}

.expertise-details-btn:hover svg {
  transform: translateX(4px);
}

/* ===== KAGGLE HIGHLIGHT CARD ===== */
.kaggle-highlight-card {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(46, 125, 50, 0.3) 100%);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(255, 213, 79, 0.4);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kaggle-highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 213, 79, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.kaggle-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.kaggle-medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
  text-align: center;
}

.medal-icon {
  font-size: 4rem;
  filter: drop-shadow(0 8px 20px rgba(255, 213, 79, 0.5));
  animation: medalPulse 3s ease-in-out infinite;
}

@keyframes medalPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 20px rgba(255, 213, 79, 0.5));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 30px rgba(255, 213, 79, 0.7));
  }
}

.medal-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 213, 79, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kaggle-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.kaggle-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.kaggle-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.kaggle-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.kaggle-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.kaggle-stat .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(139, 195, 74, 1);
}

.kaggle-stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.kaggle-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.kaggle-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.2) 0%, rgba(255, 213, 79, 0.1) 100%);
  border: 1px solid rgba(255, 213, 79, 0.4);
  border-radius: 12px;
  color: rgba(255, 213, 79, 1);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.kaggle-link-btn:hover {
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.4) 0%, rgba(255, 213, 79, 0.2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 213, 79, 0.3);
}

.kaggle-link-btn.github {
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.2) 0%, rgba(139, 195, 74, 0.1) 100%);
  border-color: rgba(139, 195, 74, 0.4);
  color: rgba(139, 195, 74, 1);
}

.kaggle-link-btn.github:hover {
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.4) 0%, rgba(139, 195, 74, 0.2) 100%);
  box-shadow: 0 8px 20px rgba(139, 195, 74, 0.3);
}

.kaggle-link-btn .link-icon {
  font-size: 1.2rem;
}

/* 3-column expertise grid */
.agro-expertise-grid.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .agro-expertise-grid.three-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .kaggle-highlight-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .kaggle-medal {
    min-width: auto;
  }

  .kaggle-stats {
    justify-content: center;
  }

  .kaggle-links {
    justify-content: center;
  }

  .agro-expertise-grid.three-cols {
    grid-template-columns: 1fr;
  }
}

/* Formation Section */
.agro-formation-section {
  position: relative;
  z-index: 3;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.5) 100%);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  padding: 3rem;
  border: 1px solid rgba(200, 230, 201, 0.2);
  margin-top: 2rem;
}

.formation-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.formation-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.formation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.formation-card {
  background: rgba(139, 195, 74, 0.1);
  border: 1px solid rgba(200, 230, 201, 0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.formation-card:hover {
  background: rgba(139, 195, 74, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 195, 74, 0.2);
}

.formation-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.formation-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 213, 79, 1);
  margin-bottom: 0.5rem;
}

.formation-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

/* Agro Modal */
.agro-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  padding: 2rem;
}

.agro-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.agro-modal-content {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.95) 0%, rgba(85, 139, 47, 0.95) 100%);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(200, 230, 201, 0.3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.9);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.agro-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.agro-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

#agroModalBody {
  padding: 3rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.agro-modal-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.agro-modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(76, 175, 80, 0.4));
}

.agro-modal-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.agro-modal-level {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.3) 0%, rgba(255, 213, 79, 0.1) 100%);
  border: 1px solid rgba(255, 213, 79, 0.5);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  color: rgba(255, 213, 79, 1);
  font-weight: 600;
  font-size: 1.1rem;
}

.agro-modal-section {
  margin-bottom: 2.5rem;
}

.agro-modal-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.agro-modal-section-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 1.05rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.agro-modal-list {
  list-style: none;
  padding: 0;
}

.agro-modal-list li {
  padding: 1rem 0;
  padding-left: 2.5rem;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.agro-modal-list li:last-child {
  border-bottom: none;
}

.agro-modal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: rgba(255, 213, 79, 1);
  font-weight: bold;
  font-size: 1.5rem;
}

.agro-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.agro-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
}

.agro-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-medium);
}

.agro-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.agro-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--agro-light);
}

.agro-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ===== MONTH SELECTOR FOR LEARNING SECTION ===== */
.learning-month-selector-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0 3rem 0;
  position: relative;
  z-index: 2;
}

.learning-month-selector {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(75, 0, 130, 0.1) 100%);
  padding: 1rem 2rem;
  border-radius: 15px;
  border: 1px solid rgba(138, 43, 226, 0.25);
  backdrop-filter: blur(10px);
}

.learning-month-nav-btn {
  background: none;
  border: none;
  color: rgba(138, 43, 226, 0.9);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.learning-month-nav-btn:hover {
  background: rgba(138, 43, 226, 0.2);
  transform: scale(1.15);
  color: rgba(138, 43, 226, 1);
}

.learning-month-display {
  min-width: 200px;
  text-align: center;
}

.learning-current-month {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.5px;
}

.learning-content-wrapper {
  position: relative;
  min-height: auto;
}

.learning-month-panel {
  animation: fadeInLearning 0.4s ease-in-out;
  position: relative;
  z-index: 2;
}

@keyframes fadeInLearning {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== LEARNING SECTION ===== */
/* ===== LEARNING SECTION ===== */
.learning-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0a0015 0%, #1a0b2e 50%, #16003b 100%);
  position: relative;
  overflow: hidden;
}

.learning-background-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  z-index: 1;
}

.learning-section .container {
  position: relative;
  z-index: 2;
}

.learning-header-special {
  text-align: center;
  margin-bottom: 4rem;
}

.learning-header-special .section-title {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.learning-header-special .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

/* Learning Grid - 2x2 layout */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 3;
}

.learning-topic-card {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(75, 0, 130, 0.1) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(167, 139, 250, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.learning-topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.learning-topic-card:hover {
  transform: translateY(-10px);
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.25) 0%, rgba(75, 0, 130, 0.15) 100%);
  box-shadow: 0 20px 60px rgba(138, 43, 226, 0.4);
  border-color: rgba(167, 139, 250, 0.6);
}

.learning-topic-card:hover::before {
  opacity: 1;
}

.topic-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(167, 139, 250, 0.4);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.learning-topic-card:hover .topic-icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.5) 0%, rgba(236, 72, 153, 0.3) 100%);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.5);
}

.topic-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 8px rgba(167, 139, 250, 0.5));
}

.topic-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.topic-description {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.topic-status {
  display: inline-block;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #a78bfa;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

/* Learning Resources Section */
.learning-resources {
  background: linear-gradient(135deg, rgba(30, 20, 50, 0.6) 0%, rgba(20, 10, 40, 0.4) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(167, 139, 250, 0.2);
  position: relative;
  z-index: 3;
}

.resources-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resources-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(167, 139, 250, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  transition: all 0.3s ease;
}

.resource-item:hover {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateX(10px);
}

.resource-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.resource-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

.learning-philosophy {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(236, 72, 153, 0.08) 100%);
  border-left: 4px solid #a78bfa;
  padding: 1.5rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 0.95rem;
}

.learning-philosophy strong {
  color: #a78bfa;
  font-weight: 700;
}

/* ===== NEW DYNAMIC LEARNING SECTION STYLES ===== */
/* Current Focus Banner */
.current-focus-banner {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15) 0%, rgba(138, 43, 226, 0.1) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(167, 139, 250, 0.3);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.current-focus-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #a78bfa 0%, #ec4899 50%, #8b5cf6 100%);
}

.focus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.focus-badge {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.last-update {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-style: italic;
}

.focus-title {
  font-size: 2rem;
  font-weight: 800;
  color: #a78bfa;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.focus-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.focus-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar {
  flex: 1;
  height: 12px;
  background: rgba(167, 139, 250, 0.2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa 0%, #ec4899 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.progress-text {
  color: #a78bfa;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Learning Activities */
.learning-activities {
  margin-bottom: 3rem;
}

.activities-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.activity-card {
  background: linear-gradient(135deg, rgba(30, 20, 50, 0.6) 0%, rgba(20, 10, 40, 0.4) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.activity-card:hover {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 10px 40px rgba(138, 43, 226, 0.3);
  transform: translateY(-5px);
}

.activity-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(167, 139, 250, 0.5));
}

.activity-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #a78bfa;
  margin-bottom: 1.5rem;
}

.activity-content {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* Paper Items */
.paper-item {
  padding: 1rem;
  background: rgba(167, 139, 250, 0.05);
  border-radius: 12px;
  margin-bottom: 1rem;
  border-left: 3px solid rgba(167, 139, 250, 0.3);
}

.paper-item:last-child {
  margin-bottom: 0;
}

.paper-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.paper-status.reading {
  background: rgba(167, 139, 250, 0.3);
  color: #a78bfa;
}

.paper-status.planned {
  background: rgba(236, 72, 153, 0.2);
  color: #ec4899;
}

.paper-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.paper-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Learning List */
.learning-list {
  list-style: none;
  padding: 0;
}

.learning-list li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.learning-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #a78bfa;
  font-weight: bold;
}

/* Event Items */
.event-item {
  padding: 1rem;
  background: rgba(167, 139, 250, 0.05);
  border-radius: 12px;
  border-left: 3px solid rgba(167, 139, 250, 0.3);
  transition: all 0.3s ease;
}

.event-item.clickable {
  cursor: pointer;
  position: relative;
}

.event-item.clickable:hover {
  background: rgba(167, 139, 250, 0.12);
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.2);
}

.event-item.recent {
  border-left-color: #ec4899;
  background: rgba(236, 72, 153, 0.08);
}

.event-item.recent.clickable:hover {
  background: rgba(236, 72, 153, 0.15);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.event-badge {
  background: linear-gradient(135deg, #ec4899 0%, #a78bfa 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.event-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
}

.event-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.event-cta {
  display: inline-block;
  margin-top: 0.5rem;
  color: #a78bfa;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.event-item.clickable:hover .event-cta {
  color: #ec4899;
  transform: translateX(5px);
}

/* Conference Modal */
.conference-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  padding: 2rem;
}

.conference-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.conference-modal-content {
  background: linear-gradient(135deg, rgba(30, 20, 50, 0.95) 0%, rgba(20, 10, 40, 0.95) 100%);
  backdrop-filter: blur(30px);
  border-radius: 24px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.9);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.conference-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.conference-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.conference-modal-body {
  padding: 3rem;
  text-align: center;
}

.conference-modal-body h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.conference-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(167, 139, 250, 0.2);
  transition: transform 0.3s ease;
}

.conference-image:hover {
  transform: scale(1.02);
}

/* New Resources Section */
.learning-resources-new {
  background: linear-gradient(135deg, rgba(30, 20, 50, 0.6) 0%, rgba(20, 10, 40, 0.4) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(167, 139, 250, 0.2);
  margin-bottom: 2rem;
}

.resources-title-new {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.resource-category h4 {
  color: #a78bfa;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.resource-category ul {
  list-style: none;
  padding: 0;
}

.resource-category ul li {
  padding: 0.6rem 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.resource-category ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ec4899;
  font-size: 1.2rem;
}

.resource-category ul li strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

/* New Philosophy Section */
.learning-philosophy-new {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-left: 4px solid #a78bfa;
}

.philosophy-icon {
  font-size: 3rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(167, 139, 250, 0.5));
}

.philosophy-content h4 {
  color: #a78bfa;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.philosophy-content p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 900px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .focus-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .current-focus-banner {
    padding: 1.5rem;
  }

  .focus-title {
    font-size: 1.5rem;
  }

  .activity-card {
    padding: 1.5rem;
  }

  .learning-philosophy-new {
    flex-direction: column;
    padding: 1.5rem;
  }
}

/* ===== CONTACT & FOOTER ===== */
.contact-footer {
  padding: 6rem 0 2rem;
  background: var(--dark-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* allow absolute child positioning relative to footer */
.contact-footer {
  position: relative;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Make the contact info area look like a prominent card */
.contact-info {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  padding: 1.75rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 40px rgba(3, 7, 20, 0.55);
  position: relative;
  overflow: hidden;
}

/* Decorative top-left badge to call attention */

/* place the Contact badge in the footer corner (outside the card) */
.contact-info::before {
  display: none;
}

.contact-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-email {
  margin-top: 0.5rem;
}

.email-link {
  display: inline-block;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.12), rgba(255, 213, 79, 0.12));
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ai-accent);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.email-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(4, 8, 20, 0.6);
  color: var(--ai-light);
}

/* Small decorative mail icon on the right of the email */
.email-link::after {
  content: ' ✉️';
  margin-left: 0.5rem;
}

.email-link {
  color: var(--ai-accent);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.email-link:hover {
  color: var(--ai-light);
}

.cv-downloads h3,
.social-links h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* Center the headings above their content */
.cv-downloads,
.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cv-downloads .cv-buttons,
.social-links .social-buttons {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.cv-downloads .cv-buttons {
  flex-direction: column;
  align-items: stretch;
}

.social-links .social-buttons {
  flex-direction: row;
}

.cv-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  max-width: 360px;
  margin: 0 auto;
}

.cv-btn:hover {
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.12), rgba(255, 213, 79, 0.08));
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(4, 8, 20, 0.45);
}

.cv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 24px;
}

.cv-btn span:last-child {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Slightly smaller text for a compact look */
.cv-downloads .cv-btn span:last-child {
  font-size: 0.92rem;
}

.cv-downloads {
  max-width: 420px;
}

/* ===== SOCIAL BUTTONS INTERACTIFS ===== */
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 2px solid transparent;
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.social-btn:hover::before {
  transform: translateX(100%);
}

.social-icon {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-text {
  position: relative;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.3rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.social-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  transition: all 0.3s ease;
  z-index: 1;
}

/* GitHub Button */
.github-btn {
  background: linear-gradient(135deg, #24292e 0%, #1a1e22 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(36, 41, 46, 0.3);
}

.github-btn .social-bg {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.github-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 30px rgba(36, 41, 46, 0.4);
  border-color: #586069;
}

.github-btn:hover .social-icon {
  transform: scale(1.2) rotate(5deg);
}

.github-btn:hover .social-text {
  opacity: 1;
  transform: translateY(0);
}

/* LinkedIn Button */
.linkedin-btn {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.linkedin-btn .social-bg {
  background: linear-gradient(135deg, #0099cc 0%, #006699 100%);
}

.linkedin-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 119, 181, 0.4);
  border-color: #00a0dc;
}

.linkedin-btn:hover .social-icon {
  transform: scale(1.2) rotate(-5deg);
}

.linkedin-btn:hover .social-text {
  opacity: 1;
  transform: translateY(0);
}

/* Email Button */
.email-btn {
  background: linear-gradient(135deg, #ea4335 0%, #d33b2c 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(234, 67, 53, 0.3);
}

.email-btn .social-bg {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.email-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 30px rgba(234, 67, 53, 0.4);
  border-color: #ff8a80;
}

.email-btn:hover .social-icon {
  transform: scale(1.2) rotate(5deg);
}

.email-btn:hover .social-text {
  opacity: 1;
  transform: translateY(0);
}

/* Animation au clic */
.social-btn:active {
  transform: translateY(-4px) scale(0.98);
}

/* Effet de pulsation */
@keyframes socialPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.social-btn:hover {
  animation: socialPulse 2s infinite;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* ===== SVG PATTERNS ===== */
.svg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  z-index: 1;
}

.ai-pattern {
  opacity: 0.4;
  animation: patternFloat 15s ease-in-out infinite;
}

.projects-pattern {
  opacity: 0.3;
  animation: patternFloat 20s ease-in-out infinite reverse;
}

.agro-pattern {
  opacity: 0.5;
  animation: patternFloat 18s ease-in-out infinite;
}

.hero-pattern {
  opacity: 0.3;
  animation: patternFloat 22s ease-in-out infinite;
}

@keyframes patternFloat {

  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0.4;
  }

  25% {
    transform: translateX(-10px) translateY(-5px) rotate(1deg);
    opacity: 0.6;
  }

  50% {
    transform: translateX(5px) translateY(-10px) rotate(-1deg);
    opacity: 0.3;
  }

  75% {
    transform: translateX(-5px) translateY(5px) rotate(0.5deg);
    opacity: 0.5;
  }
}

/* Enhanced leaf animations */
.leaf {
  position: absolute;
  font-size: 2rem;
  opacity: 0.2;
  animation: enhancedFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes enhancedFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.2;
  }

  25% {
    transform: translateY(-15px) rotate(5deg) scale(1.1);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-25px) rotate(-3deg) scale(0.9);
    opacity: 0.15;
  }

  75% {
    transform: translateY(-10px) rotate(2deg) scale(1.05);
    opacity: 0.25;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition-normal);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-left {
    order: 2;
  }

  .hero-text {
    order: 1;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .profile-image {
    width: 180px;
    height: 180px;
  }

  .image-glow {
    width: 220px;
    height: 220px;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .stat-card {
    padding: 1rem 0.8rem;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .agro-content {
    grid-template-columns: 1fr;
  }

  .agro-expertise-grid {
    grid-template-columns: 1fr;
  }

  .agro-formation-section {
    padding: 2rem;
  }

  .formation-cards {
    grid-template-columns: 1fr;
  }

  #agroModalBody {
    padding: 2rem;
  }

  .agro-modal-content {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  .agro-modal-title {
    font-size: 1.8rem;
  }

  .agro-modal-section-title {
    font-size: 1.3rem;
  }

  .agro-modal-icon {
    font-size: 3rem;
  }

  .learning-grid {
    grid-template-columns: 1fr;
  }

  .learning-header-special .section-title {
    font-size: 2rem;
  }

  .learning-resources {
    padding: 2rem;
  }

  .conference-modal.active {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .conference-modal-content {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  .conference-modal-body {
    padding: 2rem;
  }

  .conference-modal-body h3 {
    font-size: 1.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .carousel-controls {
    gap: 1rem;
  }

  .projects-carousel-wrapper {
    gap: 1rem;
  }

  .project-nav-btn {
    width: 45px;
    height: 45px;
  }

  .project-content {
    padding: 2rem;
  }

  .project-title {
    font-size: 1.4rem;
  }

  .project-image {
    height: 250px;
  }

  .modal-project-title {
    font-size: 1.6rem;
  }

  #projectModalBody {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 1rem 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .profile-image {
    width: 160px;
    height: 160px;
  }

  .image-glow {
    width: 200px;
    height: 200px;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .stat-card {
    padding: 0.8rem 0.6rem;
  }

  .hero-description-card {
    padding: 1rem;
  }

  .hero-badge {
    padding: 0.6rem 1rem;
  }

  .section-badge {
    top: 10px;
    left: 10px;
    padding: 8px 12px;
    min-width: 90px;
    font-size: 0.9rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .cv-buttons {
    gap: 0.5rem;
  }

  .cv-btn {
    padding: 0.8rem 1rem;
  }

  .social-buttons {
    gap: 1rem;
  }

  .social-btn {
    width: 70px;
    height: 70px;
  }

  .social-text {
    font-size: 0.6rem;
  }

  .projects-carousel-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .project-nav-btn {
    width: 40px;
    height: 40px;
  }

  .project-content {
    padding: 1.5rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-image {
    height: 200px;
  }

  .project-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .tech-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }

  .project-modal {
    padding: 1rem;
  }

  .project-modal-content {
    border-radius: 20px;
  }

  #projectModalBody {
    padding: 1.5rem;
  }

  .modal-links {
    flex-direction: column;
  }

  .project-link-btn {
    min-width: 100%;
    padding: 0.9rem 1.2rem;
  }

  .link-icon {
    font-size: 1.3rem;
  }

  .link-text {
    font-size: 0.9rem;
  }

  .modal-project-title {
    font-size: 1.4rem;
  }

  .modal-section-title {
    font-size: 1.2rem;
  }

  .modal-project-image {
    height: 200px;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.carousel-btn:focus,
.project-btn:focus,
.cv-btn:focus,
.social-link:focus {
  outline: 2px solid var(--ai-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-muted: #ffffff;
  }

  .skill-card,
  .project-card,
  .agro-card,
  .learning-card {
    border: 2px solid #ffffff;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes particleExplode {
  from {
    transform: translate(0, 0);
    opacity: 1;
  }

  to {
    transform: translate(var(--end-x), var(--end-y));
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Project Carousel Animations */
@keyframes slideInCenter {
  0% {
    opacity: 0;
    transform: translateX(0) scale(0.9);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes slideOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0deg);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-120%) scale(0.8) rotateY(-15deg);
    filter: blur(8px);
  }
}

@keyframes slideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0deg);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateX(120%) scale(0.8) rotateY(15deg);
    filter: blur(8px);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-120%) scale(0.8) rotateY(-15deg);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0deg);
    filter: blur(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(120%) scale(0.8) rotateY(15deg);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0deg);
    filter: blur(0);
  }
}

/* ===== PROFESSIONAL ENHANCEMENTS ===== */

/* Ripple effect for buttons */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Mouse-following glow effect on cards */
.skill-tech-card,
.project-card,
.agro-expertise-card,
.activity-card,
.learning-topic-card {
  position: relative;
  overflow: hidden;
}

.skill-tech-card::before,
.project-card::before,
.agro-expertise-card::before,
.activity-card::before,
.learning-topic-card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, transparent 70%);
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.skill-tech-card:hover::before,
.project-card:hover::before,
.agro-expertise-card:hover::before,
.activity-card:hover::before,
.learning-topic-card:hover::before {
  opacity: 1;
}

/* Ensure card content stays above glow */
.skill-tech-card>*,
.project-card>*,
.agro-expertise-card>*,
.activity-card>*,
.learning-topic-card>* {
  position: relative;
  z-index: 1;
}

/* Smooth scroll indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD54F 0%, #7C4DFF 50%, #8BC34A 100%);
  transform-origin: left;
  z-index: 10001;
  pointer-events: none;
}

/* Loading animation for page entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for grid items */
.skill-tech-card,
.agro-expertise-card,
.activity-card {
  animation: fadeInUp 0.6s ease backwards;
}

.skill-tech-card:nth-child(1),
.agro-expertise-card:nth-child(1),
.activity-card:nth-child(1) {
  animation-delay: 0.1s;
}

.skill-tech-card:nth-child(2),
.agro-expertise-card:nth-child(2),
.activity-card:nth-child(2) {
  animation-delay: 0.2s;
}

.skill-tech-card:nth-child(3),
.agro-expertise-card:nth-child(3),
.activity-card:nth-child(3) {
  animation-delay: 0.3s;
}

.skill-tech-card:nth-child(4),
.agro-expertise-card:nth-child(4),
.activity-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Subtle pulse animation for focus badge */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
  }

  50% {
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.6);
  }
}

.focus-badge {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Gradient text animation for titles */
@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.section-title {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Enhanced box shadows for depth */
.hero-description-card,
.current-focus-banner,
.activity-card,
.learning-resources-new,
.project-card.active {
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(124, 77, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Smooth transitions for all interactive elements */
button,
.nav-link,
.project-btn,
.skill-details-btn,
.expertise-details-btn,
.tech-tag,
.resource-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus visible for accessibility */
button:focus-visible,
a:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid #7C4DFF;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #7C4DFF 0%, #FFD54F 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: 0 8px 24px rgba(124, 77, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(124, 77, 255, 0.6);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ===== PROJECT GALLERY STYLES ===== */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-thumbnail {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gallery-thumbnail:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.6) 0%, rgba(74, 20, 140, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-thumbnail:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  font-size: 2rem;
  color: white;
}

/* ===== LIGHTBOX STYLES ===== */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav.prev {
  left: 30px;
}

.lightbox-nav.next {
  right: 30px;
}

.lightbox-nav:hover {
  background: rgba(124, 77, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-content {
  position: relative;
  z-index: 10001;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: white;
  font-size: 1.1rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== DECEMBER 2025 - STATS DASHBOARD & ACCORDION ===== */

/* Stats Dashboard Header */
.learning-stats-dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  min-width: 140px;
}

.stat-card-mini:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: rgba(124, 77, 255, 0.3);
}

.stat-card-mini.completed-stat {
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, rgba(76, 175, 80, 0.1) 100%);
  border-color: rgba(139, 195, 74, 0.3);
}

.stat-icon-mini {
  font-size: 1.5rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stat-number-mini {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label-mini {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Accordion */
.learning-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(124, 77, 255, 0.25);
}

.accordion-item.active {
  border-color: rgba(124, 77, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accordion-icon {
  font-size: 1.25rem;
}

.accordion-title {
  font-size: 1rem;
  font-weight: 600;
}

.accordion-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(124, 77, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  margin-left: 0.5rem;
}

.accordion-chevron {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 0 1.25rem 1.25rem;
}

/* Papers Compact List */
.papers-compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.paper-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  flex-wrap: wrap;
  transition: all 0.2s ease;
}

.paper-compact:hover {
  background: rgba(255, 255, 255, 0.04);
}

.paper-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.paper-compact.completed .paper-status-dot {
  background: #4CAF50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

.paper-compact.reading .paper-status-dot {
  background: #FF9800;
  box-shadow: 0 0 6px rgba(255, 152, 0, 0.5);
}

.paper-compact.planned .paper-status-dot {
  background: rgba(255, 255, 255, 0.3);
}

.paper-title {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
  min-width: 200px;
}

.paper-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.paper-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
}

.paper-tag.completed {
  background: rgba(76, 175, 80, 0.2);
  color: #81C784;
}

.paper-tag.reading {
  background: rgba(255, 152, 0, 0.2);
  color: #FFB74D;
}

/* Event Compact */
.event-compact {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border-left: 3px solid #7C4DFF;
}

.event-compact-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.event-type-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-type-badge.hackathon {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(255, 193, 7, 0.15));
  color: #FFB74D;
}

.event-compact-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.event-compact-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.event-compact-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Project Compact */
.project-compact {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.project-compact:last-child {
  margin-bottom: 0;
}

.project-compact:hover {
  background: rgba(255, 255, 255, 0.04);
}

.project-compact-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.project-compact-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.project-compact-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.project-compact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-compact-tags span {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: rgba(124, 77, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

/* Resources Compact Grid */
.resources-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.resource-compact-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.resource-compact-card h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.resource-compact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-compact-card li {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.resource-compact-card li:last-child {
  border-bottom: none;
}

/* Philosophy Compact */
.learning-philosophy-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(139, 195, 74, 0.08) 100%);
  border-radius: 12px;
  border: 1px solid rgba(124, 77, 255, 0.2);
  margin-top: 1rem;
}

.philosophy-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.learning-philosophy-compact p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.learning-philosophy-compact strong {
  color: var(--text-primary);
}

/* Responsive for Stats Dashboard & Accordion */
@media (max-width: 768px) {
  .learning-stats-dashboard {
    gap: 0.75rem;
  }

  .stat-card-mini {
    min-width: calc(50% - 0.5rem);
    flex: 1;
  }

  .resources-compact-grid {
    grid-template-columns: 1fr;
  }

  .paper-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .paper-title {
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .stat-card-mini {
    min-width: 100%;
  }

  .accordion-header {
    padding: 0.875rem 1rem;
  }

  .accordion-title {
    font-size: 0.9rem;
  }

  .accordion-badge {
    display: none;
  }
}

/* ===== SKILL TECH ICONS - PNG LOGOS ===== */
.skill-tech-icon {
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}

.skill-tech-icon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 24px rgba(124, 77, 255, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 12px;
  padding: 8px;
}

.skill-tech-card {
  overflow: visible !important;
}

.skill-tech-card:hover .skill-tech-icon img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 32px rgba(124, 77, 255, 0.5));
}

/* Skill Modal Icon - PNG Logos */
.skill-modal-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* ===== LEARNING TIMELINE COMPACT ===== */
.learning-timeline {
  margin: 2rem 0;
  padding: 1.5rem 0;
}

.timeline-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 1rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.3), rgba(139, 195, 74, 0.3));
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  padding: 0.5rem;
}

.timeline-milestone::before {
  content: attr(data-date);
  position: absolute;
  bottom: -25px;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.milestone-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--dark-surface);
  border: 3px solid rgba(124, 77, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.timeline-milestone.completed .milestone-icon {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.2), rgba(139, 195, 74, 0.2));
  border-color: rgba(139, 195, 74, 0.6);
}

.timeline-milestone.current .milestone-icon {
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.3), rgba(124, 77, 255, 0.3));
  border-color: #FFD54F;
  box-shadow: 0 0 20px rgba(255, 213, 79, 0.4);
  animation: currentPulse 2s ease-in-out infinite;
}

@keyframes currentPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 213, 79, 0.4);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 213, 79, 0.7);
  }
}

.milestone-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  max-width: 100px;
}

.timeline-milestone.current .milestone-label {
  color: #FFD54F;
}

/* Learning Compact Grid */
.learning-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.learning-compact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.learning-compact-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 77, 255, 0.3);
  transform: translateY(-4px);
}

.compact-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-icon {
  font-size: 1.5rem;
}

.compact-card-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compact-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  padding-left: 1.5rem;
}

.compact-list li:last-child {
  border-bottom: none;
}

.compact-list li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.compact-list li.completed::before {
  content: '✓';
  color: rgba(139, 195, 74, 0.8);
}

.compact-list li.reading::before {
  content: '→';
  color: #FFD54F;
}

.compact-list li.completed {
  color: var(--text-secondary);
}

.compact-list li.reading {
  color: var(--text-primary);
  font-weight: 500;
}

/* Responsive Learning Timeline */
@media (max-width: 900px) {
  .learning-compact-grid {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .timeline-track::before {
    display: none;
  }

  .timeline-milestone::before {
    bottom: -20px;
  }
}

@media (max-width: 600px) {
  .timeline-milestone {
    padding: 0.25rem;
  }

  .milestone-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .milestone-label {
    font-size: 0.65rem;
    max-width: 70px;
  }
}

/* ===== MILESTONE TOOLTIPS ===== */
.timeline-milestone.clickable {
  cursor: pointer;
}

.timeline-milestone.clickable:hover .milestone-icon {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(124, 77, 255, 0.5);
}

.milestone-tooltip {
  position: absolute;
  top: calc(100% + 40px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 46, 0.98);
  border: 1px solid rgba(124, 77, 255, 0.4);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  min-width: 250px;
  max-width: 300px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.milestone-tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(124, 77, 255, 0.4);
}

.milestone-tooltip.active {
  opacity: 1;
  visibility: visible;
}

.milestone-tooltip strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.milestone-tooltip p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

/* ===== EXPANDABLE LISTS ===== */
.hidden-item {
  display: none;
}

.expand-list-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--ai-accent);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.75rem;
  padding: 0.5rem 0;
  transition: all 0.2s ease;
}

.expand-list-btn:hover {
  color: #FFD54F;
}

.expand-arrow {
  transition: transform 0.3s ease;
}

.expand-list-btn.expanded .expand-arrow {
  transform: rotate(180deg);
}

/* ===== CLICKABLE EVENTS ===== */
.clickable-event {
  cursor: pointer;
  transition: all 0.2s ease;
}

.clickable-event:hover {
  color: var(--ai-accent) !important;
  transform: translateX(4px);
}

/* ===== CONFERENCE MODAL ===== */
.conference-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.conference-modal.active {
  opacity: 1;
  visibility: visible;
}

.conference-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(26, 26, 46, 0.98);
  border: 1px solid rgba(124, 77, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.conference-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
  z-index: 10;
}

.conference-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.conference-modal-body {
  text-align: center;
}

.conference-modal-body h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.conference-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

/* ===== CLICKABLE EVENT HIGHLIGHT ===== */
.clickable-event {
  cursor: pointer;
  color: var(--ai-accent) !important;
  position: relative;
  transition: all 0.3s ease;
  padding-left: 0.3rem;
  border-left: 2px solid var(--ai-accent);
}

.clickable-event:hover {
  background: rgba(124, 77, 255, 0.1);
  border-radius: 0 6px 6px 0;
  transform: translateX(4px);
}

.clickable-event::after {
  content: '  → view program';
  font-size: 0.75em;
  opacity: 0.6;
}

/* ===== LEARNING CHIPS ===== */
.learning-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.learning-chip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(138, 43, 226, 0.08);
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.learning-chip:hover {
  background: rgba(138, 43, 226, 0.15);
  border-color: rgba(138, 43, 226, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.2);
}

.chip-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.chip-content {
  flex: 1;
  min-width: 0;
}

.chip-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.3rem 0;
}

.chip-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ai-accent);
  background: rgba(124, 77, 255, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  letter-spacing: 0.03em;
}

.chip-hw-badge {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #FFD54F;
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

.chip-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.learning-chip:hover .chip-arrow {
  transform: translateX(4px);
  color: var(--ai-accent);
}

/* ===== LEARNING MODAL ===== */
.learning-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.learning-modal.active {
  opacity: 1;
  visibility: visible;
}

.learning-modal-content {
  background: var(--dark-surface);
  border-radius: 20px;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  border: 1px solid rgba(138, 43, 226, 0.2);
  box-shadow: 0 20px 60px rgba(138, 43, 226, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.learning-modal.active .learning-modal-content {
  transform: translateY(0);
}

.learning-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.learning-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.learning-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.learning-modal-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.learning-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.learning-hw-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 213, 79, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.learning-hw-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== PROJECT WIP BADGE ===== */
.project-wip-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.9), rgba(255, 87, 34, 0.9));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  letter-spacing: 0.04em;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
  animation: wipPulse 2s ease-in-out infinite;
}

@keyframes wipPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  transform: scale(1.02);
  object-fit: cover;
}

/* ===== RESPONSIVE: LEARNING CHIPS ===== */
@media (max-width: 768px) {
  .learning-chips-grid {
    grid-template-columns: 1fr;
  }

  .learning-modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .learning-modal-title {
    font-size: 1.1rem;
  }

  .learning-modal-icon {
    font-size: 2rem;
  }
}

/* ===== LEARNING RECOMMENDATIONS OF THE MONTH ===== */
.learning-recommendations {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.reco-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reco-icon {
  font-size: 1.5rem;
}

.reco-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.01em;
}

.reco-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.reco-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: rgba(138, 43, 226, 0.06);
  border: 1px solid rgba(138, 43, 226, 0.15);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.reco-card:hover {
  background: rgba(138, 43, 226, 0.14);
  border-color: rgba(138, 43, 226, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.18);
}

.reco-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.reco-card-content {
  flex: 1;
  min-width: 0;
}

.reco-card-content h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.reco-card-content p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.reco-card-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.reco-card:hover .reco-card-arrow {
  color: var(--ai-accent);
  transform: translateX(4px);
}

/* Responsive: Learning Recommendations */
@media (max-width: 900px) {
  .reco-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .learning-recommendations {
    padding: 1rem;
  }

  .reco-card {
    padding: 0.85rem;
  }
}
.compact-list li.video::before { content: '📹'; color: var(--text-primary); }
.compact-list li.article::before { content: '🧠'; color: var(--text-primary); }
.compact-list li.course::before { content: '🎓'; color: var(--text-primary); }
