/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s, transform 1.5s;
}
.animate-in.fade-in-up {
  animation: fadeInUp 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.animate-out.fade-in-up {
  animation: fadeOutDown 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.fade-in {
  opacity: 0;
  transition: opacity 1.5s;
}
.animate-in.fade-in {
  animation: fadeIn 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.animate-out.fade-in {
  animation: fadeOut 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Zoom In */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes zoomOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.85);
  }
}
.zoom-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.5s, transform 1.5s;
}
.animate-in.zoom-in {
  animation: zoomIn 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.animate-out.zoom-in {
  animation: zoomOut 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Slide In Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.5s, transform 1.5s;
}
.animate-in.slide-in-left {
  animation: slideInLeft 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.animate-out.slide-in-left {
  animation: slideOutLeft 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Slide In Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1.5s, transform 1.5s;
}
.animate-in.slide-in-right {
  animation: slideInRight 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.animate-out.slide-in-right {
  animation: slideOutRight 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Overlay for home animation */
/* Overlay for home animation */
.home-animation {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 1;
  pointer-events: all;
  transition: opacity 2.5s ease-in-out, transform 3s ease-in-out;
  transform: translateY(0px);
    background: linear-gradient(180deg, rgb(0, 0, 0), black);

  /* Remove background from here */
}


/* Fade out after 2s using the fade-out class */
.home-animation.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: translateY(1000px);
}

/* Logo wrapper and SVG animation (already present) */
.home-logo-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-logo-ellipse {
  position: absolute;
  top: 0; left: 0;
  width: 150%;
  height: 150%;
  transform: scale(6.5%) translateX(50px);
  animation: ellipse-rotate 2.5s linear infinite;
  z-index: 1;
}
.home-logo-triangle {
  position: relative;
  transform: scale(1.5) translateX(50px);
  z-index: 2;
  animation: triangle-pulse 2.0s infinite ease-in-out;
}

@keyframes ellipse-rotate {
  0% { transform: rotate(0deg) scale(2.3); top: -10px;}
  100% { transform: rotate(360deg) scale(2.3);top: -10px;}
}
@keyframes triangle-pulse {
  0%, 100% { transform: scale(1.3);}
  50% { transform: scale(1.5);}
}