/* =============================================
   다만미디어 - 메인 스타일시트 (다크 테마 리뉴얼)
   ============================================= */

/* === CSS VARIABLES (다크 테마) === */
:root {
  /* 기본 다크 배경 */
  --bg-dark:      #0b0f17;
  --bg-dark-2:    #111827;
  --bg-dark-3:    #1a2236;
  --bg-card:      #16202f;
  --bg-card-hover:#1e2d42;

  /* 기존 호환용 */
  --primary:      #0a1628;
  --primary-light:#142040;

  /* 강조색 */
  --accent:       #e63946;
  --accent-hover: #c1121f;
  --gold:         #f4a261;

  /* 텍스트 */
  --text-primary: #f0f4f8;
  --text-secondary:#a8b8cc;
  --text-muted:   #6b7e94;

  /* 흰색/라이트 섹션 강조 */
  --white:        #ffffff;
  --light-bg:     #f8f9fb;
  --light-card:   #ffffff;
  --light-border: #e2e8f0;
  --light-text:   #1e293b;
  --light-text-2: #475569;

  /* 그레이 (하위 호환) */
  --gray-50:  #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #adb5bd;
  --gray-700: #495057;
  --gray-900: #212529;

  /* 그라데이션 */
  --gradient-main:   linear-gradient(135deg, #0b0f17 0%, #1a3a6e 100%);
  --gradient-dark:   linear-gradient(135deg, #0b0f17 0%, #0f1c2e 100%);
  --gradient-accent: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
  --gradient-card:   linear-gradient(135deg, #16202f 0%, #1e2d42 100%);

  /* 그림자 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.45);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.55);

  /* 반경 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* 트랜지션 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* 폰트 */
  --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === LAYOUT === */
.container {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}
.section { padding: 100px 0; }

/* 섹션 배경 구분 */
.section-dark    { background: var(--bg-dark); }
.section-dark-2  { background: var(--bg-dark-2); }
.section-dark-3  { background: var(--bg-dark-3); }
.section-light   { background: var(--light-bg); }
.section-white   { background: var(--white); }

/* === TYPOGRAPHY === */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: rgba(230, 57, 70, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(230,57,70,0.25);
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 16px;
}
/* 라이트 섹션에서는 텍스트를 어둡게 */
.section-light .section-title,
.section-white .section-title {
  color: var(--light-text);
}
.section-light .section-tag,
.section-white .section-tag {
  color: var(--accent);
  background: rgba(230,57,70,0.08);
  border-color: rgba(230,57,70,0.15);
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}
.section-light .section-desc,
.section-white .section-desc {
  color: var(--light-text-2);
}
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(230,57,70,0.4);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230,57,70,0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}
.section-light .btn-secondary,
.section-white .btn-secondary {
  color: var(--light-text);
  border-color: var(--light-border);
}
.section-light .btn-secondary:hover,
.section-white .btn-secondary:hover {
  background: var(--light-text);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--light-text);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.12);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(10px);
}
.site-header.scrolled {
  background: rgba(11, 15, 23, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 150px;
}
/* 헤더 로고 래퍼 */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* 헤더 로고 이미지 */
.logo-img {
  height: 140px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}
.logo-img:hover { opacity: 0.85; }

/* 푸터 로고 이미지 - 헤더와 동일 크기 */
.footer-logo-img {
  height: 140px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.main-nav .nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
}
.main-nav .nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--gradient-dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: none;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 15, 23, 0.6) 0%,
    rgba(11, 15, 23, 0.5) 60%,
    rgba(11, 15, 23, 0.75) 100%
  );
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(230,57,70,0.6);
  border-radius: 50%;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 120px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 32px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
  line-height: 2;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px 40px;
  backdrop-filter: blur(10px);
  width: fit-content;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* === PORTFOLIO PANORAMA SLIDER === */
.portfolio-panorama {
  background: var(--bg-dark-2);
  padding: 100px 0 60px;
  overflow: hidden;
}
.panorama-track-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.panorama-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.panorama-slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16/7;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-dark-3);
}
.panorama-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.panorama-slide:hover img { transform: scale(1.03); }
.panorama-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11,15,23,0.85) 0%,
    rgba(11,15,23,0.3) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 40px;
}
.panorama-slide-info {
  color: var(--white);
}
.panorama-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.panorama-slide-info h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.panorama-slide-info p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.panorama-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 72px;
  height: 72px;
  background: rgba(230,57,70,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.panorama-slide:hover .panorama-play-btn { transform: translate(-50%, -50%) scale(1); }

/* 슬라이더 컨트롤 */
.panorama-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.panorama-btn {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}
.panorama-btn:hover { background: var(--accent); border-color: var(--accent); }
.panorama-dots {
  display: flex;
  gap: 8px;
}
.panorama-dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.panorama-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* 최신작 그리드 */
.latest-works {
  background: var(--bg-dark-3);
  padding: 60px 0 100px;
}
.latest-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.latest-work-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.latest-work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.15);
}
.latest-work-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-dark-3);
}
.latest-work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.latest-work-card:hover .latest-work-thumb img { transform: scale(1.06); }

/* 호버 유튜브 미리보기 오버레이 */
.hover-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.latest-work-card:hover .hover-video-overlay { opacity: 1; }
.hover-video-overlay iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}
.hover-play-icon {
  position: relative;
  z-index: 3;
  width: 56px;
  height: 56px;
  background: rgba(230,57,70,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(230,57,70,0.5);
  transition: transform 0.2s;
}
.latest-work-card:hover .hover-play-icon { transform: scale(1.1); }

.latest-work-body {
  padding: 16px 20px;
}
.latest-work-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  background: rgba(230,57,70,0.2);
  color: var(--accent);
}
.latest-work-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}
.latest-work-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.latest-works-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.latest-tab-btn {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
  cursor: pointer;
}
.latest-tab-btn.active,
.latest-tab-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* === SERVICES OVERVIEW (다크 배경) === */
.services-overview { background: var(--bg-dark-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  display: block;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(230,57,70,0.4);
}
.service-card:hover::before { opacity: 0.12; }
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-link { color: var(--white); }
.service-card:hover .service-tags li {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}
.service-card:hover .service-icon-wrap {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.service-card > * { position: relative; z-index: 1; }
.service-card--featured {
  background: var(--gradient-accent);
  border-color: transparent;
}
.service-card--featured h3 { color: #ffffff !important; }
.service-card--featured p { color: #ffffff !important; }
.service-card--featured .service-link { color: #ffffff !important; }
.service-card--featured .service-icon-wrap {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}
.service-card--featured .service-tags li {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.95);
}
.service-badge-new {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.3);
}
.service-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: var(--transition);
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  transition: var(--transition);
  overflow: visible;
  word-break: keep-all;
  white-space: normal;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.service-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.07);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.services-more {
  text-align: center;
  margin-top: 48px;
}

/* === PORTFOLIO PREVIEW (다크) === */
.portfolio-preview { background: var(--bg-dark); }
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-height: 300px;
}
.portfolio-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.15);
}
.portfolio-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-dark-3);
  overflow: hidden;
}
.portfolio-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-thumb-img { transform: scale(1.05); }
.portfolio-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-size: 2.5rem;
  gap: 8px;
}
.portfolio-thumb-placeholder span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
}
.portfolio-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(230,57,70,0.5);
}
.portfolio-card:hover .portfolio-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.portfolio-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
}
.portfolio-body {
  padding: 20px 24px;
}
.portfolio-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.portfolio-body .portfolio-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}
.portfolio-loading {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  color: var(--text-muted);
  gap: 16px;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.portfolio-more {
  text-align: center;
  margin-top: 48px;
}

/* === WHY US (라이트 + 다크 강조 섹션) === */
.why-us {
  background: var(--light-bg);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-accent);
}
.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-us-text .section-header {
  text-align: left;
  margin-bottom: 24px;
}
.why-us-text .section-tag {
  background: rgba(230,57,70,0.08);
  border-color: rgba(230,57,70,0.15);
}
.why-us-text .section-title {
  color: var(--light-text);
}
.why-us-text .section-title { margin-bottom: 16px; }
.why-desc {
  font-size: 1rem;
  color: var(--light-text-2);
  margin-bottom: 32px;
  line-height: 1.9;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.why-list i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.why-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 2px;
}
.why-list span {
  font-size: 0.875rem;
  color: var(--light-text-2);
}
.why-us-visual {
  position: relative;
  height: 420px;
}
.visual-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-border);
}
.visual-card--main {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gradient-accent);
  color: var(--white);
  z-index: 2;
}
.visual-card--sm { min-width: 180px; }
.visual-card--top { top: 0; right: 0; }
.visual-card--bottom { bottom: 0; left: 0; }
.visual-icon {
  width: 52px;
  height: 52px;
  background: rgba(230,57,70,0.1);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.visual-card--main .visual-icon {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}
.visual-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--light-text);
  line-height: 1;
}
.visual-card--main .visual-num { color: var(--white); }
.visual-label {
  font-size: 0.8rem;
  color: var(--light-text-2);
  margin-top: 2px;
}
.visual-card--main .visual-label { color: rgba(255,255,255,0.75); }

/* === CLIENTS (다크) === */
.clients {
  background: var(--bg-dark-2);
  padding: 80px 0;
}
.clients-ticker {
  overflow: hidden;
  position: relative;
}
.clients-ticker::before,
.clients-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}
.clients-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark-2) 0%, transparent 100%);
}
.clients-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark-2) 0%, transparent 100%);
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: ticker 30s linear infinite;
  padding: 16px 0;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.clients-track:hover { animation-play-state: paused; }
.client-logo-item {
  flex-shrink: 0;
  width: 180px;
  height: 90px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  transition: var(--transition);
  overflow: hidden;
}
.client-logo-item:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
}
.client-logo-item img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(3) opacity(0.4);
  transition: var(--transition);
}
.client-logo-item:hover img {
  filter: grayscale(0%) brightness(1) opacity(1);
}
.logo-fallback {
  display: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
.client-logo-item:hover .logo-fallback { color: rgba(255,255,255,0.7); }

/* === CTA SECTION === */
.cta-section {
  background: var(--gradient-accent);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.9;
}
.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* === FOOTER === */
.site-footer {
  background: #050b14;
  color: var(--white);
  padding-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.footer-tagline {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.9;
  margin-bottom: 28px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.footer-col li a:hover { color: var(--white); }
.footer-contact-list li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact-list i {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 2px;
  width: 14px;
}
.footer-bottom {
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* === SCROLL TO TOP === */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(230,57,70,0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--bg-dark-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 32px 0;
}
.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-close {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.modal-body { padding: 24px 32px 32px; }
.modal-box--portfolio { max-width: 900px; }

/* 미디어 영역 */
.modal-media-area { position: relative; margin-bottom: 0; }
.modal-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}
.modal-video-wrap iframe { width: 100%; height: 100%; border: none; }
.modal-image-wrap {
  aspect-ratio: 16/9;
  background: var(--bg-dark-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.modal-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.modal-img-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.modal-img-error i { font-size: 2.5rem; }
.modal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.modal-nav-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}
.modal-nav-btn:hover:not(.disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.modal-nav-btn.disabled { opacity: 0.3; cursor: not-allowed; }
.modal-nav-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 48px;
  text-align: center;
}
.modal-thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.modal-thumb-strip::-webkit-scrollbar { height: 4px; }
.modal-thumb-strip::-webkit-scrollbar-track { background: transparent; }
.modal-thumb-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}
.modal-thumb {
  position: relative;
  flex-shrink: 0;
  width: 80px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  background: var(--bg-dark-3);
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb.active { border-color: var(--accent); transform: scale(1.05); }
.modal-thumb:hover:not(.active) { border-color: rgba(255,255,255,0.3); }
.thumb-yt-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  color: #ff0000;
  font-size: 1.3rem;
  pointer-events: none;
}
.modal-video { aspect-ratio: 16/9; margin-bottom: 20px; border-radius: var(--radius-md); overflow: hidden; }
.modal-video iframe { width: 100%; height: 100%; border: none; }
.modal-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.modal-meta span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}
.modal-meta i { color: var(--accent); }
/* modal-meta-row = modalMeta div의 클래스 */
.modal-meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
}
.modal-meta-row span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-meta-row i { color: var(--accent); }
/* modal-desc-area = modalDesc div의 클래스 */
.modal-desc-area {
  padding-top: 4px;
}
.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* 카드 미디어 뱃지 */
.media-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
  backdrop-filter: blur(4px);
}
.media-badge i { font-size: 0.75rem; }
.portfolio-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === DIVIDER === */
.section-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-inner { grid-template-columns: 1fr; gap: 60px; }
  .why-us-visual { display: none; }
  .latest-works-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 모바일 히어로 영상 숨김 */
@media (max-width: 768px) {
  .hero-video-wrap { display: none; }
  .logo-img { height: 80px; max-width: 240px; }
  .header-inner { height: 100px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(11,15,23,0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open a { display: block; padding: 12px 16px; }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .hero-stats { flex-direction: column; gap: 24px; padding: 24px; }
  .stat-divider { width: 60px; height: 1px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .latest-works-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .panorama-slide { aspect-ratio: 16/9; }
  .panorama-slide-overlay { padding: 20px; }
  .panorama-slide-info h3 { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats { width: 100%; }
  .stat-item { padding: 0 16px; }
  .footer-links { grid-template-columns: 1fr; }
  .modal-header { padding: 24px 24px 0; }
  .modal-body { padding: 20px 24px 24px; }
  .scroll-top { bottom: 20px; right: 16px; }
}
