  /* Card Image Container - Fixed Height */
  .card-img-container {
    height: 250px; /* Fixed height for all images */
  }
  
  /* Image styling - Preserves quality */
  .card-img-top {
    /* width: 100%;
    height: 100%; */
    object-fit: cover; /* Crops instead of stretching */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
  }
  
  /* Hover effect - Preserves image quality */
  .card:hover .card-img-top {
    transform: scale(1.03); /* Smaller scale to preserve quality */
  }
  
  /* Card Title Animation */
  .card-title {
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
  }
  
  /* Title underline animation */
  .card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    transition: width 0.4s ease;
  }
  
  .card:hover .card-title {
    color: #2980b9;
  }
  
  .card:hover .card-title::after {
    width: 100%;
  }
  
  /* Card hover effect */
  .card {
    transition: all 0.4s ease;
    border-radius: 12px;
  }
  
  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Button animation */
  .btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
  }
  
  /* Scroll animation for cards */
  .scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .scroll-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Staggered animation delay for cards */
  #animated-cards-row .col-md-4:nth-child(1) .card {
    transition-delay: 0.1s;
  }
  
  #animated-cards-row .col-md-4:nth-child(2) .card {
    transition-delay: 0.2s;
  }
  
  #animated-cards-row .col-md-4:nth-child(3) .card {
    transition-delay: 0.3s;
  }