body div.carousel {
  position: relative;
  width: 100dvw;
  height: 100dvh;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  flex-direction: row;
  scroll-behavior: smooth;
}

body div.carousel.dragging{
  scroll-behavior: auto;
}

div.carousel-container button.carousel-button {
  position: absolute;
  top: 50%;
  right: 20px;
  z-index: 2;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

div.carousel-container button.carousel-left {
  left: 20px;
  right: auto;
}

div.carousel-container button.carousel-button:hover {
  transform: scale(1.1);
}

div.carousel.dragging div.carousel-item {
  scroll-snap-align: none;
}

div.carousel div.carousel-item {
  width: 100dvw;
  height: 100%;
  flex: 0 0 auto;
  scroll-snap-align: start;
  scroll-snap-type: x mandatory;
  transition: all 0.5s ease-in-out;
  /* pointer-events: none; */ /* REMOVE THIS */
}

div.carousel div.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* pointer-events: none; */ /* REMOVE THIS */
  user-select: none;
  -webkit-user-drag: none;
}

div.carousel-info {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}

div.carousel-info a {
  width: max-content;
}


/* Content Styles */
.content {
  width: 100%;
  min-height: 100vh;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background: linear-gradient(135deg, var(--background-color) 0%, #f0f0f0 100%);
  padding: 4rem 2rem;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-family: "ZCOOL XiaoWei";
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary-saturate-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 1.2rem 2.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-align: center;
  min-width: 200px;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-saturate-color));
  color: var(--background-color);
  border: 2px solid var(--primary-saturate-color);
}

.cta-button.secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(161, 155, 139, 0.3);
}

.cta-button.secondary:hover {
  background: var(--primary-color);
  color: var(--background-color);
}

/* Features Section */
.features-section {
  padding: 6rem 2rem;
  background: white;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-container h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-saturate-color));
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(161, 155, 139, 0.15);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-saturate-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Services Preview Section */
.services-preview {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--background-color) 0%, #f0f0f0 100%);
}

.services-preview-container {
  max-width: 1000px;
  margin: 0 auto;
}

.services-preview-container h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.service-preview-card {
  background: white;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid #f0f0f0;
}

.service-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(161, 155, 139, 0.2);
  border-color: var(--primary-color);
}

.service-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-saturate-color));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-image.botox {
  background: linear-gradient(135deg, #8B7355, var(--primary-saturate-color));
}

.service-overlay {
  text-align: center;
  color: white;
  z-index: 1;
}

.service-overlay h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.service-overlay p {
  font-size: 1.3rem;
  font-weight: 600;
}

.service-content {
  padding: 2rem;
}

.service-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-benefits span {
  color: var(--primary-saturate-color);
  font-weight: 500;
  font-size: 0.9rem;
}

.services-cta {
  text-align: center;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 2rem;
  background: white;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-container h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background: white;
  padding: 2.5rem;
  border: 2px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(161, 155, 139, 0.15);
  border-color: var(--primary-color);
}

.testimonial-content {
  margin-bottom: 2rem;
}

.stars {
  color: #FFD700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-content p {
  color: #666;
  line-height: 1.6;
  font-style: italic;
}

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

.testimonial-author span {
  color: var(--primary-saturate-color);
  font-size: 0.9rem;
  display: block;
  margin-top: 0.25rem;
}

/* Contact Preview Section */
.contact-preview {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-saturate-color));
  color: white;
}

.contact-preview-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-preview-container h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.contact-preview-container > p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.contact-item h3 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p {
  opacity: 0.9;
}

.final-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.final-cta .cta-button {
  background: white;
  color: var(--secondary-color);
  border: 2px solid white;
}

.final-cta .cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.final-cta .cta-button:hover {
  background: var(--background-color);
  color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  div.carousel div.carousel-item {
    overflow-y: hidden;
  }

  /* Carousel buttons remain visible on mobile */

  /* Hero Section Mobile */
  .hero-content h1 {
    font-size: 2.5rem;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }

  /* Sections Mobile */
  .features-section,
  .services-preview,
  .testimonials-section,
  .contact-preview {
    padding: 4rem 1rem;
  }

  .features-container h2,
  .services-preview-container h2,
  .testimonials-container h2,
  .contact-preview-container h2 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-preview-card {
    min-width: auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .final-cta {
    flex-direction: column;
    align-items: center;
  }

  .final-cta .cta-button {
    width: 100%;
    max-width: 300px;
  }
}