:root {
  --bg-color: #0b0c10; /* 다크 테마 배경 */
  --text-main: #ffffff;
  --text-sub: #a1a1a6;
  --primary: #345cfb; /* 서비스 카드 버튼 등 기본 파란색 포인트 */
  --primary-hover: #264be4;
  --green: #29c76f;
}

/* 리셋 & 기본 폰트 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}
body {
  font-family: 'Pretendard Variable', -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1.6rem;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; }

/* 유틸리티 클래스 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; }
.container-fluid { max-width: 1400px; margin: 0 auto; padding: 0 2rem; position: relative; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }

/* 버튼 */
.btn { display: inline-block; padding: 1.6rem 3.2rem; border-radius: 3rem; font-weight: 600; font-size: 1.6rem; transition: all 0.3s ease; }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e0e0e0; transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn.small { padding: 1rem 2rem; font-size: 1.4rem; }

/* 텍스트 타이포그래피 */
.t-sub { font-size: 2rem; font-weight: 500; margin-bottom: 2rem; color: var(--text-sub); }
.t-hero { font-size: 6.4rem; font-weight: 800; line-height: 1.3; margin-bottom: 4rem; letter-spacing: -0.02em; }
.t-accent { color: var(--primary); font-size: 1.6rem; font-weight: 600; margin-bottom: 1rem; }
.t-section { font-size: 4rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; line-height: 1.4; }
.btn-more { font-size: 1.4rem; font-weight: 500; font-family: sans-serif; border: 1px solid rgba(255,255,255,0.3); padding: 0.8rem 1.6rem; border-radius: 3rem; transition: 0.3s; }
.btn-more:hover { background: #fff; color: #000; }

/* 헤더 */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; backdrop-filter: blur(10px); background: rgba(11, 12, 16, 0.7); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 2rem 0; transition: all 0.3s; }
.logo { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; }
.nav a { margin: 0 2rem; font-size: 1.6rem; font-weight: 500; color: var(--text-sub); transition: color 0.3s; }
.nav a:hover { color: #fff; }

/* 섹션 공통 */
.section { padding: 12rem 0; position: relative; }
.section-header { margin-bottom: 5rem; }

/* 히어로 (첫 화면) */
.hero { height: 100vh; display: flex; align-items: center; padding-top: 8rem; position: relative; }
.scroll-indicator { position: absolute; bottom: 4rem; left: 50%; transform: translateX(-50%); text-align: center; font-size: 1.2rem; color: var(--text-sub); font-weight: 600; }
.scroll-indicator .line { width: 1px; height: 40px; background: rgba(255,255,255,0.3); margin: 1rem auto 0; overflow: hidden; position: relative; }
.scroll-indicator .line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%; background: #fff; animation: scrollDrop 1.5s infinite ease-in-out; }
@keyframes scrollDrop { 0% { top: -50%; } 100% { top: 100%; } }

/* 스와이퍼 공통 적용 */
.swiper-slide { width: 400px; height: auto; }
.card-body { background: #1a1b21; padding: 3rem; border-radius: 0 0 1.6rem 1.6rem; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); border-top: none; }
.card-img { height: 240px; border-radius: 1.6rem 1.6rem 0 0; }
.swiper-slide:hover .card-body { background: #23242c; }

/* 서비스 섹션 */
.service-swiper .swiper-wrapper { align-items: stretch; }
.service-card {
  height: 456px;
  display: flex;
  flex-direction: column;
}
.service-card .card-img {
  flex: 0 0 240px;
}
.service-card .card-body {
  flex: 1;
  min-height: 216px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.service-card h3 {
  min-height: 6.8rem;
  font-size: 2.4rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card p {
  min-height: 6.8rem;
  font-size: 1.5rem;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 파트너 소개 (3등분) */
.about-grid { display: flex; justify-content: center; gap: 2rem; margin-top: 6rem; margin-bottom: 8rem;}
.about-card { flex: 1; border: 1px solid rgba(255,255,255,0.1); border-radius: 1.6rem; padding: 6rem 3rem; background: rgba(255,255,255,0.02); transition: all 0.4s; position: relative; overflow: hidden; }
.about-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.icon-glow { font-size: 5rem; margin-bottom: 3rem; text-shadow: 0 0 20px currentColor; }
.text-blue { color: #3b82f6; }
.text-green { color: #10b981; }
.about-card p { font-size: 1.8rem; font-weight: 600; color: #e2e2e2; }
.about-bottom-text { font-size: 2.2rem; font-weight: 600; color: var(--text-sub); }

/* 문의 현황 리스트 */
.inquiry-list { border-top: 2px solid rgba(255,255,255,0.1); }
.inquiry-list li { display: flex; align-items: center; padding: 2.5rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); transition: background 0.3s; border-radius: 0.8rem; margin: 0.5rem 0; }
.inquiry-list li:hover { background: rgba(255,255,255,0.05); }
.inquiry-list .date { width: 120px; font-weight: 600; font-size: 1.4rem; }
.inquiry-list .title { flex: 1; font-size: 1.6rem; font-weight: 500; }
.inquiry-list .name { width: 100px; text-align: right; margin-right: 3rem; color: var(--text-sub); }
.badge-done { background: rgba(41, 199, 111, 0.2); color: var(--green); padding: 0.6rem 1.2rem; border-radius: 0.6rem; font-size: 1.3rem; font-weight: 700; border: 1px solid rgba(41,199,111,0.3); }

/* 인사이트 코너 */
.insight-card .card-body { position: relative; padding-top: 4rem; }
.date-badge { position: absolute; top: -1.6rem; left: 3rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 2rem; padding: 0.4rem 1.6rem; font-size: 1.3rem; font-weight: 700; background: #1a1b21; }
.insight-card h3 { font-size: 2.2rem; font-weight: 700; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.insight-card p { font-size: 1.5rem; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swiper-nav-wrapper { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 3rem; padding-right: 2rem; }
.swiper-button-prev, .swiper-button-next { position: relative; width: 4.8rem; height: 4.8rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); color: #fff; background: transparent; left: auto; right: auto; top: auto; margin: 0; }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1.6rem; font-weight: bold; }
.swiper-button-prev:hover, .swiper-button-next:hover { background: #fff; color: #000; }

/* 반응형 */
@media (max-width: 768px) {
  .t-hero { font-size: 4rem; }
  .t-section { font-size: 2.8rem; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .nav { display: none; }
  .about-grid { flex-direction: column; }
  .inquiry-list li { flex-wrap: wrap; gap: 1rem; }
  .inquiry-list .title { flex: 100%; order: -1; font-size: 1.8rem; margin-bottom: 0.5rem; }
  .inquiry-list .name, .inquiry-list .date { width: auto; flex: none; }
  .badge-done { margin-left: auto; }
}

/* 네비게이션 & 드롭다운 */
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 1rem 2rem; font-size: 1.6rem; font-weight: 500; color: var(--text-sub); transition: color 0.3s; text-decoration: none; }
.nav-item > a:hover { color: #fff; }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1rem 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 100;
}

.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 1.2rem 2.4rem;
  margin: 0;
  color: #aaa;
  font-size: 1.5rem;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-dropdown a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* ---------- 포트폴리오 섹션 (메이슨리 + 호버 오버레이) ---------- */
.pf-wrap {
  column-count: 3;
  column-gap: 2rem;
  margin-top: 1rem;
}
.pf-card {
  break-inside: avoid;
  margin-bottom: 2rem;
  border-radius: 1.6rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.pf-card > a { display: block; position: relative; }
.pf-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.2); }

/* 비율 (메이슨리 믹스) */
.pf-tall     { }
.pf-tall .pf-thumb     { aspect-ratio: 3 / 4; }
.pf-wide .pf-thumb     { aspect-ratio: 16 / 10; }
.pf-portrait .pf-thumb { aspect-ratio: 3 / 5; }
.pf-square .pf-thumb   { aspect-ratio: 1 / 1; }

/* 썸네일 (이미지 없을 때는 그라디언트 + 라벨) */
.pf-thumb {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1b21;
}
.pf-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.pf-placeholder {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.55);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  letter-spacing: -0.01em;
  padding: 0 2rem;
}

/* 카드별 그라디언트 (8종) */
.pf-grad-1 .pf-thumb { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.pf-grad-2 .pf-thumb { background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%); }
.pf-grad-3 .pf-thumb { background: linear-gradient(135deg, #134e4a 0%, #042f2e 100%); }
.pf-grad-4 .pf-thumb { background: linear-gradient(135deg, #4c1d95 0%, #2e1065 100%); }
.pf-grad-5 .pf-thumb { background: linear-gradient(135deg, #1e3a8a 0%, #0c1536 100%); }
.pf-grad-6 .pf-thumb { background: linear-gradient(135deg, #3f3f46 0%, #18181b 100%); }
.pf-grad-7 .pf-thumb { background: linear-gradient(135deg, #7c2d12 0%, #431407 100%); }
.pf-grad-8 .pf-thumb { background: linear-gradient(135deg, #164e63 0%, #083344 100%); }

/* 호버 오버레이 */
.pf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  gap: 0.8rem;
}
.pf-card:hover .pf-overlay { opacity: 1; }
.pf-category {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pf-overlay h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}
.pf-link {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
  margin-top: 0.8rem;
  opacity: 0.85;
}

/* 더보기 버튼 (See More Work) */
.pf-more-wrap { display: flex; justify-content: center; margin-top: 6rem; }
.pf-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 3.2rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  transition: all 0.3s ease;
}
.pf-more-btn:hover { background: #fff; color: #000; border-color: #fff; }
.pf-more-btn svg { transition: transform 0.3s ease; }
.pf-more-btn:hover svg { transform: translate(2px, -2px); }

/* 반응형 */
@media (max-width: 1024px) {
  .pf-wrap { column-count: 2; }
}
@media (max-width: 640px) {
  .pf-wrap { column-count: 1; }
  .pf-overlay { opacity: 1; background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 70%); }
}

/* ---------- 포트폴리오 상세 페이지 ---------- */
.pf-detail-hero {
  padding: 16rem 0 6rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pf-detail-hero .pf-meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.pf-meta-tag {
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2rem;
  font-size: 1.3rem;
  color: var(--text-sub);
}
.pf-meta-tag.primary { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.pf-detail-hero h1 {
  font-size: 5.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.pf-detail-hero .pf-lead {
  font-size: 1.8rem;
  color: var(--text-sub);
  max-width: 720px;
  line-height: 1.7;
}
.pf-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.pf-info-item .label {
  font-size: 1.2rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  display: block;
}
.pf-info-item .value {
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
}

.pf-detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.6rem;
  margin: 6rem auto 0;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: rgba(255,255,255,0.4);
  font-size: 1.6rem;
  font-weight: 600;
}

.pf-detail-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 10rem 2rem;
}
.pf-detail-body h2 {
  font-size: 3rem;
  font-weight: 700;
  margin: 6rem 0 2rem;
  letter-spacing: -0.01em;
}
.pf-detail-body h2:first-child { margin-top: 0; }
.pf-detail-body p {
  font-size: 1.7rem;
  line-height: 1.9;
  color: #d4d4d8;
  margin-bottom: 2rem;
}
.pf-detail-body ul.pf-list {
  margin: 2rem 0;
  padding: 0;
}
.pf-detail-body ul.pf-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.6rem;
  line-height: 2;
  color: #d4d4d8;
}
.pf-detail-body ul.pf-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.pf-shot-stack { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.pf-shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 1.2rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1b21 0%, #0f1015 100%);
  border: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.3);
  font-size: 1.4rem;
}
.pf-shot.tall { aspect-ratio: 4 / 5; }

.pf-detail-next {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8rem 0;
  text-align: center;
}
.pf-detail-next .label {
  font-size: 1.3rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: block;
}
.pf-detail-next h3 {
  font-size: 3.6rem;
  font-weight: 800;
  margin-bottom: 2rem;
}
.pf-detail-next a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  padding: 1.4rem 3rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4rem;
  transition: all 0.3s;
}
.pf-detail-next a:hover { background: #fff; color: #000; }

@media (max-width: 768px) {
  .pf-detail-hero h1 { font-size: 3.4rem; }
  .pf-info-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-detail-body h2 { font-size: 2.4rem; }
}

/* 이미지 사이즈 통일 (object-fit) */
.card-img {
  position: relative;
  width: 100%;
  height: 240px; /* 기본 높이 지정 */
  overflow: hidden;
  border-radius: 1.6rem 1.6rem 0 0;
  background-color: #1a1b21;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 어떤 이미지 크기든 카드 비율에 맞게 채움 */
  display: block;
  transition: transform 0.5s ease;
}

.swiper-slide:hover .card-img img {
  transform: scale(1.05); /* 호버 시 위화감 없는 부드러운 확대 효과 추가 */
}
