/**
 * AIM Productions - Micro-Interactions & Modern Effects
 * Adds subtle animations and interactive feedback
 */

/* ============================================
   RIPPLE EFFECT FOR BUTTONS
   ============================================ */

button,
.button-link,
.view-more-btn {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   BUTTON HOVER ENHANCEMENTS
   ============================================ */

button,
.button-link,
.view-more-btn,
.carousel-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-link:hover,
.view-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
}

.button-link:active,
.view-more-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
}

/* ============================================
   CARD HOVER EFFECTS (Simple & Clean)
   ============================================ */

.service-item,
.extras-card {
  transition: box-shadow 0.3s ease;
}

.service-item:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(0, 188, 212, 0.08);
}

/* ============================================
   NAVIGATION LINK EFFECTS
   ============================================ */

.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00bcd4, transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 80%;
}

/* ============================================
   CAROUSEL SLIDE EFFECTS
   ============================================ */

.carousel-slide {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.5s ease;
}

.carousel-slide:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
              0 0 30px rgba(0, 188, 212, 0.15);
  z-index: 10;
}

.carousel-slide .overlay {
  transition: opacity 0.3s ease, background 0.3s ease;
}

.carousel-slide:hover .overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 80%);
}

/* Carousel button glow on hover */
.carousel-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-btn:hover {
  background: rgba(0, 188, 212, 0.4);
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* ============================================
   FORM INPUT FOCUS EFFECTS
   ============================================ */

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #00bcd4;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15),
              0 4px 15px rgba(0, 188, 212, 0.1);
  transform: translateY(-2px);
}

.form-group.input-focused label {
  color: #00bcd4;
  transform: translateY(-2px);
}

/* ============================================
   SOCIAL ICON EFFECTS
   ============================================ */

.social-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 5px 15px rgba(0, 188, 212, 0.4));
}

.social-icon:active {
  transform: translateY(-2px) scale(1.05);
}

/* ============================================
   MARQUEE LOGO EFFECTS
   ============================================ */

.marquee img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.marquee img:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

/* ============================================
   MODAL TRANSITIONS
   ============================================ */

.popup,
#video-modal,
.text-popup {
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.popup-content,
.text-modal-content {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

.popup:not(.hides) .popup-content,
.text-popup:not(.hides) .text-modal-content {
  animation: modal-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close button pulse effect */
.close-popup,
.close-video-modal,
.close-text-modal {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-popup:hover,
.close-video-modal:hover,
.close-text-modal:hover {
  transform: scale(1.15) rotate(90deg);
  background: rgba(255, 80, 80, 0.3);
}

/* ============================================
   TIMELINE ITEM ANIMATIONS (History Page)
   ============================================ */

.timeline-item {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left.show {
  animation: slide-in-left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.right.show {
  animation: slide-in-right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-content {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SECTION FADE-IN ENHANCEMENTS
   ============================================ */

section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SCROLL INDICATOR GLOW
   ============================================ */

#scroll-indicator .indicator {
  background: linear-gradient(180deg, #00bcd4, #008080);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
  transition: height 0.15s ease-out;
}

/* ============================================
   CTA SECTION PULSE
   ============================================ */

.cta-section,
.closing-container {
  position: relative;
}

.cta-section::before,
.closing-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 17px;
  background: linear-gradient(45deg, #00bcd4, #008080, #00bcd4);
  background-size: 200% 200%;
  animation: gradient-border 3s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-section:hover::before,
.closing-container:hover::before {
  opacity: 0.6;
}

@keyframes gradient-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ============================================
   VIDEO THUMBNAIL HOVER
   ============================================ */

.video-thumbnail-container,
.card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-thumbnail-container:hover,
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(0, 188, 212, 0.15);
}

.video-thumbnail-container video,
.card img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-thumbnail-container:hover video,
.card:hover img {
  transform: scale(1.08);
}

/* ============================================
   LOADING SHIMMER EFFECT
   ============================================ */

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ============================================
   GLASS MORPHISM ENHANCEMENTS
   ============================================ */

.popup-content,
.video-modal-content,
.text-modal-content {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
