/* Animations CSS File */

/* Feature Badge Speed Animation */
@keyframes speedInFromLeft {
  0% {
    transform: translateX(-100vw) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateX(-20px) scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.feature-badge {
  animation: speedInFromLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  transform: translateX(-100vw);
}

.feature-badge:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-badge:nth-child(2) {
  animation-delay: 0.3s;
}

.feature-badge:nth-child(3) {
  animation-delay: 0.5s;
}

/* Additional animations can be added here */

/* Attention-grabbing up-down animation for CTA buttons */
@keyframes gentleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.attention-bounce {
  animation: gentleBounce 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.attention-bounce:hover {
  animation-play-state: paused;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Problem cards slide-in animation with minimal rotation */
@keyframes slideInFromBottom {
  0% {
    transform: translateY(100px) rotate(1deg);
    opacity: 0;
  }
  30% {
    transform: translateY(50px) rotate(-0.5deg);
    opacity: 0.7;
  }
  60% {
    transform: translateY(20px) rotate(0.3deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

.problem-card {
  animation: slideInFromBottom 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  transform: translateY(100px) rotate(1deg);
}

.problem-card:nth-child(1) {
  animation-delay: 0.2s;
}

.problem-card:nth-child(2) {
  animation-delay: 0.4s;
}

.problem-card:nth-child(3) {
  animation-delay: 0.6s;
}

.problem-card:nth-child(4) {
  animation-delay: 0.8s;
}

/* Modal Animations */
@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backdropFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.modal-fade-in {
  animation: modalFadeIn 0.3s ease-out forwards;
}

.modal-slide-in {
  animation: modalSlideIn 0.3s ease-out forwards;
}

.modal-backdrop {
  animation: backdropFadeIn 0.2s ease-out forwards;
}

/* Image hover effects */
.image-hover-zoom {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-hover-zoom:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* User research images animations - coming from different directions */
@keyframes slideInFromTop {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromTopLeft {
  0% {
    transform: translate(-100px, -100px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes slideInFromTopRight {
  0% {
    transform: translate(100px, -100px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes slideInFromBottomLeft {
  0% {
    transform: translate(-100px, 100px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes slideInFromBottomRight {
  0% {
    transform: translate(100px, 100px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.research-image {
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
  opacity: 0;
}

.research-image:nth-child(1) {
  animation-name: slideInFromTopLeft;
  animation-delay: 0.1s;
}

.research-image:nth-child(2) {
  animation-name: slideInFromTopRight;
  animation-delay: 0.2s;
}

.research-image:nth-child(3) {
  animation-name: slideInFromBottomLeft;
  animation-delay: 0.3s;
}

.research-image:nth-child(4) {
  animation-name: slideInFromBottomRight;
  animation-delay: 0.4s;
}

.research-image:nth-child(5) {
  animation-name: slideInFromTopLeft;
  animation-delay: 0.5s;
}

.research-image:nth-child(6) {
  animation-name: slideInFromTopRight;
  animation-delay: 0.6s;
}

.research-image:nth-child(7) {
  animation-name: slideInFromBottomLeft;
  animation-delay: 0.7s;
}

.research-image:nth-child(8) {
  animation-name: slideInFromBottomRight;
  animation-delay: 0.8s;
}

/* Persona cards slide-in animation */
@keyframes slideInFromBottomFade {
  0% {
    transform: translateY(60px);
    opacity: 0;
  }
  50% {
    transform: translateY(20px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.persona-card {
  animation: slideInFromBottomFade 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  transform: translateY(60px);
}

.persona-card:nth-child(1) {
  animation-delay: 0.2s;
}

.persona-card:nth-child(2) {
  animation-delay: 0.4s;
}

.persona-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* Goal cards alternating slide-in animations */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.goal-card-left {
  animation: slideInFromLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  transform: translateX(-100px);
}

.goal-card-right {
  animation: slideInFromRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  transform: translateX(100px);
}

.goal-card-left:nth-child(1) {
  animation-delay: 0.2s;
}

.goal-card-right:nth-child(2) {
  animation-delay: 0.4s;
}

.goal-card-left:nth-child(3) {
  animation-delay: 0.6s;
}

.goal-card-right:nth-child(4) {
  animation-delay: 0.8s;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-fade-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.scroll-fade-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.scroll-fade-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease;
}

.scroll-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

.scroll-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-stagger.animate-in > * {
  opacity: 1;
  transform: translateY(0);
}

.scroll-stagger.animate-in > *:nth-child(1) { transition-delay: 0.1s; }
.scroll-stagger.animate-in > *:nth-child(2) { transition-delay: 0.2s; }
.scroll-stagger.animate-in > *:nth-child(3) { transition-delay: 0.3s; }
.scroll-stagger.animate-in > *:nth-child(4) { transition-delay: 0.4s; }
.scroll-stagger.animate-in > *:nth-child(5) { transition-delay: 0.5s; }
.scroll-stagger.animate-in > *:nth-child(6) { transition-delay: 0.6s; }
.scroll-stagger.animate-in > *:nth-child(7) { transition-delay: 0.7s; }
.scroll-stagger.animate-in > *:nth-child(8) { transition-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .scroll-fade-up,
  .scroll-fade-left,
  .scroll-fade-right,
  .scroll-scale,
  .scroll-stagger > * {
    transition: none;
    animation: none;
  }
}

/* Career Page Animations */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(-20px) rotate(180deg); 
  }
} 


/* Metro Rail App Carousel Styles */
.metro-carousel-image {
  transition: opacity 1s ease-in-out;
}

.metro-dot {
  transition: all 0.3s ease-in-out;
}

.metro-dot-active {
  background-color: white !important;
  transform: scale(1.2);
}

.metro-nav-btn {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.metro-nav-btn:hover {
  background-color: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dark mode adjustments for carousel */
.dark .metro-nav-btn {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white;
}

.dark .metro-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.dark .metro-dot {
  background-color: rgba(255, 255, 255, 0.4) !important;
}

.dark .metro-dot:hover {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

.dark .metro-dot-active {
  background-color: white !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .metro-nav-btn {
    width: 2rem;
    height: 2rem;
  }
  
  .metro-nav-btn i {
    font-size: 0.875rem;
  }
  
  .metro-dot {
    width: 0.5rem;
    height: 0.5rem;
  }
}
