/* Responsive Animations CSS */

/* Enhanced Animations */
.fade-up-custom {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-custom {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in-custom.aos-animate {
  opacity: 1;
}

.zoom-in-custom {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-in-custom.aos-animate {
  opacity: 1;
  transform: scale(1);
}

.slide-right-custom {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right-custom.aos-animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-left-custom {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left-custom.aos-animate {
  opacity: 1;
  transform: translateX(0);
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.03);
}

.hover-bright {
  transition: filter 0.3s ease;
}

.hover-bright:hover {
  filter: brightness(1.1);
}

/* Button Animations */
.btn-pulse {
  position: relative;
  overflow: hidden;
}

.btn-pulse:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn-pulse:hover:after {
  animation: ripple 1.5s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.loading-animation {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loading-animation div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary-btn-color);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-animation div:nth-child(1) {
  left: 8px;
  animation: loading-animation1 0.6s infinite;
}

.loading-animation div:nth-child(2) {
  left: 8px;
  animation: loading-animation2 0.6s infinite;
}

.loading-animation div:nth-child(3) {
  left: 32px;
  animation: loading-animation2 0.6s infinite;
}

.loading-animation div:nth-child(4) {
  left: 56px;
  animation: loading-animation3 0.6s infinite;
}

@keyframes loading-animation1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes loading-animation3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes loading-animation2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/* Responsive Improvements */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3rem !important;
  }
  
  .section-title h2 {
    font-size: 2.2rem !important;
  }
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
  }
  
  .section-title h2 {
    font-size: 2rem !important;
  }
  
  .section-title p {
    font-size: 1rem !important;
  }
  
  .card {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem !important;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .section-title h2 {
    font-size: 1.8rem !important;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .d-flex {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 1.8rem !important;
  }
  
  .section-title h2 {
    font-size: 1.5rem !important;
  }
  
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

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

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

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse-animation {
  animation: pulse 3s infinite;
}

/* Shake Animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.shake-animation {
  animation: shake 5s infinite;
  animation-delay: 2s;
}