/* Global styles for Altido website */

/* Light Theme (Default) */
:root {
  --font-scale: 1;
  --primary-blue: #0066cc; /* Altido's primary blue */
  --secondary-blue: #4d94ff; /* Lighter blue for accents */
  --dark-blue: #004c99; /* Darker blue for hover states */
  --light-blue: #e6f0ff; /* Very light blue for backgrounds */
  --neutral-light: #f5f7fa; /* Off-white for backgrounds */
  --neutral-dark: #333333; /* Dark gray for text */
  --success-green: #28a745; /* Green for success messaging */
  --warning-yellow: #ffc107; /* Yellow for warnings */
  --error-red: #dc3545; /* Red for errors */
  
  /* Theme-specific variables */
  --bg-primary: #ffffff;
  --bg-secondary: var(--neutral-light);
  --text-primary: var(--neutral-dark);
  --text-secondary: #666666;
  --border-color: #e5e7eb;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --input-bg: #ffffff;
  --input-border: #d1d5db;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: calc(16px * var(--font-scale));
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
}

/* Ensure transition effects apply to all elements */
*, *::before, *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure all background images scale properly with zoom */
section, div {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Hero section specific responsive background */
.hero-section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

/* Hero Background Image Responsive Behavior */
@media (max-width: 768px) {
  .hero-section {
    background-size: cover !important;
    background-position: center center !important;
  }
  
  .hero-bg-img {
    object-position: center top;
  }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-bg-img {
    object-position: center center;
  }
}

/* Desktop optimizations */
@media (min-width: 1025px) {
  .hero-bg-img {
    object-position: center center;
  }
}

/* Ensure proper scaling at different zoom levels */
@media (min-resolution: 150dpi) {
  .hero-section {
    background-size: cover !important;
    background-position: center !important;
  }
  
  .hero-bg-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

@media (min-resolution: 200dpi) {
  .hero-section {
    background-size: cover !important;
    background-position: center !important;
  }
  
  .hero-bg-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Performance optimizations for hero image */
.hero-background-image {
  contain: layout style paint;
  isolation: isolate;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-img {
    will-change: auto;
  }
}

/* Print styles - hide background image */
@media print {
  .hero-background-image {
    display: none;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Form Styles */
form {
  margin: 0;
  padding: 0;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

/* Enhanced Form Validation Styles */
.form-error {
  color: #dc2626;
  font-size: 14px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.form-error i {
  margin-right: 4px;
  font-size: 12px;
}

.input-error {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.input-error:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

/* Success state for inputs */
.input-success {
  border-color: #059669 !important;
  background-color: #f0fdf4 !important;
}

.input-success:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1) !important;
}

/* Form field container */
.form-field {
  position: relative;
}

.form-field .validation-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.validation-icon.success {
  color: #059669;
}

.validation-icon.error {
  color: #dc2626;
}

/* Button hover effects */
button {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
}

/* Accessibility improvements */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Glassmorphic Navbar Styles */
.navbar-glassmorphic {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  margin: 10px 20px 0 20px !important;
  left: 0 !important;
  right: 0 !important;
  width: calc(100% - 40px) !important;
}

/* Mobile adjustments for glassmorphic navbar */
@media (max-width: 768px) {
  .navbar-glassmorphic {
    margin: 5px 10px 0 10px !important;
    width: calc(100% - 20px) !important;
    border-radius: 15px !important;
  }
}

/* Ensure navbar content styling remains unchanged */
.navbar-glassmorphic .container {
  position: relative;
  z-index: 10;
}

/* Keep dropdown backgrounds opaque for readability */
.navbar-glassmorphic .absolute.left-0.mt-2 {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile menu glassmorphic effect */
.navbar-glassmorphic #mobile-menu {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0 0 15px 15px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Navbar specific focus and outline removal */
.nav-link {
  outline: none;
  box-shadow: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:focus {
  outline: none;
  box-shadow: none;
}

.nav-link:active {
  outline: none;
  box-shadow: none;
}

/* Remove focus outline for navbar links while maintaining hover states */
nav a {
  outline: none;
  box-shadow: none;
}

nav a:focus {
  outline: none;
  box-shadow: none;
}

nav button {
  outline: none;
  box-shadow: none;
}

nav button:focus {
  outline: none;
  box-shadow: none;
}

/* Ensure mobile menu links also have no outline */
#mobile-menu a {
  outline: none;
  box-shadow: none;
}

#mobile-menu a:focus {
  outline: none;
  box-shadow: none;
}

/* Preserve hover states for navigation items */
nav a:hover {
  text-decoration: none;
}

nav button:hover {
  text-decoration: none;
}

/* Mobile menu button specific styling */
.md\:hidden button {
  outline: none;
  box-shadow: none;
}

.md\:hidden button:focus {
  outline: none;
  box-shadow: none;
}

/* Dropdown menu items */
nav .group-hover\:opacity-100 a {
  outline: none;
  box-shadow: none;
}

nav .group-hover\:opacity-100 a:focus {
  outline: none;
  box-shadow: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all 0.15s ease-in-out;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
}

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

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

.btn-secondary:hover {
  background-color: var(--light-blue);
}

.section {
  padding: 4rem 0;
}

.card {
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Footer styling */
footer {
  background-color: #1a1a1a !important;
  color: #ffffff;
}

footer * {
  color: #ffffff;
}

footer .text-gray-300 {
  color: #ffffff !important;
}

footer .text-gray-400 {
  color: #ffffff !important;
}

/* Footer link styling */
footer a {
  color: #ffffff !important;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

footer a:hover {
  color: #00BCD4 !important;
  text-decoration: underline;
}

/* Footer logo specific styling - remove all hover, focus, and active borders/outlines */
footer a[href="/"] {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

footer a[href="/"]:hover,
footer a[href="/"]:focus,
footer a[href="/"]:active,
footer a[href="/"]:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: none !important;
  color: inherit !important;
  text-decoration: none !important;
}

footer a[href="/"] img {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

footer a[href="/"] img:hover,
footer a[href="/"] img:focus,
footer a[href="/"] img:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Hero Section - Optimized for immediate loading */
.hero-section {
  margin-top: 0;
  padding-top: 0px;
  position: relative;
  overflow: hidden;
  contain: layout style;
}

/* Hero Background Image Container - Critical rendering path optimized */
.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  contain: strict;
  content-visibility: auto;
}

/* Hero Background Image - Maximum Performance */
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  will-change: auto;
}

/* Lazy sections fade-in optimization */
.lazy-section {
  will-change: opacity, transform;
  contain: layout style paint;
}



/* Legacy overlay support - kept for backward compatibility but not used */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,188,212,0.3), rgba(0,188,212,0.3));
  z-index: 0;
}

/* Homepage Grid Container - Enhanced Stability */
.homepage-grid {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  position: relative;
  z-index: 2;
}

/* Force grid template to ensure 2x2 layout */
.homepage-grid .grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: repeat(2, 1fr) !important;
  gap: 0.75rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
}

/* Responsive override for md screens */
@media (min-width: 768px) {
  .homepage-grid .grid {
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: repeat(1, 1fr) !important;
    gap: 1rem !important;
  }
}

/* Hero Section NDIS Pillars Cards */
.pillar-card-hero {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  text-align: center;
  padding: 18px 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
}

.pillar-card-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card-hero:hover::before {
  opacity: 1;
}

.pillar-card-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.pillar-card-hero .icon {
  display: block;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.pillar-card-hero:hover .icon {
  transform: scale(1.1);
}

.pillar-card-hero h3,
.pillar-card-hero p {
  position: relative;
  z-index: 1;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Accessibility */
.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;
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* Enhanced focus styles for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus, [tabindex]:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .pillar-card-hero {
    padding: 14px 10px;
    min-height: 100px;
  }
  
  .pillar-card-hero .icon {
    font-size: 24px;
    margin-bottom: 6px;
  }
  
  .pillar-card-hero h3 {
    font-size: 0.85rem;
    margin-bottom: 3px;
  }
  
  .pillar-card-hero p {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}

/* NDIS 3D Interactive Section Styles */
.ndis-card {
  will-change: transform;
  position: relative;
}

/* Enhanced readability with reduced blur */
.ndis-section {
  backdrop-filter: blur(10px) !important;
}

.ndis-card {
  backdrop-filter: blur(8px) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Expandable card content */
.ndis-card .expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.ndis-card .expandable-content.expanded {
  max-height: 200px;
}

/* Video thumbnail hover effects */
.video-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
}

/* Mission statement styling */
.mission-statement {
  position: relative;
  overflow: hidden;
}

.mission-statement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 188, 212, 0.1) 50%, transparent 70%);
  animation: shine 3s infinite;
}

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

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .ndis-card,
  .ndis-card *,
  [class*="animate-"],
  .mission-statement::before {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }
  
  .ndis-card:hover,
  .video-thumbnail:hover {
    transform: none !important;
  }
}

/* Mobile optimizations for NDIS section */
@media (max-width: 768px) {
  .ndis-card {
    backdrop-filter: blur(8px) !important;
    padding: 24px 16px !important;
    margin-bottom: 20px;
  }
  
  .ndis-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  }
  
  .ndis-card h3 {
    font-size: 1.5rem !important;
  }
  
  .ndis-card p {
    font-size: 0.9rem !important;
  }
  
  /* Stack cards vertically on mobile */
  .grid.md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .mission-statement {
    padding: 1rem !important;
    margin-bottom: 2rem !important;
  }
}

/* Enhanced scroll performance */
.ndis-card {
  contain: layout style paint;
}

/* Book Appointment Section - Mobile Responsive */
#book-appointment .nurse-image-mobile {
  max-height: 300px !important;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  #book-appointment .lg\:flex-row {
    flex-direction: column !important;
  }
  
  #book-appointment .lg\:w-1\/2 {
    width: 100% !important;
  }
  
  #book-appointment .order-2 {
    order: 1 !important;
  }
  
  #book-appointment .order-1 {
    order: 2 !important;
  }
  
  #book-appointment .nurse-image-mobile {
    max-height: 300px !important;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  #book-appointment {
    padding: 2rem 0 !important;
  }
  
  #book-appointment .container {
    padding: 0 1rem !important;
  }
  
  #book-appointment h2 {
    font-size: 2.5rem !important;
  }
  
  #book-appointment .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  #book-appointment .lg\:p-12 {
    padding: 1.5rem !important;
  }
  
  #book-appointment .lg\:p-8 {
    padding: 1.5rem !important;
  }
}

/* Enhanced Testimonial Section Styles */
.testimonial-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.testimonial-card {
  position: relative;
  will-change: transform;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), rgba(79, 195, 247, 0.2));
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Star Rating Hover Effects */
.star-hover {
  cursor: pointer;
}

.star-hover:hover {
  filter: drop-shadow(0 0 4px rgba(255, 193, 7, 0.6));
}

/* Smooth Animation for Mobile */
@media (max-width: 768px) {
  .testimonial-section {
    min-height: auto;
    padding: 60px 0;
    background-attachment: scroll !important;
  }
  
  .testimonial-card {
    padding: 30px 20px !important;
    margin: 0 10px;
  }
  
  .testimonial-card:hover {
    transform: translateY(-4px) !important;
  }
  
  /* Stack layout on mobile */
  .testimonial-card .flex.flex-col.md\:flex-row {
    flex-direction: column !important;
  }
  
  .testimonial-card .md\:w-1\/3,
  .testimonial-card .md\:w-2\/3 {
    width: 100% !important;
  }
  
  /* Adjust quote marks for mobile */
  .testimonial-card blockquote {
    font-size: 1rem !important;
    text-align: center !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  
  /* Reduce floating elements on mobile */
  .testimonial-section .absolute.top-10,
  .testimonial-section .absolute.top-20,
  .testimonial-section .absolute.bottom-16,
  .testimonial-section .absolute.top-1\/4,
  .testimonial-section .absolute.bottom-1\/4 {
    display: none;
  }
}

/* Accessibility improvements for testimonials */
@media (prefers-reduced-motion: reduce) {
  .testimonial-card,
  .testimonial-section .animate-bounce,
  .testimonial-section .animate-pulse,
  .testimonial-section .animate-ping {
    animation: none !important;
    transition: none !important;
  }
  
  .testimonial-card:hover {
    transform: none !important;
  }
}

/* Glassmorphic Service Cards Styles */
.service-card {
  will-change: transform;
  position: relative;
  contain: layout style paint;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(79, 195, 247, 0.1));
  border-radius: 17px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* Text truncation utility */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Service Cards Animation Performance */
.service-card {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Mobile optimizations for service cards */
@media (max-width: 768px) {
  .service-card {
    backdrop-filter: blur(10px) !important;
    padding: 24px 20px !important;
    margin-bottom: 24px;
  }
  
  .service-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12) !important;
  }
  
  .service-card h3 {
    font-size: 1.5rem !important;
  }
  
  .service-card p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  
  /* Stack service cards vertically on mobile */
  #services .grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* Reduce floating elements on mobile for performance */
  #services .absolute {
    display: none;
  }
}

/* Smooth scrolling for service card animations */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card *,
  #services [class*="animate-"] {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }
  
  .service-card:hover {
    transform: none !important;
  }
}

/* Why Choose Altido Section Styles - Route-Safe Implementation */
.why-altido-section {
  position: relative;
  background: url('https://cdn.ezsite.ai/AutoDev/27156/1ba34953-376d-4977-98e2-b9edc66b3ad8.png') center/cover no-repeat;
  padding: 100px 40px;
  color: #1A1A1A;
  overflow: hidden;
  min-height: 600px;
}

.why-altido-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  z-index: 0;
}

.why-altido-content {
  position: relative;
  max-width: 1200px;
  margin: auto;
  z-index: 2;
  text-align: center;
}

/* Enhanced Grid Stability - Route-Safe */
.why-altido-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 32px !important;
  margin-top: 48px !important;
  width: 100% !important;
  max-width: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 2;
}

/* Desktop Layout Override */
@media (min-width: 768px) {
  .why-altido-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
  }
}

/* Route-Safe Card Styling */
.altido-card {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 16px !important;
  padding: 28px !important;
  text-align: left !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 180px !important;
  will-change: transform, opacity !important;
  contain: layout style paint !important;
}

.altido-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.12) !important;
}

.altido-card .icon {
  font-size: 32px !important;
  margin-bottom: 12px !important;
  color: #00BCD4 !important;
  display: block !important;
  line-height: 1 !important;
}

.altido-card h3 {
  font-size: 20px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  color: #1A1A1A !important;
}

.altido-card p {
  font-size: 16px !important;
  color: #424242 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Loading State for Route Transitions */
.altido-card.opacity-50 {
  opacity: 0.5 !important;
  pointer-events: none !important;
}

/* Force Visibility During Route Changes */
.why-altido-grid > .altido-card {
  visibility: visible !important;
  opacity: 1 !important;
  display: flex !important;
}

/* Responsive adjustments for Why Choose Altido section */
@media (max-width: 768px) {
  .why-altido-section {
    padding: 80px 20px !important;
    min-height: 500px !important;
  }
  
  .altido-card {
    padding: 24px !important;
    min-height: 160px !important;
  }
  
  .why-altido-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 480px) {
  .why-altido-section {
    padding: 60px 16px !important;
  }
  
  .why-altido-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .altido-card {
    padding: 20px !important;
    min-height: 140px !important;
  }
}

/* Performance Optimization for Route Changes */
.why-altido-section * {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Animation Performance */
.altido-card {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .altido-card {
    transition: none !important;
    animation: none !important;
  }
  
  .altido-card:hover {
    transform: none !important;
  }
}

/* Modern aged-in-home care Services Section Styles */
.aged-care-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Enhanced hover effects for service cards */
.aged-care-service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  will-change: transform, box-shadow;
}

.aged-care-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.aged-care-service-card:hover::before {
  opacity: 1;
}

.aged-care-service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.aged-care-service-card .icon-container {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
}

.aged-care-service-card:hover .icon-container {
  transform: scale(1.1) rotate(5deg);
}

.aged-care-service-card .icon-container img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.aged-care-service-card:hover .icon-container img {
  transform: scale(1.1);
}

.aged-care-service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  color: #1f2937;
  transition: color 0.3s ease;
}

.aged-care-service-card:hover h3 {
  color: #2563eb;
}

.aged-care-service-card p {
  font-size: 14px;
  color: #6b7280;
  position: relative;
  z-index: 1;
  line-height: 1.6;
  margin: 0;
}

/* 2-column layout specific styles */
.aged-care-2col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.aged-care-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.aged-care-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.aged-care-service-grid .aged-care-service-card:last-child {
  grid-column: 1 / -1;
}

.aged-care-service-grid .aged-care-service-card:last-child {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.aged-care-service-grid .aged-care-service-card:last-child .icon-container {
  margin-bottom: 0;
  flex-shrink: 0;
}

.aged-care-service-grid .aged-care-service-card:last-child .content {
  flex: 1;
}

/* CTA Button Styles */
.aged-care-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.aged-care-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.aged-care-cta-btn i {
  transition: transform 0.3s ease;
}

.aged-care-cta-btn:hover i {
  transform: translateX(4px);
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .aged-care-2col-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .aged-care-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .aged-care-section {
    padding: 60px 0;
  }
  
  .aged-care-2col-layout {
    gap: 32px;
  }
  
  .aged-care-service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .aged-care-service-grid .aged-care-service-card:last-child {
    grid-column: 1;
    flex-direction: column;
    text-align: center;
  }
  
  .aged-care-service-grid .aged-care-service-card:last-child .icon-container {
    margin-bottom: 16px;
  }
  
  .aged-care-service-card {
    padding: 20px;
  }
  
  .aged-care-service-card h3 {
    font-size: 18px;
  }
  
  .aged-care-service-card p {
    font-size: 14px;
  }
  
  .aged-care-cta-btn {
    padding: 14px 28px;
    font-size: 16px;
  }
}

/* Accessibility and reduced motion */
@media (prefers-reduced-motion: reduce) {
  .aged-care-service-card {
    transition: none !important;
  }
  
  .aged-care-service-card:hover {
    transform: none !important;
  }
  
  .aged-care-service-card::before {
    animation: none !important;
    transition: none !important;
  }
  
  .aged-care-cta-btn {
    transition: none !important;
  }
  
  .aged-care-cta-btn:hover {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .aged-care-service-card {
    background: #ffffff !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
  }
  
  .aged-care-service-card:hover {
    background: #f0f0f0 !important;
  }
  
  .aged-care-section {
    background: #ffffff !important;
    background-image: none !important;
  }
  
  .aged-care-cta-btn {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
  }
}

/* Support Services Section Styles */
.support-services-section {
  position: relative;
  background: linear-gradient(135deg, #f9fafb 0%, #e0f2fe 100%);
  padding: 80px 0;
  overflow: hidden;
}

/* Enhanced carousel smooth transitions */
.carousel-track {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  perspective: 1000px;
}

.carousel-track > div {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Smooth card transitions in support services */
.support-services-section .group {
  will-change: transform, box-shadow, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  isolation: isolate;
}

/* Enhanced hover effects for support service cards */
.support-services-section .group:hover {
  transform: translateY(-12px) scale(1.03) !important;
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15) !important;
}

/* Stagger animations for card elements */
.support-services-section .group:hover h3 {
  animation: slideInLeft 0.5s ease-out;
}

.support-services-section .group:hover p {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.support-services-section .group:hover .cta-button {
  animation: bounceIn 0.7s ease-out 0.2s both;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-10px);
    opacity: 0.8;
  }
  to {
    transform: translateX(4px);
    opacity: 1;
  }
}

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

@keyframes bounceIn {
  from {
    transform: scale(0.95);
    opacity: 0.8;
  }
  60% {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Shimmer effect enhancement */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.support-services-section .group:hover .shimmer-effect {
  animation: shimmer 1s ease-out;
}

/* Support Services Card Image Layout - Vertical 50:50 Split */
.support-service-card-image {
  position: relative;
  overflow: hidden;
  background: #f9fafb;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-service-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 16px 16px 0 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: brightness(1.1) contrast(0.9) saturate(0.8);
}

/* Specific positioning for each service card image to show faces better */
.support-service-card:nth-child(1) .support-service-card-image img {
  object-position: center 20% !important; /* NDIS Services - focus on upper portion */
}

.support-service-card:nth-child(2) .support-service-card-image img {
  object-position: center 15% !important; /* Allied Health - focus on face area */
}

.support-service-card:nth-child(3) .support-service-card-image img {
  object-position: center 25% !important; /* Veteran Home Care - focus on upper-middle */
}

.support-service-card:nth-child(4) .support-service-card-image img {
  object-position: center 30% !important; /* Aged Home Care - focus on face area */
}

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

.support-service-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
  border-radius: 16px 16px 0 0;
}

/* Ensure proper spacing between image and text - 50:50 split */
.support-service-card-content {
  padding: 24px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Mobile responsiveness for support services image layout */
@media (max-width: 1024px) {
  .support-service-card-content {
    padding: 20px 28px 28px 28px;
  }
}

@media (max-width: 768px) {
  .support-service-card-content {
    padding: 20px 24px 24px 24px;
  }
}

.support-service-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  will-change: transform, box-shadow;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.support-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(147, 197, 253, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.support-service-card:hover::before {
  opacity: 1;
}

.support-service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.support-service-card .icon-container {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.support-service-card:hover .icon-container {
  transform: scale(1.1) rotate(5deg);
}

.support-service-card .icon-container i {
  font-size: 24px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.support-service-card:hover .icon-container i {
  transform: scale(1.1);
}

.support-service-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  color: #1f2937;
  transition: color 0.3s ease;
}

.support-service-card:hover h3 {
  color: #2563eb;
}

.support-service-card p {
  font-size: 16px;
  color: #6b7280;
  position: relative;
  z-index: 1;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.support-service-card .cta-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  margin-top: auto;
}

.support-service-card:hover .cta-button {
  transform: translateX(8px) scale(1.05);
}

.support-service-card .cta-button i {
  transition: transform 0.3s ease;
}

.support-service-card:hover .cta-button i {
  transform: translateX(4px);
}

.support-service-card .decorative-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.1;
  transition: opacity 0.3s ease;
  transform: translate(40px, -40px);
}

.support-service-card:hover .decorative-corner {
  opacity: 0.2;
}

.support-service-card .accent-line {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  margin-bottom: 16px;
}

.support-service-card:hover .accent-line {
  opacity: 1;
}

/* Mobile responsiveness for support services */
@media (max-width: 1024px) {
  .support-services-section {
    padding: 60px 0;
  }
  
  .support-service-card {
    padding: 28px;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .support-services-section {
    padding: 50px 0;
  }
  
  .support-service-card {
    padding: 24px;
    min-height: 280px;
  }
  
  .support-service-card h3 {
    font-size: 20px;
  }
  
  .support-service-card p {
    font-size: 14px;
  }
  
  .support-service-card .icon-container {
    width: 56px;
    height: 56px;
  }
  
  .support-service-card .icon-container i {
    font-size: 20px;
  }
}

/* Accessibility and reduced motion */
@media (prefers-reduced-motion: reduce) {
  .support-service-card {
    transition: none !important;
  }
  
  .support-service-card:hover {
    transform: none !important;
  }
  
  .support-service-card::before {
    animation: none !important;
    transition: none !important;
  }
  
  .support-service-card .cta-button {
    transition: none !important;
  }
  
  .support-service-card:hover .cta-button {
    transform: none !important;
  }
}

/* About Page Hero Section - Enhanced Responsive Layout */
.about-hero-section {
  display: flex !important;
  position: relative !important;
  width: 100% !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  align-items: stretch !important;
}

/* Fixed ratio layout - prevents disproportionate scaling */
.about-hero-section > div:first-child {
  flex: 0 0 45% !important;
  min-width: 40% !important;
  max-width: 50% !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.about-hero-section > div:last-child {
  flex: 0 0 55% !important;
  min-width: 50% !important;
  max-width: 60% !important;
  position: relative !important;
  height: auto !important;
}

/* Image constraints to prevent expansion */
.about-hero-section img {
  width: 100% !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Curved divider positioning - stays aligned with section height */
.about-hero-section .absolute {
  position: absolute !important;
  left: 45% !important;
  top: 0 !important;
  height: 100% !important;
  width: clamp(2rem, 4vw, 4rem) !important;
  z-index: 10 !important;
  transform: translateX(-50%) !important;
}

/* Text content scaling - maintains readability */
.about-hero-section h1 {
  font-size: clamp(2rem, 4vw, 4rem) !important;
  line-height: 1.2 !important;
  margin-bottom: clamp(1rem, 2vw, 1.5rem) !important;
}

.about-hero-section h2 {
  font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
  line-height: 1.4 !important;
  margin-bottom: clamp(1rem, 1.5vw, 1.5rem) !important;
}

.about-hero-section p {
  font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
  line-height: 1.6 !important;
  margin-bottom: clamp(1.5rem, 2vw, 2rem) !important;
}

/* Responsive padding that scales with viewport */
.about-hero-section .px-4 {
  padding-left: clamp(1rem, 3vw, 5rem) !important;
  padding-right: clamp(1rem, 2vw, 3rem) !important;
  padding-top: clamp(2rem, 4vw, 4rem) !important;
  padding-bottom: clamp(2rem, 4vw, 4rem) !important;
}

/* Wide screen adjustments - maintain proportions */
@media (min-width: 1600px) {
  .about-hero-section > div:first-child {
    flex: 0 0 42% !important;
    max-width: 45% !important;
  }
  
  .about-hero-section > div:last-child {
    flex: 0 0 58% !important;
    max-width: 58% !important;
  }
  
  .about-hero-section .absolute {
    left: 42% !important;
  }
}

/* Large screen adjustments */
@media (min-width: 1200px) and (max-width: 1599px) {
  .about-hero-section > div:first-child {
    flex: 0 0 44% !important;
    max-width: 47% !important;
  }
  
  .about-hero-section > div:last-child {
    flex: 0 0 56% !important;
    max-width: 56% !important;
  }
  
  .about-hero-section .absolute {
    left: 44% !important;
  }
}

/* Tablet adjustments - 50:50 split */
@media (max-width: 1024px) {
  .about-hero-section > div:first-child {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  .about-hero-section > div:last-child {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  .about-hero-section .absolute {
    left: 50% !important;
  }
}

/* Mobile layout - stack vertically */
@media (max-width: 768px) {
  .about-hero-section {
    flex-direction: column !important;
    min-height: 100vh !important;
    max-height: none !important;
  }
  
  .about-hero-section > div:first-child,
  .about-hero-section > div:last-child {
    flex: 0 0 50vh !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 50vh !important;
  }
  
  .about-hero-section img {
    height: 50vh !important;
    min-height: 50vh !important;
    max-height: 50vh !important;
  }
  
  /* Hide curved divider on mobile */
  .about-hero-section .absolute {
    display: none !important;
  }
  
  /* Mobile text scaling */
  .about-hero-section h1 {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
  }
  
  .about-hero-section h2 {
    font-size: clamp(1.125rem, 4vw, 1.5rem) !important;
  }
  
  .about-hero-section p {
    font-size: clamp(1rem, 3vw, 1.125rem) !important;
  }
  
  /* Mobile padding adjustments */
  .about-hero-section .px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Zoom level stability - prevent layout shifts */
@media (min-resolution: 150dpi) {
  .about-hero-section {
    min-height: 100vh !important;
    max-height: 100vh !important;
  }
  
  .about-hero-section img {
    height: 100vh !important;
    object-fit: cover !important;
  }
}

@media (min-resolution: 200dpi) {
  .about-hero-section {
    min-height: 100vh !important;
    max-height: 100vh !important;
  }
  
  .about-hero-section img {
    height: 100vh !important;
    object-fit: cover !important;
  }
}

/* Performance optimizations */
.about-hero-section > div:first-child {
  contain: layout style size !important;
}

.about-hero-section > div:last-child {
  contain: layout style size !important;
}

.about-hero-section img {
  contain: layout style size !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #000 !important;
    backdrop-filter: none !important;
  }
  
  #services {
    background: #ffffff !important;
    background-image: none !important;
  }
  
  .testimonial-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #000 !important;
    backdrop-filter: none !important;
  }
  
  .testimonial-section {
    background: #ffffff !important;
    background-image: none !important;
  }
  
  .altido-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #000 !important;
    backdrop-filter: none !important;
  }
  
  .why-altido-section {
    background: #ffffff !important;
    background-image: none !important;
  }
  
  .aged-care-section {
    background: #ffffff !important;
    background-image: none !important;
  }
  
  .care-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #000 !important;
  }
  
  .support-service-card {
    background: #ffffff !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
  }
  
  .support-service-card:hover {
    background: #f0f0f0 !important;
  }
  
  .support-services-section {
    background: #ffffff !important;
    background-image: none !important;
  }
  
  .support-service-card .cta-button {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
  }
}

/* Enhanced Aged Home Care Services Section - Mobile Responsive Styles */

/* Mobile specific styles for Aged Home Care section */
@media (max-width: 767px) {
  /* Ensure proper spacing on mobile */
  .aged-home-care-mobile-grid {
    padding: 0 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Mobile service cards */
  .aged-home-care-mobile-card {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  /* Prevent horizontal scroll */
  .aged-home-care-mobile-card,
  .aged-home-care-mobile-card * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Mobile typography adjustments */
  .aged-home-care-mobile-card h3 {
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
  }
  
  .aged-home-care-mobile-card p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }
  
  /* Mobile image sizing */
  .aged-home-care-mobile-image {
    width: 240px !important;
    height: 240px !important;
    max-width: 90vw !important;
    max-height: 90vw !important;
    margin: 0 auto;
  }
}

/* Extra small screens */
@media (max-width: 375px) {
  .aged-home-care-mobile-image {
    width: 200px !important;
    height: 200px !important;
  }
  
  .aged-home-care-mobile-card {
    padding: 1.25rem !important;
  }
  
  .aged-home-care-mobile-card h3 {
    font-size: 1rem !important;
  }
  
  .aged-home-care-mobile-card p {
    font-size: 0.8125rem !important;
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Tablet circular layout adjustments */
  .aged-care-tablet-circle {
    width: 20rem !important;
    height: 20rem !important;
  }
  
  /* Adjust tablet label positioning */
  .aged-care-tablet-labels {
    transform: scale(0.9);
  }
}

/* Desktop responsive styles for better positioning */
@media (min-width: 1025px) {
  /* Ensure desktop circular layout is properly contained */
  .aged-care-desktop-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
  }
  
  /* Desktop label hover effects */
  .aged-care-desktop-label:hover {
    z-index: 50 !important;
  }
}

/* Performance optimizations */
.aged-home-care-section {
  contain: layout style paint;
  will-change: auto;
}

.aged-home-care-section * {
  box-sizing: border-box;
}

/* Prevent layout shifts during responsive changes */
.aged-home-care-responsive-container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Ensure all absolute positioned elements are contained */
.aged-home-care-responsive-container .absolute {
  max-width: calc(100vw - 2rem);
  word-wrap: break-word;
}

/* High contrast and accessibility improvements */
@media (prefers-contrast: high) {
  .aged-home-care-mobile-card {
    border: 2px solid #000 !important;
    background: #fff !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .aged-home-care-section * {
    animation: none !important;
    transition: none !important;
  }
  
  .aged-home-care-mobile-card:hover {
    transform: none !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .aged-home-care-mobile-card {
    padding: 1.5rem !important;
  }
  
  .aged-home-care-mobile-card h3 {
    font-size: 1.25rem !important;
  }
  
  /* Increase touch targets */
  .aged-home-care-mobile-card .w-12 {
    width: 3.5rem !important;
    height: 3.5rem !important;
  }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .aged-home-care-mobile-image {
    width: 180px !important;
    height: 180px !important;
  }
  
  .aged-home-care-mobile-grid {
    padding: 1rem 0.5rem;
  }
}

/* Premium About Hero Section Styles */
.bg-gradient-radial {
  background: radial-gradient(circle at center, var(--tw-gradient-stops));
}

/* Premium shadow effects */
.shadow-3xl {
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

/* Enhanced floating animation for background elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 2s;
}

.animate-float-slow {
  animation: float 8s ease-in-out infinite;
  animation-delay: 4s;
}

/* Premium button hover effects */
.group:hover .fa-arrow-right {
  transform: translateX(4px);
}

.group:hover .fa-phone {
  transform: rotate(12deg);
}

/* Backdrop blur support for older browsers */
@supports not (backdrop-filter: blur(10px)) {
  .backdrop-blur-sm {
    background-color: rgba(255, 255, 255, 0.85) !important;
  }
}

/* Enhanced gradient text effect */
.text-gradient {
  background: linear-gradient(135deg, #0f766e, #0369a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium card glassmorphism effect */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Smooth scroll behavior for premium experience */
html {
  scroll-behavior: smooth;
}

/* Enhanced focus states for premium buttons */
.premium-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.5);
}

/* VeteranHomeCareSection Overlay Styles */
[data-id="aipp31mdf"] {
  position: relative;
}

[data-id="aipp31mdf"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}

/* Ensure content above overlay is visible */
[data-id="aipp31mdf"] * {
  position: relative;
  z-index: 2;
}

/* Mobile view background image for sl2uia39a div */
@media (max-width: 767px) {
  [data-id="sl2uia39a"] {
    background-image: url('https://cdn.ezsite.ai/AutoDev/28385/65c8b5b2-3bfe-4ffe-b1b5-11a732ed154b.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
}

/* Print styles */
@media print {
  .aged-home-care-section {
    background: white !important;
    color: black !important;
  }
  
  .aged-home-care-mobile-card {
    border: 1px solid #000 !important;
    background: white !important;
    break-inside: avoid;
  }
  
  /* Hide floating elements in print */
  .animate-pulse,
  .animate-float,
  .animate-float-delayed,
  .animate-float-slow {
    display: none !important;
  }
}

/* NDIS Process Section Underline Animation */
@keyframes fadeInSlideUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ndis-process-underline {
  position: relative;
}

.ndis-process-underline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: inherit;
  border-radius: inherit;
  animation: fadeInSlideUp 0.8s ease-out 0.3s forwards;
}

/* Capital Supports Hero Section Mobile Fix */
@media (max-width: 768px) {
  .capital-supports-page section:first-of-type .order-1 {
    padding-top: 6rem !important;
  }
  
  .capital-supports-page section:first-of-type .glass-card-minimal {
    margin-top: 1rem !important;
  }
}

/* Hide scrollbar for mobile tab scrolling */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-pulse,
  .animate-float,
  .animate-float-delayed,
  .animate-float-slow {
    animation: none !important;
  }

  .transition-all,
  .transition-transform,
  .transition-colors {
    transition: none !important;
  }

  .ndis-process-underline {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
  }
}