/* 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;
  min-height: calc(100vh - 20vh);
  &::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;
    z-index: 2;
  }

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

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

  @media (max-width: 767.98px) {
    min-height: calc(100vh - 30vh);
    .hero-title {
      margin-bottom: 1rem;
    }
    .hero-description {
      margin-bottom: 1rem;
    }
  }
}

/* case studies */
.case-study-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-case-study-section {
      padding: 60px 0;
    }

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

    .case-study-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;
    }
  }
}

/* No case studies */
.empty-state-container {
  display: flex;
  justify-content: center;
  align-items: center;

  .empty-state-content {
    text-align: center;
    max-width: 450px;
    animation: fadeInScale 0.6s ease-out;
  }

  .empty-state-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0 15px;
    letter-spacing: -0.5px;
    animation: slideDownFade 0.6s ease-out 0.1s both;
  }

  .empty-state-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 35px;
    font-weight: 400;
    animation: slideDownFade 0.6s ease-out 0.2s both;
  }

  .empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideDownFade 0.6s ease-out 0.3s both;
  }

  .empty-state-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
  }

  .empty-state-btn.primary {
    background: linear-gradient(135deg, #0052ff 0%, #0041d9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.25);
  }

  .empty-state-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.35);
    background: linear-gradient(135deg, #0041d9 0%, #003ab2 100%);
  }

  .empty-state-btn.secondary {
    background: transparent;
    color: #0052ff;
    border-color: #0052ff;
  }

  .empty-state-btn.secondary:hover {
    background: rgba(0, 82, 255, 0.08);
    border-color: #0041d9;
    color: #0041d9;
  }

  .empty-state-btn:active {
    transform: translateY(0);
    opacity: 0.9;
  }


  /* Responsive Design */
  @media (max-width: 768px) {
    .empty-state-container {
      padding: 60px 20px 40px;
      min-height: 400px;
    }

    .empty-state-title {
      font-size: 24px;
    }

    .empty-state-message {
      font-size: 14px;
      margin-bottom: 25px;
    }

    .empty-state-actions {
      gap: 10px;
    }

    .empty-state-btn {
      padding: 10px 24px;
      font-size: 13px;
    }

    .empty-state-icon {
      width: 100px;
      height: 100px;
      margin-bottom: 25px;
    }
  }

  @media (max-width: 480px) {
    .empty-state-container {
      padding: 40px 15px 30px;
      min-height: 350px;
    }

    .empty-state-title {
      font-size: 20px;
    }

    .empty-state-message {
      font-size: 13px;
      margin-bottom: 20px;
    }

    .empty-state-actions {
      flex-direction: column;
      gap: 8px;
    }

    .empty-state-btn {
      width: 100%;
      padding: 11px 20px;
      font-size: 13px;
    }

    .empty-state-icon {
      width: 80px;
      height: 80px;
      margin-bottom: 20px;
    }
  }
}
