/* ============================================================
   AI-IT-SERVICE.CSS — Ubique Korea
   AI IT Service 서브 페이지 전용
   공통(common.css) 위에 로드 — header·footer·cta·btn-top 제외
   ============================================================ */

/* ============================================================
   00: 페이지 전용 변수
   ============================================================ */
:root {
  --it-blue:          #0072EE;
  --it-blue-dark:     #0050D3;
  --it-dark-bg:       #1B2435;
  --it-light-bg:      #F9FCFF;
  --it-text-muted:    #B9B9B9;
  --it-white-80:      rgba(255, 255, 255, 0.8);
  --it-border-dark:   rgba(255, 255, 255, 0.1);
  --it-accent-cyan:   #479FFF;
  --it-accent-teal:   #12B1F5;
  --it-radius-card:   20px;
}

/* ============================================================
   01: 페이지 레이아웃
   ============================================================ */
body {
  padding-top: 90px;
}

/* 서브 페이지: 헤더 항상 배경 표시 */

/* ============================================================
   03: SUBTOP / HERO
   ============================================================ */
.subtop {
  position: relative;
  height: 532px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.subtop__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.subtop__bg video,
.subtop__bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.subtop__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  box-sizing: border-box;
  padding: 0;
  text-align: left;
  color: #1a1a2e;
}

.subtop__title {
  font-family: var(--font-suit);
  font-weight: 600;
  font-size: 54px;
  line-height: 1.18;
  color: #1a1a2e;
  margin-bottom: 24px;
}

.subtop__desc {
  font-family: var(--font-suit);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  color: #717680;
}

.subtop__desc em {
  font-style: normal;
  font-weight: 600;
}

/* ============================================================
   04: SECTION 01 — End-to-End 서비스 카드 (4개)
   ============================================================ */
.section-endtoend {
  padding: 140px 0;
}

.section-endtoend__heading {
  font-family: var(--font-suit);
  font-weight: 700;
  font-size: 32px;
  line-height: 48px;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 60px;
}

.section-endtoend__heading .text-blue {
  color: var(--it-blue);
}

/* 카드 그리드 */
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 23px;
}

.service-card {
  position: relative;
  background-color: #fff;
  border: 1px solid var(--color-border-2);
  border-radius: var(--it-radius-card);
  height: 342px;
  overflow: hidden;
}

/* 그라디언트 상단 띠 */
.service-card__gradient {
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 145px;
  border-radius: 19px 19px 0 0;
}

.service-card--ai .service-card__gradient {
  background: linear-gradient(103.24deg, rgb(215,231,255) 1.70%, rgb(247,251,255) 100%);
  opacity: 0.8;
}
.service-card--factory .service-card__gradient {
  background: linear-gradient(104.39deg, rgb(210,232,255) 0%, rgb(247,251,255) 100%);
  opacity: 0.6;
}
.service-card--platform .service-card__gradient {
  background: linear-gradient(104.37deg, rgb(211,242,255) 0%, rgb(245,252,255) 100%);
}
.service-card--vdi .service-card__gradient {
  background: linear-gradient(104.39deg, rgb(217,230,255) 0%, rgb(240,245,255) 100%);
  opacity: 0.7;
}

/* 카드 아이콘 */
.service-card__icon {
  position: absolute;
  top: 56px;
  right: 32px;
}

.service-card__icon img {
  width: 166px;
  height: 116px;
  object-fit: contain;
}

/* 카드 본문 */
.service-card__body {
  position: absolute;
  bottom: 10px;
  left: 33px;
  right: 33px;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-card__badge {
  margin-bottom: 10px;
}

.service-card__badge--ai       { background-color: #EDF0FF; color: var(--it-blue); }
.service-card__badge--factory  { background-color: rgba(40,144,255,0.04); color: #2890FF; }
.service-card__badge--platform { background-color: rgba(19,168,232,0.04); color: #13A8E8; }
.service-card__badge--vdi      { background-color: #F0F5FF; color: var(--it-blue); }

.service-card__title {
  font-family: var(--font-suit);
  font-weight: 700;
  font-size: 26px;
  line-height: 34px;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service-card__list-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-suit);
  font-weight: 600;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-text-secondary);
}

.service-card__list-item::before {
  content: '';
  display: block;
  width: 2px;
  height: 2px;
  background-color: #A0BFFF;
  flex-shrink: 0;
  border-radius: 1px;
}

/* ============================================================
   05: SECTION 02 — 기술 인프라 및 보안 스택 (다크 배경)
   ============================================================ */
.section-tech {
  background-color: var(--it-dark-bg);
  padding: 140px 0;
}

.section-tech__heading {
  font-family: var(--font-suit);
  font-weight: 700;
  font-size: 32px;
  line-height: 48px;
  color: var(--color-white);
  margin-bottom: 60px;
}

.tech-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1159px;
  margin: 0 auto;
}

.tech-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* 기술 카드 (다크 패널) */
.tech-card {
  position: relative;
  border-radius: var(--it-radius-card);
  height: 320px;
  width: 438px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 32px;
}

.tech-card--datacenter { background-color: #18315A; }
.tech-card--security   { background-color: #12304A; }
.tech-card--cloud      { background-color: #12304A; }

.tech-card__overlay {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.tech-card--datacenter .tech-card__overlay {
  background: linear-gradient(-19.03deg, rgba(45,80,255,0.8) 1.11%, rgba(45,80,255,0.244) 35.26%, rgba(45,80,255,0.3) 68.48%, rgba(45,80,255,0) 98.43%);
}
.tech-card--security .tech-card__overlay {
  background: linear-gradient(-20.58deg, rgba(19,168,232,0.8) 0%, rgba(19,168,232,0.23) 33.36%, rgba(19,168,232,0.3) 69.98%, rgba(19,168,232,0) 99.09%);
}
.tech-card--cloud .tech-card__overlay {
  background: linear-gradient(-25.87deg, rgba(40,144,255,0.9) 8.53%, rgba(40,144,255,0.41) 38.23%, rgba(40,144,255,0.3) 67.93%, rgba(40,144,255,0) 98.06%);
}

.tech-card__icon {
  position: absolute;
  bottom: 26px;
  right: 32px;
}

.tech-card__icon img {
  width: 102px;
  height: 135px;
  object-fit: contain;
}

.tech-card__badge {
  background-color: rgba(240,245,255,0.04);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.tech-card--datacenter .tech-card__badge { color: var(--it-accent-cyan); }
.tech-card--security .tech-card__badge   { color: var(--it-accent-teal); }
.tech-card--cloud .tech-card__badge      { color: #2890FF; }

.tech-card__title {
  font-family: var(--font-suit);
  font-weight: 700;
  font-size: 26px;
  line-height: 38px;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

/* 기술 목록 (우측) */
.tech-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-list__item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--it-border-dark);
}

.tech-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tech-list__accent {
  width: 3px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: center;
}

.tech-card--datacenter + .tech-list .tech-list__accent { background-color: #5998FF; }
.tech-group:nth-child(2) .tech-list__accent             { background-color: var(--it-accent-teal); }
.tech-group:nth-child(3) .tech-list__accent             { background-color: #2890FF; }

.tech-list__content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-list__label {
  font-family: var(--font-suit);
  font-weight: 700;
  font-size: 17px;
  line-height: 26px;
  color: var(--color-white);
  width: 200px;
  flex-shrink: 0;
}

.tech-list__desc {
  font-family: var(--font-suit);
  font-weight: 500;
  font-size: 15px;
  line-height: 24px;
  color: var(--it-white-80);
}

/* ============================================================
   06: SECTION 03 — 주요 IT 서비스 (이미지 + 인터랙티브 리스트)
   ============================================================ */
.section-services {
  background-color: var(--it-light-bg);
  height: 100vh;
  min-height: 704px;
}

.section-services__inner {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.section-services__image {
  width: 590px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.section-services__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.section-services__img.is-active {
  opacity: 1;
}

.section-services__content {
  flex: 1;
  padding: 90px 60px 90px 51px;
  display: flex;
  flex-direction: column;
  gap: 43px;
  overflow: hidden;
}

.section-services__heading {
  font-family: var(--font-suit);
  font-weight: 700;
  font-size: 32px;
  line-height: 48px;
  color: var(--color-dark);
}

/* 서비스 리스트 */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow: hidden;
  /* overflow: hidden 이어도 GSAP의 scrollTop 제어는 정상 동작 */
}

.service-list__item {
  padding: 20px 24px;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.service-list__item:hover {
  background-color: rgba(0, 80, 211, 0.03);
}

.service-list__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.service-list__number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-suit);
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  color: #fff;
  background-color: var(--it-text-muted);
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.service-list__name {
  font-family: var(--font-suit);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--it-text-muted);
  transition: color 0.2s;
}

.service-list__desc {
  font-family: var(--font-suit);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: var(--it-text-muted);
  transition: color 0.2s;
}

/* 활성 상태 */
.service-list__item.is-active .service-list__number { background-color: var(--it-blue-dark); }
.service-list__item.is-active .service-list__name   { color: var(--it-blue-dark); font-weight: 600; }
.service-list__item.is-active .service-list__desc   { color: var(--it-blue-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .subtop {
    height: 480px;
  }

  .subtop__title {
    font-size: 52px;
  }

  .section-endtoend,
  .section-tech {
    padding: 120px 0;
  }

  .service-cards {
    gap: 20px;
  }

  .service-card {
    height: auto;
    min-height: 320px;
  }

  .service-card__body {
    position: static;
    height: auto;
    padding: 170px 33px 32px;
  }

  .service-card__icon {
    top: 40px;
    right: 20px;
  }

  .tech-group {
    flex-direction: column;
    align-items: stretch;
  }

  .tech-card {
    width: 100%;
    height: 240px;
  }

  .section-services {
    height: auto;
    min-height: 0;
  }

  .service-list {
    overflow-y: auto;
    padding-right: 0;
  }

  .section-services__inner {
    flex-direction: column;
  }

  .section-services__image {
    width: 100%;
    height: 300px;
    position: relative;
  }
}

@media (max-width: 1024px) {
  .subtop {
    height: 420px;
  }

  .subtop__title {
    font-size: 40px;
    line-height: 1.25;
    word-break: keep-all;
  }

  .subtop__desc {
    padding: 0 40px;
    word-break: keep-all;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .section-endtoend__heading,
  .section-tech__heading,
  .section-services__heading {
    font-size: 28px;
    line-height: 1.45;
    word-break: keep-all;
  }

  .tech-list__label {
    width: auto;
  }

  .tech-list__content {
    flex-direction: column;
    gap: 4px;
  }

  .tech-card__title {
    font-size: 24px;
    line-height: 34px;
  }

  .section-services__content {
    padding: 64px 40px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }

  .subtop {
    height: auto;
    min-height: 360px;
    padding: 72px 0 60px;
  }

  .subtop__content {
    padding: 0;
  }

  .subtop__title {
    font-size: 28px;
    line-height: 1.4;
  }

  .subtop__desc {
    font-size: 14px;
    line-height: 1.7;
    padding: 0;
  }

  .section-endtoend {
    padding: 60px 0;
  }

  .section-endtoend__heading {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 40px;
  }

  .section-endtoend__heading-break {
    display: none;
  }

  .service-card__title {
    font-size: 22px;
    line-height: 30px;
  }

  .service-card__list-item {
    font-size: 14px;
    line-height: 22px;
    align-items: flex-start;
  }

  .service-card__icon img {
    width: 140px;
    height: 100px;
  }

  .section-tech {
    padding: 60px 0;
  }

  .section-tech__heading {
    font-size: 24px;
    line-height: 1.45;
    margin-bottom: 32px;
  }

  .tech-groups {
    gap: 24px;
  }

  .tech-card {
    height: auto;
    min-height: 200px;
    padding: 24px;
  }

  .tech-card__title {
    font-size: 20px;
    line-height: 30px;
  }

  .tech-card__icon {
    right: 20px;
    bottom: 20px;
  }

  .tech-card__icon img {
    width: 80px;
    height: 110px;
  }

  .tech-list__label {
    font-size: 15px;
    line-height: 22px;
  }

  .tech-list__desc {
    font-size: 14px;
    line-height: 22px;
  }

  .section-services__image {
    height: 240px;
  }

  .section-services__content {
    padding: 40px 24px;
    gap: 28px;
  }

  .section-services__heading {
    font-size: 24px;
    line-height: 1.45;
  }

  .service-list__item {
    padding: 18px 18px;
  }

  .service-list__name {
    font-size: 18px;
    line-height: 26px;
  }

  .service-list__desc {
    font-size: 14px;
    line-height: 20px;
  }
}

@media (max-width: 480px) {
  .subtop__title {
    font-size: 24px;
  }

  .section-endtoend__heading,
  .section-tech__heading,
  .section-services__heading {
    font-size: 20px;
  }

  .service-card__title {
    font-size: 18px;
    line-height: 26px;
  }

  .service-card__list-item {
    font-size: 13px;
    line-height: 20px;
  }

  .service-card__icon img {
    width: 116px;
    height: 82px;
  }

  .tech-card__title {
    font-size: 18px;
    line-height: 28px;
  }

  .section-services__image {
    height: 200px;
  }

  .service-list__number {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .service-list__name {
    font-size: 16px;
    line-height: 24px;
  }
}

/* 반응형 보완 2026-09-18 — 서브탑 문구가 화면 왼쪽 끝에 붙던 문제 */
.subtop__content{max-width:calc(var(--content-max) + var(--section-px) * 2);padding-left:var(--section-px);padding-right:var(--section-px)}

/* 주요 IT 서비스 — 세로 배치(1280px 이하)에서 고정(pin)되는 동안 섹션을 화면 높이에 맞춰,
   5·6번 항목이 화면 밖에서 선택되지 않도록 목록만 안에서 스크롤(스크립트가 진행도에 맞춰 scrollTop 이동) */
@media (max-width: 1280px) {
  .section-services { height: calc(100vh - 90px); height: calc(100svh - 90px); min-height: 560px; }
  .section-services__image { flex: none; height: clamp(180px, 30svh, 300px); }
  .section-services__content { flex: 1; min-height: 0; }
  .service-list { min-height: 0; overflow: hidden; }
}
@media (max-width: 768px) {
  .section-services { height: calc(100vh - 64px); height: calc(100svh - 64px); min-height: 520px; }
  .section-services__image { height: clamp(150px, 26svh, 240px); }
}

/* ============================================================
   2026-09-21 설명글 15px → 20px · 500 · 줄간격 140%
   ============================================================ */
.service-card__list-item, .tech-list__desc { font-size: 20px; font-weight: 500; line-height: 1.4; }
/* 여러 줄이 되면 점을 첫 줄에 맞춤 */
.service-card__list-item { align-items: flex-start; }
.service-card__list-item::before { margin-top: calc(0.7em - 1px); }
@media (max-width: 1024px) { .service-card__list-item, .tech-list__desc { font-size: 18px; } }
@media (max-width: 768px)  { .service-card__list-item, .tech-list__desc { font-size: 17px; } }
@media (max-width: 480px)  { .service-card__list-item, .tech-list__desc { font-size: 16px; } }
/* 늘어난 설명글에 맞춘 End-to-End 카드 높이 — 1281px 이상 고정 342px → 최소 380px, 내용이 길면 카드가 늘어남(본문 시작 위치 171px 그대로, 아래 여백 30px) */
@media (min-width: 1281px) {
  .service-card { height: auto; min-height: 380px; }
  .service-card__body { position: static; height: auto; padding: 171px 33px 30px; }
}

/* ============================================================
   2026-09-22 레이아웃 1600 — 섹션 01·02 카드·컨테이너 최대 1600px (1281px 이상, 좌우 여백 최소 140px, 가운데 정렬)
   섹션 02: 왼쪽 다크 카드 높이를 오른쪽 목록 높이에 맞춤(최소 320px)
   ============================================================ */
@media (min-width: 1281px) {
  .service-cards, .section-endtoend__heading, .section-tech__heading, .tech-groups {
    --w: min(1600px, calc(100vw - 280px));
    width: var(--w); max-width: none;
    margin-left: calc((100% - var(--w)) / 2); margin-right: 0;
  }
  .tech-group { align-items: stretch; }
  .tech-card { height: auto; min-height: 320px; }
}

/* 2026-09-22 섹션 02 — 왼쪽 카드 438 → 480px, 오른쪽 목록 제목 17 → 20px(제목 칸 200 → 240px) */
@media (min-width: 1281px) {
  .tech-card { width: 480px; }
}
.tech-list__label { font-size: 20px; line-height: 1.4; }
@media (min-width: 1025px) { .tech-list__label { width: 240px; } }
@media (max-width: 768px) { .tech-list__label { font-size: 18px; } }

/* 2026-09-22 섹션 헤드라인 48px (1024px 이하 38 · 768px 이하 28 · 480px 이하 24) */
.section-endtoend__heading, .section-tech__heading, .section-services__heading { font-size: 48px; line-height: 1.4; }
@media (max-width: 1024px) { .section-endtoend__heading, .section-tech__heading, .section-services__heading { font-size: 38px; } }
@media (max-width: 768px)  { .section-endtoend__heading, .section-tech__heading, .section-services__heading { font-size: 28px; line-height: 1.45; } }
@media (max-width: 480px)  { .section-endtoend__heading, .section-tech__heading, .section-services__heading { font-size: 24px; } }

/* 2026-09-22 섹션 02 그룹 3개 사이 간격 40 → 64px (768px 이하 40px) */
.tech-groups { gap: 64px; }
@media (max-width: 768px) { .tech-groups { gap: 40px; } }

/* 2026-09-22 섹션 02 — 지그재그 취소(기존 카드 왼쪽·목록 오른쪽), 1281px 이상 카드 높이 400px 고정, 카드와 목록을 세로 가운데 기준으로 맞춤 */
@media (min-width: 1281px) {
  .tech-group { align-items: center; }
  .tech-card { height: 400px; min-height: 0; }
}

/* 2026-09-22 헤드라인 ~ 본문 간격 80px (769~1024px 64px, 768px 이하 44px) */
.section-endtoend__heading, .section-tech__heading, .section-services__heading { margin-bottom: 80px; }
@media (max-width: 1024px) { .section-endtoend__heading, .section-tech__heading, .section-services__heading { margin-bottom: 64px; } }
@media (max-width: 768px)  { .section-endtoend__heading, .section-tech__heading, .section-services__heading { margin-bottom: 44px; } }
/* 주요 IT 서비스는 제목과 목록 사이를 flex gap(43px)으로 두므로 여백 대신 gap 을 80px 로 */
.section-services__heading { margin-bottom: 0; }
.section-services__content { gap: 80px; }
@media (max-width: 1024px) { .section-services__heading { margin-bottom: 0; } .section-services__content { gap: 64px; } }
@media (max-width: 768px)  { .section-services__heading { margin-bottom: 0; } .section-services__content { gap: 44px; } }
