/* =========================================================
   GLOBAL
========================================================= */
:root {
  --purple-dark: #1B1140;
  --purple-mid: #261A5C;
  --text-light: #F5F5FF;
  --text-dim: #CFCFE8;
  --neon-blue: #4DA3FF;
  --neon-purple: #A17CFF;
}

.header{
  width:100% !important;
}

.section{
  width:100% !important;
}

.backend-body {
  background: linear-gradient(180deg, var(--purple-dark) 0%, var(--purple-mid) 100%);
  color: var(--text-light);
  font-family: "Pretendard", sans-serif;
  overflow-x: hidden;
  width: 100%;
}

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

/* =========================================================
   HERO
========================================================= */
.backend-hero {
  padding: 130px 0 110px;
}

.backend-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  max-width: 1300px;
  width: 92%;
  margin: auto;
}

.backend-hero-left {
  flex: 1;
  min-width: 480px;
}

.backend-hero-title {
  font-size: 2.9rem;
  font-weight: 900;
  background: linear-gradient(90deg, #E5D4FF, #B395FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.backend-hero-desc {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 600px;
}

/* Tags */
.backend-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.backend-tags span {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: var(--neon-blue);
  font-weight: 600;
}

/* RIGHT – LOGO CARD */
.backend-hero-right {
  flex: 0 0 230px;
  display: flex;
  justify-content: center;
}

.backend-logo-card {
  width: 230px;
  height: 230px;
  padding: 28px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);

  border-radius: 26px;

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

  box-shadow:
    0 0 25px var(--neon-blue),
    0 0 35px var(--neon-purple);
}

.backend-logo-card img {
  width: 100%;
  height: auto;
}

/* =========================================================
   SECTION TITLE
========================================================= */
.backend-section {
  padding: 100px 0;
}

.backend-section-alt {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.03);
}

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

  background: linear-gradient(90deg, #E5D4FF, #C29EFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================================
   WHAT / WHY / HOW / RESULT — INFO CARDS
========================================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.info-card {
  padding: 32px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  /* 요소들 위/아래 균등 배치 */
  height: 100%;
  padding-bottom: 20px;
  /* 하단 여유 */
  box-shadow: 0 0 18px rgba(77, 163, 255, 0.25);
}

.info-card:hover {
  box-shadow:
    0 0 25px var(--neon-blue),
    0 0 35px var(--neon-purple);
}

.info-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25 !important;
  margin-bottom: 12px !important;
  color: #E7D4FF;
}

.info-card p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.6 !important;
}

/* =========================================================
   TIMELINE (네온 버전)
========================================================= */
.backend-timeline {
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  padding-left: 40px;
  margin-top: 40px;
  position: relative;
}

.backend-timeline-item {
  margin-bottom: 55px;
  position: relative;
  padding-left: 5px;
  transition: 0.25s ease;
}

.backend-timeline-item::before {
  content: "";
  width: 20px;
  height: 20px;

  background: var(--neon-blue);
  border: 4px solid var(--neon-purple);
  border-radius: 50%;

  position: absolute;
  left: -51px;
  top: 3px;

  box-shadow:
    0 0 15px var(--neon-blue),
    0 0 25px var(--neon-purple);
}

.timeline-step {
  font-size: 0.95rem;
  color: #A7D2FF;
  font-weight: 700;
}

.backend-timeline-item h3 {
  margin-top: 6px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #E8D6FF;
}

.backend-timeline-item p {
  margin-top: 6px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Highlight when visible (JS adds .timeline-active) */
.timeline-active {
  transform: translateX(8px);
  filter: drop-shadow(0 0 20px var(--neon-blue));
}

/* =========================================================
   SCREENSHOT GRID (1:1)
========================================================= */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);

  box-shadow: 0 0 18px rgba(77, 163, 255, 0.25);

  transition: 0.25s;
}

.shot-card:hover {
  box-shadow:
    0 0 30px var(--neon-blue),
    0 0 40px var(--neon-purple);
}

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

/* =========================================================
   ADMIN GRID
========================================================= */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.admin-card {
  padding: 32px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);

  box-shadow: 0 0 18px rgba(77, 163, 255, 0.25);
  transition: 0.25s;
}

.admin-card:hover {
  box-shadow:
    0 0 28px var(--neon-blue),
    0 0 38px var(--neon-purple);
}

.admin-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #E6D4FF;
}

.admin-card p {
  font-size: 1rem;
  color: var(--text-dim);
}

/* =========================================================
   PDF DOWNLOAD
========================================================= */
.backend-pdf-box {
  padding: 45px;
  text-align: center;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    0 0 22px var(--neon-blue),
    0 0 32px var(--neon-purple);
}

.backend-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 28px;

  background: var(--neon-blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;

  border-radius: 14px;
  text-decoration: none;

  box-shadow:
    0 0 18px var(--neon-blue),
    0 0 28px var(--neon-purple);

  transition: 0.25s;
}

.backend-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 35px var(--neon-blue),
    0 0 40px var(--neon-purple);
}

/* =========================================================
   FOOTER
========================================================= */
.backend-footer {
  text-align: center;
  padding: 45px 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

  .screenshot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .backend-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .backend-hero-right {
    margin-top: 20px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

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

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .stack-icon-row img {
    width: 52px;
    height: 52px;
  }

  .stack-card:hover {
    transform: translateY(-3px);
  }
} */

/* =========================================================
   PROJECT GOAL SECTION
========================================================= */

.goal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.goal-card {
  padding: 32px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 3px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 20px rgba(0, 255, 180, 0.12),
    inset 0 0 25px rgba(0, 255, 180, 0.05);
  margin-bottom: 20px;

  transition: all 0.28s ease;
}

.goal-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 255, 180, 0.35);
  box-shadow:
    0 0 28px rgba(0, 255, 180, 0.25),
    inset 0 0 30px rgba(0, 255, 180, 0.12);
  transition: all 0.28s ease;
}


.goal-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #22e6a8, #78ffd6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.goal-list {
  margin-top: 12px;
  color: var(--text-dim);
  line-height: 1.65;
}

.goal-list li {
  margin-bottom: 8px;
  font-size: 0.97rem;
}

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

/* ==========================================
   Problem Solving - Screenshot Neon Glow
========================================== */

/* ==========================================
   Problem Solving — Screenshot (16:9)
========================================== */


/* 이미지 컨테이너를 카드 하단에 고정 */
.card-shot {
  margin-top: auto;
  /* ← 핵심: 이미지가 카드 최하단으로 이동 */
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);

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

.card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}


/* Hover Glow 효과 */
.card-shot:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 14px rgba(80, 220, 255, 0.55),
    0 0 30px rgba(80, 220, 255, 0.40),
    0 0 45px rgba(80, 220, 255, 0.30);
  border-color: rgba(120, 240, 255, 0.70);
  transition: all 0.28s ease;
}

/* =========================================================
   GITHUB REPO SECTION
========================================================= */

.git-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.git-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: #eaffff;

  box-shadow:
    0 0 12px rgba(0, 255, 255, 0.25),
    0 0 24px rgba(0, 255, 255, 0.15);

  transition: 0.35s ease;
}

.git-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 18px rgba(0, 255, 255, 0.45),
    0 0 32px rgba(0, 255, 255, 0.35);
}

.git-card h3 {
  color: #7dfcff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.git-card p {
  color: #c9f7ff;
  margin-bottom: 18px;
}

.git-btn {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(0, 255, 255, 0.25);
  border: 1px solid rgba(0, 255, 255, 0.45);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #b5ffff;
  transition: 0.35s ease;
}

.git-btn:hover {
  background: rgba(0, 255, 255, 0.45);
  color: #001010;
}



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

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.stack-card {
  transition: all 0.28s ease;
  border-radius: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stack-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 255, 0.45);
  box-shadow:
    0 0 10px rgba(0, 255, 255, 0.3),
    0 0 20px rgba(0, 255, 255, 0.25),
    0 0 30px rgba(0, 255, 255, 0.2);
}

.stack-card h3 {
  color: var(--crimson-light);
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.stack-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}


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


/* =========================================================
   SERVICE FLOW SECTION
========================================================= */

.flow-wrapper {
  text-align: center;
  margin-top: 20px;
}

.flow-img {
  width: 100%;
  max-width: 900px;
  border-radius: 18px;
  margin: 0 auto 25px auto;

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

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

.flow-desc {
  color: var(--text-dim);
  max-width: 850px;
  margin: auto;
  line-height: 1.65;
  font-size: 1rem;
}

/* ================================
   TECH STACK ICON ROW
================================ */

.stack-icon-row {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  margin-top: 20px;
}

.stack-icon-row img {
  width: 80px;
  /* 기존 60 → 80 */
  height: 80px;
  object-fit: contain;

  padding: 6px;
  /* 기존 10px → 6px (공간 확보) */
  border-radius: 12px;
  /* 더 자연스러운 라운드 */

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: all 0.25s ease;

  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.25));
}

.stack-icon-row img:hover {
  transform: scale(1.12);
  border-color: rgba(0, 255, 255, 0.55);

  filter:
    drop-shadow(0 0 10px rgba(0, 255, 255, 0.55)) drop-shadow(0 0 18px rgba(0, 255, 255, 0.35));
}



/* =========================================================
   BABSEGWON BACKEND — 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
========================================================= */
.backend-hero-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

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

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

  .backend-hero-desc {
    font-size: 0.95rem;
  }
}

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

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

  .backend-tags {
    justify-content: center;
    flex-wrap: wrap;
  }

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

/* =========================================================
   GOAL / INFO / ADMIN GRID
========================================================= */
.goal-grid,
.info-grid,
.admin-grid,
.stack-grid,
.git-grid {
  display: grid;
  gap: 30px;
}

/* Tablet */
@media (max-width: 1024px) {
  .goal-grid,
  .info-grid,
  .admin-grid,
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .git-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .goal-grid,
  .info-grid,
  .admin-grid,
  .stack-grid,
  .git-grid {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .timeline-step {
    font-size: 0.85rem;
  }
}

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

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

  .shot-card img {
    width: 100%;
    height: auto;
  }
}

/* =========================================================
   CARD SHOT (INLINE IMAGE)
========================================================= */
@media (max-width: 767px) {
  .card-shot img {
    width: 100%;
    height: auto;
  }
}

/* =========================================================
   SERVICE FLOW
========================================================= */
@media (max-width: 767px) {
  .flow-wrapper {
    text-align: center;
  }

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

  .flow-desc {
    font-size: 0.9rem;
  }
}

/* =========================================================
   PDF / BUTTON
========================================================= */
@media (max-width: 767px) {
  .backend-btn {
    width: 100%;
    text-align: center;
  }
}

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