:root {
  --bg-color: #000;
  --text-color: #fff;
  --text-muted-color: #6b7280; /* gray-500, improved contrast */
  --header-bg: rgba(0, 0, 0, 0.7);
  --card-bg: rgba(255, 255, 255, 0.03);
  --accent-pink: #E1306C;
  --card-border: rgba(251, 191, 36, 0.1);
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-rich: #f59e0b;
  /* Unified button color system */
  --brand-amber: #f59e0b; /* primary */
  --brand-amber-hover: #fbbf24; /* hover */
  --brand-amber-contrast: #0f172a; /* text on amber */
  --cta-secondary-border: #111827;
  --cta-secondary-hover-bg: #111827;
  --cta-secondary-hover-text: #ffffff;
  /* Component-level theming */
  --overlay-start: rgba(0,0,0,0.4);
  --overlay-end: rgba(0,0,0,0.75);
  --panel-bg: linear-gradient(180deg, rgba(0,0,0,0.48), rgba(0,0,0,0.36));
  --panel-border: rgba(255,255,255,0.06);
  --modal-bg: rgba(255,255,255,0.02);
  --modal-border: rgba(255,255,255,0.06);
  --mobile-menu-bg: #111111;
  --mobile-menu-border: rgba(255,255,255,0.08);
  --hero-text-color: rgba(255,255,255,0.92);
  --modal-overlay: rgba(0,0,0,0.45);
  --mobile-menu-hover-bg: rgba(255,255,255,0.03);
}

/* Box sizing and overflow safety for mobile
   - prevent accidental page-wide horizontal overflow
   - allow intended horizontal scrollers (services/testimonials) below to remain scrollable */
*, *::before, *::after { box-sizing: border-box; }

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

/* Ensure media/imagery do not grow past their containers */
img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Custom Font Classes */
.font-display {
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
}
.font-playfair {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
.font-greatvibes {
  font-family: 'Great Vibes', cursive;
}
.font-body {
  font-family: 'Roboto', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Subtle linen background pattern */
  background-color: #faf8f5; /* matches your current warm off-white */
  background-image: 
      radial-gradient(circle at 25% 25%, rgba(180, 160, 140, 0.04) 0%, transparent 50%),
      linear-gradient(45deg, transparent 48%, rgba(180, 160, 140, 0.015) 49%, rgba(180, 160, 140, 0.015) 51%, transparent 52%),
      linear-gradient(-45deg, transparent 48%, rgba(180, 160, 140, 0.015) 49%, rgba(180, 160, 140, 0.015) 51%, transparent 52%);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed; /* makes it feel premium when scrolling */
}

/* Standardized Section Padding */
section {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Global container to constrain layout width */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  section {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (min-width: 1024px) {
  section {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu layout fix */
/* Overlay for when menu is open */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0; 
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 40;
}

body.menu-open::after {
  opacity: 1;
  visibility: visible;
}

#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 300px;
  background-color: #f9fafb; /* Light mode: gray-50 */
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1);
  z-index: 60; /* sit above header */
  display: flex;
  flex-direction: column;
  padding-top: 0; /* Remove top padding to allow close button to be at the very top */
}


#mobile-menu a {
  display: block;
  width: 100%;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
  color: #0f172a; /* slate-900 for consistency */
  transition: all 0.3s ease;
}


#mobile-menu a:hover {
  background: linear-gradient(90deg, rgba(245,158,11,0.06), rgba(251,191,36,0.04));
  color: #111827;
}


body.menu-open #mobile-menu {
  transform: translateX(0);
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Close button inside mobile menu */
#mobile-menu button#mobile-menu-close-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  padding: 0.75rem;
  margin-left: auto;
  margin-right: 0.5rem;
  cursor: pointer;
  color: var(--amber-500);
}

/* Make menu links use CTA accent color for hover focus and match CTAs */
#mobile-menu a:focus,
#mobile-menu a:hover {
  outline: none;
  box-shadow: none;
  color: #92400e; /* darker amber */
}

/* Header visual consistency */
header.fixed {
  z-index: 50; /* ensure header sits under the mobile menu */
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  backdrop-filter: blur(6px);
}

/* Desktop nav color consistency */
nav#desktop-menu a { color: #0f172a; }
nav#desktop-menu a:hover { color: #92400e; }

/* Make hamburger easier to tap */
#menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
}

/* Hide menu button on large screens (md breakpoint = 768px) */
@media (min-width: 768px) {
  #menu-btn {
    display: none !important;
  }
}

/* Ensure icons inside the menu button are visible and animate slightly */
#menu-btn svg { transition: transform 160ms ease; }
#menu-btn:active svg { transform: scale(.95); }

/* Header visual consistency */
header.fixed {
  z-index: 50; /* ensure header sits under the mobile menu */
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  backdrop-filter: blur(6px);
}

/* Mobile-specific header/menu visibility improvements */
@media (max-width: 767px) {
  header.fixed {
    background: #ffffff; /* solid for legibility */
    box-shadow: 0 10px 30px rgba(2,6,23,0.12);
    border-bottom: 1px solid rgba(15,23,42,0.06);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    z-index: 70; /* sit above most elements */
  }

  /* Emphasize the menu button on mobile */
  #menu-btn {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #0b1220; /* dark icon color for contrast */
    padding: 0.55rem;
    margin-left: 0.25rem;
  }

  /* Make hamburger icon and close icon more visible */
  #menu-btn svg, #close-icon, #hamburger-icon {
    color: #0b1220;
    stroke: currentColor;
  }

  /* Mobile menu — make it clearly elevated and readable */
  #mobile-menu {
    background-color: #0b1220; /* deep slate background for contrast */
    color: #e6eef6;
    padding-top: 1rem;
  }

  #mobile-menu a {
    color: #e6eef6;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 1.25rem 1rem;
    font-weight: 600;
    font-size: 1.05rem;
  }

  #mobile-menu a:hover {
    background: rgba(255,255,255,0.03);
    color: #fff;
  }

  #mobile-menu button#mobile-menu-close-btn {
    color: #fbbf24; /* amber close button for visibility */
  }

  /* Ensure overlay is darker when menu is open on mobile */
  body.menu-open::after {
    background: rgba(0,0,0,0.5);
    opacity: 1;
  }
}

/* Desktop nav color consistency */
nav#desktop-menu a { color: #0f172a; }
nav#desktop-menu a:hover { color: #92400e; }

/* Scrolled state for the header */
header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #0f172a; /* slate-900 */
}

header.scrolled nav#desktop-menu a {
  color: #0f172a;
}


@keyframes float {
  0%, 100% { 
    transform: translateY(0);
    opacity: 1;
  } 
  50% { 
    transform: translateY(-8px);
    opacity: 0.95;
  }
  0%, 100% { transform: translateY(0); } 
  50% { transform: translateY(-5px); }
}

.animate-float {
  animation: float 3s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  transform-origin: center;
  animation: float 3s ease-in-out infinite;
}

.delay-150 {
  animation-delay: 0.15s;
}

.animate-fadeInDown {
  animation: fadeInDown 0.6s ease-out forwards;
}

/* Hero entrance: subtle fade + scale */
@keyframes heroEnter {
  0% { opacity: 0; transform: translateY(8px) scale(.98); }
  60% { opacity: 1; transform: translateY(0) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
  .hero-panel { animation: heroEnter 700ms cubic-bezier(.2,.9,.2,1) both; }

/* Hero section explicit centering */
#hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
}

#hero-section .relative.z-20 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

#hero-heading,
#hero-subtext {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Stronger overlay for legibility */
.hero-overlay {
  background: linear-gradient(180deg, var(--overlay-start) 0%, var(--overlay-end) 100%);
}

/* Slightly stronger contrast for panel on top of heavy video */
.hero-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
}

/* Typographic adjustments */
.hero-panel h1 { letter-spacing: -0.5px; }
.hero-panel p { color: var(--hero-text-color); }

/* Hero specific tweaks: make heading pop and subtitle warm */
section[aria-labelledby="hero-heading"] h1 {
  color: #ffffff; /* strong white for hero */
  text-shadow: 0 8px 30px rgba(0,0,0,0.6);
  letter-spacing: -0.6px;
}

section[aria-labelledby="hero-heading"] p {
  color: rgba(255,235,204,0.95); /* warm, complimentary tone */
  max-width: 52ch;
}

/* Primary CTA stronger and more visible on video */
.cta-button-primary {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  color: #0f172a; /* slate-900 */
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(245,158,11,0.22);
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 180ms ease;
  border: none;
}
.cta-button-primary:hover,
.cta-button-primary:focus {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 48px rgba(245,158,11,0.30);
  outline: none;
}
.cta-button-primary:focus-visible {
  box-shadow: 0 0 0 6px rgba(245,158,11,0.12);
}

/* Secondary CTA more visible as a ghost-on-video */
.cta-button-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.8rem 1.3rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  transition: background 180ms ease, transform 180ms ease, color 180ms ease;
}
.cta-button-secondary:hover,
.cta-button-secondary:focus {
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-3px);
}

/* Services section heading and card titles */
#services .section-title h2,
.card-title,
.back-title {
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Card front overlay ensure text contrast */
.card-overlay { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%); }

/* Footer: make it distinct from page background and readable */
section.bg-gray-100,
footer.bg-gray-100 {
  background: linear-gradient(180deg, #0b1220 0%, #0f1724 100%);
  color: #e6eef6;
}
section.bg-gray-100 a,
footer.bg-gray-100 a { color: #ffd7a8; } /* warm link color */
section.bg-gray-100 .bg-pink-500 { background: #fb7185; color: #0b1220; }
section.bg-gray-100 .text-gray-300 { color: #cbd5e1; }


@media (min-width: 1024px) {
  .hero-panel h1 { font-size: 3.8rem; }
}

/* Paragraph fades in from below */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fadeInUp {
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
}

/* Buttons fade in with delay */
.animate-fadeInDelay1 {
  animation: fadeInUp 1s ease-out 0.8s forwards;
  opacity: 0; /* Start hidden */
}

.animate-fadeInDelay2 {
  animation: fadeInUp 1s ease-out 1.2s forwards;
  opacity: 0; /* Start hidden */
}

.social-icon {
  color: var(--text-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.instagram-icon:hover {
  color: #E1306C;
}

.facebook-icon:hover {
  color: #1877F2;
}

.tiktok-icon:hover {
  color: #00f2ea; /* TikTok's cyan */
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-bounce { animation: bounce 2s infinite; }

/* Animation Delays */
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}

/* Buttons: unified across site */
.cta-button-primary {
  background: linear-gradient(90deg, var(--brand-amber) 0%, var(--brand-amber-hover) 100%);
  color: var(--brand-amber-contrast);
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  box-shadow: 0 12px 30px rgba(245,158,11,0.22);
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 180ms ease, background 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta-button-primary:hover,
.cta-button-primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(245,158,11,0.30);
  outline: none;
}
.cta-button-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.cta-button-secondary {
  /* New simplified style for secondary buttons (e.g., 'Back to Blog') */
  color: #b45309; /* amber-700 */
  font-weight: 600;
  text-decoration: none;
}
.cta-button-secondary:hover {
  text-decoration: underline;
}

/* Tertiary CTA: subtle outline for less prominent actions */
.cta-button-tertiary {
  background: transparent;
  color: #374151; /* gray-700 */
  border: 1px solid rgba(55,65,81,0.35);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 200ms ease, background 180ms ease, color 180ms ease;
}

/* Primary dark button used across sections */
.btn-dark,
.cta-button-primary {
  background: #000; /* primary dark */
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(2,6,23,0.45);
}
.btn-dark:hover,
.cta-button-primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 20px 50px rgba(2,6,23,0.55);
}
.btn-dark:active,
.cta-button-secondary:hover {
  background: rgba(0,0,0,0.06);
  color: #ffffff;
}

/* Utility for pill buttons used in footer quick links */
.btn-footer { display:inline-flex; align-items:center; justify-content:center; padding:0.6rem 1rem; border-radius:9999px; }

/* Small button variant for compact CTAs */
.btn-sm,
.btn-sm.cta-button-primary {
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  letter-spacing: 0.3px !important;
}

.btn-sm:hover,
.btn-sm.cta-button-primary:hover {
  transform: translateY(-2px) scale(1.01) !important;
}

/* Enforce black (dark) primary buttons and white text across the site
   This overrides older gradient/inline styles so primary CTAs appear consistently. */
.btn,
.btn-dark,
.cta-button-primary,
.cta-btn {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn::before,
.btn-dark::before,
.cta-button-primary::before,
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.btn:hover::before,
.btn-dark:hover::before,
.cta-button-primary:hover::before,
.cta-btn:hover::before {
  left: 100%;
}

.btn:hover,
.btn-dark:hover,
.cta-button-primary:hover,
.cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%) !important;
}

.btn:active,
.btn-dark:active,
.cta-button-primary:active,
.cta-btn:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
}

.service-card .cta-button-secondary:hover {
  background: #f3f4f6 !important; /* gray-100 */
  color: #111827 !important; /* gray-900 */
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
  border-color: #9ca3af !important; /* gray-400 */
}

.service-card .cta-button-primary {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.service-card .cta-button-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

/* More services button used in the hero/sections */
.more-services-button {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  position: relative;
  overflow: hidden;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.more-services-button:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%) !important;
}

/* Ensure footer quick links (tertiary) keep a subtle look but are readable */
.cta-button-tertiary {
  color: #f3f4f6 !important; /* make tertiary links readable on dark footer */
  border-color: rgba(255,255,255,0.06) !important;
}

/* Apply base button layout to common button classes for consistency */
.btn,
.cta-button-primary,
.cta-btn,
.btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

/* Footer pill style (accent) */
.btn-footer {
  background: #fb7185; /* pink */
  color: #ffffff;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  font-weight: 700;
}
.btn-footer:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }

/* HERO PANEL */
.hero-panel {
  display: block;
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0 12px 50px rgba(0,0,0,0.6);
  border: 1px solid var(--panel-border);
}

/* Improve CTA styles with subtle elevation and hover */
.cta-button-primary:hover,
.cta-button-primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}

/* small micro-animations for icons and links */
.micro-tilt {
  transition: transform 0.28s ease;
}
.micro-tilt:hover { transform: translateY(-4px) rotate(-0.5deg); }

/* Modal styles */
.modal.hidden { display: none; }
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  z-index: 70;
  background: rgba(17, 24, 39, 0.75); /* Semi-transparent dark background */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Replaced var(--modal-border) */
  padding: 1.5rem;
  border-radius: 0.75rem;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  text-align: center;  
}
.modal-close {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  background: transparent;
  border: none;
  color: #fff; /* Replaced var(--text-color) */
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #25D366; /* WhatsApp green */
  border: 2px solid #25D366;
  padding: 1rem;
  border-radius: 12px;
  font-size: 2.25rem; /* Increased icon size */
  transition: all 200ms ease;
  flex-shrink: 0;
}

.whatsapp-button:hover {
  background-color: #25D366;
  color: white;
  transform: translateY(-2px);
}

/* For screen-reader only text */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Specific override for the secondary button inside the booking modal */
.modal .cta-button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
}

.modal .cta-button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Use prefer-reduced-motion to reduce animations if user prefers */
@media (prefers-reduced-motion: reduce) {
  .hero-panel, .animate-fadeInDown, .animate-fadeInDelay1, .animate-fadeInDelay2 { animation: none !important; }
}

/* Smooth scroll support for browsers that support CSS smooth scrolling */
html { scroll-behavior: smooth; }

/* Focus styles for accessibility */
.cta-button-primary:focus-visible,
.cta-button-secondary:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(255,255,255,0.3) !important;
}

.btn-dark:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(255,255,255,0.3) !important;
}

/* Smooth transitions and animations for all buttons */
.btn,
.btn-dark,
.cta-button-primary,
.cta-btn,
.btn-ghost,
.more-services-button {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Scroll arrow tweak */
a[aria-label="Scroll to services"] svg {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

/* Responsive hero tweaks */
@media (max-width: 768px) {
  .hero-panel {
    padding: 1.25rem;
    margin-top: -2rem;
  }

  .hero-panel h1 {
    font-size: 1.75rem;
  }

  .hero-panel p {
    font-size: 1rem;
  }
}

/* Full page services section */
#services {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Animated background pattern */
/* Animated background pattern used by services and other sections */
#services::before,
.services-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.services-pattern {
  position: relative;
  /* overflow: hidden; */ /* This was causing the container to be cut. Removing it. */
  border-radius: 0; /* Remove border-radius */
}

.services-container {
  width: 100%;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1.5rem;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%); /* gray-800 to gray-600 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  animation: fadeInDown 0.8s ease-out;
}

/* Ensure subtitles are visible on white backgrounds */
#about .section-subtitle,
#testimonials .section-subtitle {
  color: #6b7280; /* gray-500 */
}

.section-subtitle {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.scroll-hint {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: pulse 2s infinite;
}
/* removed legacy .dark styles */

/* Horizontal scroll container */
.services-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2rem 0 2rem 2rem;
  margin-bottom: 3rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Add scroll snapping for a smoother mobile experience */
  scroll-snap-type: x mandatory;
  /* Hide scrollbar for Firefox */
  scrollbar-width: none;
}

.services-scroll-wrapper {
  border-radius: 1.5rem; /* 24px */
}

.services-scroll-wrapper::-webkit-scrollbar {
  /* Hide scrollbar for Chrome, Safari and Opera */
  display: none;
}

.services-row {
  display: flex;
  gap: 2rem;
  padding-right: 2rem;
}

/* Flip card container */
.flip-card {
  min-width: 400px;
  height: 500px;
  perspective: 1000px;
  cursor: pointer;
  animation: slideInFromRight 0.8s ease-out forwards;
  opacity: 0;
  /* Align each card to the start of the container when snapping */
  scroll-snap-align: start;
}

.flip-card:nth-child(1) {
  animation-delay: 0.1s;
}

.flip-card:nth-child(2) {
  animation-delay: 0.2s;
}

.flip-card:nth-child(3) {
  animation-delay: 0.3s;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Front of card */
.flip-card-front {
  background: #fff;
  display: flex;
  flex-direction: column;
}

.card-image-container {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flip-card:hover .card-image {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  padding: 2rem;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card-price {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.flip-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db; /* gray-300 */
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.flip-icon {
  width: 24px;
  height: 24px;
  animation: rotate 2s linear infinite;
}

/* Back of card */
.flip-card-back {
  background: #f9fafb; /* gray-50 */
  transform: rotateY(180deg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e5e7eb; /* gray-200 */
}
/* removed legacy .dark styles */

.back-content {
  flex: 1;
  overflow-y: auto;
}

.back-content::-webkit-scrollbar {
  width: 4px;
}

.back-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.back-content::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

.back-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.back-title {
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.back-description {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.back-features-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.back-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.back-features-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}
/* removed legacy .dark styles */

.back-features-list li::before {
  content: '✓'; 
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.back-cta {
  margin-top: 1rem;
}

.back-cta .btn {
  display: block;
  width: 100%;
  padding: 0.875rem;
  background: #1f2937; /* gray-800 */
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.back-cta .btn:hover {
  transform: translateY(-2px);
  background: #374151; /* gray-700 */
}
/* removed legacy .dark styles */
.flip-back-indicator {
  display: block;
  text-align: center;
  color: var(--text-muted-color);
  font-size: 0.75rem;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* More Services Button */
.more-services-section {
  text-align: center;
  padding: 0 1.5rem 2rem;
}

.more-services-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: #1f2937; /* gray-800 */
  border: 2px solid transparent;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 3rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}
/* removed legacy .dark styles */

.more-services-button:hover {
  background: #374151; /* gray-700 */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}
/* removed legacy .dark styles */

.arrow-icon {
  transition: transform 0.3s ease;
}

.more-services-button:hover .arrow-icon {
  transform: translateX(5px);
}

/* Service Pagination */
.service-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem; /* 12px */
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 10;
}

.pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(0.8);
}
/* removed legacy .dark styles */

.pagination-dot:hover {
  background-color: rgba(0, 0, 0, 0.4);
}
/* removed legacy .dark styles */

.pagination-dot.active {
  background-color: #000;
  transform: scale(1.2);
}
/* removed legacy .dark styles */

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .flip-card {
    min-width: 320px;
    height: 480px;
  }

  .services-scroll-wrapper {
    padding: 2rem 0 2rem 1rem;
  }

  .services-row {
    gap: 1.5rem;
    padding-right: 1rem;
  }

  .flip-card-back {
    padding: 1.5rem;
  }

  .back-title {
    font-size: 1.5rem;
  }
}

/* Service Details Modal */
.service-modal.hidden {
  display: none;
}

.service-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100; /* High z-index to be on top */
  overflow-y: auto;
  padding: 1rem;
}

.service-modal-overlay {
  position: fixed; /* Use fixed to cover viewport */
  inset: 0;
  background: rgba(15, 23, 42, 0.8); /* slate-900 with opacity */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.service-modal-panel {
  position: relative;
  z-index: 110;
  background: #ffffff; /* white background */
  color: #1f2937; /* gray-800 text */
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
}

.service-modal-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  background: #f3f4f6; /* gray-100 */
  border: none;
  color: #4b5563; /* gray-600 */
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  border-radius: 9999px;
  width: 2.5rem;
  height: 2.5rem;
}
/* Testimonials Section */
.testimonial-carousel-wrapper {
  /* Default: allow horizontal scrolling for touch devices */
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scroll-snap-type: x mandatory; /* Enable scroll snapping */
  border-radius: 1.5rem; /* 24px */
}

.testimonial-carousel-wrapper::-webkit-scrollbar {
  /* Hide scrollbar for Chrome, Safari and Opera */
  display: none;
}

.testimonial-carousel-wrapper {
  /* Hide scrollbar for Firefox */
  scrollbar-width: none;
}

.testimonial-carousel-track {
  display: flex;  
}

@media (min-width: 1024px) {
  /* On larger screens we run the autoplay CSS animation and hide native scroll; hover reveals scroll and pauses animation */
  .testimonial-carousel-wrapper {
    overflow: hidden;
  }

  .testimonial-carousel-wrapper:hover .testimonial-carousel-track {
    animation-play-state: paused;
  }

  .testimonial-carousel-wrapper:hover {
    overflow-x: scroll;
  }
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 2rem;
  margin: 0 1rem;  
  background: #FDE7EA; /* Light baby pink */
  border: 1px solid rgba(225, 48, 108, 0.1); /* Soft pink border */
  border-radius: 1rem;
  text-align: center;
  scroll-snap-align: center; /* Snap cards to the center */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex-basis: calc(50% - 2rem);
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex-basis: calc(33.333% - 2rem);
  }
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #5c2c35; /* Darker pinkish text for readability */
  font-style: italic;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author {
  margin-top: 1.5rem;
  font-weight: 600;
  color: #1f2937; /* Dark text for readability */
}

.testimonial-rating {
  margin-top: 0.5rem;
  color: #fff;
  font-size: 1.25rem;
}

/* Navigation Buttons */
.testimonial-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: none; /* Hidden by default, shown on larger screens */
}

@media (min-width: 768px) {
  .testimonial-nav-btn {
    display: block;
  }
}

.testimonial-nav-btn:hover {
  background: #fff;
  color: #000;
}

.testimonial-nav-btn.prev {
  left: -20px;
}

.testimonial-nav-btn.next {
  right: -20px;
}

.testimonial-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem; /* 12px */
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.testimonial-pagination .pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.testimonial-pagination .pagination-dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.testimonial-pagination .pagination-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Disable auto-scroll on touch devices for a better manual scroll experience */
@media (max-width: 1023px) {
  .scroll-animation {
    animation: none !important;
  }
  .testimonial-carousel-wrapper { overflow-x: auto; }
}

/* Refined Mission Quote */
.mission-quote {
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--pink-500);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--text-muted-color);
}
/* removed legacy dark-mode mission-quote rule */

.mission-signature-new {
  display: block;
  margin-top: 1rem;
  font-family: 'Great Vibes', cursive;
  font-size: 2rem; 
  color: var(--pink-500);
  text-align: right;
}

.feature-card {
  /* Darker, higher-contrast panel for better readability */
  background: #0b1220; /* deep slate for strong contrast */
  color: #e6eef6; /* light text */
  border: 1px solid rgba(255,255,255,0.03);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.28s ease;
  box-shadow: 0 12px 40px rgba(2,6,23,0.55);
}
/* removed legacy dark-mode feature-card rule */

.feature-card:hover,
.feature-card:focus,
.feature-card:focus-within,
.feature-card:active {
  transform: translateY(-5px);
  /* keep the same color family but darken slightly for the highlight state */
  background-color: #061017; /* slightly darker deep slate */
  box-shadow: 0 22px 60px rgba(2,6,23,0.66);
  outline: none;
}

.feature-card h4 { color: #ffffff; }
.feature-card p { color: #cbd5e1; }

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* removed legacy dark-mode feature-card hover rule */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  background: #fffbeb; /* amber-50 */
  padding: 2rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}


@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.1); transform: scale(1); }
  50% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.25); transform: scale(1.02); }
}

/* Floating Action Buttons for Mobile */
.floating-buttons-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  border-radius: 16px; /* Rounded square */
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  font-size: 44px; /* Increased icon size for better tap area */
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); /* Shadow for visibility */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.fab-whatsapp {
  background-color: #25D366;
  /* background-color: #25D366; */
  color: #25D366; /* Set icon color to WhatsApp green */
}

.fab-rate {
  background-color: transparent !important; /* Remove background */
  border: none !important; /* Remove border */
  color: #f59e0b; /* Amber icon */
  box-shadow: none !important; /* Remove button shadow */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); /* Add shadow to the icon itself for visibility */
}

/* Hide on desktop */
@media (min-width: 768px) {
  .floating-buttons-container {
    display: none;
  }
}
 /* Mobile Viewport Overflow Fixes */
    @media (max-width: 767px) {
      body {
        max-width: 100vw;
        overflow-x: hidden; /* Re-enforce */
      }

      /* Reduce container padding on mobile to give content more space */
      .container {
        padding-left: 1rem;
        padding-right: 1rem;
      }

      /* Prevent long words in headings from causing overflow */
      h1, h2, h3 {
        overflow-wrap: break-word;
      }

      /* Ensure flip cards don't exceed the viewport width on small screens */
      .flip-card { max-width: 90vw; }
    }

    /* Compact FAQ container */
    .faq-container {
      max-width: 700px;      /* reduce width */
      margin: 0 auto;
      padding: 0 1rem;
    }

    /* FAQ card */
    .faq-item {
      border: 1px solid #eee;
      border-radius: 10px;
      padding: 8px 12px;      /* smaller padding */
      background: #fff;
      transition: 0.2s ease;
    }

    .faq-item:hover {
      background: #fafafa;
    }

    /* Question row */
    .faq-question {
      width: 100%;
      display: flex;
      justify-content: space-between;
      background: none;
      color: inherit;
      padding: 6px 0;        /* smaller */
    }

    /* Title text */
    .faq-question h3 {
      font-size: 1rem;       /* smaller question text */
      line-height: 1.4;
    }

    /* Answer container - for animation */
    .faq-answer {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.3s ease-out;
      margin-top: 0; /* Will be added when open */
    }

    /* Styles for when the FAQ is open */
    .faq-item.open .faq-answer {
      margin-top: 6px; /* Add space when open */
    }

    .faq-answer p {
      font-size: 0.95rem;    /* compact paragraph */
      line-height: 1.5;
      padding-left: 4px; /* Indent answer slightly */
    }

    .faq-icon { transition: transform 0.3s ease; }

    /* Reduce space between FAQ items */
    .faq-item + .faq-item {
      margin-top: 10px;
    }

    /* Two-column layout for desktop */
    @media (min-width: 768px) {
      .faq-container {
        max-width: 1100px; /* Widen container for two columns */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px; /* Consistent spacing between items */
      }
      .faq-item + .faq-item {
        margin-top: 0; /* Use grid gap for spacing instead */
      }
    }

    /* === iOS & Mobile Scrolling Fixes === */
    
    /* 1. General rule: Prevent horizontal scroll on the root elements. */
    html, body {
      width: 100%;
      overflow-x: hidden;
      box-sizing: border-box;
    }

    /* 2. Ensure all major sections and images respect boundaries. */
    section, footer, img, video {
      max-width: 100%;
      box-sizing: border-box;
    }

    /* 3. Hero section: Re-enforce overflow is hidden. */
    #hero-section {
      width: 100%; /* Use 100% instead of 100vw to account for scrollbar */
      overflow: hidden;
    }

    /* 4. Services & Testimonial Carousels: Enable smooth touch scrolling on iOS. */
    .services-scroll-wrapper,
    .testimonial-carousel-wrapper {
      -webkit-overflow-scrolling: touch;
      overflow-x: auto; /* Ensure horizontal scrolling is enabled for the content */
    }

    /* Recommended for instant smoothness on iOS */
    html { -webkit-overflow-scrolling: touch; }
    .services-row { touch-action: manipulation; }
    /* Note: `loading: lazy` is not a valid CSS property, it's an HTML attribute. It has been added to the <img> tags directly. */
