/* ============================================
   GOODSTAKU - 덕후의보관함
   Shift Up Inspired Design
   ============================================ */

/* ============================================
   Splash Loading Screen
   ============================================ */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  text-align: center;
}

.splash-tiger {
  font-size: 80px;
  animation: splashBounce 1.2s ease-in-out infinite;
  margin-bottom: 20px;
}

@keyframes splashBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.1); }
}

.splash-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 8px;
  color: #fff;
  margin-bottom: 8px;
}

.splash-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  letter-spacing: 4px;
  color: #e63946;
  margin-bottom: 40px;
}

.splash-loader {
  width: 220px;
  height: 3px;
  background: #222;
  border-radius: 3px;
  margin: 30px auto 16px;
  overflow: hidden;
}

.splash-loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #e63946, #ff6b7a);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.splash-status {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 16px;
  color: #888;
  letter-spacing: 3px;
  transition: all 0.3s ease;
}

.splash-status.countdown {
  font-size: 64px;
  color: #e63946;
  animation: countPulse 0.8s ease-in-out;
}

@keyframes countPulse {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .splash-tiger { font-size: 60px; }
  .splash-title { font-size: 32px; letter-spacing: 5px; }
  .splash-sub { font-size: 11px; }
  .splash-loader { width: 160px; }
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --accent: #e63946;
  --accent-hover: #ff4d5a;
  --accent-dark: #b22d37;
  --border: #2a2a2a;
  --border-light: #333333;
  --header-height: 80px;
  --container-width: 1280px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* ============================================
   Header / Navigation
   ============================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition), box-shadow var(--transition);
  background-color: transparent;
}

#header.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo-tiger {
  font-size: 24px;
  margin-right: 8px;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-tiger {
  transform: scale(1.3) rotate(-10deg);
}

.logo-main {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-primary);
  transition: color var(--transition);
}

.logo:hover .logo-main {
  color: var(--accent);
}

.gnb {
  display: flex;
  align-items: center;
}

.gnb ul {
  display: flex;
  gap: 36px;
}

.gnb .nav-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  letter-spacing: 0.5px;
}

.gnb .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition);
}

.gnb .nav-link:hover,
.gnb .nav-link.active {
  color: var(--text-primary);
}

.gnb .nav-link:hover::after,
.gnb .nav-link.active::after {
  width: 100%;
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border: 1px solid var(--text-secondary);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.btn-quote:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-quote::after {
  display: none !important;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all var(--transition);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.lang-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.lang-btn.active {
  color: var(--text-primary);
  background-color: rgba(230, 57, 70, 0.15);
  border-color: var(--accent);
}

.mobile-lang {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.mobile-lang .lang-btn {
  width: 48px;
  height: 36px;
  font-size: 14px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(10, 10, 10, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-link {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-secondary);
  transition: all var(--transition);
  letter-spacing: 2px;
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu.active .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.active .mobile-nav li:nth-child(1) .mobile-link { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav li:nth-child(2) .mobile-link { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav li:nth-child(3) .mobile-link { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav li:nth-child(4) .mobile-link { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav li:nth-child(5) .mobile-link { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav li:nth-child(6) .mobile-link { transition-delay: 0.35s; }
.mobile-menu.active .mobile-nav li:nth-child(7) .mobile-link { transition-delay: 0.4s; }

.mobile-link:hover {
  color: var(--accent);
}

.mobile-link.quote {
  margin-top: 16px;
  padding: 12px 40px;
  border: 1px solid var(--accent);
  border-radius: 30px;
  font-size: 22px;
  color: var(--accent);
}

.mobile-link.quote:hover {
  background-color: var(--accent);
  color: #fff;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.3) 70%,
    rgba(10,10,10,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 400;
  letter-spacing: 12px;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 4px;
}

.hero-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 8px;
  text-transform: uppercase;
}

/* Animate Up */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-down span {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-paw {
  font-size: 20px !important;
  letter-spacing: 0 !important;
  animation: pawBounce 2s ease-in-out infinite;
}

@keyframes pawBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ============================================
   Section Common Styles
   ============================================ */
.section-header {
  margin-bottom: 60px;
}

.section-num {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-num::before {
  content: '🐾';
  font-size: 12px;
  opacity: 0.6;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}

.sub-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   About Section
   ============================================ */
.about {
  background-color: var(--bg-primary);
}

.about-intro {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.about-text {
  flex: 1;
}

.about-brand {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 48px;
  letter-spacing: 4px;
  margin-bottom: 16px;
  color: var(--accent);
}

.about-motto {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.about-visual {
  flex-shrink: 0;
}

.otaku-badge {
  width: 200px;
  height: 200px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 28px;
  letter-spacing: 4px;
  line-height: 1.3;
  color: var(--accent);
  animation: rotateBadge 20s linear infinite;
  position: relative;
}

.badge-tiger {
  font-size: 36px;
  margin-bottom: 4px;
  display: block;
  animation: none;
}

@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 한마디 Quote */
.about-hanmadi {
  margin: 80px 0 100px;
  display: flex;
  justify-content: center;
}

.hanmadi {
  position: relative;
  text-align: center;
  padding: 60px 40px;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hanmadi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hanmadi::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hanmadi-mark {
  font-family: 'Bebas Neue', serif;
  font-size: clamp(60px, 8vw, 100px);
  color: var(--accent);
  line-height: 0.8;
  opacity: 0.3;
  user-select: none;
  flex-shrink: 0;
}

.hanmadi-text {
  font-family: 'Do Hyeon', 'Noto Sans KR', sans-serif;
  font-size: clamp(20px, 3.5vw, 32px);
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: 2px;
  word-break: keep-all;
}

/* Equipment */
.about-equipment {
  margin-bottom: 100px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.equip-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.equip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.equip-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.equip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.equip-card:hover .equip-img img {
  transform: scale(1.05);
}

.equip-card p {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Timeline */
.about-history {
  margin-bottom: 100px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.timeline-item {
  position: relative;
  padding: 0 0 32px 32px;
  border-left: none;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid var(--bg-primary);
}

.timeline-date {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Policy */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.policy-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 36px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.policy-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.policy-num {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 36px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  opacity: 0.6;
}

.policy-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.policy-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Guide Section
   ============================================ */
.guide {
  background-color: var(--bg-secondary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.category-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 36px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.category-card:hover {
  border-color: var(--accent);
}

.category-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent);
}

.category-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-card li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.category-card li strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Pricing Tables */
.guide-pricing {
  margin-bottom: 60px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table thead {
  background-color: var(--bg-card);
}

.price-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.price-table td {
  padding: 14px 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.price-table tbody tr {
  transition: background-color var(--transition);
}

.price-table tbody tr:hover {
  background-color: var(--bg-card);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.table-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  padding-left: 8px;
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio {
  background-color: var(--bg-primary);
}

.portfolio-header {
  margin-bottom: 80px;
  text-align: center;
}

.portfolio-title {
  font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: 8px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 60%, #ff8a94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.portfolio-subtitle {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 16px;
  letter-spacing: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.portfolio-desc {
  font-family: 'Do Hyeon', 'Noto Sans KR', sans-serif;
  font-size: 20px;
  color: var(--text-secondary);
  letter-spacing: 4px;
  font-weight: 400;
}

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--text-primary);
  background-color: var(--accent);
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.view-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.view-btn:hover,
.view-btn.active {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
  transition: all var(--transition-slow);
}

/* 불규칙 사이즈 패턴 */
.portfolio-item:nth-child(6n+1) {
  grid-row: span 2;
}

.portfolio-item:nth-child(8n+3) {
  grid-column: span 2;
}

.portfolio-item:nth-child(10n+5) {
  grid-row: span 2;
  grid-column: span 2;
}

.portfolio-item:nth-child(7n+4) {
  grid-row: span 2;
}

/* 균일 그리드 뷰 */
.portfolio-grid.uniform-view {
  grid-auto-rows: auto;
}

.portfolio-grid.uniform-view .portfolio-item {
  grid-row: span 1 !important;
  grid-column: span 1 !important;
}

.portfolio-grid.uniform-view .portfolio-img {
  aspect-ratio: 1;
  height: auto;
}

.portfolio-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--bg-card);
  opacity: 0;
  transform: scale(1.8);
  transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.8s ease, box-shadow 0.5s ease;
}

.portfolio-item.revealed {
  opacity: 1;
  transform: scale(1);
  border-radius: 12px;
}

.portfolio-item:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 24px 60px rgba(230, 57, 70, 0.15), 0 8px 24px rgba(0,0,0,0.4);
  z-index: 2;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-card);
  position: relative;
}

.portfolio-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0) 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.portfolio-item:hover .portfolio-img::after {
  opacity: 1;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.12);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  transition: all 0.3s ease;
  z-index: 2;
}

.portfolio-item:hover .portfolio-info {
  background-color: rgba(230, 57, 70, 0.08);
}

.portfolio-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-info h4 {
  color: var(--accent);
}

.portfolio-info span {
  font-size: 12px;
  color: var(--text-muted);
}


/* ============================================
   Contact Section
   ============================================ */
.contact {
  background-color: var(--bg-secondary);
}

.contact-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-item h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 18px;
  color: var(--text-secondary);
}

.sns-links {
  display: flex;
  gap: 20px;
}

.sns-link {
  font-size: 16px;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.sns-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.sns-link:hover {
  color: var(--accent);
}

.sns-link:hover::after {
  width: 100%;
}

.contact-visual {
  flex-shrink: 0;
}

.contact-badge {
  width: 240px;
  height: 240px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: border-color var(--transition);
}

.contact-badge:hover {
  border-color: var(--accent);
}

.contact-badge span {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 32px;
  letter-spacing: 6px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.contact-badge:hover span {
  color: var(--accent);
}

/* ============================================
   Notice Section
   ============================================ */
.notice {
  background-color: var(--bg-primary);
}

.notice-list {
  display: flex;
  flex-direction: column;
}

.notice-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.notice-item:first-child {
  border-top: 1px solid var(--border);
}

.notice-item:hover {
  padding-left: 12px;
}

.notice-badge {
  flex-shrink: 0;
  padding: 4px 14px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.notice-text {
  flex: 1;
}

.notice-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.notice-text p {
  font-size: 14px;
  color: var(--text-secondary);
}

.notice-date {
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ============================================
   Quote Section
   ============================================ */
.quote-section {
  background-color: var(--bg-secondary);
}

.quote-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.quote-form {
  max-width: 800px;
}

.form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 0;
}

.form-group {
  flex: 1;
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.required {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  margin-bottom: 32px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 1px;
}

.btn-submit:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.3);
}

.file-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.file-upload-area {
  position: relative;
}

.file-input {
  display: none;
}

.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 2px dashed var(--border-light);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.file-upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(230, 57, 70, 0.05);
}

.file-icon {
  font-size: 20px;
}

.file-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.file-item .file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 10px;
}

.file-remove {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  transition: opacity 0.2s;
}

.file-remove:hover {
  opacity: 0.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.footer-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom .version {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ============================================
   Lightbox
   ============================================ */
/* Lightbox - Cinematic Open/Close */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  background-color: rgba(0, 0, 0, 0.96);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.3) translateY(60px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(230, 57, 70, 0.08);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Image transition animation */
.lightbox-content img.slide-out-left {
  transform: translateX(-80px) scale(0.92);
  opacity: 0;
}

.lightbox-content img.slide-out-right {
  transform: translateX(80px) scale(0.92);
  opacity: 0;
}

.lightbox-content img.slide-in-left {
  transform: translateX(80px) scale(0.92);
  opacity: 0;
}

.lightbox-content img.slide-in-right {
  transform: translateX(-80px) scale(0.92);
  opacity: 0;
}

.lightbox-content img.slide-in-active {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.lightbox-caption {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.lightbox.active .lightbox-caption {
  transform: translateY(0);
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 40px;
  cursor: pointer;
  transition: color var(--transition), transform 0.3s ease;
  z-index: 2001;
  line-height: 1;
  transform: rotate(0deg);
}

.lightbox-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2001;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  backdrop-filter: blur(8px);
}

.lightbox.active .lightbox-prev,
.lightbox.active .lightbox-next {
  opacity: 1;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 24px rgba(230, 57, 70, 0.4);
}

.lightbox-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 4px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.lightbox.active .lightbox-counter {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Portfolio item click ripple effect */
.portfolio-item.click-pulse {
  animation: clickPulse 0.5s ease-out;
}

@keyframes clickPulse {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
  50% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0.2); }
  100% { box-shadow: 0 0 0 30px rgba(230, 57, 70, 0); }
}

/* Lightbox closing animation */
.lightbox.closing .lightbox-content {
  transform: scale(0.5) translateY(40px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.3s ease;
}

.lightbox.closing .lightbox-caption,
.lightbox.closing .lightbox-counter {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox.closing .lightbox-prev,
.lightbox.closing .lightbox-next {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .section {
    padding: 80px 0;
  }

  .gnb ul {
    gap: 20px;
  }

  .gnb .nav-link {
    font-size: 14px;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
  }

  .contact-content {
    flex-direction: column;
    gap: 48px;
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 64px 0;
  }

  .header-inner {
    padding: 0 20px;
  }

  .logo-main {
    font-size: 22px;
  }

  .gnb,
  .btn-quote {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
    margin-right: 12px;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-title {
    letter-spacing: 4px;
  }

  .hero-sub {
    font-size: 11px;
    letter-spacing: 4px;
  }

  .hero-desc {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .hero-tagline {
    font-size: 11px;
    letter-spacing: 4px;
  }

  .scroll-down {
    bottom: 24px;
  }

  /* Section */
  .section-title {
    font-size: 28px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .sub-title {
    font-size: 18px;
    margin-bottom: 24px;
  }

  /* About */
  .about-intro {
    flex-direction: column;
    gap: 36px;
    margin-bottom: 64px;
  }

  .about-brand {
    font-size: 36px;
  }

  .about-motto {
    font-size: 17px;
  }

  .otaku-badge {
    width: 140px;
    height: 140px;
    font-size: 20px;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .equip-img {
    height: 180px;
  }

  .about-equipment,
  .about-history {
    margin-bottom: 64px;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -28px;
    width: 6px;
    height: 6px;
  }

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

  .policy-card {
    padding: 24px;
  }

  /* Guide */
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 24px;
  }

  .price-table {
    font-size: 13px;
  }

  .price-table th,
  .price-table td {
    padding: 10px 12px;
  }

  /* Portfolio */
  .portfolio-title {
    letter-spacing: 4px;
  }

  .portfolio-subtitle {
    font-size: 13px;
    letter-spacing: 8px;
  }

  .portfolio-desc {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .portfolio-filter {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 10px;
  }

  .portfolio-item:nth-child(6n+1),
  .portfolio-item:nth-child(7n+4) {
    grid-row: span 2;
  }

  .portfolio-item:nth-child(8n+3),
  .portfolio-item:nth-child(10n+5) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .portfolio-item:nth-child(10n+5) {
    grid-row: span 2;
  }

  .portfolio-info {
    padding: 10px 12px;
  }

  .portfolio-info h4 {
    font-size: 13px;
  }

  /* Contact */
  .contact-content {
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
  }

  .contact-badge {
    width: 160px;
    height: 160px;
  }

  .contact-badge span {
    font-size: 22px;
  }

  /* Notice */
  .notice-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
  }

  .notice-date {
    width: 100%;
    order: -1;
    margin-bottom: -4px;
  }

  .notice-text h4 {
    font-size: 15px;
  }

  /* Quote Form */
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .btn-submit {
    width: 100%;
    padding: 16px;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  /* Lightbox */
  .lightbox-prev,
  .lightbox-next {
    font-size: 22px;
    width: 44px;
    height: 44px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-close {
    top: 16px;
    right: 16px;
    font-size: 32px;
  }

  .lightbox-content {
    max-width: 95vw;
  }
}

/* ============================================
   Responsive - Small Mobile
   ============================================ */
@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 8px;
  }

  .portfolio-info {
    padding: 10px 12px;
  }

  .portfolio-info h4 {
    font-size: 12px;
  }

  .portfolio-info span {
    font-size: 11px;
  }

  .mobile-link {
    font-size: 22px;
  }

  .mobile-link.quote {
    font-size: 18px;
  }
}

/* ============================================
   Utility - No scroll when menu open
   ============================================ */
body.no-scroll {
  overflow: hidden;
}
