/* ============================================================
   v2.css — Hero / 포트폴리오 슬라이더 / 문의 양식 (모던 리뉴얼)
   ============================================================ */

/* ── 모바일 가로 스크롤 완전 차단 ── */
html, body { overflow-x: hidden; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* ══════════════════════════════════
   HERO V2 — 좌우 분할 (다크 인디고 그라디언트)
══════════════════════════════════ */
.hero-v2 {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding-top: 100px;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1060 45%, #1e3a8a 100%);
  overflow: hidden;
  position: relative;
}

/* 배경 장식 오브 */
.hero-v2::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(99,102,241,.28) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-v2::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251,191,36,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 왼쪽 텍스트 영역 */
.hero-v2__left {
  flex: 1 1 55%;
  padding: 60px 48px 60px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  max-width: 680px;
  position: relative;
  z-index: 2;
}

/* 오른쪽 이미지 영역 */
.hero-v2__right {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px 60px 16px;
  position: relative;
  z-index: 2;
}

/* 배지 */
.hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,.2);
  border: 1px solid rgba(99,102,241,.45);
  color: #a5b4fc;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  width: fit-content;
}

/* 제목 */
.hero-v2__title {
  font-size: clamp(1.45rem, 2.8vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.45;
  word-break: keep-all;
  margin: 0;
  letter-spacing: -.01em;
}
.hero-v2__mark {
  background: linear-gradient(90deg, #FBBF24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

/* 서브 카피 */
.hero-v2__sub {
  font-size: clamp(.92rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,.7);
  line-height: 1.85;
  word-break: keep-all;
  margin: 0;
}

/* 로직 설명 박스 */
.hero-v2__logic {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid #FBBF24;
  border-radius: 0 14px 14px 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(6px);
}
.hero-v2__logic-q {
  font-weight: 800;
  color: #FBBF24;
  font-size: .92rem;
  letter-spacing: .01em;
}
.hero-v2__logic p {
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  line-height: 1.8;
  word-break: keep-all;
  margin: 0;
}
.hero-v2__blue   { color: #93c5fd; font-weight: 700; }
.hero-v2__accent { color: #FBBF24; font-size: 1.1em; font-weight: 900; }

/* CTA 버튼 영역 */
.hero-v2__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-v2__note {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-top: -6px;
}

/* 이미지 래퍼 */
.hero-v2__img-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.hero-v2__img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  display: block;
  transition: transform .3s ease;
}
.hero-v2__img-wrap:hover .hero-v2__img {
  transform: translateY(-4px);
}

/* 말풍선 */
.hero-v2__bubble {
  position: absolute;
  bottom: -18px;
  right: -14px;
  background: #fff;
  border: 2px solid #FBBF24;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 16px;
  font-size: .8rem;
  font-weight: 700;
  color: #d97706;
  box-shadow: 0 8px 24px rgba(251,191,36,.25);
  line-height: 1.55;
  max-width: 190px;
  z-index: 3;
}
.hero-v2__bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 18px;
  border-left: 9px solid transparent;
  border-top: 9px solid #FBBF24;
}

/* stats bar */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 16px 24px;
  flex-wrap: wrap;
  gap: 4px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 20px;
}
.stat-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.stat-unit {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  margin-left: 2px;
}
.stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* 모바일 대응 */
@media (max-width: 900px) {
  .hero-v2 {
    flex-direction: column;
    padding-top: 110px;
  }
  .hero-v2__left {
    padding: 36px 24px 20px;
    max-width: 100%;
  }
  .hero-v2__right {
    padding: 0 24px 48px;
    justify-content: center;
  }
  .hero-v2__img-wrap { max-width: 340px; }
}
@media (max-width: 480px) {
  .hero-v2__title { font-size: 1.28rem; }
  .hero-v2__img-wrap { max-width: 290px; }
  .hero-v2__cta { flex-direction: column; }
  .hero-v2__bubble { right: 0; font-size: .74rem; }
  .hero__stats { padding: 14px 16px; }
  .stat-item { padding: 0 12px; }
}

/* ══════════════════════════════════
   PORTFOLIO V2 — 슬라이더
══════════════════════════════════ */
.portfolio-v2 { background: var(--white, #fff); }
.portfolio-v2 .section-header { margin-bottom: 40px; }

.slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(0,0,0,.1);
  background: #fff;
  border: 1px solid var(--gray-200, #e5e7eb);
}

.slider {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.slide__img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 16/10;
}
.slide__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .4s ease;
}
.slide:hover .slide__img-wrap img {
  transform: scale(1.02);
}

/* 면책 문구 */
.slide__disclaimer {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.82);
  font-size: .7rem;
  text-align: center;
  padding: 5px 12px;
  letter-spacing: .02em;
}

.slide__info {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--gray-100, #f3f4f6);
}
.slide__tag {
  background: var(--brand-indigo-bg, #eef2ff);
  color: var(--brand-indigo, #4f46e5);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid #c7d2fe;
}
.slide__info h4 {
  font-size: .93rem;
  font-weight: 700;
  color: var(--gray-900, #111827);
}

/* 이전/다음 버튼 */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-indigo, #4f46e5);
  font-size: .95rem;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.slider-btn:hover {
  background: var(--brand-indigo, #4f46e5);
  color: #fff;
  transform: translateY(-60%) scale(1.1);
  box-shadow: 0 4px 20px rgba(79,70,229,.35);
}
.slider-btn--prev { left: 12px; }
.slider-btn--next { right: 12px; }

/* 도트 */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 6px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-200, #e5e7eb);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s, width .2s;
}
.slider-dot.active {
  background: var(--brand-indigo, #4f46e5);
  width: 24px;
  border-radius: 4px;
  transform: none;
}

@media (max-width: 600px) {
  .slider-btn { width: 36px; height: 36px; font-size: .8rem; }
  .slide__info h4 { font-size: .85rem; }
}

/* ══════════════════════════════════
   CONTACT V2 — 문의 양식
══════════════════════════════════ */
.contact-v2 { background: var(--gray-50, #f9fafb); }

.contact-v2__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

/* 문의 양식 */
.inquiry-form {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 32px rgba(79,70,229,.1);
  border: 1px solid #e0e7ff;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.iform-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.iform-group label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--gray-700, #374151);
}
.iform-req { color: #ef4444; }

.iform-group input,
.iform-group select,
.iform-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200, #e5e7eb);
  border-radius: 10px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--gray-900, #111827);
  background: var(--gray-50, #f9fafb);
  transition: border-color .18s, box-shadow .18s;
  outline: none;
  resize: vertical;
}
.iform-group input:focus,
.iform-group select:focus,
.iform-group textarea:focus {
  border-color: var(--brand-indigo, #4f46e5);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.iform-err {
  font-size: .76rem;
  color: #ef4444;
  min-height: 16px;
}
.iform-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.iform-success {
  display: none;
  text-align: center;
  padding: 20px;
  background: #f0fdf4;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  color: #166534;
  flex-direction: column;
  gap: 6px;
  font-size: .92rem;
}
.iform-success i { font-size: 1.5rem; color: #16a34a; }
.iform-success.show { display: flex; }

/* 오른쪽 정보 */
.contact-v2__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.contact-v2__kakao-box {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 28px rgba(79,70,229,.1);
  border: 1px solid #e0e7ff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.contact-v2__kakao-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900, #111827);
}
.contact-v2__kakao-btn { width: 100%; justify-content: center; }
.contact-v2__kakao-note {
  font-size: .76rem;
  color: var(--gray-500, #6b7280);
  margin-top: -4px;
}

.contact-v2__phone-box {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 28px rgba(79,70,229,.1);
  border: 1px solid #e0e7ff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-v2__phone-label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--gray-500, #6b7280);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.contact-v2__phone-link {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-indigo, #4f46e5);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: color .18s;
}
.contact-v2__phone-link:hover { color: var(--brand-indigo-dark, #3730a3); }
.contact-v2__email {
  font-size: .83rem;
  color: var(--gray-500, #6b7280);
}
.contact-v2__email a { color: var(--gray-500); text-decoration: underline; }

/* 모바일 */
@media (max-width: 768px) {
  .contact-v2__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-v2__info { position: static; }
  .inquiry-form { padding: 24px 20px; }
}
