html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, #eef4f8, #e6f2f1);
  color: #1f2937;

}

section {
  position: relative;
}

.hero-bg {
  background:
    linear-gradient(135deg, #134e4a 0%, #0f766e 45%, #2dd4bf 100%);
}

.glass {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.12);
}

.hero-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.hero-doctor-image {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-card::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
}

.hero-card-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-card-badge span {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.35);
}

.carousel-image {
  display: none;
}

.carousel-image.active {
  display: block;
}

.contact-card {
  background: linear-gradient(135deg, #115e59, #0f766e, #2dd4bf);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

.contact-btn {
  min-width: 220px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.contact-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.03);
}

.contact-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.whatsapp-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.section-soft {
  background:
    radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.10), transparent 0 22%),
    linear-gradient(180deg, #effaf8 0%, #eef9f7 100%);
}

.section-soft-2 {
  background:
    radial-gradient(circle at 85% 25%, rgba(20, 184, 166, 0.10), transparent 0 20%),
    linear-gradient(180deg, #ecf9f6 0%, #e8f6f3 100%);
}

.soft-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  border: 1px solid rgba(20, 184, 166, 0.10);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
}

.instagram-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.gallery-section {
  background:
    linear-gradient(180deg, #f7fcfb 0%, #f1faf8 100%);
}

.location-section {
  background:
    linear-gradient(180deg, #f4fbf9 0%, #edf8f5 100%);
}

.content-panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(13, 148, 136, 0.08);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.08);
}

.treatment-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 184, 166, 0.08);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.10);
}

@media (max-width: 1024px) {
  .hero-doctor-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .hero-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-doctor-image {
    height: 430px;
  }

  .contact-btn {
    width: 100%;
  }
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 184, 166, 0.10);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.08);
  min-height: 320px;
}

.gallery-item-tall {
  grid-row: span 2;
  min-height: 680px;
}

.gallery-item-wide {
  grid-column: span 2;
  min-height: 320px;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover .gallery-photo {
  transform: scale(1.03);
  filter: brightness(1.03);
}