/* ─── CASE STUDY SUBPAGE STYLES ──────────────────────────────────────────────
   Shared layout, header typography, pill badges, and section cards for:
   - projects/kaushift.html
   - projects/disaster-whisper.html
   - projects/saytoaid.html
   - projects/quotegen.html
   ───────────────────────────────────────────────────────────────────────── */

body {
  background-color: #050505;
  color: #e5e5e5;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.case-study-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px 80px 20px;
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.07);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-btn:hover {
  color: #fff;
  background: rgba(167, 139, 250, 0.22);
  border-color: #a78bfa;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.3);
}

/* Case Study Header */
.cs-header {
  margin-bottom: 60px;
}

.cs-status {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cs-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #fff;
}

.cs-tagline {
  font-size: 1.2rem;
  color: #a3a3a3;
  line-height: 1.6;
  margin: 0;
}

/* Tech Stack Pills */
.cs-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.cs-tech-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #d1d5db;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.cs-tech-pill:hover {
  color: #ffffff;
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.6);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(167, 139, 250, 0.3);
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

/* Actions */
.cs-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.cs-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #a78bfa;
  color: #050505;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s;
}

.cs-action-btn:hover {
  background: #c4b5fd;
  transform: translateY(-2px);
}

.cs-action-btn.secondary {
  background: transparent;
  color: #a78bfa;
  border: 1px solid #a78bfa;
}

.cs-action-btn.secondary:hover {
  background: rgba(167, 139, 250, 0.1);
}

/* Case Study Sections */
.cs-section {
  margin-bottom: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 40px;
}

.cs-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.cs-section h3::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #a78bfa;
}

.cs-section p {
  color: #d4d4d4;
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 0;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .case-study-container {
    padding: 70px 20px 50px 20px;
  }
  .cs-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }
  .cs-tagline {
    font-size: 1.05rem;
  }
  .cs-section {
    padding: 28px 22px;
    margin-bottom: 30px;
  }
  .cs-actions {
    flex-direction: column;
    gap: 12px;
  }
  .cs-action-btn {
    width: 100%;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .case-study-container {
    padding: 50px 16px 40px 16px;
  }
  .back-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
    margin-bottom: 24px;
    width: 100%;
    justify-content: center;
  }
  .cs-header {
    margin-bottom: 36px;
  }
  .cs-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    margin-bottom: 14px;
  }
  .cs-tagline {
    font-size: 0.92rem;
  }
  .cs-tech {
    gap: 8px;
    margin-top: 20px;
  }
  .cs-tech-pill {
    padding: 5px 12px;
    font-size: 0.78rem;
  }
  .cs-section {
    padding: 20px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  .cs-section h3 {
    font-size: 1.2rem;
    gap: 10px;
    margin-bottom: 12px;
  }
  .cs-section h3::before {
    width: 16px;
  }
  .cs-section p {
    font-size: 0.92rem;
    line-height: 1.6;
  }
}
