/* ===============================================
   CASE INTRO PAGE — Routa Digital
   Case Studies Showcase with 8 Clients
   =============================================== */

/* HERO */

.caseintro-hero {
  position: relative;
  padding: 140px 20px 100px;
  background: radial-gradient(circle at 15% 25%, rgba(255, 223, 6, 0.25) 0%, transparent 40%), radial-gradient(circle at 85% 75%, rgba(255, 136, 6, 0.25) 0%, transparent 45%), linear-gradient(135deg, #1e36d8 0%, #2545fc 50%, #1b2fc4 100%);
  color: #fff;
  overflow: hidden;
}
.caseintro-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
}
/* GRID OVERLAY */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .25;
}

/* GLOW EFFECTS */
/* .hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .45;
} */

.glow-left {
  background: #ffdf06;
  top: -80px;
  left: -120px;
}

.glow-right {
  background: #ff8806;
  bottom: -100px;
  right: -120px;
}

.hero-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Align header rail with hero */
.main-header .header-container {
  max-width: 1180px;
}
/* FLEX LAYOUT */
.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

/* LEFT SIDE */
.hero-left {
  flex: 1;
  max-width: 560px;
}

.hero-left h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
}

.hero-left h1 span {
  background: linear-gradient(90deg,#ff8806,#ffdf06);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-left p {
  margin: 22px 0 28px;
  font-size: 18px;
  line-height: 1.7;
  opacity: .9;
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.btn-primary {
  background: var(--gradient-cta);
  color: black;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.6);
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
}

.hero-proof {
  font-size: 14px;
  opacity: .8;
}

/* RIGHT SIDE */
.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-label {
  font-size: 12px;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 8px;
}

.hero-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.hero-card p {
  font-size: 14px;
  opacity: .85;
  margin-bottom: 10px;
}

.card-metric {
  font-weight: 700;
  color: #ffdf06;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-flex {
    flex-direction: column;
    text-align: center;
  }

  .hero-right {
    width: 100%;
  }

  .hero-left h1 {
    font-size: 40px;
  }

  .hero-buttons {
    justify-content: center;
  }
}

.contact-sections {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: var(--space-section) 5%;

  background: #0f1e78;
}
/* ===============================
   AI SECTION
================================= */

.ai-section {
  position: relative;
  padding: var(--space-section) 0 140px;
  background: #ffffff;
  color: #0f172a;
  overflow: hidden;
}

    /* .ai-section::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 20% 30%, rgba(255, 223, 6, 0.14), transparent 48%),
        radial-gradient(circle at 80% 70%, rgba(255, 136, 6, 0.14), transparent 48%);
    } */

/* .container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
} */

.ai-section .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

    /* Header – unchanged */
    .ai-header {
      text-align: center;
      margin-bottom: 90px;
    }

    .ai-header h3 {
      font-size: 26px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 4px;
      color: #ff8806;
      display: inline-flex;
      align-items: center;
      gap: 28px;
      margin-bottom: 20px;
    }

    .ai-header h3::before,
    .ai-header h3::after {
      content: "";
      width: 80px;
      height: 3px;
      background: var(--gradient-cta);
      border-radius: 2px;
    }

    .ai-header h2 {
      font-size: clamp(40px, 6vw, 56px);
      font-weight: 800;
      line-height: 1.15;
    }

    .ai-header h2 span {
      background: var(--gradient-cta);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

/* Case Stack */
.case-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
}

.case-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  max-width: 100%;
  width: 100%;
  min-height: 520px;
  margin: 0 auto;
  align-items: stretch;
  box-sizing: border-box;
}


.case-left {
  border-radius: 28px;
  padding: 28px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 223, 6, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 136, 6, 0.25) 0%, transparent 45%),
    linear-gradient(135deg, #1e36d8 0%, #2545fc 50%, #1b2fc4 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 24px 60px rgba(30, 54, 216, 0.28);
  min-width: 0;
}

.case-left::before,
.case-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
  z-index: 0;
}

.case-left > *,
.case-right > * {
  position: relative;
  z-index: 1;
}

.case-industry {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.case-left h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
}

.case-media {
  position: relative;
  border-radius: 22px;
  padding: 0;
  min-height: 280px;
  overflow: hidden;
}

.case-media-img {
  position: absolute;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.case-media-img.primary {
  width: 78%;
  height: 70%;
  right: 0;
  top: 0;
}

.case-media-img.secondary {
  width: 42%;
  height: 68%;
  left: 0;
  bottom: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

/* Per-card media layouts */
.case-media.layout-a .case-media-img.primary {
  width: 80%;
  height: 72%;
  right: 0;
  top: 0;
}
.case-media.layout-a .case-media-img.secondary {
  width: 40%;
  height: 64%;
  left: 0;
  bottom: 0;
}

.case-media.layout-b .case-media-img.primary {
  width: 76%;
  height: 68%;
  left: 0;
  top: 0;
}
.case-media.layout-b .case-media-img.secondary {
  width: 44%;
  height: 70%;
  right: 0;
  bottom: 0;
}

.case-media.layout-c .case-media-img.primary {
  width: 82%;
  height: 66%;
  right: 0;
  top: 6%;
}
.case-media.layout-c .case-media-img.secondary {
  width: 38%;
  height: 62%;
  left: 0;
  bottom: 4%;
}

.case-media.layout-d .case-media-img.primary {
  width: 74%;
  height: 70%;
  left: 0;
  top: 0;
}
.case-media.layout-d .case-media-img.secondary {
  width: 46%;
  height: 62%;
  right: 0;
  bottom: 0;
}

.case-media.layout-e .case-media-img.primary {
  width: 78%;
  height: 72%;
  right: 0;
  top: 2%;
}
.case-media.layout-e .case-media-img.secondary {
  width: 42%;
  height: 60%;
  left: 0;
  bottom: 6%;
}

.case-media.layout-f .case-media-img.primary {
  width: 72%;
  height: 68%;
  left: 0;
  top: 4%;
}
.case-media.layout-f .case-media-img.secondary {
  width: 48%;
  height: 64%;
  right: 0;
  bottom: 2%;
}

.case-media.layout-g .case-media-img.primary {
  width: 80%;
  height: 68%;
  right: 0;
  top: 0;
}
.case-media.layout-g .case-media-img.secondary {
  width: 40%;
  height: 66%;
  left: 0;
  bottom: 0;
}

.case-media.layout-h .case-media-img.primary {
  width: 76%;
  height: 70%;
  left: 0;
  top: 0;
}
.case-media.layout-h .case-media-img.secondary {
  width: 44%;
  height: 66%;
  right: 0;
  bottom: 0;
}


.case-right {
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 223, 6, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 136, 6, 0.25) 0%, transparent 45%),
    linear-gradient(135deg, #1e36d8 0%, #2545fc 50%, #1b2fc4 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 24px 60px rgba(30, 54, 216, 0.28);
  min-width: 0;
}

.case-link {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  /* border-radius: 999px; */
  display: grid;
  place-items: center;
  /* background: rgba(255, 255, 255, 0.16); */
  /* border: 1px solid rgba(255, 255, 255, 0.4); */
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.case-link::after {
  content: attr(data-label);
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(6px);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gradient-cta);
  color: #111;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.case-link span {
  transition: opacity 0.2s ease;
}

.case-link:hover {
  /* background: rgba(255, 255, 255, 0.28); */
  transform: translateY(-2px);
}

.case-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.case-link:hover span {
  opacity: 0;
}

.case-brief {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.case-brief-title {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #ffffff;
}

.case-brief p {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.6;
  margin: 0;
  color: #ffffff;
}

.case-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-tools .tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 18px;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

/* Responsive */
@media (max-width: 1200px) {
  .case-row {
    max-width: 100%;
    min-height: 480px;
  }
}

@media (max-width: 1024px) {
  .case-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }


  .case-left,
  .case-right {
    border-radius: 22px;
  }

  .case-left h3 {
    font-size: 30px;
  }

  .case-media {
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .ai-section {
    padding: 80px 0 100px;
  }

  .case-left,
  .case-right {
    padding: 24px;
  }
  
  .case-right {
    padding-bottom: 72px;
  }

  .case-brief p {
    font-size: 18px;
  }

  .case-row {
    gap: 20px;
  }

  .case-left h3 {
    font-size: 26px;
  }

  .case-media {
    min-height: 200px;
  }

  .case-brief {
    padding: 18px;
  }

  .case-tools {
    gap: 10px;
  }

  .case-tools .tool-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}


