/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left Animation */
.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 0.5s ease forwards;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right Animation */
.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  animation: fadeInRight 0.5s ease forwards;
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered Animation Delays */
.fade-in:nth-child(1),
.fade-in-left:nth-child(1),
.fade-in-right:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in:nth-child(2),
.fade-in-left:nth-child(2),
.fade-in-right:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(3),
.fade-in-left:nth-child(3),
.fade-in-right:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in:nth-child(4),
.fade-in-left:nth-child(4),
.fade-in-right:nth-child(4) {
  animation-delay: 0.4s;
}

.fade-in:nth-child(5),
.fade-in-left:nth-child(5),
.fade-in-right:nth-child(5) {
  animation-delay: 0.5s;
}

.fade-in:nth-child(6),
.fade-in-left:nth-child(6),
.fade-in-right:nth-child(6) {
  animation-delay: 0.6s;
}

/* Cursor Blink Animation */
.cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1rem;
  background-color: var(--primary);
  margin-left: 0.25rem;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Scroll Animation */
.scroll-animation {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-animation.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover Animation for Project Cards */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Loading Animation */
@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Fade Out Animation */
.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Animations pour la galerie */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184, 160, 136, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(184, 160, 136, 0);
  }
}

.gallery-item {
  position: relative;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.gallery-item:hover::before {
  opacity: 1;
}
