/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #04142c;
  --bg-mid: #0a274d;
  --orange: #ff7a1a;
  --orange-light: #ffa53d;
  --white: #f7f9ff;
}

/* ===== CONTAINER ===== */
.ta-clients-revamp .container {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0;
}

/* ===== HERO ===== */
.clients-hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=2200&q=80") center / cover no-repeat;
}

/* Vertical glass-window bars */
.clients-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(6, 19, 42, 0.55) 0,
      rgba(6, 19, 42, 0.55) 58px,
      rgba(255, 255, 255, 0.09) 58px,
      rgba(255, 255, 255, 0.09) 62px,
      rgba(6, 19, 42, 0.42) 62px,
      rgba(6, 19, 42, 0.42) 275px
    );
  mix-blend-mode: normal;
}

/* Depth and color wash */
.clients-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 8% 28%, rgba(255, 127, 45, 0.48), rgba(255, 127, 45, 0) 35%),
    radial-gradient(circle at 85% 20%, rgba(22, 114, 235, 0.35), rgba(22, 114, 235, 0) 36%),
    linear-gradient(
      90deg,
      rgba(4, 17, 40, 0.92) 0%,
      rgba(3, 22, 50, 0.8) 32%,
      rgba(3, 26, 60, 0.75) 60%,
      rgba(3, 25, 58, 0.9) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(8, 22, 44, 0.2) 0%,
      rgba(2, 13, 33, 0.94) 72%,
      rgba(1, 8, 22, 0.98) 100%
    );
}

/* ===== CONTENT ===== */
.clients-hero__content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  padding-bottom: clamp(70px, 9vh, 110px);
}

/* ===== TAG ===== */
.clients-hero__tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.clients-hero__tag-line {
  width: 46px;
  height: 2px;
  background: var(--orange);
}

.clients-hero__tag-text {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--orange);
  font-weight: 600;
}

/* ===== TITLE ===== */
.clients-hero__title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
}

.clients-hero__title-white,
.clients-hero__title strong,
.clients-hero__title span {
  font-weight: 700;
}

.clients-hero__title strong,
.clients-hero__title span {
    color: var(--orange);
    display: inline-block;
    background: none;
    -webkit-text-fill-color: initial;
}

.clients-hero__subtitle {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(247, 249, 255, 0.85);
    max-width: 680px;
}

/* ===== SCROLL ===== */
.clients-hero__scroll {
  position: absolute;
  right: clamp(18px, 3.3vw, 44px);
  bottom: clamp(34px, 7vh, 72px);
  z-index: 3;

  writing-mode: vertical-rl;
  transform: rotate(180deg);

  font-size: 10px;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.5);
}

.clients-hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 76px;
  margin: 12px auto 0;
  background: linear-gradient(to bottom, rgba(255, 122, 26, 0.9), rgba(255, 122, 26, 0));
}

.clients {
  position: relative;
  padding: 96px 0 110px;
  background:
    radial-gradient(circle at 14% 14%, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0) 26%),
    radial-gradient(circle at 85% 12%, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0) 28%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  overflow: hidden;
}

.clients::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 82% 78%, rgba(15, 23, 42, 0.04), transparent 42%),
    radial-gradient(circle, rgba(15, 23, 42, 0.08) 1px, transparent 1.5px);
  background-size: auto, 22px 22px;
  background-position: center, 0 0;
  pointer-events: none;
  z-index: 0;
}

.clients .container {
  position: relative;
  z-index: 1;
}

.clients__header {
  max-width: 760px;
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}

.clients__title {
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f1d3d;
}

.clients__title span,
.clients__title strong {
  color: var(--orange);
  background: none;
  -webkit-text-fill-color: initial;
}

.clients__subtitle {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.clients__grid.hidden .client-card:nth-child(n+10) {
  display: none;
}

.clients__grid-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.clients__show-all-btn {
  margin-top: 48px;
  padding: 14px 40px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  letter-spacing: 0.5px;
}

.clients__show-all-btn:hover {
  background: #ff6a00;
  transform: translateY(-2px);
}

.clients__show-all-btn:active {
  transform: translateY(0);
}

.client-card {
  --line-offset: 22px;
  --line-base: 88px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 245px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid #dbe5f1;
  border-radius: 18px;
  padding: 24px 22px 22px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(8, 28, 61, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.client-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--line-offset);
  width: var(--line-base);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), #ffb77b);
  transition: width 360ms ease;
  z-index: 2;
}

.client-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -40%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(10, 39, 77, 0.02), transparent 70%);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.28s ease;
}

.client-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 122, 26, 0.15);
  box-shadow: 0 20px 40px rgba(8, 28, 61, 0.12);
}

.client-card:hover::after {
  width: 380px;
  height: 380px;
  top: -60%;
  right: -60%;
}

.client-card:hover::before {
  width: calc(100% - (var(--line-offset) * 2));
}

.client-card__logo-wrap {
  width: max-content;
  max-width: 100%;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
  z-index: 3;
}

.client-card__logo {
  width: auto;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.client-card h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f1d3d;
  position: relative;
  z-index: 3;
}

.client-card p {
  font-size: 14px;
  color: #5b6b83;
  line-height: 1.65;
  position: relative;
  z-index: 3;
}

/* Coloring for client-cards */
.client-card.purple::before { background: linear-gradient(90deg, #8b5cf6, #c4b5fd); }
.client-card.orange::before { background: linear-gradient(90deg, #f97316, #fdba74); }
.client-card.pink::before { background: linear-gradient(90deg, #ec4899, #f9a8d4); }
.client-card.red::before { background: linear-gradient(90deg, #ef4444, #fca5a5); }
.client-card.green::before { background: linear-gradient(90deg, #10b981, #6ee7b7); }
.client-card.blue::before { background: linear-gradient(90deg, #3b82f6, #93c5fd); }
.client-card.teal::before { background: linear-gradient(90deg, #14b8a6, #5eead4); }

/* ===== CASE STUDIES ===== */
.case-studies {
  position: relative;
  padding: 100px 0 110px;
  background-color: #ffffff;
  background-image: 
    linear-gradient(rgba(226, 232, 240, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow: hidden;
}

.view-all-cases-btn {
  display: inline-flex;
  align-items: center;
  padding: 18px 40px;
  background: #0a1128;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.view-all-cases-btn:hover {
  background: #0a1128;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 17, 40, 0.2);
}


.case-studies__bg-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

.case-studies__bg-art svg {
  position: absolute;
  top: -80px;
  right: -40px;
  width: min(52vw, 640px);
  height: auto;
}

.case-studies .container {
  position: relative;
  z-index: 1;
}

.case-studies__header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.case-studies__title {
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f1d3d;
  margin-bottom: 12px;
}

.case-studies__title span,
.case-studies__title strong {
  color: var(--orange);
  font-weight: 700;
  background: none;
  -webkit-text-fill-color: initial;
}

.case-studies__subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: #5b6b83;
}

.case-studies__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.case-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(15, 29, 61, 0.04);
  text-decoration: none;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 29, 61, 0.08);
  border-color: var(--orange);
}

.case-card__media {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  overflow: hidden;
  border-radius: 12px;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-card__content h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f1d3d;
  margin: 0;
}

.case-card__content p {
  font-size: 14px;
  color: #5b6b83;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-card__link::after {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, width 0.3s ease;
}

.case-card:hover .case-card__media img {
  transform: scale(1.06);
}

.case-card:hover .case-card__link::after {
  width: 52px;
  transform: translateX(4px);
}

/* ===== POST CASE CTA ===== */
.clients-cta {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 100%);
}

.clients-cta .container {
  padding: 0 clamp(20px, 4vw, 48px);
}

.clients-cta__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 140, 59, 0.28), rgba(255, 140, 59, 0) 28%),
    linear-gradient(135deg, #0b1735 0%, #102a52 55%, #0d1f42 100%);
  box-shadow: 0 24px 60px rgba(8, 28, 61, 0.16);
}

.ta-clients-revamp .clients-cta__panel h2.clients-cta__title {
  max-width: 720px;
  color: #f7f9ff !important;
  font-size: clamp(30px, 4vw, 48px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 20px;
}

.ta-clients-revamp .clients-cta__panel p.clients-cta__text {
  max-width: 620px;
  margin-top: 14px;
  color: rgba(247, 249, 255, 0.78) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

.clients-cta__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #ffa53d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ta-clients-revamp .clients-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.ta-clients-revamp .clients-cta__button--primary {
  background: var(--orange) !important;
  color: #fff !important;
}

.ta-clients-revamp .clients-cta__button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f7f9ff !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .clients-hero__title {
    font-size: 42px;
  }
  .clients__grid {
    grid-template-columns: 1fr;
  }
  .case-studies__grid {
    grid-template-columns: 1fr;
  }
  .clients-cta__panel {
    grid-template-columns: 1fr;
  }
}
