/* ==========================================================================
   O16 Labs - Single Case Study Page Stylesheet
   Faithful recreation of the official single case study layout (Wayback Archive).
   ========================================================================== */

/* Outer Page Wrapper */
.single-case-study-page {
  background-color: #ffffff;
  color: #101010;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.single-case-study-page * {
  box-sizing: border-box;
}

/* Fluid Container */
.single-case-container,
.single-case-study-page .case-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 640px) {
  .single-case-container,
  .single-case-study-page .case-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================
   1. HERO BANNER SECTION (Dark Canvas)
   ========================================== */
.scs-hero-section {
  background: radial-gradient(circle at 50% 0%, #152238 0%, #0d1527 100%);
  color: #ffffff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.scs-hero-ambient-blob {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(8, 159, 232, 0.22) 0%, rgba(81, 178, 255, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.scs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
}

.scs-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.scs-breadcrumb a:hover {
  color: #089FE8;
}

.scs-breadcrumb span {
  color: rgba(255, 255, 255, 0.35);
}

.scs-breadcrumb .current {
  color: #089FE8;
}

.scs-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .scs-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .scs-hero-section {
    padding: 40px 0 60px;
  }
}

.scs-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scs-hero-logo {
  display: inline-block;
  max-height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
}

.scs-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  color: #FAFAFA;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.scs-hero-intro {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.scs-hero-tech-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
}

.scs-hero-tech-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.scs-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.scs-hero-chip i {
  color: #51B2FF;
}

/* Hero Right: Interactive Prototype Frame */
.scs-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scs-prototype-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  position: relative;
}

.scs-prototype-device {
  width: 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scs-prototype-img {
  max-height: 380px;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
  display: block;
  margin: 0 auto;
}

/* ==========================================
   2. THE BRIEF & META DETAILS SECTION
   ========================================== */
.scs-brief-section {
  padding: 80px 0;
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
}

.scs-brief-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: start;
}

@media (max-width: 992px) {
  .scs-brief-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .scs-brief-section {
    padding: 50px 0;
  }
}

.scs-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #101111;
  margin: 0 0 20px 0;
  line-height: 1.25;
}

.scs-brief-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2B2B2B;
}

.scs-brief-text p {
  margin: 0 0 16px 0;
}

.scs-brief-text p:last-child {
  margin-bottom: 0;
}

/* Meta Sidebar Column */
.scs-meta-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #F8FAFD;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 32px;
}

.scs-meta-group h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #101111;
  margin: 0 0 10px 0;
}

.scs-meta-group p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #2B2B2B;
  margin: 0;
}

.scs-work-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scs-work-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 9999px;
  background: #089DE5;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
}

/* ==========================================
   3. CHALLENGES & OUR APPROACH SECTION
   ========================================== */
.scs-challenges-section {
  padding: 80px 0;
  background: #F8FAFD;
}

.scs-card-block {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 28px;
  padding: 44px;
  position: relative;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

@media (max-width: 640px) {
  .scs-card-block {
    padding: 28px 20px;
    border-radius: 20px;
  }
}

.scs-dot-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  top: 36px;
  right: 36px;
}

.scs-dot-red {
  background: #F62F2F;
  box-shadow: 0 0 0 4px rgba(246, 47, 47, 0.15);
}

.scs-dot-green {
  background: #00C714;
  box-shadow: 0 0 0 4px rgba(0, 199, 20, 0.15);
}

.scs-card-block p {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: #2B2B2B;
  margin: 0 0 20px 0;
}

.scs-card-block ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scs-card-block ul li {
  position: relative;
  padding-left: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #2B2B2B;
}

.scs-card-block ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #087DBD;
}

/* Approach Step Cards */
.scs-approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .scs-approach-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.scs-step-card {
  background: #F8FAFD;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 24px;
}

.scs-step-num {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #087DBD;
  background: #EBF6FC;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.scs-step-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #101111;
  margin: 0 0 8px 0;
}

.scs-step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #4B5563;
  margin: 0;
}

/* ==========================================
   4. SOLUTIONS & METRICS
   ========================================== */
.scs-solutions-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 28px;
  padding: 44px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.scs-metrics-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #E2E8F0;
}

@media (max-width: 768px) {
  .scs-metrics-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.scs-metric-item {
  text-align: center;
  padding: 8px;
}

.scs-metric-num {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: #087DBD;
  line-height: 1.1;
}

.scs-metric-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  margin-top: 6px;
}

/* ==========================================
   5. VISUAL GALLERY (3 Mobile Screens in Row)
   ========================================== */
.scs-gallery-section {
  padding: 80px 0;
  background: #ffffff;
}

.scs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
}

@media (max-width: 768px) {
  .scs-gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.scs-gallery-card {
  background: linear-gradient(135deg, #F8FAFD 0%, #EEF2F6 100%);
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease;
}

.scs-gallery-card:hover {
  transform: translateY(-6px);
}

.scs-gallery-card img {
  max-height: 440px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.12));
}

/* ==========================================
   6. 4TH SHOWCASE IMAGE (Designed for Engaging User Experience)
   ========================================== */
.scs-showcase-fourth-card,
.scs-banner-wrap {
  width: 100%;
  margin-top: 36px;
  background: linear-gradient(135deg, #F8FAFD 0%, #EEF2F6 100%);
  border: 1px solid #E2E8F0;
  border-radius: 28px;
  padding: 48px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  text-align: center;
}

.scs-showcase-fourth-card img,
.scs-banner-wrap img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: inline-block;
  filter: drop-shadow(0 20px 35px rgba(15, 23, 42, 0.12));
  transition: transform 0.35s ease;
}

.scs-showcase-fourth-card:hover img,
.scs-banner-wrap:hover img {
  transform: translateY(-4px) scale(1.015);
}

@media (max-width: 768px) {
  .scs-showcase-fourth-card,
  .scs-banner-wrap {
    padding: 24px 16px;
    border-radius: 20px;
    margin-top: 24px;
  }
  .scs-showcase-fourth-card img,
  .scs-banner-wrap img {
    max-height: 340px;
  }
}

/* ==========================================
   7. CALL TO ACTION BANNER
   ========================================== */
.scs-cta-section {
  padding: 0 0 80px;
}

.scs-cta-card {
  background: linear-gradient(135deg, #087DBD 0%, #089FE8 50%, #51B2FF 100%);
  border-radius: 32px;
  padding: 60px 48px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 20px 50px rgba(8, 125, 189, 0.3);
}

.scs-cta-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  margin: 0 0 14px 0;
  color: #ffffff;
}

.scs-cta-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  max-width: 640px;
  margin: 0 0 30px 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.scs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 9999px;
  background: #ffffff;
  color: #087DBD;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.scs-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  color: #087DBD;
}

/* ==========================================
   8. BOTTOM CONSULTATION FORM SECTION
   ========================================== */
.case-consultation-section {
  padding: 80px 0 100px;
  background-color: #F8FAFD;
  border-top: 1px solid #E2E8F0;
}

.case-consultation-card {
  background: #ffffff;
  border: 1px solid #CBD5E1;
  border-radius: 36px;
  padding: 56px;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.08);
}

.case-consultation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 992px) {
  .case-consultation-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .case-consultation-card {
    padding: 32px 24px;
    border-radius: 24px;
  }
}

.case-consultation-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-consultation-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 9999px;
  background: #EBF6FC;
  border: 1px solid rgba(8, 159, 232, 0.3);
  color: #087DBD;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-consultation-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin: 0;
}

.case-consultation-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin: 0;
}

.case-contact-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}

.case-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #111827;
}

.case-contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #EBF6FC;
  color: #087DBD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.case-contact-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
}

.case-contact-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.case-contact-val:hover {
  color: #087DBD;
}

/* Consultation Form Box */
.case-form-card {
  background: #F8FAFD;
  border: 1px solid #CBD5E1;
  border-radius: 24px;
  padding: 36px;
}

.case-form-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 6px 0;
}

.case-form-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: #4B5563;
  margin: 0 0 24px 0;
}

.case-field-group {
  margin-bottom: 16px;
}

.case-field-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #111827;
  margin-bottom: 6px;
}

.case-field-input,
.case-field-select {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  border: 1.5px solid #CBD5E1 !important;
  background-color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #111827 !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  display: block !important;
}

.case-field-input::placeholder {
  color: #94A3B8 !important;
  opacity: 1 !important;
}

.case-field-select option {
  color: #111827 !important;
  background-color: #ffffff !important;
}

.case-field-input:focus,
.case-field-select:focus {
  border-color: #089FE8 !important;
  box-shadow: 0 0 0 3px rgba(8, 159, 232, 0.15) !important;
}

.case-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .case-field-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.case-submit-btn {
  width: 100% !important;
  padding: 14px 28px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #087DBD 0%, #089FE8 50%, #51B2FF 100%) !important;
  color: #ffffff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(8, 125, 189, 0.25) !important;
  transition: all 0.3s ease !important;
  margin-top: 8px !important;
  display: block !important;
}

.case-submit-btn:hover {
  box-shadow: 0 8px 24px rgba(8, 125, 189, 0.35) !important;
  transform: translateY(-2px) !important;
}
