:root {
  --primary-color: #4caf50;
  --secondary-color: #2e7d32;
  --accent-color: #8bc34a;
  --dark-color: #1b5e20;
  --light-color: #c8e6c9;
  --text-color: #333;
  --white: #fff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--dark-color));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  background-color: #f5f5f5;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header Styles with Animation */
header {
  background: var(--gradient);
  color: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

header.scrolled {
  padding: 0.5rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  background: rgba(76, 175, 80, 0.9);
}

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

.logo i {
  font-size: 2rem;
  margin-right: 0.5rem;
  transition: var(--transition);
}

.logo:hover i {
  transform: rotate(15deg) scale(1.1);
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--white), var(--light-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: var(--transition);
}

.logo:hover h1 {
  background: linear-gradient(to right, var(--light-color), var(--white));
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
  position: relative;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--white);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 80%;
}

nav ul li a.active::after {
  width: 80%;
}

.btn {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary-color);
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn::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: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  background-image: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  background-size: 200% auto;
}

.btn-primary:hover {
  background-position: right center;
}

/* Floating Elements */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Hero Section with Parallax */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80")
      no-repeat center center/cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(transparent, #f5f5f5);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease both 0.3s;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeIn 1.5s ease both 0.6s;
}

/* Animated Background Elements */
.hero-bg-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  animation: float 15s infinite linear;
}

.hero-bg-element:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-bg-element:nth-child(2) {
  width: 150px;
  height: 150px;
  bottom: 30%;
  right: 15%;
  animation-delay: 2s;
}

.hero-bg-element:nth-child(3) {
  width: 70px;
  height: 70px;
  top: 60%;
  left: 25%;
  animation-delay: 4s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-50px) rotate(180deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 1;
  }
}

/* Features Section with Hover Effects */
.features {
  padding: 6rem 2rem;
  background-color: var(--white);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

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

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  color: var(--white);
}

.feature-card:hover h3,
.feature-card:hover p {
  color: var(--white);
}

.feature-card:hover .feature-icon {
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  color: var(--dark-color);
  transition: var(--transition);
}

.feature-card p {
  color: #666;
  transition: var(--transition);
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* Services Section with 3D Effect */
.services {
  padding: 6rem 2rem;
  background-color: #f9f9f9;
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(#f5f5f5, transparent);
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px;
}

.service-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  transform-style: preserve-3d;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  z-index: 1;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 2rem;
  position: relative;
}

.service-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
  transition: var(--transition);
}

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

.service-card .btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

/* Ribbon Effect */
.ribbon {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.3rem 2rem;
  transform: rotate(45deg);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Doctors Section with Flip Card */
.doctors {
  padding: 6rem 2rem;
  background-color: var(--white);
  position: relative;
}

.doctors::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(#f9f9f9, transparent);
  z-index: 1;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.doctor-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  transform-style: preserve-3d;
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.doctor-img {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.doctor-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  z-index: 1;
}

.doctor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.doctor-card:hover .doctor-img img {
  transform: scale(1.05);
}

.doctor-info {
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.doctor-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.doctor-info p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 195, 74, 0.1);
  text-decoration: none;
}

.social-links a:hover {
  color: var(--white);
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Appointment Section with Glass Morphism */
.appointment {
  padding: 6rem 2rem;
  background: url("https://images.unsplash.com/photo-1581056771107-24ca5f033842?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80")
    no-repeat center center/cover;
  background-attachment: fixed;
  color: var(--white);
  position: relative;
}

.appointment::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 130, 76, 0.85);
}

.appointment-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 16px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.appointment-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.appointment h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.appointment h2::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--white);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.appointment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
  border: 1px solid transparent;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.3);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  grid-column: span 2;
  padding: 1rem;
  font-size: 1.1rem;
  background: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  margin-top: 1rem;
}

.submit-btn:hover {
  background: var(--light-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section with Swiper Effect */
.testimonials {
  padding: 6rem 2rem;
  background-color: #f9f9f9;
  position: relative;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(var(--white), transparent);
  z-index: 1;
}

.testimonials-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.testimonial-slide {
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin: 0 1.5rem;
  transition: var(--transition);
  opacity: 0.7;
  transform: scale(0.9);
}

.testimonial-slide.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.testimonial-slide.active .testimonial-avatar {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 1.1rem;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--accent-color);
  opacity: 0.3;
  position: absolute;
}

.testimonial-text::before {
  top: -15px;
  left: -10px;
}

.testimonial-text::after {
  bottom: -25px;
  right: -10px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 1.1rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Footer with Wave Effect */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 6rem 2rem 2rem;
  position: relative;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.footer-wave svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.footer-wave .wave {
  animation: wave 10s linear infinite;
}
.footer-wave svg {
  width: 200%; /* mở rộng chiều ngang SVG để đủ khoảng lặp */
}

.footer-wave .wave {
  animation: wave-move 10s linear infinite;
}

.footer-wave .wave:nth-child(2) {
  animation: wave-move 15s linear infinite reverse;
}

.footer-wave .wave:nth-child(3) {
  animation: wave-move 20s linear infinite;
}

@keyframes wave-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.footer-col h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 3px;
}

.footer-col p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 15px;
}

.footer-links li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  opacity: 0;
  transition: var(--transition);
}

.footer-links li:hover::before {
  opacity: 1;
  left: -5px;
}

.footer-links a {
  color: var(--light-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 10px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-right: 0.8rem;
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-top: 3px;
}

.social-media {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
  text-decoration: none;
}

.social-media a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px) rotate(10deg);
}

.copyright {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

/* Scroll Reveal Animation */
.reveal {
  position: relative;
  opacity: 0;
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
}

.active.fade-bottom {
  animation: fade-bottom 1s ease;
}

.active.fade-left {
  animation: fade-left 1s ease;
}

.active.fade-right {
  animation: fade-right 1s ease;
}

@keyframes fade-bottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-left {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-right {
  0% {
    transform: translateX(50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 2.8rem;
  }

  .section-title h2 {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }

  nav ul {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 0.5rem;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .submit-btn {
    grid-column: span 1;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-media {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 1.8rem;
  }

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

  .features-grid,
  .services-grid,
  .doctors-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slide {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
}
/* Thêm vào phần :root hoặc đầu phần style */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-profile {
  display: flex;
  align-items: center;
}

.user-icon {
  color: var(--white);
  font-size: 24px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
}

.user-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}