/* --------------------- */
/* 기본 초기화 및 공통 */
/* --------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --------------------- */
/* 컨테이너 및 섹션 공통 */
/* --------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 20px;
  text-align: center;
}

.section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

/* --------------------- */
/* 헤더 / 네비게이션바 */
/* --------------------- */
.header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  background-color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background-color: #fff;
  position: relative;
  height: 20px;
}

.logo img {
  height: 24px;
  width: auto;
  display: block;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu li a {
  font-size: 18px;
  font-weight: 500;
  padding: 8px 12px;
  line-height: 80px;
  transition: color 0.3s ease;
}

.navbar-menu li a:hover {
  color: rgba(57, 73, 249, 1)
}

/* 드롭다운 메뉴 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 8px 0;
  display: none;
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 6px 14px;
  font-size: 16px;
  color: #333;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* 버튼 */
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: bold;
  background-color: rgb(53, 66, 245);
  color: rgb(255, 255, 255);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.btn-nav:hover {
  background-color: rgb(60, 255, 0);
  color: rgb(255, 255, 255);
}

/* --------------------- */
/* Hero Section */
/* --------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  background: url("../images/your-hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  z-index: 10;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-text {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 20px;
  margin-bottom: 30px;
}

.btn-hero {
  display: inline-block;
  padding: 12px 24px;
  background-color: orange;
  color: white;
  font-weight: bold;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.btn-hero:hover {
  background-color: black;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  color: white;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* 반응형 Hero 텍스트 */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 16px;
  }
}

/* --------------------- */
/* 브랜드 메시지 */
/* --------------------- */
.brand-message {
  background-color: #ffffff;
  padding: 100px 20px;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  animation: fadeInUp 1s ease-out;
  position: relative;
  z-index: 10;
}

.brand-message h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  color: rgb(57, 73, 249);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.brand-message p {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.2px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .brand-message h2 {
    font-size: 28px;
  }

  .brand-message p {
    font-size: 14px;
  }
}

/* --------------------- */
/* 서비스 카드 섹션 */
/* --------------------- */
.services {
  padding: 100px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.services h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
  color: #111;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  background-color: white;
  border-radius: 16px;
  padding: 40px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111;
}

.service-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------- */
/* 포트폴리오 섹션 */
/* --------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-item {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  text-align: center;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-item p {
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
}

/* --------------------- */
/* 고객 후기 섹션 */
/* --------------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.review-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  transition: box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.review-card span {
  display: block;
  margin-top: 20px;
  font-weight: bold;
  color: #3949f0;
}

/* --------------------- */
/* CTA 섹션 */
/* --------------------- */
.section-cta {
  background-color: #3949f0;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.section-cta h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
}

.btn-cta {
  display: inline-block;
  background-color: white;
  color: #3949f9;
  font-weight: bold;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: black;
  color: white;
}

/* --------------------- */
/* 애니메이션 */
/* --------------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-hero,
.btn,
.btn-cta {
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn-hero:hover,
.btn:hover,
.btn-cta:hover {
  transform: scale(1.05);
}

/* --------------------- */
/* 서브 페이지 Hero */
/* --------------------- */
.hero-sub {
  height: 300px;
  background: linear-gradient(to bottom, #00000066, #00000088), url('../images/about-hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.about-hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.about-hero p {
  font-size: 18px;
}

/* 소개 및 가치 카드 */
.about-intro h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-intro p {
  font-size: 18px;
  color: #555;
}

.value-cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.value-card {
  flex: 1 1 30%;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  background-color: #fafafa;
  text-align: center;
}

.value-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 16px;
  color: #555;
  height: 80px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}

/* 상단 안내 */
.section-intro .intro-box {
  background: #f0f0f0;
  padding: 24px;
  text-align: center;
  font-size: 16px;
  
  line-height: 1.6;
}

/* 필터 박스 */
.filter-box {
  background: #3949f9;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 12px;
  margin-top: 30px;
}

.filter-box select {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  min-width: 140px;
  font-size: 14px;
}

/* 상품 카드 그리드 */
.product-grid .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 40px 20px;
}

.product-card {
  width: 100%;
  height: 180px;
  background: #eee;
  border-radius: 8px;
}

/* 전체 레이아웃 */
body {
  font-family: 'Pretendard', sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 헤더 */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar-menu li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

.btn-nav {
  background: #3454ff;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
}

/* 상단 안내 */
.section-intro .intro-box {
  background: #eee;
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
}

/* 필터 영역 */
.filter-box {
  display: flex;
  gap: 20px;
  background: #3454ff;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 40px;
}

.filter-box select {
  padding: 10px;
  border-radius: 5px;
  border: none;
}

/* 상품 카드 */
.product-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 80px;
}

.product-card {
  flex: 1 1 calc(25% - 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-img img {
  width: 100%;
  border-radius: 10px;
  background: #eee;
  height: 200px;
  object-fit: cover;
}

/* 텍스트는 이미지 아래에서 독립적으로 */
.product-desc {
  text-align: center;
  margin-top: 15px;
}

.product-desc h3 {
  font-size: 18px;
  margin: 10px 0 5px;
}

.product-desc p {
  margin: 0 0 10px;
}

.product-desc button {
  padding: 8px 16px;
  border: none;
  background-color: #3498db;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}
/* 기본 스타일 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  color: white;
  padding: 10px 20px;
}
.nav-logo {
  font-size: 20px;
  font-weight: bold;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-menu li a {
  color: white;
  text-decoration: none;
}

/* 햄버거 아이콘 - 기본적으로 숨김 */
.nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* ✅ 모바일 반응형 설정 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #333;
    padding: 10px;
    margin-top: 10px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-menu.active {
    display: flex;
  }
}
/* Navigation */
.navbar {
  background-color: #fff;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-menu li {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background: #fff;
  border: 1px solid #ccc;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.nav-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}
.header {
  border-bottom: 1px solid #ddd;
  background-color: #fff;
  padding: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 20px;
}

