.client-projects-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 9rem 0 8rem;
  background:
    radial-gradient(circle at 8% 12%, rgba(22, 139, 208, 0.14), transparent 25rem),
    radial-gradient(circle at 92% 78%, rgba(97, 213, 232, 0.12), transparent 22rem),
    #f5f7f8;
}

.client-projects-section::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(22, 139, 208, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 139, 208, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  pointer-events: none;
}

.client-projects-heading {
  position: relative;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.client-projects-eyebrow,
.client-project-type {
  color: #168bd0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

.client-projects-heading h2 {
  margin: 0.8rem 0 1rem;
  color: #17212b;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
}

.client-projects-heading p {
  margin: 0;
  color: #61707c;
  font-size: 1.05rem;
}

.client-projects-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.client-project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(23, 33, 43, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-project-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 1.25rem;
  left: 1.25rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, #61d5e8, transparent);
  content: "";
  opacity: 0.8;
}

.client-project-card:hover {
  transform: translateY(-0.45rem);
  box-shadow: 0 1.4rem 3rem rgba(23, 33, 43, 0.14);
}

.client-project-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #dce8ed;
  cursor: pointer;
}

.client-project-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.client-project-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 35, 48, 0.05), rgba(10, 35, 48, 0.68));
  content: "";
}

.client-project-image:hover img,
.client-project-image:focus-visible img {
  transform: scale(1.06);
}

.client-project-overlay {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
}

.client-project-overlay i {
  margin-right: 0.35rem;
  color: #61d5e8;
}

.client-project-card-body {
  padding: 1.5rem;
}

.client-project-card-body h3 {
  margin: 0.55rem 0 0.6rem;
  color: #17212b;
  font-size: 1.3rem;
  font-weight: 800;
}

.client-project-card-body p {
  margin: 0;
  color: #61707c;
  line-height: 1.65;
}

.client-project-modal .modal-content {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 1.25rem;
  background: #0b1821;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.25);
}

.client-project-modal .modal-content::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(97, 213, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 213, 232, 0.035) 1px, transparent 1px);
  background-size: 2rem 2rem;
  content: "";
  pointer-events: none;
}

.client-project-modal .modal-header {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  padding: 2rem 2rem 1rem;
  border: 0;
}

.client-project-modal .btn-close {
  filter: invert(1);
}

.client-project-modal .modal-title {
  margin-top: 0.5rem;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
}

.client-project-modal .modal-body {
  position: relative;
  z-index: 1;
  padding: 1rem 2rem 2rem;
}

.client-project-modal-project {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.client-project-gallery {
  min-width: 0;
}

.client-project-gallery-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(97, 213, 232, 0.35);
  border-radius: 0.9rem;
  background: #132d3b;
  box-shadow: inset 0 0 2rem rgba(97, 213, 232, 0.08), 0 0 1.5rem rgba(22, 139, 208, 0.12);
}

.client-project-gallery-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.12) 48%, transparent 52%);
  content: "";
  pointer-events: none;
  transform: translateX(-100%);
  animation: client-project-scan 5s ease-in-out infinite;
}

.client-project-gallery-frame img {
  display: block;
  width: 100%;
  height: 19rem;
  border-radius: 0.55rem;
  object-fit: cover;
}

.client-project-gallery-expand {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.client-project-gallery-expand span {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  color: #fff;
  background: rgba(5, 20, 29, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
}

.client-project-gallery-expand:hover img {
  transform: scale(1.04);
}

.client-project-gallery-corner {
  position: absolute;
  z-index: 1;
  width: 1.1rem;
  height: 1.1rem;
  border-color: #61d5e8;
  border-style: solid;
}

.client-project-gallery-corner-top {
  top: 0.5rem;
  left: 0.5rem;
  border-width: 2px 0 0 2px;
}

.client-project-gallery-corner-bottom {
  right: 0.5rem;
  bottom: 0.5rem;
  border-width: 0 2px 2px 0;
}

.client-project-gallery-controls {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.65rem;
}

.client-project-gallery-thumbs {
  display: flex;
  gap: 0.4rem;
  max-width: 12rem;
  overflow: hidden;
}

.client-project-gallery-thumb,
.client-project-gallery-arrow {
  flex: 0 0 auto;
  border: 1px solid rgba(97, 213, 232, 0.25);
  border-radius: 0.35rem;
  background: #132d3b;
  cursor: pointer;
}

.client-project-gallery-thumb {
  width: 2.7rem;
  height: 2rem;
  padding: 0.15rem;
  opacity: 0.55;
}

.client-project-gallery-thumb.active,
.client-project-gallery-thumb:hover,
.client-project-gallery-thumb:focus-visible {
  border-color: #61d5e8;
  opacity: 1;
}

.client-project-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.2rem;
  object-fit: cover;
}

.client-project-gallery-arrow {
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: #61d5e8;
}

.client-project-gallery-arrow:hover,
.client-project-gallery-arrow:focus-visible {
  color: #fff;
  background: #168bd0;
}

.client-project-lightbox[hidden] {
  display: none;
}

.client-project-lightbox {
  position: fixed;
  z-index: 1090;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(2, 10, 16, 0.94);
  cursor: zoom-out;
}

body.client-project-lightbox-open {
  overflow: hidden;
}

.client-project-lightbox img {
  display: block;
  width: min(78rem, 92vw);
  max-width: 92vw;
  max-height: 88vh;
  border: 1px solid rgba(97, 213, 232, 0.5);
  border-radius: 0.8rem;
  object-fit: contain;
  box-shadow: 0 0 3rem rgba(97, 213, 232, 0.2);
}

.client-project-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(97, 213, 232, 0.45);
  border-radius: 50%;
  color: #fff;
  background: #132d3b;
  cursor: pointer;
}

.client-project-modal-copy {
  padding: 1.25rem;
  border: 1px solid rgba(97, 213, 232, 0.18);
  border-radius: 0.9rem;
  background: rgba(19, 45, 59, 0.72);
}

.client-project-modal-copy h3 {
  margin: 0.45rem 0;
  color: #fff;
  font-size: 1.3rem;
}

.client-project-modal-copy p {
  margin: 0;
  color: #c9dce2;
  font-size: 0.92rem;
  line-height: 1.6;
}

.client-project-modal-preview {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #f1f7f8;
}

.client-project-modal-preview img {
  width: 7rem;
  height: 5rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.client-project-modal-preview h3 {
  margin: 0.35rem 0;
  color: #17212b;
  font-size: 1.15rem;
}

.client-project-modal-preview p {
  margin: 0;
  color: #61707c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.client-project-form {
  display: grid;
  gap: 1.15rem;
}

.client-project-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.client-project-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 700;
}

.client-project-form input,
.client-project-form textarea {
  display: block;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #ccd9df;
  border-radius: 0.55rem;
  color: #17212b;
  background: #fff;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-project-form textarea {
  resize: vertical;
}

.client-project-form input:focus,
.client-project-form textarea:focus {
  border-color: #168bd0;
  box-shadow: 0 0 0 0.2rem rgba(22, 139, 208, 0.15);
}

.client-project-submit {
  justify-self: start;
  padding: 0.85rem 1.3rem;
  border: 0;
  border-radius: 2rem;
  color: #fff;
  background: #168bd0;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.client-project-submit:hover {
  background: #0e6ea8;
  transform: translateY(-0.1rem);
}

.client-project-submit i {
  margin-left: 0.5rem;
}

.client-project-form-status {
  min-height: 1.3rem;
  margin: 0;
  color: #168bd0;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .client-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-project-modal-project {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .client-projects-section {
    padding: 5rem 0;
  }

  .client-projects-grid,
  .client-project-form-grid {
    grid-template-columns: 1fr;
  }

  .client-project-modal .modal-header,
  .client-project-modal .modal-body {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .client-project-modal-preview {
    grid-template-columns: 5.5rem 1fr;
  }

  .client-project-modal-preview img {
    width: 5.5rem;
    height: 4.5rem;
  }

  .client-project-gallery-frame img {
    height: 15rem;
  }
}

@keyframes client-project-scan {
  0%, 35% {
    transform: translateX(-100%);
  }

  65%, 100% {
    transform: translateX(100%);
  }
}
