/* Animation Styles */

/* AOS Default Overrides */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

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

/* Navbar Transition */
#mainNav {
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar-shrink {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Button Hover Effects */
.btn {
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  opacity: 0;
}

.btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: width 0s, height 0s;
}

/* Service Card Hover Animation */
.service-card, .service-detail-card, .team-card, .process-card {
  transition: all 0.3s ease-in-out;
  will-change: transform;
}

.service-card:hover, .service-detail-card:hover, .team-card:hover, .process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  transition: all 0.3s ease-in-out;
}

.service-card:hover .service-icon, .service-detail-card:hover .service-icon {
  transform: scale(1.1);
}

/* Input Focus Animation */
.form-control, .form-select {
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  transform: translateY(-2px);
}

/* Footer Link Hover Animation */
.footer-links li a {
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links li a:hover {
  transform: translateX(5px);
}

/* Social Icon Hover Animation */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
}

/* Image Hover Animation */
.about-image, .story-image, .mission-image, .hero-image {
  transition: all 0.5s ease;
}

.about-image:hover, .story-image:hover, .mission-image:hover, .hero-image:hover {
  transform: scale(1.02);
}

/* Testimonial Card Hover Effect */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Team Social Icons Animation */
.team-social {
  transition: all 0.3s ease;
  opacity: 0.8;
}

.team-card:hover .team-social {
  opacity: 1;
}

.team-social a {
  transition: all 0.3s ease;
}

.team-social a:hover {
  transform: translateY(-3px) scale(1.1);
}

/* Accordion Animation */
.accordion-button {
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  transform: translateY(-2px);
}

/* Contact Form Send Button Animation */
button[type="submit"] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

button[type="submit"]:hover::before {
  left: 100%;
}

/* Pulse Animation for CTA */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(62, 146, 204, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(62, 146, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(62, 146, 204, 0);
  }
}

.hero-btn, .cta-btn {
  animation: pulse 2s infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title, .hero-subtitle, .page-title, .page-subtitle {
  animation: fadeIn 1s ease-out forwards;
}

/* Process Step Connection Line */
.process-section .col-lg-3:not(:last-child) .process-card::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -15%;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  z-index: 0;
}

@media (max-width: 991px) {
  .process-section .col-lg-3:not(:last-child) .process-card::after {
    display: none;
  }
}