/* ===== VMOTION — ANIMATIONS ===== */

/* --- Keyframes --- */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0);   opacity: 0.4; }
  50%       { transform: translateY(8px); opacity: 1;   }
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Scroll Reveal --- */
/* Elements get .reveal class from JS, .reveal-visible when they enter viewport */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* --- Carousel items entrance --- */

.carousel-item {
  animation: scaleIn 0.5s ease both;
}
.carousel-item:nth-child(1) { animation-delay: 0.05s; }
.carousel-item:nth-child(2) { animation-delay: 0.12s; }
.carousel-item:nth-child(3) { animation-delay: 0.19s; }
.carousel-item:nth-child(4) { animation-delay: 0.26s; }
.carousel-item:nth-child(5) { animation-delay: 0.33s; }
.carousel-item:nth-child(6) { animation-delay: 0.40s; }
.carousel-item:nth-child(7) { animation-delay: 0.47s; }
.carousel-item:nth-child(8) { animation-delay: 0.54s; }

/* --- Scroll indicator dots --- */
.indicator-dot {
  animation: bounce 1.5s ease-in-out infinite;
}
.indicator-dot:nth-child(2) { animation-delay: 0.1s; }
.indicator-dot:nth-child(3) { animation-delay: 0.2s; }
.indicator-dot:nth-child(4) { animation-delay: 0.3s; }

/* --- Notification --- */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 360px;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-success { border-color: #32c864; }
.notification-error   { border-color: #ff6464; }
.notification-warning { border-color: var(--color-orange, #ffa300); }

.notification-message { flex: 1; font-size: 14px; color: white; }
.notification-close {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.notification-close:hover { color: white; }


/* --- Keyframes --- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Carousel items entrance --- */

.carousel-item {
  animation: scaleIn 0.6s ease forwards;
  opacity: 0;
}

.carousel-item:nth-child(1) { animation-delay: 0.1s; }
.carousel-item:nth-child(2) { animation-delay: 0.2s; }
.carousel-item:nth-child(3) { animation-delay: 0.3s; }
.carousel-item:nth-child(4) { animation-delay: 0.4s; }
.carousel-item:nth-child(5) { animation-delay: 0.5s; }
.carousel-item:nth-child(6) { animation-delay: 0.6s; }
.carousel-item:nth-child(7) { animation-delay: 0.7s; }
.carousel-item:nth-child(8) { animation-delay: 0.8s; }

/* --- Project cards entrance --- */

.project-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }

/* --- Scroll indicator dots --- */

.indicator-dot {
  animation: bounce 1.5s ease-in-out infinite;
}

.indicator-dot:nth-child(2) { animation-delay: 0.1s; }
.indicator-dot:nth-child(3) { animation-delay: 0.2s; }
.indicator-dot:nth-child(4) { animation-delay: 0.3s; }
