  /* Animations */
  @keyframes fadeInHeader {
    0% {
      opacity: 0;
      transform: translateY(-150px);
    }

    50% {
      opacity: 0.5;
      transform: translateY(10px);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(50px);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateX(50px);
    }

    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Service Cards (used on home page) */
  #home-services .services-grid {
    display: grid;
    /* Forcing 5 cards in one row on desktop */
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
  }

  #home-services .service-card {
    background-color: white;
    height: 100%;
    /* Ensure cards in a row have the same height */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: calc(var(--order) * 0.1s);
  }

  #home-services .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }

  #home-services .service-img {
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
  }

  #home-services .service-img i {
    font-size: 2rem;
  }

  #home-services .service-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  #home-services .service-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }

  #home-services .service-content p {
    color: #4B5563;
    margin-bottom: 1rem;
  }

  /* Service Cards (used on services page) */
  .services-container .service-img {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .services-container .service-img i {
    font-size: 2.25rem;
  }

  /* Make service grid responsive on smaller screens */
  @media (max-width: 1100px) {
    #home-services .services-grid {
      /* Revert to a wrapping grid for tablets and mobiles */
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
  }

  /* Hamburger Icon Animation */
  #menu-toggle>i {
    transition: transform 0.3s ease-in-out;
  }

  #menu-toggle .fa-xmark {
    transform: rotate(180deg);
  }

  /* Mobile Nav */
  .nav-mobile {
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
  }

  .nav-mobile.active {
    transform: translateX(0);
    visibility: visible;
  }

  /* Header animation */
  .header-animation {
    animation: fadeInHeader 1.2s ease-out forwards;
  }

  /* Section Animations */
  .description-animation {
    animation: fadeInUp 1.2s ease-out both;
  }

  /* Button Animation */
  .cta-button {
    transition: transform 0.3s, background-color 0.3s;
  }

  .cta-button:hover {
    transform: translateY(-3px);
  }

  /* Hero background illustration */
  .hero-bg {
    position: relative;
    overflow: hidden;
  }

  .hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 70%),
      radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1), transparent 70%);
    animation: rotateBG 20s linear infinite;
    z-index: 0;
  }

  @keyframes rotateBG {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  .hero-content {
    position: relative;
    z-index: 10;
  }

  /* Footer height adjustment */
  body .footer {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }


  .navbar a.flex.items-center img {
    position: relative;
    z-index: 1;
  }

  /* Increase text size of company description */
  .description-animation p {
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.8rem;
    /* 28.8px for better readability */
  }

  /* Mobile-specific styles for old flip-cards on home page removed */