/* Base styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 80px;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Language Switcher Styles */
.language-switcher {
  position: relative;
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  min-width: 160px;
  display: none;
  z-index: 1000;
}

.language-menu.show {
  display: block;
}

.language-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  transition: background-color 0.2s;
  gap: 8px;
}

.language-option:hover {
  background-color: #f3f4f6;
}

.language-option.active {
  background-color: #fef2f2;
  color: #dc2626;
}

.language-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

/* Mobile Language Switcher */
.language-switcher-mobile {
  position: relative;
}

.language-menu-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}

.language-menu-mobile.show {
  display: block;
}

.language-option-mobile {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  transition: background-color 0.2s;
  gap: 8px;
}

.language-option-mobile:hover {
  background-color: #f3f4f6;
}

.language-option-mobile.active {
  background-color: #fef2f2;
  color: #dc2626;
}

.nav-link {
  color: #374151; 
  padding: 0.5rem 1rem; 
  transition: all 0.3s ease; 
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.nav-link:hover { color: #5eb3b3; background-color: #f0fafa; }
.nav-link.active { color: #5eb3b3; font-weight: 600; }

/* Hero section - background image */
.hero-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(240, 245, 250, 0.3)), url('../assets/img/praxis-02-scaled.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

/* Hero section for About Us page - background image */
.hero-bg-aboutus {
  background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(240, 245, 250, 0.3)), url('../assets/img/img_0368-scaled.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

/* Hero section for Labor page - background image */
.hero-bg-labor {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../assets/img/img_0384-scaled.jpeg');
  background-size: cover;
  background-position: center 65%;
  background-attachment: fixed;
  position: relative;
}

/* Hero section for Appointment page - background image */
.hero-bg-appointment {
  background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(240, 253, 250, 0.4)), url('../assets/img/praxis-02-scaled.jpeg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  position: relative;
  padding-top: 100px;
}

/* Footer section - background image */
.footer-bg {
  background-image: linear-gradient(rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.90)), url('../assets/img/img_0370-scaled.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

/* Footer section - brown background with image */
.footer-brown {
  background-image: linear-gradient(rgba(74, 52, 40, 0.60), rgba(74, 52, 40, 0.70)), url('../assets/img/img_0370-scaled.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #5eb3b3 0%, #4a9d9d 100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(94, 179, 179, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(94, 179, 179, 0.4);
}

.btn-outline-teal {
  border: 2px solid #5eb3b3;
  color: #4a5568;
  transition: all 0.3s ease;
}

.btn-outline-teal:hover {
  background-color: #5eb3b3;
  color: white;
}

/* Service card animations */
.service-card {
  transition: all 0.4s ease;
  border: 1px solid #e5e7eb;
}

/* Service card title responsive typography */
.service-card h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
  font-size: clamp(0.875rem, 2.5vw, 1.125rem); /* Responsive: 14px - 18px */
}

/* Service card description responsive typography */
.service-card p {
  font-size: clamp(0.75rem, 2vw, 0.875rem); /* Responsive: 12px - 14px */
  line-height: 1.5;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: #5eb3b3;
  z-index: 10;
}

/* Fade sibling cards when one is hovered */
#services .grid:has(.service-card:hover) .service-card:not(:hover) {
  opacity: 0.5;
  transform: scale(0.97);
}

/* Team member card 3D hover effects */
.team-member-card {
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.team-member-card:hover {
  transform: translateY(-15px) translateZ(20px) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(94, 179, 179, 0.3);
  z-index: 20;
}

/* Fade sibling team cards when one is hovered */
.team-grid:has(.team-member-card:hover) .team-member-card:not(:hover) {
  opacity: 0.4;
  transform: scale(0.95) translateZ(-10px);
}

/* Labor feature card 3D hover effects */
.labor-feature-card {
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  border: 1px solid transparent;
}

.labor-feature-card:hover {
  transform: translateY(-12px) translateZ(15px) rotateX(3deg);
  box-shadow: 0 20px 40px rgba(94, 179, 179, 0.25);
  border-color: #5eb3b3;
  z-index: 20;
}

.labor-feature-card:hover h3 {
  color: #4a9d9d;
}

/* Fade sibling labor feature cards when one is hovered */
.labor-features-grid:has(.labor-feature-card:hover) .labor-feature-card:not(:hover) {
  opacity: 0.5;
  transform: scale(0.97) translateZ(-5px);
}

/* Labor button 3D hover effects */
.labor-btn {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.labor-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #5eb3b3 0%, #4a9d9d 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.labor-btn:hover {
  transform: translateY(-8px) translateZ(20px) scale(1.05);
  box-shadow: 0 15px 35px rgba(94, 179, 179, 0.4);
  border-color: transparent;
  color: white;
}

.labor-btn:hover::before {
  opacity: 1;
}

.labor-btn:active {
  transform: translateY(-4px) translateZ(10px) scale(1.02);
  box-shadow: 0 8px 20px rgba(94, 179, 179, 0.3);
}

/* Welcome box animations */
.welcome-box {
  transition: all 0.4s ease;
}

.welcome-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(94, 179, 179, 0.2);
}

/* Animated circles */
.welcome-circle-1 {
  animation: float 6s ease-in-out infinite;
}

.welcome-circle-2 {
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

/* Welcome icon animation */
.welcome-icon-wrapper {
  display: inline-block;
  animation: bounce-gentle 2s ease-in-out infinite;
}

@keyframes bounce-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.welcome-icon-wrapper svg {
  filter: drop-shadow(0 4px 8px rgba(94, 179, 179, 0.3));
  transition: all 0.3s ease;
}

.welcome-box:hover .welcome-icon-wrapper svg {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 8px 16px rgba(94, 179, 179, 0.4));
}

/* Sparkle animations */
.welcome-sparkle {
  font-size: 1.5rem;
  animation: sparkle 3s ease-in-out infinite;
  opacity: 0;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

/* Welcome title animation */
.welcome-title {
  animation: fade-in-down 1s ease-out;
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Welcome text animation */
.welcome-text {
  animation: fade-in-up 1.2s ease-out;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.logo-gradient {
  background: linear-gradient(135deg, #5eb3b3 0%, #4a9d9d 100%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image styling with teal border - asymmetric design with rounded right edge */
.img-circle-frame {
  position: relative;
  display: block;
  width: calc(100% + 6rem);
  aspect-ratio: 16/10;
  overflow: visible;
  padding: 15px;
  margin: 0;
  margin-left: -6rem;
}

.img-circle-frame img {
  border-radius: 0 40% 40% 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Image styling with teal border - oval design */
.img-oval-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: visible;
  padding: 15px;
  margin: 0;
  margin-left: 0;
}

/* Override scroll-reveal for img-oval-frame to ensure image is always visible */
.img-oval-frame.scroll-reveal {
  opacity: 1 !important;
  transform: none !important;
}

.img-oval-frame img {
  border-radius: 50%;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: block !important;
  visibility: visible !important;
}

/* Perfect circle frame with teal border - ONLY for kinderzahnheilkunde page */
.img-perfect-circle {
  opacity: 1 !important;
  transform: none !important;
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
  aspect-ratio: 1 / 1;
}

.img-perfect-circle img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: block !important;
  visibility: visible !important;
  position: absolute;
  top: 0;
  left: 0;
}

.img-perfect-circle::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 3px solid #5eb3b3;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

/* Slideshow support */
.img-circle-frame img.slideshow-image {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  opacity: 0;
}

.img-circle-frame img.slideshow-image.active {
  opacity: 1;
  z-index: 1;
}

.img-circle-frame::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 3px solid #5eb3b3;
  border-right: 3px solid #5eb3b3;
  border-bottom: 3px solid #5eb3b3;
  border-left: none;
  border-radius: 0 40% 40% 0;
  pointer-events: none;
  z-index: 2;
}

.img-oval-frame::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 3px solid #5eb3b3;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

/* Slideshow navigation dots */
.slideshow-dots {
  position: absolute;
  bottom: 20px;
  right: 30px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-dot.active {
  background-color: #5eb3b3;
  transform: scale(1.2);
}

/* Teal color replacements for blue */
.bg-teal-500 {
  background-color: #5eb3b3;
}

.bg-teal-50 {
  background-color: #f0fafa;
}

.bg-teal-100 {
  background-color: #d9f2f2;
}

.text-teal-500 {
  color: #5eb3b3;
}

.text-teal-600 {
  color: #4a9d9d;
}

.hover\:text-teal-600:hover {
  color: #4a9d9d;
}

.from-teal-500 {
  --tw-gradient-from: #5eb3b3;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(94, 179, 179, 0));
}

.from-teal-50 {
  --tw-gradient-from: #f0fafa;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 250, 250, 0));
}

.to-teal-600 {
  --tw-gradient-to: #4a9d9d;
}

.to-teal-100 {
  --tw-gradient-to: #d9f2f2;
}

/* Dropdown navigation styles */
.group:hover .group-hover\:block {
  display: block !important;
}

/* Language transition effects */
.lang-transition {
  transition: opacity 0.3s ease;
}

.lang-transition.changing {
  opacity: 0.8;
}

/* Responsive design improvements */

/* Mobile devices (phones, up to 480px) */
@media (max-width: 480px) {
  body {
    padding-top: 70px;
  }

  .hero-bg {
    padding: 2rem 0;
  }

  .hero-bg h1 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  .hero-bg p {
    font-size: 1rem !important;
  }

  .hero-bg .btn-primary,
  .hero-bg .btn-outline-teal {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
  }

  .img-circle-frame {
    margin-bottom: 2rem;
    padding: 12px;
    margin-left: -1.5rem;
    width: calc(100% + 1.5rem);
  }

  .img-circle-frame img {
    border-radius: 0 40% 40% 0;
  }

  .img-circle-frame img.slideshow-image {
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
  }

  .img-circle-frame::before {
    border-radius: 0 40% 40% 0;
    border-width: 3px;
  }

  .img-oval-frame {
    margin-bottom: 2rem;
    padding: 12px;
    margin-left: 0;
    width: 100%;
  }

  .img-oval-frame img {
    border-radius: 50%;
  }

  .img-oval-frame::before {
    border-radius: 50%;
    border-width: 3px;
  }

  .slideshow-dots {
    bottom: 15px;
    right: 20px;
  }

  .slideshow-dot {
    width: 10px;
    height: 10px;
  }

  .service-card {
    margin-bottom: 1rem;
  }

  /* Mobile-specific typography for service cards */
  .service-card h3 {
    font-size: 0.875rem; /* 14px - smaller on mobile */
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .service-card p {
    font-size: 0.75rem; /* 12px - smaller description on mobile */
    line-height: 1.4;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Tablets (portrait, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  body {
    padding-top: 75px;
  }

  .hero-bg {
    padding: 2.5rem 0;
  }

  .hero-bg h1 {
    font-size: 2.25rem !important;
  }

  .hero-bg p {
    font-size: 1.125rem !important;
  }

  .service-card {
    margin-bottom: 1rem;
  }

  /* Tablet-specific typography for service cards */
  .service-card h3 {
    font-size: 1rem; /* 16px - medium size on tablet */
    line-height: 1.35;
  }

  .service-card p {
    font-size: 0.8125rem; /* 13px - slightly larger than mobile */
    line-height: 1.45;
  }

  .img-circle-frame {
    padding: 13px;
    margin-left: -1.5rem;
    width: calc(100% + 1.5rem);
  }

  .img-circle-frame img {
    border-radius: 0 40% 40% 0;
  }

  .img-circle-frame img.slideshow-image {
    top: 13px;
    left: 13px;
    right: 13px;
    bottom: 13px;
    width: calc(100% - 26px);
    height: calc(100% - 26px);
  }

  .img-circle-frame::before {
    border-width: 4px;
    border-radius: 0 40% 40% 0;
  }

  .img-oval-frame {
    padding: 13px;
    margin-left: 0;
    width: 100%;
  }

  .img-oval-frame img {
    border-radius: 50%;
  }

  .img-oval-frame::before {
    border-width: 4px;
    border-radius: 50%;
  }
}

/* iPads and tablets (portrait and landscape, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-bg h1 {
    font-size: 3rem !important;
  }

  .container {
    max-width: 90%;
  }
}

/* General mobile/tablet improvements */
@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }

  .hero-bg-appointment {
    background-attachment: scroll;
    padding-top: 80px;
  }

  .footer-bg {
    background-attachment: scroll;
  }

  header {
    padding: 0.5rem 0;
  }

  .service-card:hover {
    transform: translateY(-4px);
  }

  /* Add padding-bottom to prevent chatbot overlap on mobile */
  section {
    padding-bottom: 100px !important;
  }

  /* Reduce excessive padding for better mobile UX */
  section:last-of-type {
    padding-bottom: 80px !important;
  }

  /* Ensure text doesn't overflow on mobile */
  h1, h2, h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Make service cards more readable on mobile */
  .service-card {
    margin-bottom: 16px;
  }
}

/* Desktop and large screens (1024px and above) */
@media (min-width: 1024px) {
  .service-card h3 {
    font-size: 1.125rem; /* 18px - full size on desktop */
    line-height: 1.4;
  }

  .service-card p {
    font-size: 0.875rem; /* 14px - full size description */
    line-height: 1.6;
  }
}

/* Extra large screens (1440px and above) */
@media (min-width: 1440px) {
  .service-card h3 {
    font-size: 1.25rem; /* 20px - larger on big screens */
  }

  .service-card p {
    font-size: 0.9375rem; /* 15px */
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover,
  .btn-outline-teal:hover,
  .service-card:hover {
    transform: none;
  }

  .btn-primary:active {
    transform: scale(0.98);
  }
}

/* ========================================
   Labor Page - Beautiful Effects
   ======================================== */

/* Labor benefit card icon animations */
.labor-feature-card .w-16 {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.labor-feature-card:hover .w-16 {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.labor-feature-card .w-16 svg {
  animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Pulse effect for benefit cards on hover */
.labor-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(94, 179, 179, 0.1) 0%, rgba(45, 212, 191, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.labor-feature-card:hover::before {
  opacity: 1;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Benefit card title animation on hover */
.labor-feature-card h3 {
  transition: all 0.3s ease;
  position: relative;
}

.labor-feature-card:hover h3 {
  color: #5eb3b3;
  transform: translateY(-3px);
}

/* Benefit card text subtle animation */
.labor-feature-card p {
  transition: all 0.3s ease;
}

.labor-feature-card:hover p {
  color: #374151;
  transform: translateX(2px);
}

/* Scroll reveal fade-in animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for benefit cards */
.labor-feature-card:nth-child(1) {
  transition-delay: 0.1s;
}

.labor-feature-card:nth-child(2) {
  transition-delay: 0.2s;
}

.labor-feature-card:nth-child(3) {
  transition-delay: 0.3s;
}

.labor-feature-card:nth-child(4) {
  transition-delay: 0.4s;
}

/* Icon glow effect on hover */
.labor-feature-card:hover .w-16 {
  box-shadow: 0 0 30px rgba(94, 179, 179, 0.6);
}

/* Add shimmer effect to cards */
.labor-feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.labor-feature-card:hover::after {
  opacity: 1;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Hero section title animation */
.hero-bg-labor h1 {
  animation: fade-in-scale 1s ease-out;
}

@keyframes fade-in-scale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Hero section subtitle animation */
.hero-bg-labor p {
  animation: fade-in-up-delay 1.2s ease-out;
}

@keyframes fade-in-up-delay {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  50% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Labor Team Cards - New Design */
.labor-team-card {
  transition: all 0.4s ease;
  max-width: 280px;
  margin: 0 auto;
}

.labor-team-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.labor-team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: all 0.4s ease;
}

.labor-team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(94, 179, 179, 0.4) 0%, rgba(20, 184, 166, 0.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.labor-team-name {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0 2rem;
  transform: translateY(20px);
  transition: all 0.4s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.2;
}

/* Responsive font sizes for mobile and tablet */
@media (max-width: 1024px) {
  .labor-team-name {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .labor-team-name {
    font-size: 1.25rem;
    letter-spacing: 1px;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .labor-team-name {
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 0 0.75rem;
  }
}

.labor-team-card:hover .labor-team-overlay {
  opacity: 1;
}

.labor-team-card:hover .labor-team-name {
  transform: translateY(0);
}

.labor-team-card:hover .labor-team-image {
  transform: scale(1.05);
}

.labor-team-card:hover .labor-team-image-wrapper {
  box-shadow: 0 20px 50px rgba(20, 184, 166, 0.4);
  transform: translateY(-10px);
}

.labor-team-info {
  margin-top: 1.5rem;
  text-align: center;
  padding: 0 1rem;
}

.labor-team-position {
  color: #14b8a6;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
}

/* Responsive typography for team position */
@media (max-width: 1024px) {
  .labor-team-position {
    font-size: 1rem; /* 16px on tablet */
  }
}

@media (max-width: 768px) {
  .labor-team-position {
    font-size: 0.9375rem; /* 15px on small tablet */
  }
}

@media (max-width: 480px) {
  .labor-team-position {
    font-size: 0.875rem; /* 14px on mobile */
  }
}

.labor-team-description {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Quick links footer 2-column layout */
footer .grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Contact Section with Background Image */
#contact {
  position: relative;
  background-image: url('../assets/img/praxis-02-scaled.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  z-index: 1;
}

#contact > * {
  position: relative;
  z-index: 2;
}

/* Contact Location Cards with Hover Effect */
.contact-card-wrapper {
  transition: all 0.4s ease;
}

.contact-card-wrapper:hover {
  transform: scale(1.05);
  z-index: 10;
}

.contact-card-wrapper:hover ~ .contact-card-wrapper {
  opacity: 0.6;
  transform: scale(0.95);
}

.contact-card-wrapper .location-card {
  transition: all 0.4s ease;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

/* Numbered Circles for Children's Dentistry Page */
.number-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(94, 179, 179, 0.3);
  color: rgba(94, 179, 179, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  box-shadow: 0 2px 6px rgba(94, 179, 179, 0.08);
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.number-circle:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(94, 179, 179, 0.15);
  border-color: rgba(94, 179, 179, 0.5);
  color: rgba(94, 179, 179, 0.75);
  background: rgba(94, 179, 179, 0.03);
}

.number-circle-active {
  background: white;
  border: 2.5px solid #5eb3b3;
  color: #4a9d9d;
  box-shadow: 0 4px 16px rgba(94, 179, 179, 0.35);
  transform: scale(1.15);
  font-weight: 700;
}

.number-circle-active::after {
  content: '';
  position: absolute;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(94, 179, 179, 0.5);
  border-radius: 50%;
  top: -8px;
  left: -8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

@media (max-width: 768px) {
  .number-circle {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .number-circle-active {
    border: 2px solid #5eb3b3;
  }

  .number-circle-active::after {
    width: 47px;
    height: 47px;
    top: -7px;
    left: -7px;
  }
}