/* 전역 스타일 */
:root {
  --primary-color: #2c8c4c;
  --secondary-color: #1a5c30;
  --accent-color: #4caf50;
  --light-accent: #8bc34a;
  --dark-bg: #121212;
  --dark-bg-secondary: #1e1e1e;
  --text-color: #f0f0f0;
  --text-color-secondary: #c0c0c0;
  --naver-color: #03c75a;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Noto Sans KR', 'Noto Sans', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--light-accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.btn-naver {
  background-color: var(--naver-color);
  color: white;
}

.btn-naver:hover {
  background-color: #02a64a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

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

.section:nth-child(odd) {
  background-color: var(--dark-bg-secondary);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  color: var(--accent-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* 헤더 스타일 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

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

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  transition: color var(--transition-speed);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.language-selector {
  position: relative;
  margin-left: 30px;
}

.language-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-weight: 500;
}

.language-btn i {
  margin-left: 5px;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--dark-bg-secondary);
  border-radius: 5px;
  box-shadow: 0 5px 15px var(--shadow-color);
  padding: 10px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed);
  z-index: 100;
}

.language-selector:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown a {
  display: block;
  padding: 8px 15px;
  color: var(--text-color);
  transition: background-color var(--transition-speed);
}

.language-dropdown a:hover {
  background-color: rgba(76, 175, 80, 0.1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 히어로 섹션 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/아나셀\ 제품사진.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(44, 140, 76, 0.2) 0%, rgba(18, 18, 18, 0.8) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--text-color-secondary);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* 제품 소개 섹션 */
.product-intro {
  position: relative;
}

.product-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.product-image {
  flex: 1;
  text-align: center;
}

.product-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: transform var(--transition-speed);
}

.product-image img:hover {
  transform: scale(1.03);
}

.product-details {
  flex: 1;
}

.product-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.product-description {
  margin-bottom: 30px;
  color: var(--text-color-secondary);
}

.product-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* 탈모 이해 섹션 */
.hair-loss-understanding {
  background-color: var(--dark-bg-secondary);
}

.hair-cycle-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hair-cycle-info {
  text-align: center;
  margin-bottom: 30px;
}

.hair-cycle-stages {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.cycle-stage {
  flex: 1;
  min-width: 250px;
  background-color: rgba(44, 140, 76, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform var(--transition-speed);
}

.cycle-stage:hover {
  transform: translateY(-5px);
}

.cycle-stage h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.hair-loss-types {
  margin-top: 60px;
}

.types-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hair-loss-type {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: rgba(44, 140, 76, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform var(--transition-speed);
}

.hair-loss-type:hover {
  transform: translateY(-5px);
}

.hair-loss-type img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.type-content {
  padding: 20px;
}

.type-content h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* 기술 섹션 */
.technology {
  position: relative;
}

.tech-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

.tech-item:nth-child(even) {
  flex-direction: row-reverse;
}

.tech-image {
  flex: 1;
}

.tech-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.tech-content {
  flex: 1;
}

.tech-title {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.tech-description {
  color: var(--text-color-secondary);
}

/* 임상 시험 결과 섹션 */
.clinical-results {
  background-color: var(--dark-bg-secondary);
  text-align: center;
}

.results-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.result-item {
  flex: 1;
  min-width: 250px;
  background-color: rgba(44, 140, 76, 0.1);
  border-radius: 10px;
  padding: 40px 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform var(--transition-speed);
}

.result-item:hover {
  transform: translateY(-5px);
}

.result-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.result-text {
  color: var(--text-color-secondary);
}

.clinical-image {
  margin-top: 50px;
  text-align: center;
}

.clinical-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* 고객 후기 섹션 */
.testimonials {
  position: relative;
}

.testimonials-container {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonials-container::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 350px;
  background-color: rgba(44, 140, 76, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
  scroll-snap-align: start;
  transition: transform var(--transition-speed);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-color-secondary);
}

.testimonial-author {
  font-weight: 600;
  color: var(--accent-color);
}

.testimonial-info {
  color: var(--text-color-secondary);
  font-size: 0.9rem;
}

/* 사용 방법 섹션 */
.usage {
  background-color: var(--dark-bg-secondary);
}

.usage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.video-container {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
  margin: 0 auto;
  text-align: center;
}

.video-container video,
.video-container iframe {
  width: 100%;
  display: block;
  margin: 0 auto;
}

.usage-steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.usage-step {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  background-color: rgba(44, 140, 76, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform var(--transition-speed);
}

.usage-step:hover {
  transform: translateY(-5px);
}

.step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin: 0 auto 15px;
  font-weight: 600;
}

.cautions {
  margin-top: 40px;
  background-color: rgba(255, 87, 34, 0.1);
  border-radius: 10px;
  padding: 20px;
}

.cautions h3 {
  color: #ff5722;
  margin-bottom: 15px;
}

.caution-item {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.caution-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ff5722;
}

/* FAQ 섹션 */
.faq {
  position: relative;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.faq-question {
  background-color: rgba(44, 140, 76, 0.1);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-speed);
}

.faq-question:hover {
  background-color: rgba(44, 140, 76, 0.2);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-color);
}

.faq-answer {
  background-color: rgba(44, 140, 76, 0.05);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed), padding var(--transition-speed);
}

.faq-answer p {
  margin: 0;
  padding: 20px 0;
  color: var(--text-color-secondary);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 20px;
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform var(--transition-speed);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* 푸터 */
.footer {
  background-color: var(--dark-bg);
  padding: 60px 0 30px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--light-accent));
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-title {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
}

.footer-info {
  margin-bottom: 10px;
  color: var(--text-color-secondary);
}

.footer-info strong {
  color: var(--text-color);
  margin-right: 5px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--text-color-secondary);
  font-size: 0.9rem;
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .product-content,
  .tech-item {
    flex-direction: column;
    gap: 30px;
  }

  .tech-item:nth-child(even) {
    flex-direction: column;
  }

  .product-image,
  .product-details,
  .tech-image,
  .tech-content {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .language-selector {
    margin-left: 0;
    margin-top: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .product-buttons {
    flex-direction: column;
  }

  .product-buttons .btn {
    width: 100%;
  }

  .testimonial-card {
    flex: 0 0 280px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .logo img {
    height: 30px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .result-number {
    font-size: 2.5rem;
  }

  .footer-column {
    flex: 0 0 100%;
  }
}