/* 전역 스타일 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Potassium Scandal 커스텀 폰트 설정 */
@font-face {
  font-family: 'Potassium Scandal';
  src: url('fonts/PotassiumScandal.woff2') format('woff2'),
       url('fonts/PotassiumScandal.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: #ffffff;
  color: #000000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: auto; /* 창이 좁아져도 줄바꿈 대신 가로 스크롤 생성 */
  min-width: 1200px; /* 메인 페이지 최소 너비 고정 */
}

/* 헤더 & 네비게이션 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 25px;
  width: 100%;
  white-space: nowrap;
}

/* 로고 크기 */
.logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* 네비게이션 간격 */
.nav {
  display: flex;
  gap: 120px;
}

/* 네비게이션 메뉴 기본 스타일 & 호버 효과 */
.nav-item {
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover {
  color: #FF3A00;
}

/* 히어로 영역 */
.hero {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hero-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 영문 타이틀 */
.subtitle {
  font-family: 'Potassium Scandal', cursive, sans-serif;
  font-size: 26px;
  color: #FF3A00;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* 메인 타이틀 (줄바꿈 원천 차단) */
.main-title {
  font-size: 60px;
  font-weight: 600;
  line-height: 0.92;
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: -0.5px;
  white-space: nowrap;
  width: max-content;
}

/* 첫 번째 줄 */
.line-1 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.line-1 span {
  white-space: nowrap;
  display: inline-block;
}

/* 스마일 2프레임 교체 영역 */
.smile-box {
  display: inline-block;
  width: 78px;
  height: 78px;
  vertical-align: middle;
  margin-left: 2px;
  margin-right: -8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: flipFrames 0.7s step-start infinite;
  flex-shrink: 0;
}

@keyframes flipFrames {
  0%, 100% {
    background-image: url('./smile.svg?v=2');
  }
  50% {
    background-image: url('./smile-2.svg?v=2');
  }
}

/* '을' 자 밀착 오프셋 */
.particle-eul {
  margin-right: 12px;
}

/* 두 번째 줄 */
.line-2 {
  position: relative;
  display: inline-block;
  margin-top: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 주변 데코 그룹 */
.deco-group {
  position: absolute;
  pointer-events: none;
}

/* 좌측 데코 */
.deco-left {
  left: -82px;
  top: -12px;
}

.deco-left .flower {
  width: 68px;
}

.deco-left .star {
  position: absolute;
  top: -12px;
  right: -6px;
  width: 22px;
}

/* 우측 데코 */
.deco-right {
  right: -78px;
  top: -2px;
}

.deco-right .flower {
  width: 64px;
}

.deco-right .star {
  position: absolute;
  top: -14px;
  left: -8px;
  width: 20px;
}

/* View Works 버튼 */
.cta-wrapper {
  margin-top: 40px;
}

.view-works {
  font-size: 16px;
  font-weight: 500;
  color: #FF3A00;
  text-decoration: none;
  border-bottom: 2px solid #FF3A00;
  padding-bottom: 2px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.view-works:hover {
  opacity: 0.75;
}

/* 푸터 */
.footer {
  padding-bottom: 30px;
  text-align: center;
  color: #FF3A00;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}

.footer-icon {
  width: 16px;
  margin-bottom: 8px;
}

.copyright-name {
  letter-spacing: 0.5px;
}

.copyright-year {
  font-size: 14px;
}