/* =========================
   CASE STUDIES PAGE
========================= */

.case-studies-page {
background: #020140;
  min-height: 100vh;
  padding: 140px 0 80px;
}

.case-studies-heading {
  text-align: center;
  margin-bottom: 50px;
}

.case-studies-heading h1 {
  color: #fff;
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 14px;
}

.case-studies-heading p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin: 0;
}

.case-study-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

.case-study-card {
 background: rgba(10, 8, 80, 0.95);

  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);

  height: 100%;
  cursor: pointer;

  transition: all 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.14);
}

.case-study-image {
 padding: 10px 10px 0 10px;
  overflow: hidden;
  background: transparent;
}

.case-study-image img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 18px;

  object-fit: contain;
  background: #fff;

  transition: transform 0.4s ease;
}
.case-study-card:hover .case-study-image img {
  transform: scale(1.03);
}

.case-study-content {
  padding: 22px;
}

.case-study-content h3 {
  color: #fff;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-study-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-study-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.case-study-tags span {
  font-size: 13px;

  padding: 7px 14px;

  background: rgba(90, 140, 255, 0.16);

  border: 1px solid rgba(120, 170, 255, 0.25);

  border-radius: 999px;

  color: #dbe7ff;

  font-weight: 500;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ====================================
   CASE STUDY DETAILS
==================================== */

.case-study-details-page {
  background: #020140;
  min-height: 100vh;
  padding: 130px 0 70px;
}

.case-study-details-container {
  /* Aligns the edges perfectly with your header logo and button */
  width: 88%;
  max-width: 1400px; /* Prevents it from getting too wide on massive monitors */
  margin: 0 auto;

  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
/* ====================================
   HERO
==================================== */

.case-study-banner {
  background: linear-gradient(
    135deg,
    #edf2ff 0%,
    #dbe5ff 100%
  );

 padding: 45px 60px;
  text-align: center;
}

.case-study-banner p {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #555;
  margin-bottom: 18px;
}

.case-study-banner h1 {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 700;
  color: #111;

  margin-bottom: 18px;
}

.case-study-banner span {
  font-size: 20px;
  color: #666;
}

/* ====================================
   CONTENT
==================================== */

.case-study-details-content {
 padding: 30px 60px 60px 60px;
}

/* ====================================
   INFO ROW
==================================== */

.case-study-info-row {
  margin-bottom: 40px;
}

.case-study-info-card {
  background: #f8faff;

  padding: 24px;

  border-radius: 18px;

  height: 100%;
}

.case-study-info-card h6 {
  font-size: 14px;
  font-weight: 700;
  color: #111;

  margin-bottom: 10px;
}

.case-study-info-card p {
  margin: 0;

  color: #666;

  font-size: 15px;

  line-height: 1.7;
}

/* ====================================
   ZIGZAG
==================================== */

.case-study-zigzag {
  margin-bottom: 90px;
}

.case-study-zigzag-row {
  align-items: center;
}

.case-study-zigzag-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.case-study-zigzag-content {
  padding: 20px 30px;
}

.case-study-label {
  font-size: 12px;

  font-weight: 700;

  letter-spacing: 3px;

  color: #777;

  margin-bottom: 16px;

  text-transform: uppercase;
}

.case-study-zigzag-content h3 {
  font-size: 42px;

  line-height: 1.2;

  font-weight: 700;

  color: #111;

  margin-bottom: 22px;
}

.case-study-zigzag-content p {
  font-size: 17px;

  line-height: 1.9;

  color: #555;

  margin-bottom: 18px;
}

/* ====================================
   MINI CARDS
==================================== */

.case-study-mini-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  height: 100%;
  border: 1px solid rgba(20, 20, 80, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.case-study-mini-card:hover {
  transform: translateY(-6px);
}

.case-study-mini-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(77, 109, 255, 0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;
}

.case-study-mini-icon i {
  font-size: 22px;
  color: #4d6dff;
}

.case-study-mini-card h4 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: #121212;
  margin-bottom: 12px;
}

.case-study-mini-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  margin: 0;
}

/* ====================================
   LISTS
==================================== */

.case-study-list {
  padding-left: 18px;
  margin: 0;
}

.case-study-list li {
  font-size: 16px;
  line-height: 2;
  color: #555;
}

/* ====================================
   WORKFLOW
==================================== */

.case-study-workflow-section {
  margin-top: 90px;
}

.case-study-section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.case-study-section-heading span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #6b7280;
}

.case-study-section-heading h2 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
  margin-top: 14px;
}

.case-study-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.case-study-workflow-card {
  background: #f8faff;

  border-radius: 20px;

  padding: 24px;

  min-height: 150px;

  border: 1px solid rgba(77, 109, 255, 0.06);

  transition: all 0.3s ease;
}

.case-study-workflow-card:hover {
  transform: translateY(-4px);
}

.workflow-number {
  width: 46px;
  height: 46px;

  border-radius: 12px;

  background: rgba(77, 109, 255, 0.1);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  font-weight: 700;

  color: #4d6dff;

  margin-bottom: 18px;
}

.case-study-workflow-card h4 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.case-study-workflow-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* ====================================
   TECH STACK
==================================== */

.case-study-tech-stack {
  margin-top: 80px;
}

.case-study-tech-stack h3 {
  font-size: 34px;
  font-weight: 700;
  color: #111;
  margin-bottom: 24px;
}

.case-study-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-study-tech-tags span {
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(77, 109, 255, 0.08);
  color: #4d6dff;
  font-size: 14px;
  font-weight: 600;
}

/* ====================================
   RESPONSIVE
==================================== */

@media (max-width: 1200px) {

  .case-study-banner h1 {
    font-size: 52px;
  }

  .case-study-zigzag-content h3 {
    font-size: 36px;
  }
}

/* ====================================
   TABLET
==================================== */

@media (max-width: 992px) {

  .case-study-details-page {
    padding: 110px 0 50px;
  }

  .case-study-details-container {
    width: calc(100% - 36px);
    border-radius: 22px;
  }

  .case-study-banner {
    padding: 70px 40px;
  }

  .case-study-banner h1 {
    font-size: 42px;
  }

  .case-study-banner span {
    font-size: 18px;
  }

  .case-study-details-content {
    padding: 45px 30px;
  }

  .case-study-zigzag {
    margin-bottom: 70px;
  }

  .case-study-zigzag-row {
    gap: 40px;
  }

  .case-study-zigzag-content {
    padding: 0;
  }

  .case-study-zigzag-content h3 {
    font-size: 32px;
  }

  .case-study-zigzag-image img {
    height: 280px;
  }

  .case-study-workflow-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================
   MOBILE
==================================== */

@media (max-width: 768px) {

  .case-studies-page {
    padding: 110px 0 50px;
  }

  .case-studies-heading h1 {
    font-size: 34px;
  }

  .case-study-image {
     height: auto;
  }

  .case-study-content {
    padding: 18px;
  }

  .case-study-content h3 {
    font-size: 18px;
  }

  .case-study-content p {
    font-size: 13px;
    line-height: 1.7;
  }

  /* DETAILS */

  .case-study-details-page {
    padding: 90px 0 30px;
  }

  .case-study-details-container {
    width: calc(100% - 16px);
    border-radius: 18px;
  }

  /* HERO */

  .case-study-banner {
    padding: 50px 20px;
  }

  .case-study-banner p {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 12px;
  }

  .case-study-banner h1 {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 12px;

    word-break: break-word;
  }

  .case-study-banner span {
    font-size: 14px;
    line-height: 1.6;
  }

  /* CONTENT */

  .case-study-details-content {
    padding: 24px 16px;
  }

  /* INFO */

  .case-study-info-row {
    margin-bottom: 35px;
  }

  .case-study-info-card {
    padding: 16px;
    border-radius: 16px;
  }

  .case-study-info-card h6 {
    font-size: 13px;
  }

  .case-study-info-card p {
    font-size: 13px;
  }

  /* ZIGZAG */

  .case-study-zigzag {
    margin-bottom: 50px;
  }

  .case-study-zigzag-row {
    gap: 24px;
  }

  .case-study-zigzag-image img {
    height: 220px;
    border-radius: 16px;
  }

  .case-study-label {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .case-study-zigzag-content h3 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .case-study-zigzag-content p {
    font-size: 14px;
    line-height: 1.8;
  }

  /* MINI CARDS */

  .case-study-mini-card {
    padding: 22px;
    border-radius: 18px;
  }

  .case-study-mini-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .case-study-mini-icon i {
    font-size: 20px;
  }

  .case-study-mini-card h4 {
    font-size: 20px;
  }

  .case-study-mini-card p {
    font-size: 14px;
  }

  /* WORKFLOW */

  .case-study-workflow-section {
    margin-top: 60px;
  }

  .case-study-section-heading {
    margin-bottom: 28px;
  }

  .case-study-section-heading h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  .case-study-workflow-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .case-study-workflow-card {
    padding: 18px;
    min-height: auto;
    border-radius: 18px;
  }

  .workflow-number {
    width: 42px;
    height: 42px;
    font-size: 14px;
    margin-bottom: 14px;
  }

  .case-study-workflow-card h4 {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .case-study-workflow-card p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* TECH STACK */

  .case-study-tech-stack {
    margin-top: 55px;
  }

  .case-study-tech-stack h3 {
    font-size: 24px;
  }

  .case-study-tech-tags {
    gap: 10px;
  }

  .case-study-tech-tags span {
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* ====================================
   SMALL MOBILE
==================================== */

@media (max-width: 480px) {

  .case-study-banner h1 {
    font-size: 22px;
  }

  .case-study-zigzag-content h3 {
    font-size: 20px;
  }

  .case-study-section-heading h2 {
    font-size: 24px;
  }

  .case-study-workflow-card h4 {
    font-size: 18px;
  }

  .case-study-workflow-card p {
    font-size: 13px;
  }
}