/* Hero section */
.hero-section {
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  padding: 1rem 0;
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.265) 37.64%, #000000 100%);
  }

  .hero-content {
    margin: clamp(2rem, 8vw, 10rem) 0;
    position: relative;
    text-align: center;
    z-index: 2;
  }

  .hero-title {
    font-size: var(--main-sub-heading);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
  }

  .hero-description {
    font-size: 1.1rem;
    color: white;
    line-height: 1.6;
    margin-inline: auto;
    margin-bottom: 3rem;
    max-width: 800px;
  }

  @media (max-width: 767.98px) {
    .hero-title {
      margin-bottom: 1rem;
    }
    .hero-description {
      margin-bottom: 1rem;
    }
  }
}

.services-grid {
  padding: 80px 0;

  .service-item {
    margin-bottom: 20px;
  }

  .service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 340px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);

    .hover-icon {
      padding: 4px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.2);

      > i,
      svg {
        width: 2.5rem;
        height: 2.5rem;
      }
    }
  }

  .service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .service-card:hover .service-image img {
    transform: scale(1.05);
  }

  .service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 2rem 1.5rem 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .service-icon {
    margin: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .service-icon img {
    width: 34px;
    height: 34px;
  }

  .service-text {
    flex: 1;
  }

  .service-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.3;
  }

  /* Hover Overlay Styles */
  .service-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0400ff45;
    backdrop-filter: blur(12px);
    /* blur effect */
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 4vw, 2rem);
  }

  .service-card:hover .service-hover-overlay {
    opacity: 1;
    visibility: visible;
  }

  .hover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
  }

  .service-card:hover .hover-content {
    transform: translateY(0);
  }

  .hover-icon {
    display: none;
  }

  .hover-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
  }

  .hover-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .hover-btn {
    background: var(--theme-blue);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
  }

  .hover-btn:hover {
    background: var(--theme-blue);
    opacity: 0.8;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  /* Hide original content on hover */
  .service-card:hover .service-content {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  @media (max-width: 768px) {
    .laravel-services-section {
      padding: 60px 0;
    }

    .services-title {
      font-size: 2rem;
      margin-bottom: 1rem;
    }

    .services-subtitle {
      font-size: 1rem;
    }

    .service-card {
      height: 350px;
    }

    .service-content {
      padding: 1.5rem 1rem 1rem;
    }

    .service-name {
      font-size: 1rem;
    }

    .service-hover-overlay {
      padding: 4px;
    }
  }

  @media (max-width: 992px) and (min-width: 769px) {
    .service-card {
      height: 280px;
    }
  }
}
