/* Modern Hover Effects and Animations for Fleet Marketing Site */

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Primary Button with Ripple Effect */
.btn-primary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(36, 56, 160, 0.4);
}

/* Secondary Button */
.btn-secondary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navigation Link with Underline Animation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #2438A0;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Feature Card with Enhanced Hover */
.feature-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Icon Hover Animation */
.icon-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.icon-hover:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Lift Effect on Hover */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Gradient Hover Effect */
.gradient-hover {
  transition: all 0.4s ease;
  background-size: 200% 200%;
}
.gradient-hover:hover {
  background-position: right center;
}

/* Pricing Card Hover */
.pricing-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(36, 56, 160, 0.15);
}

/* Integration Card Hover */
.integration-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.integration-card:hover {
  transform: translateY(-4px);
  border-color: #2438A0;
  box-shadow: 0 10px 25px -5px rgba(36, 56, 160, 0.2);
}

/* Smooth Image Scale on Hover */
.img-scale {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-scale:hover {
  transform: scale(1.05);
}

/* Link Arrow Animation */
.link-arrow {
  transition: transform 0.3s ease;
}
.group:hover .link-arrow {
  transform: translateX(4px);
}

/* Illustration cards with glossy shine */
.illus-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #2438A0 0%, #1d2d7a 45%, #0f172a 100%);
  box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: white;
}
.illus-card::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 180%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
  transform: rotate(15deg);
  pointer-events: none;
}
.illus-body {
  position: relative;
  padding: 32px;
  display: grid;
  gap: 10px;
}
.illus-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.illus-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.illus-line {
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.2));
}
.illus-line.thin { height: 6px; opacity: 0.7; }
.illus-line.short { width: 60%; }
.illus-line.tall { height: 18px; }

/* Shine sweep animation */
.shine-sweep {
  position: relative;
  overflow: hidden;
}
.shine-sweep::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  animation: shine 2.5s ease-in-out infinite;
}
@keyframes shine {
  0% { left: -75%; }
  60% { left: 125%; }
  100% { left: 125%; }
}

