/* ════════════════════════════════════════════════════════════════
   CASE STUDY DETAIL 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);
}

/* ════════ DETAIL HERO SECTION ════════ */
.detail-hero {
  padding: 180px 8% 80px;
  background: linear-gradient(135deg, rgba(10, 15, 26, 0.95) 0%, rgba(13, 21, 32, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

.detail-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.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 40px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.back-link:hover {
  gap: 12px;
  color: var(--primary-accent);
}

.back-link i {
  transition: transform 0.3s ease;
}

.back-link:hover i {
  transform: translateX(-4px);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.client-logo {
  width: 280px;
  height: 160px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
  border-radius: 20px;
  border: 1px solid rgba(42, 125, 241, 0.2);
  padding: 30px;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(1) contrast(1.1);
}

.category-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(42, 125, 241, 0.15);
  border: 1px solid rgba(42, 125, 241, 0.3);
  border-radius: 50px;
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.subtitle {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ════════ PROJECT OVERVIEW ════════ */
.project-overview {
  padding: 80px 8%;
  background: var(--dark-bg-soft);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.overview-card {
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1px solid rgba(42, 125, 241, 0.15);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
}

.overview-card:hover {
  transform: translateY(-8px);
  border-color: rgba(42, 125, 241, 0.4);
  box-shadow: 0 16px 40px rgba(42, 125, 241, 0.15);
}

.overview-card i {
  font-size: 36px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.overview-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.overview-card p {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* ════════ CONTENT SECTIONS ════════ */
.content-section {
  padding: 100px 8%;
  background: var(--dark-bg);
}

.content-section:nth-child(even) {
  background: var(--dark-bg-soft);
}

.section-header {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════ CONTENT GRID ════════ */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.content-card {
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.6) 0%, rgba(17, 24, 39, 0.8) 100%);
  border: 1px solid rgba(42, 125, 241, 0.15);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.4s ease;
}

.content-card:hover {
  transform: translateY(-8px);
  border-color: rgba(42, 125, 241, 0.4);
  box-shadow: 0 16px 40px rgba(42, 125, 241, 0.15);
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 125, 241, 0.1);
  border: 1px solid rgba(42, 125, 241, 0.3);
  border-radius: 16px;
  margin-bottom: 24px;
}

.icon-wrapper i {
  font-size: 28px;
  color: var(--primary-blue);
}

.content-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.content-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
}

/* ════════ SOLUTION CONTENT ════════ */
.solution-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: start;
}

.solution-text h3 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.solution-text h4 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 32px 0 16px;
}

.solution-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 24px;
}

.solution-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-text ul li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
}

.solution-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 18px;
}

.solution-text ul li strong {
  color: #ffffff;
  font-weight: 700;
}

/* ════════ TECH STACK ════════ */
.tech-stack {
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1px solid rgba(42, 125, 241, 0.2);
  border-radius: 20px;
  padding: 36px 28px;
  position: sticky;
  top: 100px;
}

.tech-stack h3 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 28px;
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: rgba(42, 125, 241, 0.05);
  border: 1px solid rgba(42, 125, 241, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: rgba(42, 125, 241, 0.1);
  border-color: rgba(42, 125, 241, 0.4);
  transform: translateY(-4px);
}

.tech-item i {
  font-size: 32px;
  color: var(--primary-blue);
}

.tech-item span {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

/* ════════ RESULTS GRID ════════ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.result-card {
  background: linear-gradient(135deg, rgba(42, 125, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(42, 125, 241, 0.3);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s ease;
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(42, 125, 241, 0.2);
  border-color: rgba(42, 125, 241, 0.5);
}

.result-number {
  font-family: 'Sora', sans-serif;
  font-size: 56px;
  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;
  margin-bottom: 16px;
  line-height: 1;
}

.result-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.result-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

/* ════════ TESTIMONIAL ════════ */
.testimonial {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1px solid rgba(42, 125, 241, 0.2);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
}

.quote-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 125, 241, 0.1);
  border-radius: 50%;
  margin: 0 auto 24px;
}

.quote-icon i {
  font-size: 32px;
  color: var(--primary-blue);
}

.testimonial blockquote {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  text-align: center;
  margin: 0 0 28px;
  font-style: italic;
}

.testimonial-author {
  text-align: center;
}

.testimonial-author strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.testimonial-author span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ════════ 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: 800px;
  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-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s ease;
}

.cta-btn.primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-accent));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(42, 125, 241, 0.3);
}

.cta-btn.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(42, 125, 241, 0.5);
  gap: 14px;
}

.cta-btn.secondary {
  background: rgba(42, 125, 241, 0.1);
  border: 2px solid rgba(42, 125, 241, 0.3);
  color: var(--primary-blue);
}

.cta-btn.secondary:hover {
  background: rgba(42, 125, 241, 0.2);
  border-color: rgba(42, 125, 241, 0.5);
  transform: translateY(-4px);
}

.cta-btn i {
  transition: transform 0.3s ease;
}

.cta-btn:hover i {
  transform: translateX(4px);
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1024px) {
  .solution-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tech-stack {
    position: static;
  }
}

@media (max-width: 768px) {
  .detail-hero {
    padding: 140px 6% 60px;
  }

  .project-overview {
    padding: 60px 6%;
  }

  .content-section {
    padding: 80px 6%;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .testimonial {
    padding: 36px 28px;
  }

  .cta-section {
    padding: 80px 6%;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .detail-hero {
    padding: 120px 5% 50px;
  }

  .client-logo {
    width: 220px;
    height: 130px;
    padding: 25px;
  }

  .project-overview {
    padding: 50px 5%;
  }

  .content-section {
    padding: 60px 5%;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .testimonial {
    padding: 28px 20px;
  }

  .testimonial blockquote {
    font-size: 16px;
  }

  .cta-section {
    padding: 60px 5%;
  }
}
