/* -----------------------
   Feuille de style avancée pour rendre le portfolio plus moderne et attractif
   -----------------------*/

/* Animations de fond dégradé pour la section hero */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #d946ef);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  opacity: 0.15;
  z-index: -1;
}

/* Effet glassmorphism sur l'en-tête */
.header {
  backdrop-filter: saturate(180%) blur(16px);
  background: rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.8);
}

/* Ombres et transitions plus douces pour les cartes projet */
.project-card {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Bouton ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}
.btn:hover::after {
  width: 300px;
  height: 300px;
  transition: width 0.7s ease, height 0.7s ease;
}

/* Icône du thème rotation */
#theme-toggle svg {
  transition: transform 0.5s ease;
}
[data-theme="dark"] #theme-toggle svg {
  transform: rotate(180deg);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* Animations de fade-up globales (en complément d'AOS) */
[data-aos] {
  will-change: opacity, transform;
}

/* Petites décorations circulaires en arrière-plan */
.background-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  pointer-events: none;
  z-index: -2;
}
.hero .background-circle {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: -80px;
  right: -80px;
}

/* Transition douce au changement de thème */
html {
  transition: background 0.3s ease, color 0.3s ease;
}

/* Effet tilt sur les images des cartes */
.project-card img {
  transition: transform 0.4s ease;
}
.project-card:hover img {
  transform: scale(1.05);
}
