/* =====================================================
   MaiA Entretien - MOBILE-OPTIMIZED Stylesheet
   EXTREME Performance Optimizations for Mobile
   
   MOBILE-FIRST OPTIMIZATIONS:
   ✓ Removed all background images on mobile
   ✓ Reduced animations and transitions
   ✓ Simplified layouts for faster rendering
   ✓ Lazy loading strategy
   ✓ Hardware acceleration
   ✓ Minimal reflows and repaints
   ===================================================== */

/* =====================================================
   COLOR VARIABLES
   ===================================================== */
:root {
  /* Primary Colors */
  --color-teal: #008B8B;
  --color-navy: #001F3F;
  --color-lime: #32CD32;
  
  /* Teal Shades */
  --color-teal-light: #20B2AA;
  --color-teal-dark: #006666;
  
  /* Navy Shades */
  --color-navy-light: #003d7a;
  --color-navy-dark: #001428;
  
  /* Lime Shades */
  --color-lime-light: #7FFF00;
  --color-lime-dark: #228B22;
  
  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-light-gray: #F5F5F5;
  --color-medium-gray: #CCCCCC;
  --color-dark-gray: #333333;
  --color-black: #000000;
  
  /* Fluid Typography Scale */
  --step--2: clamp(0.5rem, 0.7802rem + -0.2335vw, 0.7335rem);
  --step--1: clamp(0.75rem, 0.9063rem + -0.1302vw, 0.8802rem);
  --step-0: clamp(1.0563rem, 1.0425rem + 0.0688vw, 1.125rem);
  --step-1: clamp(1.2675rem, 1.1835rem + 0.42vw, 1.6875rem);
  --step-2: clamp(1.521rem, 1.319rem + 1.0103vw, 2.5313rem);
  --step-3: clamp(1.8252rem, 1.4309rem + 1.9717vw, 3.7969rem);
  --step-4: clamp(2.1902rem, 1.4892rem + 3.5051vw, 5.6953rem);
  --step-5: clamp(2.6283rem, 1.4454rem + 5.9147vw, 8.543rem);

  
  /* Fonts */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing - Reduced for mobile */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1.25rem;
  --spacing-lg: 1.75rem;
  --spacing-xl: 2.5rem;
  
  /* Transitions - Faster for better mobile performance */
  --transition-fast: 0.15s ease;
  --transition-medium: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows - Lighter for mobile performance */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   PERFORMANCE OPTIMIZATIONS
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hardware acceleration for smooth animations */
*,
*::before,
*::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent text size adjustment on orientation change */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-dark-gray);
  background-color: var(--color-teal);
  overflow-x: hidden;
  /* Optimize rendering */
  text-rendering: optimizeSpeed;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6, p {
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: var(--step-5);
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-secondary);
}

h2 {
  font-size: var(--step-4);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-secondary);
}

h3 {
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: var(--spacing-sm);
}

h5 {
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--color-teal);
  margin-bottom: var(--spacing-sm);
}

h6 {
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: var(--spacing-sm);
}

p {
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-sm);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

small {
  font-size: var(--step--1);
}

.text-small {
  font-size: var(--step--2);
}

strong {
  color: var(--color-navy);
  font-weight: 600;
}

em {
  color: var(--color-teal);
  font-style: italic;
}

/* Outlined Text - Simplified for mobile */
.outlined-text {
  color: var(--color-teal);
  text-shadow: 
    -1px -1px 0 var(--color-white),
    1px -1px 0 var(--color-white),
    -1px 1px 0 var(--color-white),
    1px 1px 0 var(--color-white);
  font-weight: 700;
  font-size: var(--step-3);
  margin: var(--spacing-md) 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.outlined-text2 {
  color: var(--color-lime);
  text-shadow: 
    -1px -1px 0 var(--color-navy),
    1px -1px 0 var(--color-navy),
    -1px 1px 0 var(--color-navy),
    1px 1px 0 var(--color-navy);
  font-weight: 700;
  font-size: var(--step-2);
  margin: var(--spacing-md) 0;
}

/* =====================================================
   SKIP LINK (Accessibility)
   ===================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-lime);
  color: var(--color-navy);
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
}

.skip-link:focus {
  top: var(--spacing-sm);
}

/* =====================================================
   LOGO - MOBILE OPTIMIZED
   ===================================================== */
.logo-link {
  display: block;
  margin: var(--spacing-md) auto;
  width: fit-content;
  text-decoration: none;
  /* Simplified transitions for mobile */
  transition: transform var(--transition-fast);
  cursor: pointer;
  margin-top: 100px;
  /* Hardware acceleration */
  transform: translateZ(0);
  will-change: transform;
}

.logo-link:hover,
.logo-link:focus {
  transform: translateY(-3px);
}

.logo-link:active {
  transform: translateY(-1px);
}


#img1 {
  display: block;
  max-width: 250px;
  height: 180px;
  width: 190px;
  /* Simplified filter for mobile performance */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: filter var(--transition-fast);
  border-radius: 0px;
  margin-bottom:-10px;
  /* Hardware acceleration */
  transform: translateZ(0);
}

/* Simplified entrance animation for mobile */
/* =====================================================
   ENTRANCE ANIMATION - ROTATION ON PAGE LOAD
   ===================================================== */

/* Initial state - logo starts rotated and invisible */
.logo-entrance {
  opacity: 0;
  transform: rotate(-360deg) scale(0.5);
}

/* Rotation animation on page load */
@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: rotate(-360deg) scale(0.5) translateY(-50px);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  60% {
    transform: rotate(0deg) scale(1.1) translateY(0);
  }
  80% {
    transform: rotate(-10deg) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1) translateY(0);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  }
}

/* Apply the animation when page loads */
.logo-entrance {
  animation: logoEntrance 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.3s;
}

/* Alternative: Faster rotation */
@keyframes logoEntranceFast {
  0% {
    opacity: 0;
    transform: rotate(-360deg) scale(0.3);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Alternative: Multiple spins */
@keyframes logoEntranceMultiSpin {
  0% {
    opacity: 0;
    transform: rotate(-720deg) scale(0.5);
  }
  60% {
    transform: rotate(20deg) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Alternative: Flip entrance */
@keyframes logoEntranceFlip {
  0% {
    opacity: 0;
    transform: rotateY(180deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}

.logo-link:hover #img1,
.logo-link:focus #img1 {
  filter: drop-shadow(0 8px 16px rgba(50, 205, 50, 0.4));
  transform: scale(1.05);
}

.logo-link:active #img1 {
  transform: scale(0.98);
}

/* Glow animation on hover */
@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  }
  50% {
    filter: drop-shadow(0 8px 20px rgba(50, 205, 50, 0.5));
  }
}

.logo-link:hover #img1 {
  animation: logoGlow 2s ease-in-out infinite;
}

/* =====================================================
   TOOLTIP
   ===================================================== */

.logo-link::after {
  content: "Click to return home";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: var(--color-lime);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-link:hover::after,
.logo-link:focus::after {
  opacity: 1;
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
  .logo-link {
    margin-top: 120px;
  }
  
  #img1 {
    max-width: 250px;
    height: 155px;
    width: 180px;
  }
  
  .logo-link::after {
    display: none;
  }
  
  /* Faster animation on mobile */
  .logo-entrance {
    animation-duration: 1s;
  }
}

@media (max-width: 480px) {
  .logo-link {
    margin-top: 100px;
  }
  
  #img1 {
    max-width: 200px;
    height:155px;
    width: 180px;
  }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

/* Focus state for keyboard navigation */
.logo-link:focus {
  outline: 0px solid var(--color-lime);
  outline-offset: 8px;
  border-radius: 12px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .logo-link,
  #img1 {
    transition: none !important;
  }
  
  .logo-entrance {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .logo-link:hover,
  .logo-link:focus {
    transform: none;
  }
  
  .logo-link:hover #img1,
  .logo-link:focus #img1 {
    transform: none;
    animation: none;
  }
}


/* Remove tooltip on mobile */
.logo-link::after {
  display: none;
}


/* =====================================================
   GOOGLE TRANSLATE
   ===================================================== */
#google_translate_element {
  text-align: center;
  margin: var(--spacing-sm) auto;
  padding: var(--spacing-sm);
}

/* =====================================================
   HEADER / HERO SECTION - MOBILE OPTIMIZED
   ===================================================== */
header {
  /* MOBILE: Solid gradient instead of image for speed */
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal) 100%);
  padding: var(--spacing-lg) var(--spacing-sm);
  position: relative;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Desktop: Add background image */
@media (min-width: 769px) {
  header {
    background-image: 
      image-set(
        url('images/image4.webp') type('image/webp'),
        url('images/image4.jpg') type('image/jpeg')
      );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  @supports not (background-image: image-set(url('test.webp') type('image/webp'))) {
    header {
      background-image: url('images/image4.jpg');
    }
  }
}

header::before {
  content: '';
  position: absolute;
  opacity: 0.5;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 31, 63, 0.85) 0%,
    rgba(0, 139, 139, 0.75) 100%
  );
  z-index: 0;
}

header > * {
  position: relative;
  z-index: 1;
}

.header-container {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

.hero-subtitle {
  font-size: var(--step-1);
  color: var(--color-lime-light);
  font-weight:700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-top: var(--spacing-md);
}

/* =====================================================
   NAVIGATION - MOBILE OPTIMIZED
   ===================================================== */
/* Mobile-first navigation */
#navbar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  padding: var(--spacing-xl) var(--spacing-md);
  z-index: 1000;
  transition: left var(--transition-medium);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  border-right: 4px solid var(--color-lime);
  /* Hardware acceleration */
  transform: translateZ(0);
  will-change: left;
  /* Optimize scroll performance */
  -webkit-overflow-scrolling: touch;
}

#navbar.active {
  left: 0;
}

#navbar::before {
  content: "Welcome! 👋";
  display: block;
  text-align: center;
  color: var(--color-lime);
  font-size: var(--step-1);
  font-weight: 700;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-teal);
}

#navbar ul {
  list-style: none;
  margin: 0;
  display: block;
  margin-top: var(--spacing-md);
}

#navbar ul li {
  margin-bottom: var(--spacing-md);
  text-align: left;
}

#navbar ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--step-0);
  font-weight: 600;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: rgba(0, 139, 139, 0.2);
  border: 2px solid transparent;
  /* Hardware acceleration */
  transform: translateZ(0);
  will-change: transform, background-color;
}

#navbar ul li a:hover,
#navbar ul li a:focus,
#navbar ul li a:active {
  transform: translateX(6px);
  background: var(--color-teal);
  border-color: var(--color-lime);
}

#navbar ul li a.active-link,
#navbar ul li a[aria-current="page"] {
  background: var(--color-lime);
  color: var(--color-navy);
  border-color: var(--color-lime);
  transform: translateX(4px);
}

/* Navigation Icons - Simplified for mobile */
#navbar ul li a i {
  font-size: 1.3em;
  min-width: 24px;
  transition: transform var(--transition-fast);
}

#navbar ul li a:hover i,
#navbar ul li a:focus i {
  transform: translateX(4px);
}

/* Mobile menu button */
#open-sidebar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: var(--spacing-md);
  left: var(--spacing-md);
  z-index: 999;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  border: 3px solid var(--color-lime);
  border-radius: var(--radius-lg);
  padding: 12px;
  cursor: pointer;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-lg);
  /* Hardware acceleration */
  transform: translateZ(0);
  will-change: transform;
  /* Improve tap target */
  min-width: 48px;
  min-height: 48px;
}

#open-sidebar-button::after {
  content: "MENU";
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: var(--color-lime);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--step--2);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

#open-sidebar-button:active {
  transform: scale(0.95);
}

#open-sidebar-button svg {
  display: block;
  width: 32px;
  height: 32px;
}

#close-sidebar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  border: 3px solid var(--color-lime);
  border-radius: var(--radius-lg);
  padding: 10px;
  cursor: pointer;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-md);
  /* Improve tap target */
  min-width: 44px;
  min-height: 44px;
}

#close-sidebar-button:active {
  transform: scale(0.95);
}

#close-sidebar-button svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
  backdrop-filter: blur(3px);
}

#overlay.active {
  display: block;
}

/* Desktop Navigation */
@media (min-width: 769px) {
  #navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.95) 0%, rgba(0, 139, 139, 0.95) 100%);
    padding: var(--spacing-md) var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border-right: none;
    border-bottom: 3px solid var(--color-lime);
    overflow-y: visible;
  }
  
  #navbar::before {
    display: none;
  }
  
  #navbar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: 0;
  }
  
  #navbar ul li {
    margin-bottom: 0;
  }
  
  #navbar ul li a {
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
  }
  
  #navbar.scrolled {
    padding: var(--spacing-sm) var(--spacing-lg);
  }
  
  #navbar.scrolled ul li a {
    padding: 10px 20px;
    font-size: var(--step--1);
  }
  
  #open-sidebar-button,
  #close-sidebar-button {
    display: none;
  }
  
  #navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--color-lime);
    width: var(--scroll-progress, 0%);
    transition: width 0.1s linear;
  }
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-sm);
}

section {
  padding: var(--spacing-lg) var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

/* =====================================================
   PAGE NAVIGATION BUTTONS
   ===================================================== */
.page-nav-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
  flex-wrap: wrap;
}

.arrow button,
button[id^="pagebutton"] {
  background: var(--color-teal);
  color: var(--color-white);
  border: 2px solid var(--color-lime);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  box-shadow: var(--shadow-md);
  min-width: 120px;
  /* Improve tap target */
  min-height: 44px;
  /* Hardware acceleration */
  transform: translateZ(0);
}

.arrow button:active,
button[id^="pagebutton"]:active {
  transform: scale(0.95);
  background: var(--color-lime);
  color: var(--color-navy);
}

@media (min-width: 769px) {
  .arrow button:hover,
  button[id^="pagebutton"]:hover,
  .arrow button:focus,
  button[id^="pagebutton"]:focus {
    background: var(--color-lime);
    color: var(--color-navy);
    transform: translateY(-2px);
  }
}

/* =====================================================
   ABOUT SECTION - MOBILE OPTIMIZED
   ===================================================== */
.About {
  /* MOBILE: Solid background for speed */
  background: var(--color-light-gray);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  margin-bottom: 200px;
  margin-top: 200px;
}

/* Desktop: Add background image */
@media (min-width: 769px) {
  .About {
    background-image: 
      image-set(
        url('images/Backgroundteal-3.webp') type('image/webp'),
        url('images/Backgroundteal-3.png') type('image/png')
      );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xl);
    margin-bottom: 800px;
    margin-top: 300px;
  }
  
  @supports not (background-image: image-set(url('test.webp') type('image/webp'))) {
    .About {
      background-image: url('images/Backgroundteal-3.png');
    }
  }
  
  .About::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-xl);
    z-index: 0;
  }
  
  .About > * {
    position: relative;
    z-index: 1;
  }
}

#AboutUS {
  max-width: 1000px;
  margin: 0 auto;
}

#img5 {
  display: block;
  margin: 0 auto var(--spacing-md);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
  height: 240px;
  width: 240px;
}

#img6 {
  display: block;
  margin: var(--spacing-md) auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--color-teal);
}

.text-group {
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.benefits-list {
  list-style: none;
  max-width: 800px;
  margin: var(--spacing-md) auto;
  text-align: left;
  padding: 0;
}

.benefits-list li {
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  background: var(--color-light-gray);
  border-left: 3px solid var(--color-lime);
  border-radius: var(--radius-sm);
  font-size: var(--step-0);
}

/* =====================================================
   SERVICES SECTION - MOBILE OPTIMIZED
   ===================================================== */
.Services-blue {
  /* MOBILE: Solid gradient for speed */
  background: linear-gradient(135deg, var(--color-navy) 0%, rgba(0, 31, 63, 0.95) 100%);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin: var(--spacing-md) 0;
  position: relative;
  margin-bottom: 1400px;
  margin-top: 300px;
}

/* Desktop: Add background image */
@media (min-width: 769px) {
  .Services-blue {
    background-image: 
      image-set(
        url('images/Serviceswe-1.webp') type('image/webp'),
        url('images/Serviceswe-1.png') type('image/png')
      );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xl);
    margin-bottom: 2300px;
    margin-top: 400px;
  }
  
  @supports not (background-image: image-set(url('test.webp') type('image/webp'))) {
    .Services-blue {
      background-image: url('images/Serviceswe-1.png');
    }
  }
  
  .Services-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 31, 63, 0.85);
    border-radius: var(--radius-xl);
    z-index: 0;
  }
  
  .Services-blue > * {
    position: relative;
    z-index: 1;
  }
}

#box1a {
  margin-bottom: var(--spacing-lg);
}

.Services-blue h2 {
  color: var(--color-lime);
}

/* =====================================================
   TESTIMONIALS SECTION - MOBILE OPTIMIZED
   ===================================================== */
   
.Testimonials {
  /* MOBILE: Solid background for speed */      
  background: var(--color-light-gray);
  padding: var(--spacing-xl);     
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin: var(--spacing-md) 0;
  position: relative; 
  margin-bottom: 800px;
  margin-top: 100px;
  color: var(--color-dark-gray);
  border-width: var(--spacing-md);
  border-style:groove;
  border-color:rgb(221, 173, 50);
   }

  
  .Testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-xl);
    z-index: 0;
  }
  .text-group {
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
  
  .Testimonials > * {
    position: relative;
    z-index: 1;
   

  }
  .Testimonials h2 {
    color: var(--color-navy-light);
  }
  .Testimonials p strong {
    color: rgb(221, 173, 50);
    font-weight: 700;
    font-size: var(--step-2);
  }

  .Testimonials em {
    color: var(--color-lime-dark);
    font-style: italic;
    font-weight: 600;
  }
  .has-stars {
    position: relative;
    margin-bottom: var(--spacing-sm);
    color:rgb(221, 173, 50);
    padding: 2px 0;
    border-radius: var(--radius-sm);
    font-weight: 500;
   
  }
  .has-stars::before {
    content:"\2605" "\2605" "\2605" "\2605" "\2605" ;
    align-items: center;
    margin-right: var(--spacing-xs);
    font-size: var(--step-1);

  
  position:relative;
  transform:  translateY(-50%);
  }

  .has-stars::content{
    font-size
: 40px;
  }
 

/* =====================================================
   SLIDER - MOBILE OPTIMIZED
   ===================================================== */
.slider {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.slider .list {
  position: relative;
  width: 100%;
  min-height: 900px;
  margin-bottom: 0;
}

.slider .item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: visible;
  display: flex;
  flex-direction: column;
  /* Hardware acceleration */
  transform: translateZ(0);
}

.slider .item.active {
  opacity: 1;
  pointer-events: auto;
}

.slider .item h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: var(--spacing-md) var(--spacing-sm);
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal) 100%);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  text-align: center;
  order: 1;
  font-size: var(--step-1);
}

.slider .item .text-group {
  position: relative;
  z-index: 2;
  padding: var(--spacing-md);
  background: var(--color-white);
  order: 2;
}

.slider .item .text-group p {
  text-align: center;
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
  font-size: var(--step-0);
}

.slider .item .text-group > p:first-child {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--spacing-md);
  text-align: center;
  line-height: 1.5;
}

.slider .item .text-group h4 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--color-teal);
  text-align: center;
  font-weight: 700;
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slider .item .text-group p strong {
  color: var(--color-teal);
  font-weight: 700;
}

.slider .item .text-group p em {
  color: var(--color-lime-dark);
  font-style: italic;
  font-weight: 600;
}

.slider .item > img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  order: 3;
  margin-top: auto;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.slider .item ul,
.slider .item dl {
  text-align: left;
  margin: var(--spacing-sm) 0;
}

.slider .item ul {
  padding-left: 0;
  list-style: none;
}

.slider .item ul li {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
  position: relative;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--color-dark-gray);
  font-weight: 500;
}

.slider .item ul li::before {
  content: "✓";
  color: var(--color-lime);
  font-weight: bold;
  font-size: 1.2em;
  position: absolute;
  left: 0;
}

.slider .item dl {
  padding: 0;
}

.slider .item dt {
  color: var(--color-teal);
  font-weight: 700;
  font-size: var(--step-0);
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  text-align: center;
  text-transform: uppercase;
}

.slider .item dd {
  margin-left: 0;
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--color-light-gray);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-teal);
  font-size: var(--step-0);
  color: var(--color-dark-gray);
  line-height: 1.6;
  text-align: center;
}

.highlight {
  color: var(--color-lime-dark) !important;
  font-weight: 700;
  font-size: 1.05em;
  display: inline-block;
  margin-top: var(--spacing-xs);
}

/* Slider Controls - Mobile Optimized */
.slider .buttons {
  position: relative;
  bottom: 1200px;
  left: auto;
  transform: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  z-index: 10;
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.05) 0%, rgba(0, 139, 139, 0.05) 100%);
  border-radius: var(--radius-lg);
}

.slider .buttons button {
  background: var(--color-teal);
  color: var(--color-white);
  border: 3px solid var(--color-lime);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hardware acceleration */
  transform: translateZ(0);
  will-change: transform;
}

.slider .buttons button:active {
  transform: scale(0.9);
  background: var(--color-lime);
  color: var(--color-navy);
}

#play-pause-btn {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal) 100%);
  border-color: var(--color-lime);
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

#play-pause-btn.paused {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Remove button labels on mobile */
.slider .buttons button::after {
  display: none;
}

.slider .buttons::before,
.slider .buttons::after {
  display: none;
}

/* Slider Dots - Mobile Optimized */
.slider .dots {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  list-style: none;
  margin: var(--spacing-sm) 0 0 0;
  padding: var(--spacing-sm);
  z-index: 10;
}

.slider .dots li {
  width: 14px;
  height: 14px;
  background: var(--color-medium-gray);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid var(--color-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  /* Improve tap target */
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider .dots li.active,
.slider .dots li[aria-selected="true"] {
  background: var(--color-lime);
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(50, 205, 50, 0.6);
}

/* Desktop: Larger slider */
@media (min-width: 769px) {
  .slider .list {
    min-height: 1200px;
  }
  
  .slider .item > img {
    height: 500px;
  }
  
  .slider .item h3 {
    padding: var(--spacing-lg) var(--spacing-md);
    font-size: var(--step-3);
  }
  
  .slider .item .text-group {
    padding: var(--spacing-xl);
  }
  
  .slider .item .text-group > p:first-child {
    font-size: var(--step-2);
  }
  
  .slider .item .text-group h4 {
    font-size: var(--step-1);
  }
  
  .slider .buttons {
    bottom: 1538px;
    padding: var(--spacing-lg);
  }
  
  .slider .buttons button {
    width: 50px;
    height: 50px;
  }
  
  .slider .buttons button:hover,
  .slider .buttons button:focus {
    transform: scale(1.15);
    background: var(--color-lime);
    color: var(--color-navy);
  }
  
  #play-pause-btn {
    width: 70px;
    height: 70px;
  }
  
  .slider .buttons button::after {
    display: block;
    content: attr(aria-label);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--step--2);
    font-weight: 600;
    white-space: nowrap;
    color: var(--color-navy);
    background: var(--color-white);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    border: 2px solid var(--color-teal);
    box-shadow: var(--shadow-sm);
  }
  
  .slider .buttons button:hover::after,
  .slider .buttons button:focus::after {
    opacity: 1;
  }
  
  .slider .buttons::before {
    display: block;
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--color-teal) 50%, transparent 100%);
    border-radius: 2px;
  }
  
  .slider .buttons::after {
    display: block;
    content: 'SLIDER CONTROLS';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--step--1);
    font-weight: 700;
    color: var(--color-teal);
    letter-spacing: 2px;
    text-align: center;
    background: var(--color-white);
    padding: 4px 16px;
    border-radius: var(--radius-md);
  }
  
  .slider .dots li {
    width: 20px;
    height: 20px;
    min-width: auto;
    min-height: auto;
  }
}

/* =====================================================
   CONTACT SECTION - MOBILE OPTIMIZED
   ===================================================== */
.contact-yellow {
  /* MOBILE: Solid background for speed */
  background: linear-gradient(135deg, var(--color-lime-light) 0%, var(--color-lime) 100%);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin: var(--spacing-md) 0;
  position: relative;
  margin-top: 200px;
}

/* Desktop: Add background image */
@media (min-width: 769px) {
  .contact-yellow {
    background-image: 
      image-set(
        url('images/sections3.webp') type('image/webp'),
        url('images/sections3.png') type('image/png')
      );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xl);
    margin-top: 1500px;
  }
  
  @supports not (background-image: image-set(url('test.webp') type('image/webp'))) {
    .contact-yellow {
      background-image: url('images/sections3.png');
    }
  }
  
  .contact-yellow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(127, 255, 0, 0.75);
    border-radius: var(--radius-xl);
    z-index: 0;
  }
  
  .contact-yellow > * {
    position: relative;
    z-index: 1;
  }
}

.contact-container {
  margin-bottom: var(--spacing-md);
}

.contact-yellow h2 {
  color: var(--color-navy);
  text-shadow: 
    -1px -1px 0 var(--color-white),
    1px -1px 0 var(--color-white),
    -1px 1px 0 var(--color-white),
    1px 1px 0 var(--color-white);
}

.contact-box {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-info {
  font-style: normal;
  margin: var(--spacing-md) 0;
  text-align: center;
}

.contact-info p {
  font-size: var(--step-0);
  margin-bottom: var(--spacing-md);
  color: var(--color-navy);
  font-weight: 800;
}

.contact-info a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 900;
  transition: color var(--transition-fast);
  border-bottom: 2px solid transparent;
  font-size: var(--step-0);
  word-break: break-word;
}

.contact-info a:active {
  color: var(--color-lime-dark);
  border-bottom: 2px solid var(--color-lime-dark);
}

@media (min-width: 769px) {
  .contact-info p {
    font-size: var(--step-1);
  }
  
  .contact-info a:hover,
  .contact-info a:focus {
    color: var(--color-lime-dark);
    border-bottom: 2px solid var(--color-lime-dark);
  }
  
  .contact-box {
    padding: var(--spacing-xl);
  }
}

.contact-info i {
  color: var(--color-teal);
  margin-right: var(--spacing-xs);
  font-size: var(--step-1);
}

.excellence-badge {
  margin: var(--spacing-md) 0;
  text-align: center;
}

#img7 {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* =====================================================
   FORM STYLES - MOBILE OPTIMIZED
   ===================================================== */
.form-container {
  margin-top: var(--spacing-md);
}

#Quote {
  font-size: var(--step-2);
  color: var(--color-navy);
  margin-bottom: var(--spacing-md);
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(127, 255, 0, 0.75); 
}

form {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-navy);
  font-weight: 600;
  font-size: var(--step-0);
  text-align: left;
}

.required {
  color: var(--color-lime-dark);
  font-weight: bold;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--color-medium-gray);
  border-radius: var(--radius-md);
  font-size: var(--step-0);
  font-family: var(--font-primary);
  transition: border-color var(--transition-fast);
  background: var(--color-white);
  /* Improve mobile input experience */
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 139, 139, 0.1);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-valid {
  border-color: var(--color-lime-dark);
}

.form-text {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: var(--step--1);
  color: var(--color-dark-gray);
  text-align: left;
}

.invalid-feedback {
  display: none;
  margin-top: var(--spacing-xs);
  font-size: var(--step--1);
  color: #dc3545;
  text-align: left;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
}

.form-check-input {
  width: 22px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-check-label {
  margin: 0;
  cursor: pointer;
  text-align: left;
  font-size: var(--step--1);
}

.form-check-label a {
  color: var(--color-teal);
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--step-0);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  border: none;
  font-family: var(--font-primary);
  min-width: 180px;
  /* Improve tap target */
  min-height: 48px;
  /* Hardware acceleration */
  transform: translateZ(0);
}

.btn-outline-dark {
  background: var(--color-white);
  color: var(--color-navy);
  border: 3px solid var(--color-navy);
}

.btn-outline-dark:active {
  background: var(--color-navy);
  color: var(--color-white);
  transform: scale(0.97);
}

@media (min-width: 769px) {
  .btn-outline-dark:hover,
  .btn-outline-dark:focus {
    background: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  #Quote {
    font-size: var(--step-3);
  }
  
  textarea.form-control {
    min-height: 120px;
  }
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loading {
  display: none;
}

#form-status {
  margin-top: var(--spacing-md);
  text-align: center;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* =====================================================
   FOOTER - MOBILE OPTIMIZED
   ===================================================== */
footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--spacing-lg) var(--spacing-sm);
  text-align: center;
  margin-top: var(--spacing-xl);
}

footer p {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  font-size: var(--step-0);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-teal);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 50%;
  font-weight: 600;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  box-shadow: var(--shadow-md);
  position: relative;
  /* Hardware acceleration */
  transform: translateZ(0);
}

.pagination a:active {
  background: var(--color-lime);
  color: var(--color-navy);
  transform: scale(0.9);
}

.pagination a[aria-current="page"] {
  background: var(--color-lime);
  color: var(--color-navy);
}

/* Footer Icons */
.pagination a::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.2em;
}

.pagination a span {
  opacity: 0;
  font-size: 0;
}

.pagination a[href="#Home"]::before {
  content: "\f015";
}

.pagination a[href="#AboutUS"]::before {
  content: "\f05a";
}

.pagination a[href="#Testimonials"]::before {
  content: "\f086";
}

.pagination a[href="#Services"]::before {
  content: "\f51e";
}

.pagination a[href="#ContactUs"]::before {
  content: "\f0e0";
}

/* Desktop */
@media (min-width: 769px) {
  footer {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .pagination a {
    width: 50px;
    height: 50px;
  }
  
  .pagination a::before {
    font-size: 1.3em;
  }
  
  .pagination a:hover,
  .pagination a:focus {
    background: var(--color-lime);
    color: var(--color-navy);
    transform: scale(1.15);
  }
  
  .pagination a:hover::before,
  .pagination a:focus::before {
    transform: rotate(360deg) scale(1.2);
  }
  
  .pagination a[aria-current="page"]::before {
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px rgba(50, 205, 50, 0.8));
  }
}

/* Back to Top Button - Mobile Optimized */
#back-to-top {
  position: fixed;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--color-teal);
  color: var(--color-white);
  border: 3px solid var(--color-lime);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hardware acceleration */
  transform: translateZ(0);
  will-change: transform;
}

#back-to-top::before {
  content: "\f062";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.3em;
}

#back-to-top:active {
  transform: scale(0.9);
  background: var(--color-lime);
  color: var(--color-navy);
}

/* Desktop */
@media (min-width: 769px) {
  #back-to-top {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  #back-to-top:hover,
  #back-to-top:focus {
    background: var(--color-lime);
    color: var(--color-navy);
    transform: scale(1.15) rotate(360deg);
  }
  
  #back-to-top:hover::before,
  #back-to-top:focus::before {
    animation: arrowBounce 0.6s ease-in-out infinite;
  }
}

@keyframes arrowBounce {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(-6px); 
  }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-xs) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }

/* =====================================================
   ANIMATIONS - Minimal for Mobile Performance
   ===================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn var(--transition-medium) ease-out;
}

/* =====================================================
   ACCESSIBILITY ENHANCEMENTS
   ===================================================== */
*:focus {
  outline: 3px solid var(--color-lime);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--color-lime);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  :root {
    --color-teal: #006666;
    --color-navy: #000033;
    --color-lime: #228B22;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
  header,
  #navbar,
  #open-sidebar-button,
  #overlay,
  .arrow,
  .page-nav-buttons,
  .slider .buttons,
  .slider .dots,
  #back-to-top,
  footer .pagination {
    display: none;
  }
  
  .slider .item {
    position: static;
    opacity: 1;
    page-break-inside: avoid;
    margin-bottom: var(--spacing-lg);
  }
  
  body {
    font-size: 12pt;
    color: var(--color-black);
  }
}

/* =====================================================
   END OF MOBILE-OPTIMIZED STYLESHEET
   ===================================================== */