.services-hero {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;

  background: url("../images/banner-5.jpg") center center/cover no-repeat;

  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 12.77%, rgba(0, 0, 0, 0) 20.13%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.85) 1.71%, rgba(52, 52, 52, 0) 100%);
}

.services-hero .container {
  position: relative;
  z-index: 2;
}

.services-hero-content {
  max-width: 760px;
}

.hero-label {
  display: inline-block;

  font-size: 0.9rem;
  letter-spacing: 5px;
  text-transform: uppercase;

  color: #eee;

  margin-bottom: 25px;
}

.services-hero-content h1 {
  font-size: 3rem;
  font-weight: 700;

  line-height: 1.05;

  color: #fff;

  margin-bottom: 25px;
}

.services-hero-content p {
  font-size: 1.2rem;
  line-height: 1.9;

  color: rgba(255, 255, 255, 0.85);

  max-width: 650px;

  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-actions .btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
}

.hero-actions .btn-light {
  background: #fff;
  color: #111;
}

.hero-actions .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-actions .btn-outline-light:hover {
  background: #fff;
  color: #111;
}

@media (max-width: 991px) {
  .services-hero-content h1 {
    font-size: 4rem;
  }

  .services-hero-content p {
    font-size: 1.05rem;
  }
}

/* IT Services Showcase */

.it-services-showcase {
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 45%, #ffffff 100%);
}

.section-heading-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 60px;
}

.section-heading-center span {
  display: inline-block;
  color: #e3171f;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 700;
}

.section-heading-center h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 800;
  color: #013996;
  margin-top: 12px;
  line-height: 1.08;
}

.section-intro {
  color: #5b6677;
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 16px auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.premium-card {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg,
      #033ba1,
      #e71820);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff7e7 0%, #edf4ff 100%);
  color: #8b6b2f;
  font-size: 1.25rem;
  margin-bottom: 18px;
  border: 1px solid #efe6d3;
}

.premium-card h3 {
  font-size: 1.35rem;
  color: #111827;
  margin-bottom: 10px;
  font-weight: 700;
}

.premium-card p {
  color: #5b6677;
  line-height: 1.75;
  margin-bottom: 18px;
  min-height: 72px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #40506a;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid #e5eaf2;
}

@media (max-width: 1100px) {

  .services-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.it-tech-showcase {
  padding: 30px 0 100px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 48%, #ffffff 100%);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Gallery page styles */
.gallery-hero {
  background-image:
    linear-gradient(rgba(6, 10, 18, 0.55), rgba(6, 10, 18, 0.55)),
    url("../images/banner-6.jpg");
}

.gallery-showcase {
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 45%, #ffffff 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-card {
  border: 1px solid #e5eaf2;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  text-align: left;
  cursor: zoom-in;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.14);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card span {
  display: block;
  padding: 14px 16px 18px;
  color: #27364b;
  font-weight: 700;
  font-size: 0.98rem;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.gallery-lightbox.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 28, 0.82);
  backdrop-filter: blur(8px);
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
  top: 25px;
}

.gallery-lightbox-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 540px;
}

.gallery-lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-lightbox-copy {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #f6f8fc 100%);
}

.gallery-lightbox-copy h3 {
  font-size: 1.6rem;
  color: #111827;
  margin-bottom: 12px;
}

.gallery-lightbox-copy p {
  color: #5b6677;
  line-height: 1.75;
  margin-bottom: 0;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  top: 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.15);
}

.gallery-lightbox-close {
  right: 14px;
}

.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-nav.prev {
  left: 14px;
}

.gallery-lightbox-nav.next {
  right: 14px;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-hero {
    min-height: 85vh;
  }

  .gallery-showcase {
    padding: 72px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox-content {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox-content img {
    min-height: 320px;
  }

  .gallery-lightbox-copy {
    padding: 18px 18px 24px;
  }

  .services-hero-content h1 {
    font-size: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .it-services-showcase {
    padding: 70px 0;
  }

  .services-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .premium-card p {
    min-height: unset;
  }
}