/* 전역 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-font-smoothing: antialiased;
}

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

/* ==========================================
   1. 헤더 영역
   ========================================== */
.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,
.nav-item.active {
  color: #FF3A00;
}

/* ==========================================
   2. 메인 컨테이너
   ========================================== */
.works-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 90px 60px 100px 60px;
  flex: 1;
}

/* 상단 타이틀 & 설명 */
.works-header {
  width: 100%;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.page-title {
  font-size: 80px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2px;
}

.page-title .count {
  font-size: 28px;
  font-weight: 600;
  color: #FF3A00;
  vertical-align: top;
  margin-left: 2px;
}

.intro-description {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.45;
  color: #000000;
  letter-spacing: -0.2px;
}

/* 카테고리 필터 바 */
.filter-nav {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #E2E2E2;
  padding-bottom: 12px;
}

.filter-btn {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  color: #FF3A00;
}

/* 4열 그리드 */
.works-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.work-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 호버 오버레이 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 58, 0, 0.88);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  padding: 20px;
}

.work-item:hover .overlay {
  opacity: 1;
}

.work-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
}

.work-desc {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

/* ==========================================
   3. 푸터 영역
   ========================================== */
.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;
}