/* ===== Case Studies - Dark Space / Frontier Theme ===== */

/* ===== Hero ===== */
.cs-hero {
  background: linear-gradient(135deg, #0a0e1a 0%, #101828 40%, #1a2340 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cs-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
  animation: csHeroShift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes csHeroShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, 5%); }
}

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

.cs-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.cs-hero .hero-tagline {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.7;
}

.cs-hero .hero-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 20px;
}

.cs-hero .hero-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== Breadcrumb ===== */
.cs-breadcrumb {
  padding: 16px 0;
  background: rgba(10, 15, 30, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-breadcrumb-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.cs-breadcrumb-links a {
  color: #06b6d4;
  font-weight: 500;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-breadcrumb-links a:hover {
  color: #6366f1;
}

/* ===== Section Shared ===== */
.cs-section {
  padding: 100px 0;
  position: relative;
}

.cs-section.alt-bg {
  background: rgba(10, 15, 30, 0.5);
}

.cs-section .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.cs-section .section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #f1f5f9;
  letter-spacing: -0.3px;
}

.cs-section .section-header p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Stats Bar ===== */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0;
}

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

.cs-stat .stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #06b6d4, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.cs-stat .stat-label {
  font-size: 0.92rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ===== Case Study Cards ===== */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cs-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 36px 30px;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cs-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(135deg, #06b6d4, #6366f1, #8b5cf6);
  opacity: 0;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(99, 102, 241, 0.08);
}

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

.cs-card .cs-card-industry {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #06b6d4;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.cs-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.cs-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.cs-card .cs-results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cs-card .cs-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #67e8f9;
}

/* ===== Full-Width Case Study (Highlight) ===== */
.cs-card.cs-highlight {
  grid-column: span 2;
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.15);
}

.cs-card.cs-highlight h3 {
  font-size: 1.35rem;
}

/* ===== Use Cases Grid ===== */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.uc-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.uc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.uc-card .uc-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  margin-left: auto;
  margin-right: auto;
}

.uc-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.uc-card p {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ===== Client Logos / Badges ===== */
.cs-clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.cs-client-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-client-badge:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.05);
  color: #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

/* ===== CTA ===== */
.cs-cta {
  background: linear-gradient(135deg, #0a0e1a 0%, #101828 50%, #1a2340 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cs-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.cs-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.cs-cta p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cs-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #06b6d4, #6366f1, #8b5cf6);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 9999px;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.cs-cta .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

/* ===== Footer ===== */
.cs-footer {
  background: #101828;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 0;
}

.cs-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.cs-footer .footer-brand .logo {
  display: inline-block;
  margin-bottom: 16px;
}

.cs-footer .footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.7;
  color: #cbd5e1;
}

.cs-footer .footer-links h4 {
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.cs-footer .footer-links a {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: #cbd5e1;
}

.cs-footer .footer-links a:hover {
  color: #06b6d4;
  padding-left: 4px;
}

.cs-footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-footer .footer-social a {
  color: #94a3b8;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-footer .footer-social a:hover {
  color: #06b6d4;
  transform: translateY(-2px);
}

.cs-footer .footer-social svg {
  fill: currentColor;
}

.cs-footer .footer-legal {
  padding: 16px 0;
  text-align: center;
}

.cs-footer .legal-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cs-footer .legal-links a {
  font-size: 0.82rem;
  color: #64748b;
  transition: color 0.3s;
}

.cs-footer .legal-links a:hover {
  color: #06b6d4;
}

.cs-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ===== Feature Link in Homepage Cards ===== */
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #06b6d4;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-link:hover {
  color: #8b5cf6;
  gap: 10px;
}

.experience-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #06b6d4;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card .card-link:hover {
  color: #8b5cf6;
  gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }
  .cs-card.cs-highlight {
    grid-column: span 1;
  }
  .uc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .cs-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .cs-hero {
    padding: 120px 0 60px;
  }
  .cs-hero h1 {
    font-size: 2.4rem;
  }
  .uc-grid {
    grid-template-columns: 1fr;
  }
  .cs-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .cs-hero {
    padding: 110px 0 50px;
  }
  .cs-hero h1 {
    font-size: 1.9rem;
  }
  .cs-section {
    padding: 70px 0;
  }
  .cs-cta {
    padding: 70px 0;
  }
  .cs-cta h2 {
    font-size: 1.8rem;
  }
  .cs-section .section-header h2 {
    font-size: 1.8rem;
  }
  .cs-stats {
    grid-template-columns: 1fr;
  }
}
