/* ============================================================
   CASE STUDY PAGE — PRception
   Grid Gallery + Modal Detail Design
   ============================================================ */

/* ── Hero Section ────────────────────────────────────────── */
.case-study-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  padding: 160px 0 100px;
}

.dark .case-study-hero {
  background: #050505;
}

body:not(.dark) .case-study-hero {
  background: #fafafa;
}

.cs-hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(60px, 15vw, 220px);
  font-weight: 700;
  color: var(--primary);
  opacity: 0.03;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  letter-spacing: -2px;
  line-height: 1;
  max-width: 100vw;
  overflow: hidden;
}

.case-study-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.cs-hero-title {
  font-size: clamp(60px, 10vw, 140px);
  line-height: 0.9;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 30px;
  letter-spacing: -3px;
}

.dark .cs-hero-title {
  color: #fff;
}

body:not(.dark) .cs-hero-title {
  color: #111;
}

.cs-hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.6;
  color: var(--secondary);
  max-width: 600px;
  margin: 0 auto;
}

.dark .cs-hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

body:not(.dark) .cs-hero-subtitle {
  color: #666;
}

/* Hero Stats Bar */
.cs-hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.cs-hero-stat {
  text-align: center;
}

.cs-hero-stat-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--theme);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.cs-hero-stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
}

.dark .cs-hero-stat-label {
  color: rgba(255, 255, 255, 0.5);
}

body:not(.dark) .cs-hero-stat-label {
  color: #999;
}

/* ── Filter / Category Tabs ─────────────────────────────── */
.cs-filter-section {
  padding: 40px 0 20px;
}

.cs-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cs-filter-btn {
  padding: 10px 28px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font_bdogrotesk);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.5px;
}

.dark .cs-filter-btn {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

body:not(.dark) .cs-filter-btn {
  border-color: #ddd;
  color: #666;
}

.cs-filter-btn:hover,
.cs-filter-btn.active {
  background: var(--theme);
  border-color: var(--theme);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 143, 135, 0.25);
}

/* ══════════════════════════════════════════════════════════
   CASE STUDY GRID — Image Gallery Layout
   ══════════════════════════════════════════════════════════ */
.case-study-section {
  padding: 60px 0 100px;
}

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

@media (max-width: 991px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .cs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Gallery Thumbnail Card ────────────────────────────── */
.cs-gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  /* aspect-ratio: 4 / 3; */
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .cs-gallery-item {
  border-color: rgba(255, 255, 255, 0.08);
}

body:not(.dark) .cs-gallery-item {
  border-color: #eee;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.cs-gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.dark .cs-gallery-item:hover {
  border-color: rgba(1, 143, 135, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

body:not(.dark) .cs-gallery-item:hover {
  border-color: var(--theme);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.cs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-gallery-item:hover img {
  transform: scale(1.08);
}

/* Overlay on hover */
.cs-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  z-index: 2;
}

.cs-gallery-item:hover .cs-gallery-overlay {
  opacity: 1;
}

.cs-gallery-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(1, 143, 135, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 8px;
  width: fit-content;
}

.cs-gallery-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--theme);
  border-radius: 50%;
  flex-shrink: 0;
}

.cs-gallery-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
}

.cs-gallery-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* View icon */
.cs-gallery-view-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(1, 143, 135, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  z-index: 3;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)
}

.cs-gallery-item:hover .cs-gallery-view-icon {
  opacity: 1;
  transform: scale(1);
}

/* ══════════════════════════════════════════════════════════
   CASE STUDY MODAL — Full Screen Vertical Layout
   ══════════════════════════════════════════════════════════ */
.cs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.cs-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Scrollbar for backdrop */
.cs-modal-backdrop::-webkit-scrollbar {
  width: 6px;
}

.cs-modal-backdrop::-webkit-scrollbar-track {
  background: transparent;
}

.cs-modal-backdrop::-webkit-scrollbar-thumb {
  background: rgba(1, 143, 135, 0.4);
  border-radius: 4px;
}

.cs-modal {
  width: 95%; /* Creates gap to show glass effect and shadow */
  max-width: 1400px;
  min-height: calc(100vh - 40px); /* Gives top and bottom gap */
  margin: 20px auto; /* 20px gap top and bottom to reveal backdrop blur */
  display: flex;
  flex-direction: column;
  transform: translateY(40px) scale(0.98);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden; /* Prevent inner content from bleeding past rounded corners */

  /* PREMIUM APPLE-STYLE GLASSMORPHISM REQUESTED BY USER */
  background: hsl(0, 0%, 100%);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border-radius: 20px;
  box-shadow: 
      0 0 2px 1px rgba(0, 0, 0, 0.15) inset,
      0 0 10px 4px rgba(0, 0, 0, 0.10) inset,
      0px 4px 16px rgba(17, 17, 26, 0.05), 
      0px 8px 24px rgba(17, 17, 26, 0.1),
      0px 0 8px rgba(17, 17, 26, 0.05), 
      0px 8px 24px rgba(17, 17, 26, 0.2),
      0px 16px 56px rgba(17, 17, 26, 0.08),
      0px 4px 16px rgba(17, 17, 26, 0.05) inset,
      0px 8px 24px rgba(17, 17, 26, 0.05) inset,
      0px 16px 56px rgba(17, 17, 26, 0.05) inset;
}

body.cs-modal-open #smooth-wrapper {
  filter: blur(15px) saturate(120%);
  transform: scale(0.99);
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#smooth-wrapper {
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .cs-modal {
  background: hsla(0, 0%, 100%, 0.5);
  backdrop-filter: blur(30px) saturate(1);
  -webkit-backdrop-filter: blur(30px) saturate(1);
  box-shadow: 
      0 0 2px 1px rgba(255, 255, 255, 0.35) inset,
      0 0 10px 4px rgba(255, 255, 255, 0.15) inset,
      0px 4px 16px rgba(17, 17, 26, 0.05), 
      0px 8px 24px rgba(17, 17, 26, 0.05),
      0px 0 8px rgba(17, 17, 26, 0.05), 
      0px 8px 24px rgba(17, 17, 26, 0.2),
      0px 16px 56px rgba(17, 17, 26, 0.05),
      0px 4px 16px rgba(17, 17, 26, 0.05) inset,
      0px 8px 24px rgba(17, 17, 26, 0.05) inset,
      0px 16px 56px rgba(17, 17, 26, 0.05) inset;
}



.cs-modal-backdrop.active .cs-modal {
  transform: translateY(0);
  opacity: 1;
}

/* ── Modal Close Button ─────────────────────────────── */
.cs-modal-close {
  position: fixed;
  top: 20px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

body:not(.dark) .cs-modal-close {
  background: rgba(0, 0, 0, 0.7);
}

.cs-modal-close:hover {
  background: var(--theme);
  border-color: var(--theme);
  transform: rotate(90deg) scale(1.1);
}

/* ══════════════════════════════════════════════════════
   MODAL SCREENSHOT-INSPIRED LAYOUT
   ══════════════════════════════════════════════════════ */
.cs-screenshot-layout {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ── Top Hero View (Transparent) ── */
.cs-ss-hero {
  background: transparent;
  padding: 80px 10vw 50px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.dark .cs-ss-hero {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 767px) {
  .cs-ss-hero {
    padding: 60px 20px 40px;
  }
}

.cs-ss-title-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 991px) {
  .cs-ss-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
  }
}

.cs-ss-hero-img {
  width: 200px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cs-ss-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-ss-huge-title {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  color: #111;
  letter-spacing: -2.5px;
  line-height: 1;
  margin: 0;
}

.dark .cs-ss-huge-title {
  color: #fff;
}

.cs-ss-meta-row {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 40px;
  flex-wrap: wrap;
}

.dark .cs-ss-meta-row {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.cs-ss-meta-item {
  flex: 1;
  min-width: 150px;
}

.cs-ss-meta-item span {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.dark .cs-ss-meta-item span {
  color: rgba(255, 255, 255, 0.4);
}

.cs-ss-meta-item p {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin: 0;
  line-height: 1.4;
}

.dark .cs-ss-meta-item p {
  color: #fff;
}

/* ── Media Full Width ── */
.cs-ss-media {
  width: 100%;
  /* aspect-ratio: 16 / 7; */
  max-height: 800px;
  background: #000;
  overflow: hidden;
}

@media (max-width: 767px) {
  .cs-ss-media {
    aspect-ratio: 16 / 9;
  }
}

.cs-ss-media video,
.cs-ss-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Narrative Section ── */
.cs-ss-narrative {
  background: transparent;
  padding: 100px 10vw;
  color: #111;
}

.dark .cs-ss-narrative {
  background: transparent;
}

@media (max-width: 767px) {
  .cs-ss-narrative {
    padding: 60px 20px;
  }
}

.cs-ss-narrative-inner {
  display: flex;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .cs-ss-narrative-inner {
    flex-direction: column;
    gap: 40px;
  }
}

.cs-ss-narrative-left {
  flex: 1;
}

.cs-ss-narrative-left h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  color: #111;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0;
  max-width: 500px;
}

.dark .cs-ss-narrative-left h2 {
  color: #fff;
}

.cs-ss-narrative-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cs-ss-narrative-right p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.dark .cs-ss-narrative-right p {
  color: #a0a0a0;
}

.cs-ss-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-ss-service-list li {
  font-size: 15px;
  color: #111;
  font-weight: 500;
}

.dark .cs-ss-service-list li {
  color: #fff;
}

/* Narrative Stats */
.cs-ss-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cs-ss-stat h4 {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
  line-height: 1;
}

.dark .cs-ss-stat h4 {
  color: #fff;
}

.cs-ss-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
}

/* ── Remaining Gallery & CTA Bottom ── */
.cs-ss-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 60px 10vw;
  background: transparent;
}

.dark .cs-ss-gallery {
  background: transparent;
}

@media (max-width: 767px) {
  .cs-ss-gallery {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
}

.cs-ss-cta {
  display: flex;
  justify-content: center;
  padding: 0 10vw 80px;
  background: transparent;
}

.dark .cs-ss-cta {
  background: transparent;
}




/* ── Case Study Stats Marquee ────────────────────────────── */
.cs-marquee-section {
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}

.cs-marquee-track {
  display: flex;
  animation: csMarquee 20s linear infinite;
  gap: 60px;
  white-space: nowrap;
}

.cs-marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}

.cs-marquee-item .marquee-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--theme);
  line-height: 1;
}

.cs-marquee-item .marquee-text {
  font-size: 16px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.dark .cs-marquee-item .marquee-text {
  color: rgba(255, 255, 255, 0.4);
}

body:not(.dark) .cs-marquee-item .marquee-text {
  color: #999;
}

.cs-marquee-divider {
  width: 4px;
  height: 4px;
  background: var(--theme);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.5;
}

@keyframes csMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── Approach / Process Section ─────────────────────────── */
.cs-approach-section {
  padding: 100px 0;
  position: relative;
}

.dark .cs-approach-section {
  background: #0a0a0a;
}

body:not(.dark) .cs-approach-section {
  background: #fafafa;
}

.cs-approach-header {
  text-align: center;
  margin-bottom: 80px;
}

.cs-approach-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--theme);
  margin-bottom: 20px;
  display: block;
  font-weight: 600;
}

.cs-approach-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--primary);
  max-width: 700px;
  margin: 0 auto;
}

.dark .cs-approach-title {
  color: #fff;
}

body:not(.dark) .cs-approach-title {
  color: #111;
}

.cs-approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

@media (max-width: 991px) {
  .cs-approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .cs-approach-grid {
    grid-template-columns: 1fr;
  }
}

.cs-approach-card {
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .cs-approach-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

body:not(.dark) .cs-approach-card {
  background: #fff;
  border-color: #eee;
}

.cs-approach-card:hover {
  transform: translateY(-10px);
  border-color: var(--theme);
}

.dark .cs-approach-card:hover {
  background: rgba(1, 143, 135, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body:not(.dark) .cs-approach-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.cs-approach-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--theme), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cs-approach-card:hover::before {
  opacity: 1;
}

.cs-approach-step {
  font-size: 52px;
  font-weight: 800;
  color: var(--theme);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.2;
}

.cs-approach-card:hover .cs-approach-step {
  opacity: 0.5;
}

.cs-approach-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(1, 143, 135, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme);
  font-size: 20px;
  margin-bottom: 24px;
}

.cs-approach-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}

.dark .cs-approach-card-title {
  color: #fff;
}

body:not(.dark) .cs-approach-card-title {
  color: #111;
}

.cs-approach-card-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--secondary);
}

.dark .cs-approach-card-text {
  color: rgba(255, 255, 255, 0.5);
}

body:not(.dark) .cs-approach-card-text {
  color: #777;
}

/* ── CTA Section ────────────────────────────────────────── */
.cs-cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cs-cta-box {
  border-radius: 30px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
}

.dark .cs-cta-box {
  background: linear-gradient(135deg, #0d0d0d, #1a1a2e);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body:not(.dark) .cs-cta-box {
  background: linear-gradient(135deg, #111, #1a1a2e);
}

.cs-cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 143, 135, 0.25), transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  animation: csCtaGlow 4s ease-in-out infinite alternate;
}

@keyframes csCtaGlow {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.cs-cta-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--theme);
  margin-bottom: 20px;
  display: block;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.cs-cta-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.cs-cta-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
}

.cs-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ── Scroll-triggered animations ─────────────────────────── */
.cs-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.cs-reveal-delay-1 {
  transition-delay: 0.1s;
}

.cs-reveal-delay-2 {
  transition-delay: 0.2s;
}

.cs-reveal-delay-3 {
  transition-delay: 0.3s;
}

.cs-reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── Responsive Adjustments ─────────────────────────────── */
@media (max-width: 991px) {
  .cs-hero-stats {
    gap: 30px;
  }

  .cs-hero-title {
    font-size: clamp(50px, 10vw, 80px);
    letter-spacing: -2px;
  }
}

@media (max-width: 767px) {
  .case-study-hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .cs-hero-title {
    font-size: clamp(42px, 10vw, 60px);
    letter-spacing: -1px;
    margin-bottom: 15px;
  }

  .cs-hero-stats {
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
  }

  .cs-hero-stat-number {
    font-size: 32px;
  }

  .cs-cta-box {
    padding: 40px 20px;
    border-radius: 20px;
  }

  .cs-marquee-item .marquee-number {
    font-size: 28px;
  }

  .cs-filter-btn {
    padding: 8px 18px;
    font-size: 13px;
  }

  .case-study-section {
    padding: 40px 0 60px;
  }

  .cs-approach-section {
    padding: 60px 0;
  }

  .cs-cta-section {
    padding: 60px 0;
  }

  .cs-approach-header {
    margin-bottom: 40px;
  }

  .cs-approach-title {
    font-size: 32px;
  }

  .cs-cta-title {
    font-size: 36px;
  }
}

@media (max-width: 575px) {
  .cs-hero-title {
    font-size: 40px;
  }
}

/* ── Prevent body scroll when modal is open ───────────── */
body.cs-modal-open {
  overflow: hidden;
}