/* ═══════════════════════════════════════════════
   MUTEKI — Case Studies Section
   ═══════════════════════════════════════════════ */

/* SECTION SHELL */
#case-studies {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background: #080812 !important;
  padding: 120px 0 140px;
  overflow: hidden;
  box-sizing: border-box !important;
}

.cs3__wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Mesh background */
.cs3__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(91,79,232,.09) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 70%, rgba(139,92,246,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(91,79,232,.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: cs3MeshDrift 18s ease-in-out infinite alternate;
}
@keyframes cs3MeshDrift {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.06) translate(-20px, 12px); }
}

/* Header */
.cs3__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 64px;
}

.cs3__label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 18px;
}
.cs3__label-line {
  width: 28px; height: 1.5px; background: linear-gradient(90deg, #5B4FE8, transparent);
  border-radius: 2px; flex-shrink: 0;
}

.cs3__title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 900; color: #fff; line-height: 1.0; letter-spacing: -2px; text-transform: uppercase; max-width: 620px;
}
.cs3__title em { font-style: normal; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.25); letter-spacing: -2px; }
.cs3__title .cs3__accent {
  background: linear-gradient(135deg, #5B4FE8 0%, #8B5CF6 50%, #5B4FE8 100%);
  background-size: 200% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: cs3AccentShift 5s ease-in-out infinite;
}
@keyframes cs3AccentShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.cs3__head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; flex-shrink: 0; }

.cs3__all {
  display: inline-flex; align-items: center; gap: 10px; font-family: 'DM Sans', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.55); text-decoration: none; padding: 11px 22px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 100px; background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px); transition: all .25s; white-space: nowrap;
}
.cs3__all:hover {
  color: #fff; background: rgba(91,79,232,.15); border-color: rgba(91,79,232,.4);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,79,232,.2);
}
.cs3__all:hover .cs3__all-arrow { transform: translateX(5px); }
.cs3__all-arrow { width: 16px; height: 16px; transition: transform .22s; flex-shrink: 0; }

/* Featured Card */
.cs3__feat {
  display: grid; grid-template-columns: 1fr 1fr; background: #0E0E1C;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.06); overflow: hidden;
  margin-bottom: 8px; min-height: 500px;
  box-shadow: 0 0 0 1px rgba(91,79,232,.06), 0 40px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative;
}

.cs3__feat-visual {
  position: relative; background: #0A0A18; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.cs3__feat-visual::before {
  content: ''; position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  width: 380px; height: 380px; background: radial-gradient(circle, rgba(91,79,232,.22) 0%, transparent 65%); pointer-events: none;
}
.cs3__feat-visual::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%); pointer-events: none;
}

.cs3__mocks { position: relative; width: 100%; height: 100%; min-height: 460px; z-index: 2; }
.cs3__mock {
  position: absolute; border-radius: 14px; object-fit: cover;
  border: 1px solid rgba(255,255,255,.08); transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s;
}
.cs3__mock--a { width: 55%; top: 50%; left: -2%; z-index: 1; box-shadow: -8px 24px 48px rgba(0,0,0,.7); transform: translateY(-45%) rotate(-5deg); }
.cs3__mock--b { width: 70%; top: 50%; left: 15%; z-index: 3; box-shadow: 0 32px 64px rgba(0,0,0,.8); transform: translateY(-50%) rotate(0deg); }
.cs3__mock--c { width: 55%; top: 50%; right: -2%; z-index: 2; box-shadow: 8px 24px 48px rgba(0,0,0,.7); transform: translateY(-40%) rotate(5deg); }

.cs3__feat-visual:hover .cs3__mock--a { transform: translateY(-48%) rotate(-3deg) translateX(-5px); }
.cs3__feat-visual:hover .cs3__mock--b { transform: translateY(-52%) rotate(0deg); }
.cs3__feat-visual:hover .cs3__mock--c { transform: translateY(-43%) rotate(3deg) translateX(5px); }

.cs3__prog { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.05); z-index: 10; }
.cs3__prog-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, #5B4FE8, #8B5CF6, #5B4FE8);
  background-size: 200% 100%; animation: cs3ProgShimmer 2s linear infinite; transition: width linear;
}
@keyframes cs3ProgShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.cs3__feat-body {
  padding: 56px 52px; display: flex; flex-direction: column; justify-content: center;
  position: relative; background: #0E0E1C;
}
.cs3__feat-body::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,79,232,.4), transparent);
}

.cs3__feat-idx {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: 3px; color: rgba(91,79,232,.6); text-transform: uppercase;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.cs3__feat-idx::before { content: ''; width: 20px; height: 1px; background: rgba(91,79,232,.5); }

.cs3__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; min-height: 24px; }
.cs3__tag {
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .7px; text-transform: uppercase; border-radius: 5px;
  padding: 5px 11px; color: rgba(255,255,255,.5); background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); transition: all .2s;
}
.cs3__tag--hl { background: rgba(91,79,232,.2); border-color: rgba(91,79,232,.4); color: #a89ff7; }

.cs3__feat-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(22px, 2vw, 30px);
  font-weight: 800; color: #fff; line-height: 1.18; letter-spacing: -.6px; margin-bottom: 18px; min-height: 35px;
}

.cs3__sep { width: 100%; height: 1px; background: rgba(255,255,255,.06); margin-bottom: 18px; }

.cs3__feat-desc {
  font-family: 'DM Sans', sans-serif; font-size: 14.5px; line-height: 1.78;
  color: rgba(255,255,255,.38); max-width: 360px; margin-bottom: 32px; min-height: 75px;
}

.cs3__cta {
  display: inline-flex; align-items: center; gap: 10px; font-family: 'DM Sans', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: #fff; text-decoration: none; padding: 13px 28px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; background: rgba(255,255,255,.04); width: fit-content; transition: all .25s;
  position: relative; overflow: hidden; margin-bottom: 36px; white-space: nowrap;
}
.cs3__cta:hover {
  border-color: rgba(91,79,232,.6); color: #fff;
  box-shadow: 0 0 0 1px rgba(91,79,232,.3), 0 8px 28px rgba(91,79,232,.3); transform: translateY(-2px);
}
.cs3__cta-arrow { width: 14px; height: 14px; flex-shrink: 0; }

.cs3__dots { display: flex; gap: 7px; min-height: 3px; }
.cs3__dot {
  height: 3px; border-radius: 2px; border: none; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.12); transition: all .3s; width: 20px;
}
.cs3__dot.is-on { background: linear-gradient(90deg, #5B4FE8, #8B5CF6); width: 40px; }

/* Bottom Grid */
.cs3__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 250px; }
.cs3__gcard {
  background: #0E0E1C; border-radius: 18px; border: 1px solid rgba(255,255,255,.05);
  overflow: hidden; cursor: pointer; transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .28s, box-shadow .28s;
  position: relative; display: flex; flex-direction: column;
}
.cs3__gcard:hover {
  transform: translateY(-6px); border-color: rgba(91,79,232,.25);
  box-shadow: 0 0 0 1px rgba(91,79,232,.12), 0 20px 50px rgba(0,0,0,.4), 0 0 30px rgba(91,79,232,.08);
}
.cs3__gcard-thumb-wrap { position: relative; overflow: hidden; height: 175px; flex-shrink: 0; }
.cs3__gcard-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s cubic-bezier(.4,0,.2,1), filter .4s; filter: brightness(.75) saturate(.8);
}
.cs3__gcard:hover .cs3__gcard-img { transform: scale(1.06); filter: brightness(.85) saturate(1); }
.cs3__gcard-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, #0E0E1C, transparent); pointer-events: none;
}
.cs3__gcard-num {
  position: absolute; top: 12px; left: 14px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px; font-weight: 800; letter-spacing: 2px; color: rgba(255,255,255,.35);
  background: rgba(8,8,18,.7); border: 1px solid rgba(255,255,255,.07); border-radius: 5px;
  padding: 3px 8px; backdrop-filter: blur(6px); z-index: 2;
}
.cs3__gcard-arrow {
  position: absolute; top: 12px; right: 14px; width: 30px; height: 30px;
  background: rgba(91,79,232,.9); border-radius: 8px; display: grid; place-items: center;
  opacity: 0; transform: scale(.7) rotate(-45deg); transition: all .25s; z-index: 2;
}
.cs3__gcard:hover .cs3__gcard-arrow { opacity: 1; transform: scale(1) rotate(0deg); }
.cs3__gcard-arrow svg { width: 12px; height: 12px; }
.cs3__gcard-body { padding: 18px 20px 22px; flex-grow: 1; }
.cs3__gcard-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14.5px; font-weight: 800;
  color: rgba(255,255,255,.85); line-height: 1.25; letter-spacing: -.2px; transition: color .2s;
}
.cs3__gcard:hover .cs3__gcard-title { color: #fff; }

/* Mobile Carousel */
.cs3__mobile { display: none; position: relative; }

.cs3-swiper {
  width: 100%;
  padding-bottom: 40px;
  overflow: hidden;
}
.cs3-swiper:not(.swiper-initialized) {
  overflow-x: auto; display: flex; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 24px;
}
.cs3-swiper:not(.swiper-initialized)::-webkit-scrollbar { display: none; }

.swiper-wrapper { display: flex; box-sizing: border-box; }
.swiper-slide { height: auto; }

.cs3-swiper:not(.swiper-initialized) .swiper-slide {
  scroll-snap-align: center; width: 85vw; flex-shrink: 0; margin-right: 16px;
}

.cs3__mcard { background: #0E0E1C; border-radius: 18px; border: 1px solid rgba(255,255,255,.06); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.cs3__mcard-img { width: 100%; height: 210px; object-fit: cover; display: block; filter: brightness(.8); flex-shrink: 0; }
.cs3__mcard-body { padding: 26px 22px 30px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.cs3__mcard-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -.4px; }
.cs3__mcard-desc { font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.38); }

.cs3__mobile .swiper-pagination {
  position: absolute; bottom: 0px; left: 0; width: 100%;
  display: flex; justify-content: center; gap: 6px; z-index: 10;
}
.cs3__mobile .swiper-pagination-bullet {
  background: rgba(255,255,255,.2) !important; opacity: 1 !important;
  width: 8px !important; height: 8px !important; border-radius: 4px !important;
  transition: all .28s !important; margin: 0 !important; cursor: pointer;
}
.cs3__mobile .swiper-pagination-bullet-active { background: #5B4FE8 !important; width: 28px !important; }

/* Reveal */
.cs3-reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity .7s ease, transform .7s ease;
}
.js-active .cs3-reveal {
  opacity: 0 !important;
  transform: translateY(32px) !important;
}
.js-active .cs3-reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 1080px) {
  .cs3__wrap { padding: 0 32px; }
  .cs3__grid { grid-template-columns: repeat(2, 1fr); }
  .cs3__feat { grid-template-columns: 1fr; min-height: auto; }
  .cs3__feat-visual { min-height: 400px; padding-top: 30px; }
  .cs3__feat-body { padding: 40px 36px; }
  .cs3__head-right { display: none; }
}

@media (max-width: 768px) {
  #case-studies { padding: 80px 0 90px; }
  .cs3__wrap { padding: 0 20px; }
  .cs3__head { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
  .cs3__title { font-size: 34px; }
  .cs3__feat { display: none; }
  .cs3__grid { display: none; }
  .cs3__mobile { display: block; }
}
