/* ---------------------------
   ROOT COLORS (UPDATED)
---------------------------- */
:root {
  /* Background */
  --bg-dark: #1f2328;
  --bg-grid: rgba(255, 255, 255, 0.04);

  /* Text */
  --text-light: #f1f5f9;
  --text-dim: #b6c2cf;

  /* Primary Accent — Crimson */
/* Primary Accent — Green (alias: crimson) */
  --crimson: #22c55e;
  --crimson-light: #4ade80;
  --crimson-glow: rgba(34, 197, 94, 0.45);
  --crimson-glow-strong: rgba(74, 222, 128, 0.75);


  /* Secondary Accent — Soft Cyan */
/* Secondary Accent — Mint (alias: cyan) */
  --cyan: #5eead4;
  --cyan-light: #99f6e4;
  --cyan-glow: rgba(94, 234, 212, 0.45);


  /* Card */
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: rgba(29, 245, 0, 0.35); /* crimson 기반 */
}



/* ---------------------------
   GLOBAL
---------------------------- */
.bab-body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: "Pretendard", sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Cyber Grid Background */
.bab-body::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 80px 80px;
  position: fixed;
  top: 0; left: 0;
  z-index: -2;
}

/* Container */
.bab-container {
  width: 92%;
  max-width: 1300px;
  margin: auto;
}

/* Sections */
.bab-section {
  padding: 110px 0;
}

.bab-section-alt {
  padding: 110px 0;
  background: rgba(255, 255, 255, 0.02);
}

.bab-section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 55px;

  background: linear-gradient(90deg, var(--crimson), var(--crimson-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================================
   HERO SECTION
========================================================= */

.bab-hero {
  padding: 150px 0 110px;
}

.bab-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;

  max-width: 1300px;
  width: 92%;
  margin: auto;
}

.bab-hero-left {
  flex: 1;
  min-width: 450px;
}

.bab-hero-title {
  font-size: 2.7rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bab-hero-subtitle {
  margin-top: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dim);
}

.bab-hero-desc {
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 620px;
}

.bab-tag-box {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bab-tag-box span {
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  color: var(--crimson-light);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* LOGO CARD */
.bab-hero-right {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
}

.bab-logo-card {
  width: 260px;
  height: 260px;
  padding: 30px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;

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

  backdrop-filter: blur(18px);
  box-shadow:
    0 0 22px var(--crimson-glow),
    0 0 38px var(--crimson-glow-strong),
    inset 0 0 22px var(--crimson-glow);
}

.bab-logo-card img {
  width: 85%;
}

/* Mobile HERO */
@media (max-width: 860px) {
  .bab-hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .bab-hero-right {
    order: -1;
  }
}

/* reference */

.bab-reference-image {
  margin-top: 48px;
  padding: 10px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  display:flex;
  box-shadow: 0 0 26px var(--crimson-glow);
  justify-content: center;
  align-items: center;
}

.bab-reference-image img {
  width: auto;
  height: auto;
  display: block;
  border-radius: 16px;
}


/* =========================================================
   SUMMARY — FLOW STYLE
========================================================= */

.bab-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  position: relative;
}

/* 카드 공통 */
.bab-summary-card {
  padding: 32px 28px;
  border-radius: 22px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);

  box-shadow: rgba(29, 245, 0, 0.35);

  text-align: center;
  position: relative;
}

/* 단계 연결 화살표 느낌 */
.bab-summary-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -36px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--crimson-light);
  opacity: 0.7;
}

/* 타이틀 */
.bab-summary-card h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--crimson-light);
}

/* 내용 */
.bab-summary-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* SUMMARY 강조 키워드 */
.summary-key {
  color: var(--crimson-light);
  font-weight: 600;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .bab-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .bab-summary-card::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .bab-summary-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   SERVER ROLE GROUP
========================================================= */

.bab-server-group {
  margin-top: 70px;
}

.bab-server-group-title {
  margin-bottom: 28px;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cyan-light);
}

/* =========================================================
   SERVER ROLES — COMPACT VIEW
========================================================= */

/* 설명 문구 */
.bab-section-desc {
  max-width: 900px;
  margin: 20px auto 60px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* =========================================================
   COMPACT GRID
========================================================= */
.bab-server-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* =========================================================
   COMPACT CARD
========================================================= */
.bab-server-compact {
  padding: 30px 28px 32px;
  border-radius: 20px;

  background: var(--card-bg);
  border: 2px solid var(--card-border);
  backdrop-filter: blur(14px);

  /* 🔴 메인 테마: CRIMSON */
  box-shadow: rgba(29, 245, 0, 0.35);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.bab-server-compact:hover {
  transform: translateY(-6px);
  box-shadow: rgba(29, 245, 0, 0.35);
}


/* =========================================================
   TITLE (ROLE)
========================================================= */
.bab-server-compact h4 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-light);
}

/* =========================================================
   DESCRIPTION
========================================================= */
.bab-server-compact p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* HQ / BR 강조 */
.bab-server-compact p strong {
  color: var(--cyan-light);
  font-weight: 800;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .bab-server-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .bab-server-compact-grid {
    grid-template-columns: 1fr;
  }

  .bab-server-compact {
    padding: 26px 24px 28px;
  }
}


/* =========================================================
   DATA FLOW DIAGRAM
========================================================= */

.bab-flow {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.bab-flow-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bab-flow-title {
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
  color: var(--cyan-light);
}

.bab-flow-node {
  padding: 18px;
  text-align: center;
  border-radius: 18px;

  background: var(--card-bg);
  border: 2px solid var(--card-border);

  box-shadow:
    rgba(29, 245, 0, 0.35);

  font-weight: 800;
  color: var(--text-light);
}

.bab-flow-node span {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* =========================================================
   BIDIRECTIONAL ARROW
========================================================= */

.arrow-line-bidirectional {
  width: 140px;
  height: 2px;
  margin: 12px auto;
  position: relative;

  background: linear-gradient(
    90deg,
    var(--cyan-light),
    var(--crimson-light),
    var(--cyan-light)
  );
}

/* 왼쪽 화살표 */
.arrow-line-bidirectional::before {
  content: "◀";
  position: absolute;
  left: -14px;
  top: -9px;
  font-size: 1rem;
  color: var(--cyan-light);
}

/* 오른쪽 화살표 */
.arrow-line-bidirectional::after {
  content: "▶";
  position: absolute;
  right: -14px;
  top: -9px;
  font-size: 1rem;
  color: var(--crimson-light);
}


/* Responsive */
@media (max-width: 900px) {
  .bab-flow {
    grid-template-columns: 1fr;
  }

  .arrow-line {
    transform: rotate(90deg);
  }
}

/* =========================================================
   FAILOVER FLOW
========================================================= */

.bab-failover-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.bab-failover-step {
  position: relative;
  padding: 32px 28px;
  border-radius: 22px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);

  box-shadow:
    0 0 26px var(--crimson-glow);
}

.bab-failover-step span {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--cyan-light);
}

.bab-failover-step h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--text-light);
}

.bab-failover-step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 1000px) {
  .bab-failover-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .bab-failover-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   PROBLEM → SOLUTION OVERVIEW
========================================================= */

/* 섹션 요약 설명 */
.bab-section-desc {
  max-width: 860px;
  margin: 20px auto 70px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* 문제/해결 블록 래퍼 */
.bab-ps-wrapper {
  margin-bottom: 90px;
}

/* 소제목 */
.bab-ps-heading {
  margin-bottom: 32px;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--cyan-light);
}

/* =========================================================
   GRID
========================================================= */
.bab-ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* =========================================================
   CARD (COMMON)
========================================================= */
.bab-ps-card {
  padding: 36px 34px 38px;
  border-radius: 22px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* =========================================================
   PROBLEM CARD
========================================================= */
.bab-ps-card.problem {
  box-shadow: 0 0 40px var(--crimson-glow-strong);
}

.bab-ps-card.problem h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fb7185;
}

.bab-ps-card.problem p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* =========================================================
   SOLUTION CARD
========================================================= */
.bab-ps-card.solution {
  box-shadow:
    rgba(29, 245, 0, 0.35);
}

.bab-ps-card.solution:hover {
  /* transform: translateY(-6px); */
  box-shadow:
    rgba(29, 245, 0, 0.35);
}

.bab-ps-card.solution h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-light);
}

/* 상단 태그 */
.bab-ps-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px px;

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;

  color: var(--cyan-light);
  /* background: rgba(199, 35, 35, 0.45); */
  /* border: 1px solid var(--card-border); */
  border-radius: 999px;
}

/* 설명 */
.bab-ps-card.solution p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 16px;
}

/* 기술 태그 */
.bab-ps-tech {
  font-size: 0.8rem;
  color: var(--cyan);
  opacity: 0.85;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .bab-ps-grid {
    grid-template-columns: 1fr;
  }

  .bab-ps-wrapper {
    margin-bottom: 70px;
  }
}


/* =========================================================
   TIMELINE
========================================================= */

.bab-timeline {
  border-left: 3px solid rgba(29, 245, 0, 0.35);
  padding-left: 40px;
  margin-top: 40px;
}

.bab-timeline-item {
  margin-bottom: 55px;
  position: relative;
}

.bab-timeline-item::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--crimson);
  border-radius: 50%;
  border: 4px solid var(--crimson-light);
  position: absolute;
  left: -48px;

  box-shadow:
    rgba(29, 245, 0, 0.35);
}

.bab-timeline-item h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--crimson-light);
}

.bab-timeline-item p {
  color: var(--text-dim);
  margin-top: 6px;
}

/* =========================================================
   SCREENSHOTS (4-column)
========================================================= */

/* =========================================================
   DB REPLICATION & BACKUP SECTION
========================================================= */

/* 섹션 한 줄 설명 */
.bab-section-desc {
  margin: 20px auto 50px;
  max-width: 820px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dim);
}

/* =========================================================
   SHOT CARD (확장)
========================================================= */
.bab-shot-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;

  background: var(--card-bg);
  border: 1px solid var(--card-border);

  box-shadow:
    rgba(29, 245, 0, 0.35);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.bab-shot-card:hover {
  transform: translateY(-6px);
  box-shadow:
    rgba(29, 245, 0, 0.35);
}

/* 이미지 */
.bab-shot-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  transition: transform 0.4s ease;
}

.bab-shot-card:hover img {
  transform: scale(1.03);
}

/* =========================================================
   CAPTION OVERLAY
========================================================= */
.bab-shot-caption {
  position: absolute;
  inset: 0;
  padding: 22px 20px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  background: linear-gradient(
    to top,
    rgba(30, 41, 59, 0.85),
    rgba(30, 41, 59, 0.25),
    transparent
  );

  opacity: 0;
  transition: opacity 0.35s ease;
}

.bab-shot-card:hover .bab-shot-caption {
  opacity: 1;
}

/* 캡션 제목 */
.bab-shot-caption h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--cyan-light);
}

/* 캡션 설명 */
.bab-shot-caption p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-light);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1000px) {
  .bab-section-desc {
    font-size: 1rem;
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .bab-shot-card {
    aspect-ratio: auto;
  }

  .bab-shot-card img {
    padding: 12px;
  }

  .bab-shot-caption {
    padding: 18px 16px;
  }
}


.bab-shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.bab-shot-card {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;

  background: var(--card-bg);
  border: 1px solid var(--card-border);

  box-shadow:
    rgba(29, 245, 0, 0.35);
}

.bab-shot-card img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

@media (max-width: 1000px) {
  .bab-shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .bab-shot-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PDF DOWNLOAD
========================================================= */

/* =========================================================
   PDF VIEW SECTION (OPEN IN NEW TAB)
========================================================= */

/* PDF 카드 그리드 */
.bab-pdf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 70px;
}

/* =========================================================
   PDF CARD
========================================================= */
.bab-pdf-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;

  padding: 36px 38px;
  border-radius: 22px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);

  box-shadow:
    0 0 32px var(--crimson-glow);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.bab-pdf-card:hover {
  transform: translateY(-6px);
  box-shadow:
    rgba(29, 245, 0, 0.35);
}

/* =========================================================
   TEXT AREA
========================================================= */
.bab-pdf-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--cyan-light);
}

.bab-pdf-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 420px;
}

/* =========================================================
   ACTION AREA
========================================================= */
.bab-pdf-action {
  flex-shrink: 0;
}

/* 버튼은 항상 동일한 상태 유지 */
.bab-pdf-action .pdf-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 14px;

  background: linear-gradient(
    90deg,
    var(--crimson-light),
    var(--cyan-light)
  );

  color: #020617;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;

  border: none;          /* 🔥 테두리 제거 (차이 발생 방지) */
  outline: none;

  box-shadow:
    0 0 20px var(--cyan-glow),
    0 0 35px var(--crimson-glow-strong);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* 버튼 hover */
.bab-pdf-action .pdf-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    rgba(29, 245, 0, 0.35);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .bab-pdf-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bab-pdf-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .bab-pdf-action {
    margin-top: 14px;
  }
}


/* =========================================================
   FOOTER
========================================================= */

.bab-footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}


/* ================================
   BAB TEAM SECTION
   세로 배치 고정
================================ */
.bab-team {
  display: flex;
  flex-direction: column;
  gap: 70px;
  padding: 120px 0;
}

/* ================================
   PROJECT CARD
================================ */
.bab-project {
  /* background: #ffffff; */
  border-radius: 22px;
  padding: 40px 36px 46px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bab-project:hover {
  transform: translateY(-6px);
  box-shadow: rgba(29, 245, 0, 0.35);
}

/* 제목 */
.bab-project h1 {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: white;
}

/* ================================
   IMAGE (16:9 · 축소 · 가운데)
================================ */
.bab-project img {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  object-fit: contain;        /* 🔥 핵심 */
  margin: 0 auto;
  border-radius: 16px;
  background: #f3f5f8;        /* 여백 보정 */
  padding: 12px;              /* 여백이 어색하지 않게 */

    /* 🔥 네온 글로우 핵심 */
  box-shadow:
    0 0 18px var(--crimson-glow),
    0 0 32px var(--crimson-glow-strong),
    inset 0 0 14px rgba(212, 20, 90, 0.35);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.bab-project:hover img {
  box-shadow:
    rgba(29, 245, 0, 0.35);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .bab-team {
    padding: 90px 0;
    gap: 50px;
  }

  .bab-project {
    padding: 32px 26px 36px;
  }

  .bab-project h1 {
    font-size: 1.25rem;
    margin-bottom: 22px;
  }

  .bab-project img {
    max-width: 100%;
  }
}

/* =========================================================
   추진 배경 SECTION
========================================================= */
.bab-bg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 60px;
}

/* =========================================================
   추진 배경 CARD
========================================================= */
.bab-bg-card {
  position: relative;
  padding: 36px 34px;
  border-radius: 22px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);

  box-shadow:
    0 0 20px var(--crimson-glow),
    0 0 34px var(--crimson-glow-strong);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.bab-bg-card:hover {
  transform: translateY(-6px);
  box-shadow:
    rgba(29, 245, 0, 0.35);
}

/* =========================================================
   TITLE
========================================================= */
.bab-bg-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--crimson-light);
}

/* =========================================================
   DESCRIPTION
========================================================= */
.bab-bg-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1000px) {
  .bab-bg-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* 🚑 FINAL OVERRIDE — remove hardcoded red hover */
.bab-ps-card:hover,
.bab-summary-card:hover,
.bab-server-card:hover,
.bab-shot-card:hover {
  box-shadow: 0 0 40px var(--crimson-glow-strong) !important;
}

/* =========================================================
   BABSEGWON SECURITY — RESPONSIVE FINAL
========================================================= */

/* -------------------------
   BASE FONT SCALE
------------------------- */
html {
  font-size: 16px;
}

@media (max-width: 1199px) {
  html { font-size: 15px; }
}

@media (max-width: 767px) {
  html { font-size: 14px; }
}

/* =========================================================
   HEADER
========================================================= */
@media (max-width: 767px) {
  .nav-container {
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
}

/* =========================================================
   HERO
========================================================= */
.bab-hero-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Tablet */
@media (max-width: 1024px) {
  .bab-hero-inner {
    gap: 50px;
  }

  .bab-hero-title {
    font-size: 2rem;
  }

  .bab-hero-subtitle,
  .bab-hero-desc {
    font-size: 0.95rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .bab-hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .bab-hero-title {
    font-size: 1.7rem;
    line-height: 1.35;
  }

  .bab-tag-box {
    justify-content: center;
    flex-wrap: wrap;
  }

  .bab-logo-card {
    max-width: 220px;
    margin: auto;
  }
}

/* =========================================================
   TEAM / IMAGE SECTIONS
========================================================= */
@media (max-width: 767px) {
  .bab-team {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .bab-project img {
    width: 100%;
    height: auto;
  }
}

/* =========================================================
   SUMMARY GRID (WHAT / WHY / HOW / RESULT)
========================================================= */
.bab-summary-grid {
  display: grid;
  gap: 30px;
}

@media (max-width: 1024px) {
  .bab-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bab-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   BACKGROUND / PROBLEM / SOLUTION GRIDS
========================================================= */
@media (max-width: 1024px) {
  .bab-bg-grid,
  .bab-ps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bab-bg-grid,
  .bab-ps-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TIMELINE
========================================================= */
@media (max-width: 767px) {
  .bab-timeline {
    gap: 24px;
  }

  .bab-timeline-item h3 {
    font-size: 1.05rem;
  }

  .bab-timeline-item p {
    font-size: 0.9rem;
  }
}

/* =========================================================
   SERVER ROLE GRID
========================================================= */
@media (max-width: 1024px) {
  .bab-server-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bab-server-compact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FLOW DIAGRAM
========================================================= */
@media (max-width: 1024px) {
  .bab-flow {
    flex-direction: column;
    gap: 40px;
  }

  .bab-flow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 767px) {
  .bab-flow-node {
    font-size: 0.9rem;
  }
}

/* =========================================================
   FAILOVER STEPS
========================================================= */
@media (max-width: 1024px) {
  .bab-failover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bab-failover-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SCREENSHOT GRID
========================================================= */
@media (max-width: 1024px) {
  .bab-shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bab-shot-grid {
    grid-template-columns: 1fr;
  }

  .bab-shot-caption h4 {
    font-size: 1rem;
  }

  .bab-shot-caption p {
    font-size: 0.9rem;
  }
}

/* =========================================================
   PDF SECTION
========================================================= */
@media (max-width: 767px) {
  .bab-pdf-grid {
    grid-template-columns: 1fr;
  }

  .pdf-btn {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   FOOTER
========================================================= */
@media (max-width: 767px) {
  .bab-footer {
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.5;
  }
}
