/* ================================================
   DR. AKSHAYA'S DENTAL LOUNGE - GLOBAL STYLES
   Modern, Premium, Kids-Friendly Design
   ================================================ */

/* ================================================
   CSS VARIABLES - COLOR PALETTE
   ================================================ */
:root {
  /* User-Defined Palette */
  --cream-light: #FFF5E4;
  /* Top section */
  --beige: #F5E6D3;
  /* Middle section */
  --gold: #c89f4e;
  /* Primary - matches logo */
  --gold-dark: #a88339;
  /* Darker gold for hover */
  --dark: #2C2C2C;
  /* Bottom section */
  --teal-accent: #2DD4BF;
  /* Fresh pop of color */
  --teal-dark: #14b8a6;
  /* Darker teal for hover */

  /* Semantic Mapping */
  --primary: var(--teal-accent);
  --primary-hover: var(--teal-dark);
  --secondary: var(--beige);
  --accent: var(--gold);
  --accent-dark: var(--gold-dark);




  /* Backgrounds */
  --bg-light: var(--cream-light);
  --bg-lighter: #FFFFFF;
  --bg-warm: var(--beige);

  /* Text */
  --text-dark: var(--dark);
  --text-light: #4A4A4A;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  /* Typography */
  --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Poppins', sans-serif;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(44, 44, 44, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 44, 44, 0.12);
  --shadow-lg: 0 8px 32px rgba(44, 44, 44, 0.16);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   RESET & BASE STYLES
   ================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-light);
  /* Using the cream light background */
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  color: var(--text-dark);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  color: var(--text-dark);
}

h3 {
  font-size: clamp(1.35rem, 2.7vw, 1.8rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

/* ================================================
   CONTAINER & LAYOUT
   ================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-accent), var(--teal-dark));
  border-radius: 2px;
}

/* ================================================
   HEADER & NAVIGATION
   ================================================ */
.header {
  background: var(--bg-lighter);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-top: none;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      var(--gold) 0%,
      var(--teal-accent) 25%,
      var(--gold) 50%,
      var(--teal-accent) 75%,
      var(--gold) 100%);
  background-size: 200% 100%;
  animation: borderSlide 4s linear infinite;
}

@keyframes borderSlide {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 0%;
  }

  100% {
    background-position: 0% 0%;
  }
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(200, 159, 78, 0.1);
}

.mobile-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.directions-btn {
  display: none;
  background: none;
  padding: 0.5rem;
  color: var(--gold);
  transition: var(--transition);
  margin-left: auto;
  margin-right: 20px;
}

.directions-btn svg {
  display: block;
  stroke: var(--gold);
}

.directions-btn:hover {
  transform: scale(1.1);
}

.kids-zone-mobile-btn {
  display: none;
  background: none;
  font-size: 1.8rem;
  padding: 0.5rem;
  margin-right: 15px;
  /* Spacing */
  text-decoration: none;
  cursor: pointer;
  animation: floatButton 2s infinite ease-in-out;
}

@keyframes floatButton {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {

  .directions-btn,
  .kids-zone-mobile-btn {
    display: block;
  }
}

/* ================================================
   BUTTONS & CTAs
   ================================================ */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-accent), var(--teal-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-lighter);
  color: var(--text-dark);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-dark);
}

.btn-accent {
  background: linear-gradient(135deg, var(--teal-accent), var(--teal-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
  background: var(--bg-lighter);
  color: var(--teal-accent);
  border: 2px solid var(--teal-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-whatsapp:hover {
  background: var(--teal-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}



/* ================================================
   HERO SECTION (SC1)
   ================================================ */
.hero {
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--bg-lighter) 100%);
  padding: var(--spacing-xxl) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-text h1 {
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.hero-image {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: white;
  transition: all 0.5s ease;
}

.hero-image:hover {
  border-radius: 50%;
  transform: scale(1.02);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================================================
   GOOGLE RATING BANNER
   ================================================ */
.rating-banner {
  background: none !important;
  background-color: transparent !important;
  margin: 2rem 0;
  padding: 0;
}

.rating-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rating-banner .google-g {
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex-shrink: 0;
}

.rating-stars {
  display: flex;
  gap: 2px;
  font-size: 1.25rem;
}

.rating-stars span {
  color: #FFD700 !important;
  display: inline-block;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  animation: goldenPulse 1.5s ease-in-out infinite;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.rating-stars span:nth-child(1) {
  animation-delay: 0s;
}

.rating-stars span:nth-child(2) {
  animation-delay: 0.1s;
}

.rating-stars span:nth-child(3) {
  animation-delay: 0.2s;
}

.rating-stars span:nth-child(4) {
  animation-delay: 0.3s;
}

.rating-stars span:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes goldenPulse {

  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
  }

  50% {
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.5);
  }
}

.rating-text {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.rating-text strong {
  font-size: 1.1rem;
  color: #D4A012;
  font-weight: 700;
}

/* Mobile: Rating Banner */
@media (max-width: 768px) {
  .rating-banner {
    margin: 1.5rem 0;
  }

  .rating-content {
    gap: 0.5rem;
  }

  .rating-banner .google-g {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }

  .rating-stars {
    font-size: 1.1rem;
  }

  .rating-text {
    font-size: 0.85rem;
  }

  .rating-text strong {
    font-size: 1rem;
  }
}

/* ================================================
   TRUST SIGNALS (SC2)
   ================================================ */
.trust-section {
  background: var(--bg-lighter);
  padding: var(--spacing-lg) 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.trust-card {
  background: linear-gradient(135deg, var(--cream-light), white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.trust-icon {
  margin-bottom: var(--spacing-sm);
  color: var(--gold);
}

.trust-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--gold);
}

.trust-card h3 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.trust-card p {
  font-size: 1rem;
  color: var(--text-light);
}

/* ================================================
   SERVICES GRID (SC3)
   ================================================ */
.services-section {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.service-card {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.service-card:nth-child(1) {
  border-top-color: var(--gold);
}

.service-card:nth-child(2) {
  border-top-color: var(--dark);
}

.service-card:nth-child(3) {
  border-top-color: var(--gold);
}

.service-card:nth-child(4) {
  border-top-color: var(--dark);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  margin-bottom: var(--spacing-sm);
  color: var(--gold);
}

.service-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--gold);
}

.service-card h3 {
  margin-bottom: var(--spacing-sm);
}

.service-card p {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  gap: 0.75rem;
}

/* ================================================
   DOCTOR PROFILE (SC4)
   ================================================ */
.doctor-section {
  background: var(--bg-lighter);
  padding: var(--spacing-xxl) 0;
}

.doctor-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: flex-start;
}

.doctor-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-info h2 {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
  line-height: 1.2;
}

.doctor-credentials {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.doctor-bio {
  margin-bottom: var(--spacing-md);
}

.expertise-list {
  list-style: none;
  margin-bottom: var(--spacing-md);
}

.expertise-list li {
  padding: var(--spacing-xs) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.expertise-list li strong {
  white-space: nowrap;
}

.expertise-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1.5;
  /* Match text line-height */
  flex-shrink: 0;
}

/* ================================================
   TESTIMONIALS / REVIEWS (SC5)
   ================================================ */
.testimonials-section {
  background: linear-gradient(135deg, var(--beige), var(--cream-light));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.testimonial-card {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-accent), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.author-info h4 {
  margin: 0;
  font-size: 1rem;
}

.author-info p {
  font-size: 0.875rem;
  margin: 0;
}

.stars {
  color: var(--gold);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
  letter-spacing: 2px;
}

/* ================================================
   GOOGLE REVIEWS EMBED
   ================================================ */
.google-reviews {
  margin-top: var(--spacing-lg);
}

.google-reviews iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ================================================
   CTA SECTION (SC6)
   ================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--teal-accent), var(--teal-dark));
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.cta-section p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-md);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-section {
  background: var(--bg-lighter);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--cream-light);
  border-radius: var(--radius-md);
}

.contact-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.contact-item h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.125rem;
}

.contact-item p {
  font-size: 1rem;
  margin: 0;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--dark);
  color: white;
  padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.footer-section h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

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

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: var(--spacing-xs);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  color: var(--text-dark);
  transform: translateY(-4px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ================================================
   STICKY CTA BAR (Mobile)
   ================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-sm);
  display: none;
  z-index: 999;
}

/* Always show on mobile */
@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
}

.sticky-cta-content {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 1200px;
  margin: 0 auto;
}

.sticky-cta-content .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
  }

  .mobile-toggle {
    display: block;
    z-index: 1002;
    position: relative;
  }

  /* Mobile Menu Backdrop */
  /* Mobile Menu Backdrop - Removed for full screen */
  .nav-menu::before {
    display: none;
  }

  .nav-menu.active::before {
    display: none;
  }

  /* Full-Screen Mobile Menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    /* Full Width */
    max-width: none;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 0;
    box-shadow: none;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1001;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 80px;
  }

  .nav-menu.active {
    right: 0;
  }

  /* Menu Items Styling */
  .nav-menu>li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-menu>li:last-child {
    border-bottom: none;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 0.9rem 1.5rem;
    /* Compact padding */
    font-size: 1rem;
    /* Smaller font */
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    border-radius: 0;
    transition: all 0.3s ease;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 2rem;
  }

  /* Book Appointment Button in Mobile Menu */
  .nav-menu .btn-primary {
    margin: 1.5rem 2rem;
    padding: 1rem 2rem;
    text-align: center;
    border-radius: var(--radius-md);
  }

  .nav-menu .btn-primary:hover {
    padding-left: 2rem;
  }

  .hero-content,
  .doctor-content,
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-md);
  }

  .hero-image {
    order: -1;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    border-radius: 50% !important;
    overflow: hidden;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-cta {
    justify-content: center;
    flex-direction: column;
  }

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

  .section,
  .hero,
  .doctor-section,
  .cta-section,
  .footer {
    padding: var(--spacing-lg) 0;
  }

  .services-grid,
  .testimonials-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ================================================
   REVIEW WIDGET (Below Hero)
   ================================================ */
.review-widget {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(200, 159, 78, 0.3);
  margin-top: var(--spacing-sm);
}

.review-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-stars {
  color: #FFB800;
  font-size: 1rem;
  letter-spacing: 1px;
  display: flex;
  gap: 1px;
  animation: starGlow 2s ease-in-out infinite;
}

.review-stars span {
  display: inline-block;
  animation: starPulse 1.5s ease-in-out infinite;
}

.review-stars span:nth-child(1) {
  animation-delay: 0s;
}

.review-stars span:nth-child(2) {
  animation-delay: 0.1s;
}

.review-stars span:nth-child(3) {
  animation-delay: 0.2s;
}

.review-stars span:nth-child(4) {
  animation-delay: 0.3s;
}

.review-stars span:nth-child(5) {
  animation-delay: 0.4s;
}

.review-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.review-score {
  font-weight: 800;
  color: var(--gold);
}

.review-widget .google-g {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
}

@keyframes starGlow {

  0%,
  100% {
    text-shadow: 0 0 5px rgba(255, 184, 0, 0.3);
  }

  50% {
    text-shadow: 0 0 15px rgba(255, 184, 0, 0.8), 0 0 25px rgba(255, 184, 0, 0.4);
  }
}

@keyframes starPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }

  50% {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  100% {
    transform: translateY(0px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }
}

/* Dropdown Menu Styles */
/* ================================================= */
/* DROPDOWN MENU - CLEAN REWRITE */
/* ================================================= */

.dropdown {
  position: relative;
  /* Align items in navbar */
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.7em;
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Base Dropdown Menu Styles */
.dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
  /* Default hidden state */
  display: none;
}

/* ================================================= */
/* DESKTOP STYLES (min-width: 769px) */
/* ================================================= */
@media (min-width: 769px) {
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    /* Reduced width */
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);

    /* Animation setup */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Show when active */
  .dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .dropdown-menu li a {
    display: block;
    padding: 0.4rem 1.25rem;
    /* Reduced padding */
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    /* Smaller font */
    text-align: right;
    /* Right aligned */
    transition: all 0.2s;
  }

  .dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    padding-right: 1.5rem;
    /* Slight shift on hover */
  }
}

/* ================================================= */
/* MOBILE STYLES (max-width: 768px) */
/* ================================================= */
@media (max-width: 768px) {
  .dropdown {
    display: block;
    /* Full width block on mobile */
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    /* Match compact nav-link */
  }

  .dropdown-menu {
    position: static;
    background: var(--bg-light);
    box-shadow: none;
    width: 100%;

    /* Animation overrides base display:none */
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
  }

  .dropdown-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    /* Reduced padding */
    color: var(--text-light);
    font-size: 0.95rem;
    /* Reduced font size */
    position: relative;
    font-weight: 500;
  }

  .dropdown-menu li a::before {
    content: '→';
    position: absolute;
    left: 1rem;
    /* Adjust arrow position */
    color: var(--primary);
    font-weight: bold;
  }

  .dropdown-menu li a:hover {
    background: rgba(45, 212, 191, 0.08);
    color: var(--primary);
    padding-left: 3.25rem;
  }
}

/* FREE Scan Badge */
.free-scan-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal-accent), var(--teal-dark));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(45, 212, 191, 0.3);
  vertical-align: middle;
}

/* Submenu Headers for Categories */
.dropdown-menu .submenu-header {
  font-weight: 700;
  font-size: 0.8rem;
  /* Smaller */
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1.5rem 0.25rem 1.5rem;
  /* Reduced padding */
  margin-top: 0.5rem;
  border-top: 1px solid rgba(200, 159, 78, 0.2);
  text-align: left;
  /* Left aligned as requested */
}

.dropdown-menu .submenu-header:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0.5rem;
}

.dropdown-menu .submenu-header+li a {
  padding-top: 0.25rem;
}

/* Name Highlight */
.name-highlight {
  background: rgba(200, 159, 78, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* ================================================
   SUBPAGE HERO STYLES
   ================================================ */
.subpage-hero .hero-image {
  max-height: 400px;
  /* Constrain height on subpages */
  width: 100%;
  margin: 0 auto;
  /* Center if it becomes smaller than container */
}

.subpage-hero .hero-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

@media (min-width: 769px) {
  .subpage-hero .hero-image {
    max-width: 80%;
    /* Don't let it get too wide vs valid height */
  }
}

/* ================================================
   OUR DOCTORS SECTION
   ================================================ */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.doctor-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.doctor-card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.doctor-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.doctor-card-info {
  padding: var(--spacing-md);
}

.doctor-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.doctor-card .specialty {
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doctor-card .bio {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* End of file */

/* ================================================
   KIDS AREA (GALLERY)
   ================================================ */
.kids-area-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 9999;
  display: none;
  /* Hidden by default */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.kids-area-overlay.active {
  display: flex;
}

#kids-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  /* Make slightly darker so text/3D pops */
  z-index: 1;
}

#three-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* Above video */
  pointer-events: none;
  /* Let clicks pass through scene if needed */
}

.kids-ui-controls {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 1rem;
}

.btn-kids {
  padding: 1rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: white;
  color: var(--teal-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-kids:hover {
  transform: scale(1.1);
  background: var(--teal-accent);
  color: white;
}

.btn-exit {
  background: #ff4757;
  color: white;
}

.btn-exit:hover {
  background: #ff6b81;
}

.kids-overlay-content {
  position: absolute;
  top: 5vmin;
  /* Use vmin for better responsive scaling */
  text-align: center;
  z-index: 5;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  /* Stronger shadow */
  pointer-events: none;
  width: 100%;
}

.kids-overlay-content h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  /* Responsive font size */
  color: #FFD93D;
  -webkit-text-stroke: 1px #ff6b6b;
  /* Cartoon effect */
}

/* --- Quiz UI --- */
.kids-quiz-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 80%;
  max-width: 500px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.quiz-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  border: 5px solid #FF6B6B;
}

.quiz-box h3 {
  font-size: 2rem;
  color: #ff4757;
  margin-bottom: 1.5rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-quiz {
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  background: #00cec9;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-quiz:hover {
  transform: scale(1.05);
  background: #00b894;
}

/* --- Certificate UI --- */
.certificate-box {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  border: 10px solid #FFD93D;
  box-shadow: 0 0 50px rgba(255, 217, 61, 0.8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.certificate-box::before {
  content: '★';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 2rem;
  color: #FFD93D;
}

.certificate-box::after {
  content: '★';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 2rem;
  color: #FFD93D;
}

#quiz-bar {
  transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Score Stack UI */
#score-stack {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.score-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
}

.score-correct {
  background: #2ed573;
  /* Green */
}

.score-wrong {
  background: #ff4757;
  /* Red */
}

/* Hide old progress bar containers but keep elements if JS needs them */
#quiz-progress {
  opacity: 0;
  pointer-events: none;
}

/* Ensure Start Button is hidden until intro finishes */
#startQuizBtn {
  display: none;
}

#startQuizBtn.visible {
  display: block;
  animation: popIn 0.5s ease;
}

/* ===================================
   POLAROID WIND GALLERY
   =================================== */
.gallery-polaroid-section {
  padding: 4rem 0 6rem;
  background-color: var(--bg-warm);
  /* Cork-board feel */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a012' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  overflow: hidden;
  position: relative;
}

.btn-wind {
  background: white;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-wind:hover,
.btn-wind.playing {
  background: var(--gold);
  color: white;
  transform: scale(1.05);
}

.polaroid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  perspective: 1000px;
}

.polaroid-item {
  position: relative;
  width: 280px;
  flex-shrink: 0;
  z-index: 1;
  transform-origin: top center;
  /* Wind Animation applied here */
  animation: sway 3s ease-in-out infinite alternate;
}

.polaroid-inner {
  background: white;
  padding: 15px 15px 50px 15px;
  /* Bottom padding for caption */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
  /* Default slight tilt */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* The Pin */
.polaroid-item::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 30% 30%, #ff5f5f, #c00);
  border-radius: 50%;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.polaroid-item:nth-child(even)::after {
  background: radial-gradient(circle at 30% 30%, #5fd4ff, #0088cc);
}

.polaroid-inner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: sepia(0.1) contrast(1.1);
  /* Slight vintage look */
}

.caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
  /* Kid friendly font */
  color: #555;
  font-size: 1.2rem;
}

/* Random Rotation & Animation Delays for organic feel */
.polaroid-item:nth-child(2n) .polaroid-inner {
  transform: rotate(3deg);
}

.polaroid-item:nth-child(3n) .polaroid-inner {
  transform: rotate(-4deg);
}

.polaroid-item:nth-child(5n) .polaroid-inner {
  transform: rotate(2deg);
}

.polaroid-item:nth-child(1) {
  animation-duration: 3.2s;
  animation-delay: 0s;
}

.polaroid-item:nth-child(2) {
  animation-duration: 4.1s;
  animation-delay: 0.5s;
}

.polaroid-item:nth-child(3) {
  animation-duration: 2.8s;
  animation-delay: 1.2s;
}

.polaroid-item:nth-child(4) {
  animation-duration: 3.5s;
  animation-delay: 0.2s;
}

.polaroid-item:nth-child(5) {
  animation-duration: 4.5s;
  animation-delay: 0.8s;
}

.polaroid-item:nth-child(6) {
  animation-duration: 3.9s;
  animation-delay: 1.5s;
}

.polaroid-item:nth-child(7) {
  animation-duration: 3.1s;
  animation-delay: 0.4s;
}

.polaroid-item:nth-child(8) {
  animation-duration: 4.2s;
  animation-delay: 1.0s;
}

/* The Sway Animation */
@keyframes sway {
  0% {
    transform: rotate(1deg);
  }

  100% {
    transform: rotate(-1deg);
  }
}

/* Strong Sway (On Click) */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.polaroid-item.spinning {
  animation: spin 0.8s ease-in-out;
  z-index: 100;
}

/* Hover Interaction */
.polaroid-item:hover {
  z-index: 10;
  animation-play-state: paused;
}

.polaroid-item:hover .polaroid-inner {
  transform: scale(1.1) rotate(0deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .polaroid-item {
    width: 140px;
    /* Smaller on mobile */
  }

  .polaroid-inner img {
    height: 120px;
  }

  .caption {
    font-size: 1rem;
  }
}