/* ════════════════════════════════════════════════════════════════
   CASE STUDIES PAGE STYLES
   ════════════════════════════════════════════════════════════════ */

:root {
  --primary-blue: #2a7df1;
  --primary-accent: #8b5cf6;
  --dark-bg: #0a0f1a;
  --dark-bg-soft: #0d1520;
  --card-bg: rgba(26, 35, 50, 0.6);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --line-color: rgba(42, 125, 241, 0.2);
}

/* ════════ HERO SECTION ════════ */
.case-hero {
  padding: 180px 8% 100px;
  background: linear-gradient(135deg, rgba(10, 15, 26, 0.9) 0%, rgba(13, 21, 32, 0.85) 100%), 
              url('../images/hero-bg.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.case-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(42, 125, 241, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.case-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.case-hero .kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-blue);
  margin-bottom: 20px;
  padding: 8px 20px;
  background: rgba(42, 125, 241, 0.1);
  border: 1px solid rgba(42, 125, 241, 0.3);
  border-radius: 50px;
}

.case-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ════════ CASES SECTION ════════ */
.cases-section {
  padding: 100px 8%;
  background: var(--dark-bg-soft);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
}

/* ════════ CASE STUDY CARD ════════ */
.case-study-card {
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(42, 125, 241, 0.15);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.case-study-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(42, 125, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.case-study-card:hover::before {
  opacity: 1;
}

.case-study-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 60px rgba(42, 125, 241, 0.2);
  border-color: rgba(42, 125, 241, 0.4);
}

/* ════════ CASE IMAGE ════════ */
.case-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-study-card:hover .case-image img {
  transform: scale(1.1);
}

.case-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.case-category {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(42, 125, 241, 0.9);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
}

/* ════════ CASE CONTENT ════════ */
.case-content {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.case-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
}

/* ════════ CASE STATS ════════ */
.case-stats {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(42, 125, 241, 0.2);
  border-bottom: 1px solid rgba(42, 125, 241, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item strong {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item span {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ════════ TECH BADGES ════════ */
.case-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  padding: 6px 14px;
  background: rgba(42, 125, 241, 0.1);
  border: 1px solid rgba(42, 125, 241, 0.3);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.case-study-card:hover .tech-badge {
  background: rgba(42, 125, 241, 0.2);
  border-color: rgba(42, 125, 241, 0.5);
}

/* ════════ CASE LINK ════════ */
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.case-link i {
  transition: transform 0.3s ease;
}

.case-link:hover {
  color: var(--primary-accent);
  gap: 12px;
}

.case-link:hover i {
  transform: translateX(4px);
}

/* ════════ CTA SECTION ════════ */
.cta-section {
  padding: 100px 8%;
  background: linear-gradient(135deg, rgba(42, 125, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(42, 125, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-accent));
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(42, 125, 241, 0.3);
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(42, 125, 241, 0.5);
  gap: 14px;
}

.cta-btn i {
  transition: transform 0.3s ease;
}

.cta-btn:hover i {
  transform: translateX(4px);
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .case-hero {
    padding: 140px 6% 80px;
  }

  .cases-section {
    padding: 80px 6%;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-stats {
    flex-direction: column;
    gap: 16px;
  }

  .cta-section {
    padding: 80px 6%;
  }
}

@media (max-width: 480px) {
  .case-hero {
    padding: 120px 5% 60px;
  }

  .cases-section {
    padding: 60px 5%;
  }

  .case-content {
    padding: 24px 20px;
  }

  .cta-section {
    padding: 60px 5%;
  }
}
