/* Modern Animation Library for InGenium */

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Slide Up Animation */
@keyframes slideUp {
  from { 
    transform: translateY(30px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

/* Slide In Right Animation */
@keyframes slideInRight {
  from { 
    transform: translateX(50px);
    opacity: 0;
  }
  to { 
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide In Left Animation */
@keyframes slideInLeft {
  from { 
    transform: translateX(-50px);
    opacity: 0;
  }
  to { 
    transform: translateX(0);
    opacity: 1;
  }
}

/* Scale In Animation */
@keyframes scaleIn {
  from { 
    transform: scale(0.8);
    opacity: 0;
  }
  to { 
    transform: scale(1);
    opacity: 1;
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Glow Pulse Animation */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(123, 104, 238, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(123, 104, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(123, 104, 238, 0);
  }
}

/* Gradient Shift Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Float Animation */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Ripple Effect Animation */
@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.slide-up {
  animation: slideUp 0.8s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.scale-in {
  animation: scaleIn 0.8s ease forwards;
}

.bounce {
  animation: bounce 2s ease infinite;
}

.float {
  animation: float 3s ease-in-out infinite;
}

.glow-pulse {
  animation: glowPulse 2s infinite;
}

/* Staggered animation delays */
.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

/* Animated border */
.animated-border {
  position: relative;
  overflow: hidden;
}

.animated-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple-primary);
  transition: width 0.3s ease;
}

.animated-border:hover::after {
  width: 100%;
}

/* Initial state for scroll animations */
.scroll-animated {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade-in {
  transform: translateY(20px);
}

.scroll-fade-left {
  transform: translateX(-50px);
}

.scroll-fade-right {
  transform: translateX(50px);
}

.scroll-scale {
  transform: scale(0.9);
}

/* Visible state for scroll animations */
.scroll-animated.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Page transition */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-bg);
  z-index: 9999;
  pointer-events: none;
  transform: scaleY(1); /* Start visible */
  transform-origin: top;
  transition: transform 0.4s ease;
  opacity: 1;
}

.page-transition.active {
  transform: scaleY(1);
}

.page-transition.fade-out {
  transform: scaleY(0); /* Animate out */
  transform-origin: bottom;
  transition: transform 0.5s ease 0.1s;
}

.page-transition:not(.active) {
  display: none;
}

/* Button hover effects */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

/* Hamburger menu animation */
.hamburger-menu {
  position: relative;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger-menu span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) {
  top: 0;
}

.hamburger-menu span:nth-child(2) {
  top: 8px;
}

.hamburger-menu span:nth-child(3) {
  top: 16px;
}

.hamburger-menu.active span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}
