/* ===== 기본 리셋 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: #1a1a1a;
  background: #f9f9f9;
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 헤더 ===== */
header {
  background: #111;
  color: #fff;
  padding: 80px 24px 64px;
  text-align: center;
}

.header-inner h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-sub {
  margin-top: 8px;
  font-size: 1rem;
  color: #aaa;
  letter-spacing: 0.1em;
}

/* ===== 소개 섹션 ===== */
.intro {
  background: #fff;
  padding: 72px 0;
  text-align: center;
}

.intro h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.intro p {
  color: #555;
  font-size: 1rem;
}

/* ===== 업무 카드 ===== */
.work {
  padding: 72px 0;
  background: #f9f9f9;
}

.work h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.work-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #ebebeb;
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.work-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.work-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.work-card p {
  font-size: 0.85rem;
  color: #777;
}

/* ===== 갤러리 ===== */
.gallery-section {
  padding: 72px 0;
  background: #fff;
}

.gallery-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

/* 필터 탭 */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.tab {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #555;
}

.tab:hover {
  border-color: #111;
  color: #111;
}

.tab.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* 갤러리 그리드 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
  aspect-ratio: 4/3;
  transition: opacity 0.3s;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== 푸터 ===== */
footer {
  background: #111;
  color: #888;
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
}

/* ===== 반응형 ===== */
@media (max-width: 600px) {
  .header-inner h1 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
