/**
 * Case Study Stylesheet — Digitons Development
 * Premium editorial digital agency case study layout
 */

/* ==========================================================================
   Page Container & Baseline
   ========================================================================== */
.case-study-page {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

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

.case-study-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.case-study-container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.cs-hero {
  position: relative;
  padding: 150px 0 90px;
  background: radial-gradient(circle at 80% 20%, rgba(172, 33, 138, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.06) 0%, transparent 45%),
              #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.cs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ac218a 0%, #3b82f6 50%, #10b981 100%);
}

.cs-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cs-breadcrumb a:hover {
  color: #ac218a;
}

.cs-breadcrumb-sep {
  color: #cbd5e1;
}

.cs-breadcrumb-current {
  color: #0f172a;
  font-weight: 500;
}

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(172, 33, 138, 0.08);
  border: 1px solid rgba(172, 33, 138, 0.22);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #7b1262;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cs-eyebrow svg {
  color: #ac218a;
}

.cs-hero-header {
  margin-bottom: 36px;
  max-width: 900px;
}

.cs-client-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.cs-client-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.cs-client-info {
  display: flex;
  flex-direction: column;
}

.cs-client-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.cs-client-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.2;
}

.cs-hero-title {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin: 0 0 24px;
  overflow-wrap: break-word;
  word-break: normal;
}

.cs-hero-subtitle {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  color: #475569;
  margin: 0 0 32px;
  max-width: 820px;
}

.cs-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.cs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ac218a 0%, #7b1262 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(172, 33, 138, 0.4);
  transition: all 0.25s ease;
}

.cs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(172, 33, 138, 0.5);
}

.cs-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cs-btn-secondary:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

/* Hero Key Metadata Ribbon */
.cs-meta-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 8px 30px -10px rgba(15, 23, 42, 0.06);
  margin-bottom: 50px;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-meta-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

.cs-meta-value {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
}

/* Hero Showcase Browser Frame */
.cs-hero-browser {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.cs-browser-bar {
  background: #f8fafc;
  height: 44px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 16px;
}

.cs-browser-dots {
  display: flex;
  gap: 8px;
}

.cs-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.cs-dot-red { background: #ff5f56; }
.cs-dot-yellow { background: #ffbd2e; }
.cs-dot-green { background: #27c93f; }

.cs-browser-url {
  flex: 1;
  max-width: 440px;
  height: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin: 0 auto;
}

.cs-browser-url svg {
  color: #10b981;
}

.cs-hero-img-wrap {
  position: relative;
  background: #f1f5f9;
}

.cs-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   Section Styling & Typography
   ========================================================================== */
.cs-section {
  padding: 90px 0;
  position: relative;
}

.cs-section-alt {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.cs-sec-header {
  margin-bottom: 48px;
}

.cs-sec-header.text-center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.cs-sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ac218a;
  margin-bottom: 12px;
}

.cs-sec-title {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}

.cs-sec-desc {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   Section 2: Project Overview
   ========================================================================== */
.cs-overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: flex-start;
}

.cs-overview-text {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.cs-overview-text p {
  margin-bottom: 20px;
}

.cs-overview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.cs-overview-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-overview-card-title svg {
  color: #ac218a;
}

.cs-fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cs-fact-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(172, 33, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ac218a;
  margin-top: 2px;
}

.cs-fact-content strong {
  display: block;
  font-size: 13.5px;
  color: #0f172a;
  margin-bottom: 2px;
}

.cs-fact-content span {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* ==========================================================================
   Section 3: Objectives
   ========================================================================== */
.cs-objectives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cs-objective-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.cs-objective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ac218a 0%, #7b1262 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cs-objective-card:hover {
  transform: translateY(-4px);
  border-color: rgba(172, 33, 138, 0.25);
  box-shadow: 0 16px 36px -10px rgba(172, 33, 138, 0.1);
}

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

.cs-obj-num {
  font-size: 13px;
  font-weight: 700;
  color: #ac218a;
  background: rgba(172, 33, 138, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
}

.cs-objective-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}

.cs-objective-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   Section 4: Challenges & Approach
   ========================================================================== */
.cs-challenges-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cs-ca-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease;
}

.cs-ca-row:hover {
  border-color: #cbd5e1;
}

.cs-ca-col {
  padding: 36px;
}

.cs-ca-col.challenge-col {
  background: #fafafa;
  border-right: 1px solid #f1f5f9;
}

.cs-ca-col.approach-col {
  background: #ffffff;
}

.cs-ca-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}

.cs-ca-tag.tag-challenge {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.cs-ca-tag.tag-approach {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.cs-ca-title {
  font-size: 17.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.35;
}

.cs-ca-text {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   Section 5: Key Work Delivered
   ========================================================================== */
.cs-deliverables-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cs-deliverable-item {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.cs-deliverable-item.item-reverse {
  grid-template-columns: 1.1fr 1fr;
}

.cs-deliverable-item.item-reverse .cs-deliv-content {
  order: 2;
}

.cs-deliverable-item.item-reverse .cs-deliv-visual {
  order: 1;
}

.cs-deliv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(172, 33, 138, 0.06);
  border: 1px solid rgba(172, 33, 138, 0.18);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #7b1262;
  margin-bottom: 16px;
}

.cs-deliv-title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 16px;
}

.cs-deliv-desc {
  font-size: 15.5px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
}

.cs-deliv-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-deliv-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.5;
}

.cs-deliv-feature svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 3px;
}

.cs-deliv-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  aspect-ratio: 16 / 10;
  max-height: 420px;
  width: 100%;
}

.cs-deliv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.cs-deliv-visual:hover .cs-deliv-img {
  transform: scale(1.02);
}

/* ==========================================================================
   Section 6: Website Showcase Gallery
   ========================================================================== */
.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.cs-gallery-item-featured {
  grid-column: span 2;
}

.cs-gallery-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px -8px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cs-gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(172, 33, 138, 0.3);
  box-shadow: 0 18px 45px -12px rgba(15, 23, 42, 0.12);
}

.cs-gallery-card-clickable {
  cursor: pointer;
}

.cs-gallery-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.cs-gallery-item-featured .cs-gallery-thumb-wrap {
  aspect-ratio: 16 / 9;
}

.cs-gallery-thumb-wrap:not(.featured) {
  aspect-ratio: 16 / 10;
}

.cs-gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-gallery-card:hover .cs-gallery-thumb {
  transform: scale(1.03);
}

.cs-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cs-gallery-card:hover .cs-gallery-overlay {
  opacity: 1;
}

.cs-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cs-gallery-caption {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-gallery-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.cs-gallery-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Section 7: Responsive Experience
   ========================================================================== */
.cs-responsive-showcase {
  background: #0f172a;
  border-radius: 28px;
  padding: 60px 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3);
}

.cs-responsive-showcase::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(172, 33, 138, 0.25) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}

.cs-responsive-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.cs-responsive-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.cs-responsive-desc {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.7;
}

.cs-devices-stage {
  display: grid;
  grid-template-columns: 2fr 1fr 0.7fr;
  gap: 24px;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cs-device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cs-device-label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-device-label svg {
  color: #ac218a;
}

/* Desktop Frame */
.cs-mockup-desktop {
  width: 100%;
  background: #1e293b;
  border-radius: 12px;
  border: 1px solid #334155;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.cs-mockup-bar {
  height: 28px;
  background: #1e293b;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.cs-mockup-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Tablet Frame */
.cs-mockup-tablet {
  width: 100%;
  background: #1e293b;
  border-radius: 18px;
  padding: 10px;
  border: 2px solid #334155;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cs-mockup-tablet-inner {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.cs-mockup-tablet-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Mobile Frame */
.cs-mockup-mobile {
  width: 100%;
  background: #1e293b;
  border-radius: 22px;
  padding: 8px;
  border: 2px solid #334155;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cs-mockup-mobile-inner {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.cs-mockup-mobile-img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ==========================================================================
   Section 8: Important Page Highlights
   ========================================================================== */
.cs-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cs-highlight-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.cs-highlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(172, 33, 138, 0.25);
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.1);
}

.cs-highlight-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f8fafc;
}

.cs-highlight-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.cs-highlight-card:hover .cs-highlight-thumb {
  transform: scale(1.03);
}

.cs-highlight-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cs-highlight-page-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ac218a;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.cs-highlight-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.35;
}

.cs-highlight-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Section 9: Project Details
   ========================================================================== */
.cs-details-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.cs-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.cs-detail-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cs-detail-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cs-detail-val {
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
}

.cs-detail-val a {
  color: #ac218a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cs-detail-val a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Section 10: Final CTA
   ========================================================================== */
.cs-final-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: 28px;
  padding: 80px 48px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  margin-bottom: 40px;
}

.cs-final-cta::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(172, 33, 138, 0.3) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.cs-cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cs-cta-heading {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.cs-cta-sub {
  font-size: 16.5px;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0 0 36px;
}

.cs-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cs-cta-btn-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ac218a 0%, #7b1262 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px -4px rgba(172, 33, 138, 0.4);
  transition: all 0.25s ease;
}

.cs-cta-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(172, 33, 138, 0.5);
}

.cs-cta-btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 50px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.cs-cta-btn-visit:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.cs-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cs-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.cs-lightbox-dialog {
  max-width: 1200px;
  max-height: 90vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cs-lightbox-close:hover,
.cs-lightbox-close:focus {
  background: rgba(255, 255, 255, 0.3);
  outline: 2px solid #ac218a;
}

.cs-lightbox-img-wrap {
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.cs-lightbox-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cs-lightbox-caption {
  color: #e2e8f0;
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1199px) {
  .cs-meta-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-devices-stage {
    grid-template-columns: 1.8fr 1fr 0.8fr;
  }
}

@media (max-width: 991px) {
  .cs-hero {
    padding: 130px 0 70px;
  }

  .cs-overview-grid {
    grid-template-columns: 1fr;
  }

  .cs-objectives-grid {
    grid-template-columns: 1fr;
  }

  .cs-ca-row {
    grid-template-columns: 1fr;
  }

  .cs-ca-col.challenge-col {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }

  .cs-deliverable-item,
  .cs-deliverable-item.item-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

  .cs-deliverable-item.item-reverse .cs-deliv-content {
    order: 1;
  }

  .cs-deliverable-item.item-reverse .cs-deliv-visual {
    order: 2;
  }

  .cs-gallery-grid {
    grid-template-columns: 1fr;
  }

  .cs-gallery-item-featured {
    grid-column: span 1;
  }

  .cs-devices-stage {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cs-highlights-grid {
    grid-template-columns: 1fr;
  }

  .cs-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .cs-hero {
    padding: 115px 0 60px;
  }

  .cs-meta-ribbon {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }

  .cs-responsive-showcase {
    padding: 40px 20px;
    border-radius: 20px;
  }

  .cs-final-cta {
    padding: 50px 24px;
    border-radius: 20px;
  }

  .cs-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cs-cta-btn-start,
  .cs-cta-btn-visit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cs-hero-title {
    font-size: 28px;
  }

  .cs-sec-title {
    font-size: 24px;
  }

  .cs-client-badge {
    padding: 6px 12px;
  }

  .cs-ca-col {
    padding: 24px 20px;
  }
}
