.services-section {
    color: #f2f2f2;
    padding: 60px 24px;
    background: #020202;
   
    background-size: cover;
    height: 800px;
  }
  
  .services-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 250px;
    align-items: center;
    justify-content: space-between;
  }
  
  .services-left {
    flex: 1;
    display: flex;
    align-items: center;
  }
  
  .services-text-wrapper {
    max-width: 480px;
  }
  
  .services-left h2 {
    font-size: 3rem;
    color: #5182EF;
    margin-bottom: 20px;
  }
  
  .services-left p {
    font-size: 1.2rem;
    line-height: 1.6;
   
  }
  
  .services-right {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
    position: relative;
  }
  
  /* Card layout shifts */
  .card-1 { transform: translateY(70px); }
  .card-2 { transform: translateY(-40px); }
  .card-3 { transform: translateY(100px); }
  .card-4 { transform: translateY(-10px); }
  
  /* Card styling */
  .service-card {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background-color: #111;
  }
  
  .service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
  }
  
  /* Title visible before hover */
  .card-title {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    color: #f2f2f2;
    z-index: 2;
    transition: opacity 0.3s ease;
  }
  
  /* Description shown only on hover */
  .service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    text-align: center;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease;
  }
  
  .service-overlay p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
    margin: 0;
  }
  
  /* Hover effect */
  .service-card:hover img {
    filter: blur(4px);
  }
  
  .service-card:hover .service-overlay {
    opacity: 1;
  }
  
  .service-card:hover .card-title {
    opacity: 0;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .services-container {
      flex-direction: column;
      align-items: center;
      gap: 60px;
    }
  
    .services-right {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .service-card {
      width: 100%;
      max-width: 320px;
      height: 240px;
    }
  
    .card-title {
      font-size: 1rem;
      align-content: center;
    }
  
    .service-overlay p {
      font-size: 0.95rem;
    }
  }
  
  @media (max-width: 500px) {
    .services-section {
      padding: 48px 16px;
      height: auto;
    }
  
    .services-container {
      flex-direction: column;
      align-items: center;
      gap: 40px;
    }
  
    .services-left {
      text-align: center;
      justify-content: center;
    }
  
    .services-left h2 {
      font-size: 2rem;
      margin-bottom: 12px;
    }
  
    .services-left p {
      font-size: 1rem;
    }
  
    .services-right {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 32px;
      transform: none;
    }
  
    .service-card {
      width: 100%;
      max-width: 300px;
      height: 220px;
      margin: 0 auto;
    }
  
    .card-title {
      font-size: 1rem;
      bottom: 16px;
    }
  
    .service-overlay p {
      font-size: 0.9rem;
    }
  
    /* Remove translateY offsets on small screens */
    .card-1,
    .card-2,
    .card-3,
    .card-4 {
      transform: translateY(0) !important;
    }
  }
  