@font-face {
  font-family: "Anton";
  src: local("Anton"), url("/fonts/Anton-Regular.ttf") format("truetype");
}
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  --primary-color: #0b2f2f;
  --red: #e50914;
  --white: #fff;
  --fontgilroy: "Gilroy-Medium";
  --fontanton: "Anton";
  --fontinter: "Inter", sans-serif;
  --fontbarlow: "Barlow Condensed", sans-serif;
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* ===================================
   DESKTOP STYLES (> 768px)
   =================================== */

/* Section Wrapper */

body {
  background-color: #000;
}
.my-logo-section {
  position: relative;
  padding: 3rem 1rem 1rem;
  margin: 0;
  color: var(--text-primary, #fff);
  font-family: var(
    --font-primary,
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif
  );
  background: radial-gradient(
    circle at 50% 0,
    rgba(255, 255, 255, 0.15) 0%,
    #000 50%
  );
  overflow: hidden;
}

/* Thin Horizontal Line */
.my-logo-section .page-break {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
  top: 0;
}

/* Mission Label and Tagline */
.my-logo-section .mission-label {
  /* 
  
  
  font-family: var(--font-primary, 'Inter', sans-serif);
  font-size: var(--text-lg, 0.875rem);
  font-weight: var(--font-semibold, 600);
  letter-spacing: var(--tracking-widest, 0.1em);
  text-transform: uppercase;
  color: var(--text-secondary, #a0a0a0);
  line-height: var(--leading-tight, 1.25);
   */
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: var(--fontanton);
  font-size: 70px;
  font-style: normal;
  font-weight: 400;
  line-height: 70px; /* 100% */
  text-transform: uppercase;
  background: url("/images/heading-bg.webp") lightgray 50% / contain repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 3;
}

.my-logo-section .mission-label strong {
  font-weight: 700;
  color: #ffffff;
}

.my-logo-section .tagline {
  display: block;
  text-align: center;
  margin-bottom: 2.5rem;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-base, 1rem);
  font-weight: var(--font-normal, 400);
  color: var(--text-secondary, #ccc);
  line-height: var(--leading-normal, 1.5);
  position: relative;
  z-index: 3;
}

/* Particles */
.my-logo-section .particle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.my-logo-section .particle-container .particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: floatFade 10s infinite ease-in-out;
}

.my-logo-section .particle-container .particle:nth-child(odd) {
  width: 3px;
  height: 3px;
  filter: blur(0.5px);
}

.my-logo-section .particle-container .particle:nth-child(3n) {
  width: 1px;
  height: 1px;
  opacity: 0.8;
}

@keyframes floatFade {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  25% {
    opacity: 0.6;
    transform: translate(-5px, -10px);
  }
  50% {
    opacity: 0.6;
    transform: translate(5px, 10px);
  }
  75% {
    opacity: 0.6;
    transform: translate(-3px, 6px);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

/* Logo Grid */
.my-logo-section .logo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

@media (max-width: 1200px) and (min-width: 769px) {
  .my-logo-section .logo-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .my-logo-section .logo-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
  }
}

.my-logo-section .logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  min-height: 60px;
  padding: 0.25rem;
  opacity: 0;
  animation: fadeInScale 0.6s forwards;
  animation-delay: calc(var(--index) * 0.05s);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.my-logo-section .logo-grid img {
  width: 100%;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.my-logo-section .logo-item:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

/* Loading Skeleton */
.skeleton-loader {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  min-height: 300px;
}

.skeleton-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.skeleton-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

.skeleton-logo {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 0 auto 1rem;
}

.skeleton-text {
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-text.short {
  width: 60%;
  margin: 0 auto;
}

/* Case Studies Component */
.my-case-studies {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Controls Container */
.controls-container {
  background: rgba(30, 30, 30, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
  overflow: hidden;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.controls-left-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

/* Case Studies Count */
.case-studies-count {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-medium, 500);
  color: var(--text-secondary, #aaa);
  white-space: nowrap;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-studies-count .count-number {
  font-weight: var(--font-bold, 700);
  color: var(--text-primary, #fff);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

/* Search Bar */
.case-studies-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #fff);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.5rem 2.5rem 0.5rem 2.5rem;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-normal, 400);
  transition: all 0.2s ease;
  outline: none;
}

.search-input:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.08);
}

.search-input:focus {
  border-color: #ff0099;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(255, 0, 153, 0.2);
}

.search-input::placeholder {
  color: #999;
}

.search-icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.search-input:focus ~ .search-icon {
  opacity: 1;
}

.search-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.clear-search {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #999;
}

.clear-search:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.1);
}

.clear-search.visible {
  display: flex;
}

.search-results-info {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-xs, 0.75rem);
  color: #999;
  margin-left: 0.5rem;
  white-space: nowrap;
  animation: fadeIn 0.3s ease;
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-top: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.search-suggestions.visible {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-suggestion {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: var(--text-sm, 0.875rem);
  text-align: left;
}

.search-suggestion:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-suggestion mark {
  background: rgba(255, 0, 153, 0.3);
  color: #ff0099;
  font-weight: 600;
}

/* Copy Link Button */
.copy-link-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #fff);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-medium, 500);
  letter-spacing: var(--tracking-normal, 0);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.copy-link-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.copy-link-btn:hover::before {
  width: 200%;
  height: 200%;
}

.copy-link-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.copy-link-btn:active {
  transform: translateY(0);
}

.copy-link-btn.copied {
  background: rgba(0, 255, 0, 0.2);
  border-color: rgba(0, 255, 0, 0.5);
}

.copy-link-btn .copy-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.copy-link-btn:hover .copy-icon {
  opacity: 1;
}

.copy-link-btn .copy-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.copy-link-message {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: var(--text-sm, 0.875rem);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.copy-link-message::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(0, 0, 0, 0.9);
}

.copy-link-message.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

/* Filter Toggle Button */
.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #fff);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-medium, 500);
  letter-spacing: var(--tracking-normal, 0);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.filter-toggle-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.filter-toggle-btn:hover::before {
  width: 200%;
  height: 200%;
}

.filter-toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.filter-toggle-btn:active {
  transform: translateY(0);
}

.filter-toggle-btn.active {
  background: rgba(255, 0, 153, 0.2);
  border-color: #ff0099;
  color: #ff0099;
}

.filter-toggle-btn .filter-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.filter-toggle-btn:hover .filter-icon {
  opacity: 1;
}

.filter-toggle-btn .filter-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Reset Filters Button in Top Bar */
.reset-filters-top {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #fff);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-medium, 500);
  letter-spacing: var(--tracking-normal, 0);
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reset-filters-top.visible {
  opacity: 1;
  visibility: visible;
  animation: fadeInScale 0.3s ease;
}

.reset-filters-top:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
  transform: translateY(-1px);
}

.reset-filters-top:active {
  transform: translateY(0);
}

.reset-filters-top .reset-icon {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.reset-filters-top:hover .reset-icon {
  opacity: 1;
}

.reset-filters-top .reset-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Filter Row */
.filter-row {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(20, 20, 20, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-row.expanded {
  max-height: 500px;
  padding: 1.5rem;
}

.filter-row-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeInUp 0.4s forwards;
  animation-delay: calc(var(--section-index) * 0.1s);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-section-title {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-semibold, 600);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide, 0.025em);
  color: var(--text-secondary, #aaa);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-section-count {
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--font-normal, 400);
  color: #ff0099;
  background: rgba(255, 0, 153, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.filter-section-actions {
  display: flex;
  gap: 0.5rem;
}

.select-all-btn,
.deselect-all-btn {
  font-size: var(--text-xs, 0.75rem);
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.select-all-btn:hover,
.deselect-all-btn:hover {
  color: #fff;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-primary, #fff);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  transform: scale(1);
}

.filter-pill[style*="display: none"] {
  display: none !important;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px) scale(1.05);
}

.filter-pill.active {
  background: rgba(255, 0, 153, 0.2);
  border-color: #ff0099;
  color: #ff0099;
  animation: pillActivate 0.3s ease;
}

@keyframes pillActivate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.filter-pill.active:hover {
  background: rgba(255, 0, 153, 0.3);
  transform: translateY(-1px) scale(1.05);
}

.filter-pill-count {
  font-size: var(--text-xs, 0.75rem);
  color: #999;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.filter-pill.active .filter-pill-count {
  color: #ff0099;
  opacity: 0.7;
}

.filter-checkboxes {
  display: none;
}

.filter-actions-bottom {
  display: none; /* Hide the entire bottom actions section */
}

.reset-filters-btn,
.hide-filters-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #fff);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-medium, 500);
  letter-spacing: var(--tracking-normal, 0);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.reset-filters-btn:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
  transform: translateY(-1px);
}

.hide-filters-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.reset-filters-btn:active,
.hide-filters-btn:active {
  transform: translateY(0);
}

/* Pagination */
.pagination-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.pagination-controls button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #fff);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-medium, 500);
  letter-spacing: var(--tracking-normal, 0);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  position: relative;
  overflow: hidden;
}

.pagination-controls button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.pagination-controls button:hover::after {
  width: 200%;
  height: 200%;
}

.pagination-controls button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.pagination-controls button:active {
  transform: translateY(0);
}

.pagination-controls button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  vertical-align: middle;
  margin-top: -1px; /* Adjusted to better align with text */
  display: inline-block;
}

.pagination-controls button:hover svg {
  opacity: 1;
}

#pagination-info {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-normal, 400);
  color: rgba(255, 255, 255, 0.7);
  padding: 0 0.5rem;
  min-width: 120px;
  text-align: center;
  z-index: 10000;
}

/* Grid Container (Closed Cards) */
.case-study-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1.5rem;
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  min-height: 100px;
  transition: height 0.5s ease;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.7),
    rgba(10, 10, 10, 0.7)
  );
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  contain: layout style;
}

@media (max-width: 1199px) and (min-width: 900px) {
  .case-study-list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
  }
}

.case-study-list.no-results {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.no-results-message {
  text-align: center;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-base, 1rem);
  color: #999;
  padding: 2rem;
  animation: fadeIn 0.5s ease;
}

.no-results-message h3 {
  font-size: var(--text-lg, 1.125rem);
  font-weight: var(--font-semibold, 600);
  color: #ccc;
  margin-bottom: 0.5rem;
}

.no-results-message p {
  margin-bottom: 1rem;
}

.no-results-suggestions {
  font-size: var(--text-sm, 0.875rem);
  color: #aaa;
}

.no-results-suggestions strong {
  color: #ff0099;
}

.case-study-item {
  position: relative;
  background: center center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.45); /* Slightly increased border visibility */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-primary, #fff);
  font-family: var(--font-primary, "Inter", sans-serif);
  z-index: 1;
  box-sizing: border-box;
  min-height: 250px;
  overflow: hidden;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s ease, box-shadow 0.4s ease;
  border-radius: 6px;
  opacity: 0;
  animation: fadeInScale 0.6s forwards;
  animation-delay: calc(var(--card-index) * 0.1s);
  will-change: transform;
  contain: layout style paint;
  isolation: isolate;
}

.case-study-item::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.75) 60%,
    rgba(0, 0, 0, 0.9) 90%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 6px;
}

.case-study-item:hover {
  transform: scale(1.02) translateZ(0);
  border-color: rgba(
    255,
    255,
    255,
    0.65
  ); /* Slightly increased hover border visibility */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.case-study-item:hover::after {
  opacity: 0.85;
}

.brand-logo-closed {
  position: relative;
  width: 100px;
  max-width: 40%;
  margin-bottom: 0.75rem;
  z-index: 1;
}

.brand-logo-closed img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%) brightness(0.8);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.case-study-item:hover .brand-logo-closed img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.1);
}

.brand-name {
  position: relative;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-lg, 1.125rem);
  font-weight: var(--font-bold, 700);
  line-height: var(--leading-tight, 1.25);
  margin-bottom: 0.5rem;
  z-index: 1;
  word-wrap: break-word;
  hyphens: auto;
}

.industry-label {
  position: relative;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--font-medium, 500);
  letter-spacing: var(--tracking-wider, 0.05em);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  z-index: 1;
  word-wrap: break-word;
  text-align: center;
}

.headline-results {
  position: relative;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-base, 1rem);
  font-weight: var(--font-normal, 400);
  line-height: var(--leading-normal, 1.5);
  margin-top: 0.5rem;
  z-index: 1;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
  margin-bottom: 1rem;
}

.details-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide, 0.025em);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary, #fff);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-medium, 500);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  margin-top: auto;
  backdrop-filter: blur(2px);
  overflow: hidden;
}

.details-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.details-btn:hover::before {
  width: 200%;
  height: 200%;
}

.details-btn:hover {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

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

.details-btn .plus-icon {
  display: inline-block;
  width: 10px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.3s ease;
}

.details-btn:hover .plus-icon {
  transform: rotate(90deg);
}

.details-btn .plus-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 10px;
  background: #fff;
  left: 4px;
  top: -4px;
}

.case-study-content {
  display: none;
}

/* Open Card */
.open-card {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  overflow: visible;
  aspect-ratio: unset !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100%;
  background: radial-gradient(
    circle at 50% 0,
    rgba(255, 255, 255, 0.15) 0%,
    #000 100%
  );
  position: relative;
  cursor: default;
  transform: scale(1) !important;
  box-shadow: none !important;
  animation: none !important;
}

.open-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: radial-gradient(
    ellipse at 50% 0,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.case-study-item.open-card::before {
  display: none !important;
}

.open-card .case-study-content {
  display: block;
  width: 100%;
  height: 100%;
}

.open-card .brand-logo-closed,
.open-card .brand-name,
.open-card .industry-label,
.open-card .headline-results,
.open-card .details-btn {
  display: none;
}

/* Open Card Navigation */
.open-card-navigation {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.open-card-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 0.25rem;
}

.open-card-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.open-card-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.open-card-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.open-card-nav-btn:disabled:hover {
  transform: scale(1);
  background: rgba(255, 255, 255, 0.1);
}

.open-card-nav-info {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-sm, 0.875rem);
  color: rgba(255, 255, 255, 0.8);
  padding: 0 0.75rem;
  white-space: nowrap;
}

/* Open Card Inner Layout */
.open-card-inner {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  gap: 1rem;
  text-align: left;
  line-height: var(--leading-normal, 1.5);
  padding: 1rem;
  box-sizing: border-box;
  min-height: 100%;
  position: relative;
  z-index: 3;
}

/* Left Column */
.open-left {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.open-left-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  width: 100%;
}

.open-left-top img {
  max-width: 125px;
  max-height: 125px;
  object-fit: contain;
  opacity: 0;
  animation: fadeInScale 0.6s forwards;
  animation-delay: 0.2s;
}

.open-titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
  animation-delay: 0.3s;
}

.open-client-name {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-xl, 1.25rem);
  font-weight: var(--font-bold, 700);
  line-height: var(--leading-tight, 1.25);
  color: var(--text-primary, #fff);
}

.open-project-name {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-base, 1rem);
  font-weight: var(--font-normal, 400);
  color: #ccc;
}

.open-industry-list {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-xs, 0.75rem) !important;
  font-weight: var(--font-medium, 500);
  letter-spacing: var(--tracking-wider, 0.05em);
  text-transform: uppercase;
  color: #777;
}

.close-btn-small {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-primary, #fff);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--font-medium, 500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide, 0.025em);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: auto;
  backdrop-filter: blur(3px);
  opacity: 0;
  animation: fadeIn 0.6s forwards;
  animation-delay: 0.5s;
}

.close-btn-small:hover {
  background: rgba(40, 40, 40, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.close-btn-small:active {
  transform: translateY(0);
}

.open-left-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.open-section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
  animation-delay: calc(0.4s + var(--section-index) * 0.1s);
}

.open-section:hover {
  background: rgba(20, 20, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.open-section:last-child {
  margin-bottom: 0;
}

.open-block-label {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-base, 1rem);
  font-weight: var(--font-bold, 700);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide, 0.025em);
  color: var(--text-secondary, #aaa);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.open-block-text {
  font-family: var(--font-primary, "Inter", sans-serif);
  font-size: var(--text-base, 1rem);
  font-weight: var(--font-normal, 400);
  line-height: var(--leading-relaxed, 1.625);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

/* Right Column */
.open-right {
  flex: 0 0 40%;
  position: relative;
  border-radius: 4px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
  border: none;
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
  animation-delay: 0.6s;
}

.image-scroller-viewport {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  height: 100%;
  background: transparent;
  border: none;
}

.image-scroller-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
  border: none;
  overflow: visible;
}

.animate-scroll {
  animation: scrollImages 25s linear infinite !important;
}

@keyframes scrollImages {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.image-box {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  background-position: center;
  background-size: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: none;
  outline: none;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-box:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.image-box:last-child {
  margin-bottom: 0;
}

.image-box.loading {
  filter: blur(5px);
  transition: filter 0.5s ease;
}

.image-box:not(.loading) {
  filter: blur(0);
}

/* Fade Classes */
.card-fade {
  transition: opacity 0.5s ease, transform 0.4s ease-out;
}

.card-fade-in {
  opacity: 1;
}

.card-fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Waterfall Animations */
@keyframes waterfallOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

@keyframes waterfallIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-waterfall-out {
  animation: waterfallOut 0.3s forwards;
  animation-delay: calc(var(--card-index) * 0.05s);
}

.card-waterfall-in {
  animation: waterfallIn 0.4s forwards;
  animation-delay: calc(var(--card-index) * 0.05s);
}

.cards-transitioning .case-study-item {
  opacity: 0;
}

/* Particles for Open Card */
.case-study-particle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.open-card .case-study-particle-container {
  display: block;
}

.case-study-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: casestudyFloatFade 10s infinite ease-in-out;
}

.case-study-particle:nth-child(odd) {
  width: 3px;
  height: 3px;
  filter: blur(0.5px);
}

.case-study-particle:nth-child(3n) {
  width: 1px;
  height: 1px;
  opacity: 0.8;
}

@keyframes casestudyFloatFade {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  25% {
    opacity: 0.6;
    transform: translate(-5px, -10px);
  }
  50% {
    opacity: 0.6;
    transform: translate(5px, 10px);
  }
  75% {
    opacity: 0.6;
    transform: translate(-3px, 6px);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

/* Bullet Points */
.open-card-bullet-list {
  list-style-type: disc;
  margin: 0;
  padding-left: 1.25rem;
  font-family: var(--font-primary, "Inter", sans-serif);
}

.open-card-bullet-list li {
  margin-bottom: 0.75rem;
  position: relative;
  font-size: var(--text-base, 1rem);
  line-height: var(--leading-relaxed, 1.625);
}

.open-card-bullet-list li:last-child {
  margin-bottom: 0;
}

/* Search Highlights */
.search-highlight {
  background: rgba(255, 0, 153, 0.3);
  color: #ff0099;
  font-weight: 600;
  padding: 0 2px;
  border-radius: 2px;
}

/* Error State */
.error-message {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ff6666;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  margin: 1rem 0;
  animation: fadeIn 0.5s ease;
}

.error-message button {
  margin-top: 0.5rem;
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.4);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.error-message button:hover {
  background: rgba(255, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* Focus Styles */
.case-study-item:focus,
.filter-pill:focus,
.details-btn:focus,
.close-btn:focus,
.close-btn-small:focus,
.pagination-controls button:focus,
.search-input:focus {
  outline: 2px solid #ff0099;
  outline-offset: 2px;
}

/* Skip to Content */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 10000;
}

.skip-to-content:focus {
  top: 0;
}

/* Image Loading */
@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.image-loading {
  background: rgba(255, 255, 255, 0.1);
  animation: pulse 2s infinite;
}

/* Print Styles */
@media print {
  .controls-row,
  .filter-row,
  .pagination-controls {
    display: none !important;
  }

  .case-study-list {
    display: block !important;
  }

  .case-study-item {
    break-inside: avoid;
    margin-bottom: 2rem;
  }
}

/* ===================================
   MOBILE STYLES (<= 768px)
   =================================== */

@media (max-width: 768px) {
  /* Section Wrapper Mobile */
  .my-logo-section {
    padding: 2rem 0.5rem 1rem;
  }

  /* Mission Label and Tagline Mobile */
  .my-logo-section .mission-label {
    /* font-size: var(
      --text-lg,
      0.875rem
    );  */
    /* Keep default size, matches guarantee section */
    font-size: 60px;
    line-height: 65px;
  }

  .my-logo-section .tagline {
    margin-bottom: 1.5rem;
    font-size: var(--text-sm, 0.875rem);
  }

  /* Logo Grid Mobile */
  .my-logo-section .logo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    margin: 0 auto 1.5rem;
    padding: 0 0.5rem;
  }

  @media (max-width: 400px) {
    .my-logo-section .logo-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .my-logo-section .logo-item {
    min-height: 50px;
  }

  .my-logo-section .logo-grid img {
    max-height: 40px;
  }

  .my-logo-section .logo-item:active img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
  }

  /* Loading Skeleton Mobile */
  .skeleton-loader-mobile {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
    min-height: 200px;
  }

  .skeleton-card-mobile {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .skeleton-card-mobile::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
    );
    animation: shimmer 2s infinite;
  }

  .skeleton-logo-mobile {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
  }

  .skeleton-text-mobile {
    flex: 1;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }

  /* Case Studies Component Mobile */
  .my-case-studies-mobile {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
    animation-delay: 0.3s;
  }

  /* Controls Container Mobile */
  .controls-container-mobile {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem; /* Reduced from 0.75rem to bring count closer */
    transition: all 0.3s ease;
    position: sticky;
    top: 10px;
    z-index: 1000;
    overflow: hidden;
  }

  .controls-row-mobile {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.35rem; /* Reduced from 0.5rem */
  }

  .controls-top-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Search Bar Mobile */
  .case-studies-search-mobile {
    flex: 1;
    position: relative;
  }

  .search-input-wrapper-mobile {
    position: relative;
    display: flex;
    align-items: center;
  }

  .search-input-mobile {
    width: 100%;
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fff);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.6rem 2.5rem;
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 14px;
    font-weight: var(--font-normal, 400);
    transition: all 0.2s ease;
    outline: none;
  }

  .search-input-mobile:focus {
    border-color: #ff0099;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 0, 153, 0.2);
  }

  .search-input-mobile::placeholder {
    color: #999;
  }

  .search-icon-mobile {
    position: absolute;
    left: 10px;
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0.6;
  }

  .search-icon-mobile svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
  }

  .clear-search-mobile {
    position: absolute;
    right: 8px;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #999;
  }

  .clear-search-mobile:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
  }

  .clear-search-mobile.visible {
    display: flex;
  }

  /* Copy Link Button Mobile */
  .copy-link-btn-mobile {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fff);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
  }

  .copy-link-btn-mobile:active {
    transform: scale(0.95);
  }

  .copy-link-btn-mobile.copied {
    background: rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.5);
  }

  .copy-link-btn-mobile .copy-icon {
    width: 20px;
    height: 20px;
  }

  .copy-link-btn-mobile .copy-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
  }

  .copy-link-message-mobile {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
  }

  .copy-link-message-mobile::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
  }

  .copy-link-message-mobile.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
  }

  /* Filter Toggle Mobile */
  .filter-toggle-btn-mobile {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fff);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .filter-toggle-btn-mobile:active {
    transform: scale(0.95);
  }

  .filter-toggle-btn-mobile.active {
    background: rgba(255, 0, 153, 0.2);
    border-color: #ff0099;
    color: #ff0099;
  }

  .filter-toggle-btn-mobile .filter-icon {
    width: 20px;
    height: 20px;
  }

  .filter-toggle-btn-mobile .filter-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
  }

  /* Reset Filters Mobile */
  .reset-filters-top-mobile {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fff);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .reset-filters-top-mobile.visible {
    display: flex;
  }

  .reset-filters-top-mobile:active {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(0.95);
  }

  .reset-filters-top-mobile .reset-icon {
    width: 18px;
    height: 18px;
  }

  .reset-filters-top-mobile .reset-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
  }

  /* Search Results Info Mobile */
  .search-results-info-mobile {
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 0.25rem 0;
    animation: fadeIn 0.3s ease;
  }

  /* Case Studies Count Mobile */
  .case-studies-count-mobile {
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 12px;
    font-weight: var(--font-medium, 500);
    color: var(--text-secondary, #aaa);
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .case-studies-count-mobile .count-number {
    font-weight: var(--font-bold, 700);
    color: var(--text-primary, #fff);
  }

  /* Filter Panel Mobile - Updated Styles */
  .filter-panel-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #000;
    background-color: rgb(0, 0, 0); /* Ensure solid black */
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 2147483647 !important; /* Maximum z-index value */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: none; /* Prevent pull-to-refresh and other gestures */
    isolation: isolate; /* Create a new stacking context */
    -webkit-transform: translateY(100%); /* Force GPU acceleration */
    -webkit-backface-visibility: hidden; /* Prevent flickering */
    backface-visibility: hidden;
  }

  /* Add a pseudo-element backdrop for extra coverage */
  .filter-panel-mobile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: -1;
    pointer-events: none;
  }

  .filter-panel-mobile.expanded {
    transform: translateY(0);
    -webkit-transform: translateY(0);
  }

  /* Hide other sections when filter panel is open */
  body.filter-panel-open .fc-map-section {
    display: none !important;
  }

  /* Ensure filter panel covers everything */
  body.filter-panel-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  /* Filter Panel Header */
  .filter-panel-header-mobile {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    flex-shrink: 0;
  }

  .filter-panel-title-mobile {
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 16px;
    font-weight: var(--font-bold, 700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary, #fff);
    margin: 0;
  }

  .filter-panel-inner-mobile {
    flex: 1;
    padding: 1rem 1rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y; /* Allow vertical scrolling inside the panel */
  }

  .filter-section-mobile {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .filter-section-mobile:last-child {
    border-bottom: none;
  }

  .filter-section-header-mobile {
    padding: 1rem 0;
    cursor: pointer;
    user-select: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .filter-section-header-mobile::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #999;
    transition: transform 0.3s ease;
  }

  .filter-section-mobile.expanded .filter-section-header-mobile::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .filter-section-title-mobile {
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 14px;
    font-weight: var(--font-semibold, 600);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide, 0.025em);
    color: var(--text-secondary, #aaa);
    margin: 0;
  }

  .filter-section-count-mobile {
    font-size: 12px;
    font-weight: var(--font-normal, 400);
    color: #ff0099;
    background: rgba(255, 0, 153, 0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    margin-right: 20px;
  }

  .filter-pills-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-section-mobile.expanded .filter-pills-mobile {
    max-height: none;
    padding: 0.75rem 0 1rem;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pill-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 13px;
    color: var(--text-primary, #fff);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
    min-height: 36px;
  }

  .filter-pill-mobile[style*="display: none"] {
    display: none !important;
  }

  .filter-pill-mobile:active {
    transform: scale(0.95);
  }

  .filter-pill-mobile.active {
    background: rgba(255, 0, 153, 0.2);
    border-color: #ff0099;
    color: #ff0099;
  }

  .filter-pill-count-mobile {
    font-size: 11px;
    color: #999;
    opacity: 0.8;
  }

  .filter-pill-mobile.active .filter-pill-count-mobile {
    color: #ff0099;
    opacity: 0.7;
  }

  /* Apply Filters Container - Fixed at Bottom */
  .filter-apply-container-mobile {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: rgba(20, 20, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
  }

  .filter-apply-container-mobile .reset-filters-btn-mobile,
  .filter-apply-container-mobile .apply-filters-btn-mobile,
  .filter-apply-container-mobile .cancel-filters-btn-mobile {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-primary, #fff);
    border-radius: 20px;
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 13px;
    font-weight: var(--font-medium, 500);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
  }

  .filter-apply-container-mobile .apply-filters-btn-mobile {
    background: rgba(255, 0, 153, 0.2);
    border-color: #ff0099;
    color: #ff0099;
  }

  .filter-apply-container-mobile .reset-filters-btn-mobile:active {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(0.98);
  }

  .filter-apply-container-mobile .apply-filters-btn-mobile:active {
    background: rgba(255, 0, 153, 0.3);
    transform: scale(0.98);
  }

  .filter-apply-container-mobile .cancel-filters-btn-mobile {
    flex: 0 0 44px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
  }

  .filter-apply-container-mobile .cancel-filters-btn-mobile:active {
    background: rgba(40, 40, 40, 0.8);
    transform: scale(0.95);
  }

  /* Remove old filter actions styles */
  .filter-actions-mobile {
    display: none;
  }

  /* Case Study List Mobile */
  .case-study-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 0;
    background: transparent;
    min-height: 100px;
  }

  .case-study-list-mobile.no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 2rem;
  }

  .no-results-message-mobile {
    text-align: center;
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 14px;
    color: #999;
    animation: fadeIn 0.5s ease;
  }

  .no-results-message-mobile h3 {
    font-size: 18px;
    font-weight: var(--font-semibold, 600);
    color: #ccc;
    margin-bottom: 0.5rem;
  }

  .no-results-message-mobile p {
    margin-bottom: 1rem;
  }

  .no-results-suggestions-mobile {
    font-size: 13px;
    color: #aaa;
  }

  .no-results-suggestions-mobile strong {
    color: #ff0099;
  }

  /* Case Study Item Mobile */
  .case-study-item-mobile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #1a1a1a;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.45); /* Slightly increased border visibility */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.4s forwards;
    animation-delay: calc(var(--item-index) * 0.05s);
    overflow: hidden;
    isolation: isolate;
  }

  /* Single overlay that covers everything */
  .case-study-item-mobile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(26, 26, 26, 0.85) 0%,
      rgba(26, 26, 26, 0.92) 50%,
      rgba(26, 26, 26, 0.95) 100%
    );
    pointer-events: none;
    border-radius: 12px;
  }

  .case-study-item-mobile > * {
    position: relative;
    z-index: 1;
  }

  .case-study-item-mobile:active {
    transform: scale(0.98);
  }

  .case-study-item-mobile:active::after {
    background: linear-gradient(
      to right,
      rgba(26, 26, 26, 0.8) 0%,
      rgba(26, 26, 26, 0.88) 50%,
      rgba(26, 26, 26, 0.92) 100%
    );
  }

  .brand-logo-mobile {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-logo-mobile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.3s ease;
  }

  .case-study-item-mobile:active .brand-logo-mobile img {
    filter: grayscale(0%) brightness(1);
  }

  .mobile-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .brand-name-mobile {
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 16px;
    font-weight: var(--font-bold, 700);
    line-height: var(--leading-tight, 1.25);
    color: var(--text-primary, #fff);
  }

  .industry-label-mobile {
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 11px;
    font-weight: var(--font-medium, 500);
    letter-spacing: var(--tracking-wider, 0.05em);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
  }

  .headline-result-mobile {
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 14px;
    font-weight: var(--font-normal, 400);
    line-height: var(--leading-normal, 1.5);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
  }

  /* Load More Button */
  .load-more-container-mobile {
    display: flex;
    justify-content: center;
    padding: 1rem 0 2rem;
  }

  .load-more-btn-mobile {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 24px;
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .load-more-btn-mobile:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
  }

  /* Open Card Mobile */
  .open-card-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 2147483646 !important; /* Just below filter panel but above everything else */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    animation: slideUp 0.3s ease-out;
    overscroll-behavior: contain;
    touch-action: pan-y; /* Allow vertical scrolling inside the card */
  }

  /* Hide other sections when open card is active */
  body.open-card-active .fc-map-section {
    display: none !important;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes slideInFromLeft {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideInFromRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideOutToLeft {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(-100%);
      opacity: 0;
    }
  }

  @keyframes slideOutToRight {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(100%);
      opacity: 0;
    }
  }

  .open-card-mobile {
    transition: none; /* Default no transition */
  }

  .open-card-mobile.transitioning {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  }

  .open-card-mobile.closing {
    animation: slideDown 0.3s ease-out;
  }

  .open-card-mobile.slide-in-from-left {
    animation: slideInFromLeft 0.3s ease-out;
  }

  .open-card-mobile.slide-in-from-right {
    animation: slideInFromRight 0.3s ease-out;
  }

  .open-card-mobile.slide-out-to-left {
    animation: slideOutToLeft 0.3s ease-out;
  }

  .open-card-mobile.slide-out-to-right {
    animation: slideOutToRight 0.3s ease-out;
  }

  /* Swipe Preview Effect */
  .open-card-mobile.swiping {
    transition: none;
  }

  .open-card-mobile.preview-next {
    transform: translateX(var(--swipe-distance));
  }

  .open-card-mobile.preview-prev {
    transform: translateX(var(--swipe-distance));
  }

  /* Next/Previous Card Preview */
  .open-card-preview {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 2147483645 !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    opacity: 0.5;
  }

  .open-card-preview.preview-left {
    transform: translateX(-100%);
  }

  .open-card-preview.preview-right {
    transform: translateX(100%);
  }

  @keyframes slideDown {
    from {
      transform: translateY(0);
      opacity: 1;
    }
    to {
      transform: translateY(100%);
      opacity: 0;
    }
  }

  .open-card-inner-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    padding: 0;
    padding-top: 76px; /* Add padding to account for fixed navigation */
    padding-bottom: 2rem; /* Add padding at the bottom for scrolling */
  }

  /* Header Mobile */
  .open-header-mobile {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    background: rgba(20, 20, 20, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .open-header-mobile img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
  }

  .open-titles-mobile {
    width: 100%;
  }

  .open-client-name-mobile {
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 20px;
    font-weight: var(--font-bold, 700);
    line-height: var(--leading-tight, 1.25);
    color: var(--text-primary, #fff);
    margin-bottom: 0.5rem;
  }

  .open-project-name-mobile {
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 14px;
    font-weight: var(--font-normal, 400);
    color: #ccc;
    margin-bottom: 0.25rem;
  }

  .open-industry-list-mobile {
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 12px;
    font-weight: var(--font-medium, 500);
    letter-spacing: var(--tracking-wider, 0.05em);
    text-transform: uppercase;
    color: #777;
  }

  /* Navigation Mobile */
  .open-card-navigation-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10001;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 20, 20, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Updated Mobile Navigation Controls */
  .open-card-nav-controls-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0.25rem;
  }

  .open-card-nav-btn-mobile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
  }

  .open-card-nav-btn-mobile:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
  }

  .open-card-nav-btn-mobile:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .open-card-nav-btn-mobile:disabled:active {
    transform: scale(1);
    background: rgba(255, 255, 255, 0.1);
  }

  .open-card-nav-info-mobile {
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 0.5rem;
    white-space: nowrap;
  }

  .close-btn-mobile {
    position: relative;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-primary, #fff);
    border-radius: 20px;
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 12px;
    font-weight: var(--font-medium, 500);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
  }

  .close-btn-mobile:active {
    background: rgba(40, 40, 40, 0.8);
    transform: scale(0.95);
  }

  /* Content Sections Mobile */
  .open-content-mobile {
    flex: 1;
    padding: 0 1rem 3rem; /* Increased bottom padding */
    margin-bottom: 2rem; /* Added margin bottom for extra space */
  }

  .open-section-mobile {
    margin-bottom: 0.5rem;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
  }

  .open-section-mobile:last-child {
    margin-bottom: 3rem; /* Increased margin for last section */
  }

  .open-block-label-mobile {
    padding: 1rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 16px;
    font-weight: var(--font-bold, 700);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide, 0.025em);
    color: var(--text-secondary, #aaa);
  }

  .open-block-label-mobile::after {
    content: "+";
    font-size: 20px;
    color: #999;
    transition: transform 0.3s ease;
  }

  .open-section-mobile.expanded .open-block-label-mobile::after {
    transform: rotate(45deg);
  }

  .open-block-text-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    font-family: var(--font-primary, "Inter", sans-serif);
    font-size: 14px;
    font-weight: var(--font-normal, 400);
    line-height: var(--leading-relaxed, 1.625);
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  }

  .open-section-mobile.expanded .open-block-text-mobile {
    max-height: 2000px; /* Use a large fixed value instead of none for animation */
    padding: 0 1rem 1rem;
    opacity: 1;
  }

  .open-card-bullet-list-mobile {
    list-style-type: disc;
    margin: 0;
    padding-left: 1rem;
    font-family: var(--font-primary, "Inter", sans-serif);
  }

  .open-card-bullet-list-mobile li {
    margin-bottom: 0.5rem;
    font-size: 14px;
    line-height: var(--leading-relaxed, 1.625);
  }

  .open-card-bullet-list-mobile li:last-child {
    margin-bottom: 0;
  }

  /* Images Mobile */
  .open-images-mobile {
    padding: 0;
    height: 200px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(20, 20, 20, 0.5);
  }

  .image-box-mobile {
    flex-shrink: 0;
    width: 300px;
    height: 100%;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    scroll-snap-align: center;
    position: relative;
  }

  .image-box-mobile:first-child {
    margin-left: 0.5rem;
  }

  .image-box-mobile:last-child {
    margin-right: 0.5rem;
  }

  /* Error State Mobile */
  .error-message-mobile {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6666;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin: 1rem;
    animation: fadeIn 0.5s ease;
  }

  .error-message-mobile button {
    margin-top: 0.5rem;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .error-message-mobile button:active {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(0.95);
  }

  /* Focus Styles Mobile */
  .case-study-item-mobile:focus,
  .filter-pill-mobile:focus,
  .search-input-mobile:focus {
    outline: 2px solid #ff0099;
    outline-offset: 2px;
  }

  /* Skip to Content Mobile */
  .skip-to-content-mobile {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 10000;
  }

  .skip-to-content-mobile:focus {
    top: 0;
  }

  /* Hide all checkboxes */
  .filter-checkboxes-mobile {
    display: none !important;
  }
}
