/* =====================================================
   MaiA Entretien - Main Stylesheet
   Color Scheme: Teal, Navy Blue, Lime Green
   ===================================================== */

/* =====================================================
   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: 'Roboto', sans-serif;
  --font-secondary: 'Merriweather Sans', sans-serif;
  --font-accent: 'Noto Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-dark-gray);
  background-color: var(--color-teal);
  overflow-x: hidden;
}

/* =====================================================
   TYPOGRAPHY - CENTERED & VISIBLE
   ===================================================== */
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: 2px 2px 4px 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.8;
  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 for Headers */
.outlined-text {
  color: var(--color-teal);
  text-shadow: 
    -2px -2px 0 var(--color-white),
    2px -2px 0 var(--color-white),
    -2px 2px 0 var(--color-white),
    2px 2px 0 var(--color-white),
    0 0 10px rgba(50, 205, 50, 0.5);
  font-weight: 700;
  font-size: var(--step-4);
  margin: var(--spacing-lg) 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.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),
    0 0 8px rgba(50, 205, 50, 0.6);
  font-weight: 600;
  font-size: var(--step-3);
  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: 600;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
}

.skip-link:focus {
  top: var(--spacing-sm);
}

/* =====================================================
   LOGO
   ===================================================== */
.logo-link {
  display: block;
  margin: var(--spacing-md) auto;
  width: fit-content;
  text-decoration: none;
  transition: all var(--transition-medium);
  cursor: pointer;
  margin-top: 200px;
}

.logo-link:hover,
.logo-link:focus {
  transform: translateY(-5px);
  filter: drop-shadow(0 8px 16px rgba(0, 139, 139, 0.3));
}

.logo-link:active {
  transform: translateY(-2px);
}

/* Logo Image - Now inside clickable link */
#img1 {
  display: block;
  max-width: 300px;
  height: 240px;
  width: 350px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: all var(--transition-medium);
  border-radius: 8px;
   margin-bottom:-10px;
}

/* =====================================================
   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; /* Small delay for better effect */
}

/* 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);
  }
}

/* To use alternatives, replace animation name:
   .logo-entrance { animation: logoEntranceFast 1s ease-out forwards; }
   or
   .logo-entrance { animation: logoEntranceMultiSpin 2s ease-out forwards; }
   or
   .logo-entrance { animation: logoEntranceFlip 1.2s ease-out forwards; }
*/

/* =====================================================
   HOVER EFFECTS (same as before)
   ===================================================== */

.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: 3px 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
   ===================================================== */
header {
  background-image: url('images/image4.webp');
  opacity: 0.95;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
 
  
}

/* Overlay for better text readability */
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-lg);
}

.hero-subtitle {
  font-size: var(--step-2);
  color: var(--color-lime-light);
  font-weight:700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-top: var(--spacing-md);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
/* Desktop Navigation - Always Visible */
#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);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow-y: visible;
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--color-lime);
  transform: translateY(0);
}

/* Scrolled state - navbar becomes more compact */
#navbar.scrolled {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.98) 0%, rgba(0, 139, 139, 0.98) 100%);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  border-bottom-width: 2px;
}

/* Hide navbar when scrolling down, show when scrolling up */
#navbar.hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

/* Navbar visible when scrolling up */
#navbar.visible {
  transform: translateY(0);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#navbar ul {
  list-style: none;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  transition: gap 0.3s ease;
}

#navbar.scrolled ul {
  gap: var(--spacing-xs);
}

#navbar ul li {
  margin-bottom: 0;
  text-align: center;
}

#navbar ul li.home-li a {
  background: var(--color-lime);
  color: var(--color-navy);
  font-weight: 700;
  border: 2px solid var(--color-lime);
}

#navbar ul li.home-li a:hover,
#navbar ul li.home-li a:focus {
  background: var(--color-lime-light);
  color: var(--color-navy);
  transform: translateY(-3px) scale(1.05);
}

#navbar ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--step-0);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* Compact link style when scrolled */
#navbar.scrolled ul li a {
  padding: 10px 20px;
  font-size: var(--step--1);
}

#navbar ul li a:hover,
#navbar ul li a:focus {
  background: var(--color-teal);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 139, 139, 0.4);
  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);
  font-weight: 700;
  border-color: var(--color-lime);
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

/* Progress indicator */
#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;
  box-shadow: 0 0 10px var(--color-lime);
}

/* Add icons to navigation links using ::before */
/* =====================================================
   REPLACE THIS SECTION IN YOUR STYLE.CSS
   Replace lines with emoji content (🏠 ℹ️ 🧹 ✉️) with this code
   ===================================================== */

/* Remove the old emoji-based ::before rules and replace with this: */

/* Modern Font Awesome Icons for Navigation Links */
#navbar ul li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

#navbar ul li a i {
  font-size: 1.2em;
  min-width: 22px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* Icon animations on hover */
#navbar ul li a:hover i,
#navbar ul li a:focus i {
  transform: translateX(4px) scale(1.1);
  color: var(--color-lime-light);
  filter: drop-shadow(0 0 8px var(--color-lime));
}

/* Active link icon styling */
#navbar ul li a.active-link i,
#navbar ul li a[aria-current="page"] i {
  color: var(--color-navy);
  text-shadow: 0 0 10px rgba(50, 205, 50, 0.4);
  transform: scale(1.1);
}

/* Icon pulse animation for active link */
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.25);
  }
}

#navbar ul li a.active-link i,
#navbar ul li a[aria-current="page"] i {
  animation: iconPulse 2s ease-in-out infinite;
}

/* Individual icon-specific hover animations */

/* Home icon - shake effect */
#navbar ul li a[href="#Home"]:hover i {
  animation: homeShake 0.5s ease-in-out;
}

@keyframes homeShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* About icon - bounce effect */
#navbar ul li a[href="#AboutUS"]:hover i {
  animation: infoBounce 0.5s ease-in-out;
}

@keyframes infoBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Services icon - broom sweep effect */
#navbar ul li a[href="#Services"]:hover i {
  animation: broomSweep 0.6s ease-in-out;
}

@keyframes broomSweep {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-20deg); }
  75% { transform: rotate(20deg); }


  }

/* Testimonials icon- comment effect */
#navbar ul li a[href="#Testimonials"]:hover i {
  animation: commentsPulse 0.6s ease-in-out;
}

@keyframes commentsPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}


}

/* Contact icon - envelope flip effect */
#navbar ul li a[href="#ContactUs"]:hover i {
  animation: envelopeFlip 0.6s ease-in-out;
}

@keyframes envelopeFlip {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}



/* Mobile Navigation Icon Adjustments */
@media (max-width: 768px) {
  #navbar ul li a i {
    font-size: 1.4em;
    min-width: 26px;
  }
  
  #navbar ul li a:hover i,
  #navbar ul li a:focus i {
    transform: translateX(6px) scale(1.15);
  }
  
  /* Reduce animation intensity on mobile */
  #navbar ul li a[href="#Home"]:hover i {
    animation: homeShakeMobile 0.4s ease-in-out;
  }
  
  @keyframes homeShakeMobile {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-3px); }
  }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
  #navbar ul li a i {
    animation: none !important;
    transition: none !important;
  }
  
  #navbar ul li a:hover i,
  #navbar ul li a:focus i {
    transform: none !important;
  }
}

/* =====================================================
   BONUS: Footer Pagination with Icons
   Add this for icon-enhanced footer pagination
   ===================================================== */

.pagination a {
  position: relative;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pagination a::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.3em;
  transition: all 0.3s ease;
  position: absolute;
}

.pagination a span {
  opacity: 0;
  font-size: 0;
}

.pagination a[href="#Home"]::before {
  content: "\f015"; /* home icon */
}

.pagination a[href="#AboutUS"]::before {
  content: "\f05a"; /* info-circle icon */
}



.pagination a[href="#Testimonials"]::before {
  content: "\f51e"; /* comments icon */
}

.pagination a[href="#Services"]::before {
  content: "\f51e"; /* broom icon */
}

.pagination a[href="#ContactUs"]::before {
  content: "\f0e0"; /* envelope icon */
}

.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));
}

/* =====================================================
   BONUS: Enhanced Back to Top Button
   ===================================================== */

#back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  width: auto;
  min-width: 65px;
  padding: 0 22px;
  height: 60px;
}

#back-to-top::before {
  content: "\f062"; /* arrow-up icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

#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(-8px); 
  }
}

/* =====================================================
   END OF ICON ENHANCEMENTS
   ===================================================== */

/* Icon bounce on hover */
#navbar ul li a:hover::before {
  transform: scale(1.2);
}

/* Hide mobile menu button and close button on desktop */
#open-sidebar-button,
#close-sidebar-button {
  display: none;
}

/* Overlay - hidden on desktop */
#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(5px);
}

#overlay.active {
  display: block;
}

/* =====================================================
   MOBILE NAVIGATION (Tablets and smaller)
   ===================================================== */
@media (max-width: 768px) {
  /* Reset navbar to static on mobile (sidebar behavior) */
  #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 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    border-right: 4px solid var(--color-lime);
    border-bottom: none;
    transform: none;
  }
  
  /* Remove scroll effects on mobile sidebar */
  #navbar.scrolled,
  #navbar.hidden,
  #navbar.visible {
    padding: var(--spacing-xl) var(--spacing-md);
    transform: none;
  }
  
  #navbar::after {
    display: none;
  }
  
  /* Show 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: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  #open-sidebar-button::after {
    content: "MENU";
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-navy);
    color: var(--color-lime);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--step--2);
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
  }
  
  #open-sidebar-button:hover,
  #open-sidebar-button:focus {
    background: linear-gradient(135deg, var(--color-lime) 0%, var(--color-lime-dark) 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.4);
  }
  
  #open-sidebar-button svg {
    display: block;
    width: 36px;
    height: 36px;
  }
  
  #navbar.active {
    left: 0;
  }
  
  /* Add welcome text at top of sidebar */
  #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 {
    display: block;
    margin-top: var(--spacing-md);
    gap: 0;
  }
  
  #navbar ul li {
    margin-bottom: var(--spacing-md);
  }
  
  #navbar ul li a {
    background: rgba(0, 139, 139, 0.2);
    backdrop-filter: none;
    width: 100%;
    justify-content: flex-start;
    padding: 16px 20px;
    font-size: var(--step-0);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
  }
  
  #navbar.scrolled ul li a {
    padding: 16px 20px;
    font-size: var(--step-0);
  }
  
  #navbar ul li a:hover,
  #navbar ul li a:focus {
    transform: translateX(8px);
    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);
  }
  
  /* Show close button in sidebar - more prominent */
  #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: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  #close-sidebar-button:hover,
  #close-sidebar-button:focus {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
  }
  
  #close-sidebar-button svg {
    display: block;
    width: 28px;
    height: 28px;
  }
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

section {
  padding: var(--spacing-xl) var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

/* =====================================================
   PAGE NAVIGATION BUTTONS (Up/Down)
   ===================================================== */
.page-nav-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 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: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
  min-width: 140px;
}

.arrow button:hover,
button[id^="pagebutton"]:hover,
.arrow button:focus,
button[id^="pagebutton"]:focus {
  background: var(--color-lime);
  color: var(--color-navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.About {
  background-image: url('images/Backgroundteal-3.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  margin-bottom: 100px;
  margin-top:200px;
}

/* Optional overlay for better text readability */
.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 2px 4px rgba(0, 0, 0, 0.1));
  height: 310px;
  width: 310px;
}

#img6 {
  display: block;
  margin: var(--spacing-lg) auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px 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: center;
}

.benefits-list li {
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  background: var(--color-light-gray);
  border-left: 4px solid var(--color-lime);
  border-radius: var(--radius-sm);
  font-size: var(--step-0);
  text-align: center;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.Services-blue {
  background-image: url('images/Serviceswe-1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  margin: var(--spacing-lg) 0;
  position: relative;
  margin-bottom: 2300px;
  margin-top:400px;
}

/* Optional overlay for better content visibility */
.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);
}

/* =====================================================
   SLIDER
   ===================================================== */
.slider {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--spacing-sm);
  padding-bottom: var(--spacing-sm); /* Normal padding */
}

.slider .list {
  position: relative;
  width: 100%;
  min-height: 1200px; /* Increased to ensure all text is visible */
  margin-bottom: 0; /* Controls will have their own spacing */
}

.slider .item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.slider .item.active {
  opacity: 1;
  pointer-events: auto;
}

/* Title at top */
.slider .item h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: var(--spacing-lg) var(--spacing-md);
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal) 100%);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  text-align: center;
  order: 1;
}

/* All text content ABOVE image */
.slider .item .text-group {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xl);
  background: var(--color-white);
  order: 2;
}

.slider .item .text-group p {
  text-align: center;
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  font-size: var(--step-0); /* Larger base font */
}

.slider .item .text-group > p:first-child {
  font-size: var(--step-2); /* Much larger intro text */
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  line-height: 1.5;
}

.slider .item .text-group h4 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--color-teal);
  text-align: center;
  font-weight: 700;
  font-size: var(--step-1); /* Larger subheadings */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slider .item .text-group p strong {
  color: var(--color-teal);
  font-weight: 700;
  font-size: 1.1em; /* Slightly larger than surrounding text */
}

.slider .item .text-group p em {
  color: var(--color-lime-dark);
  font-style: italic;
  font-weight: 600;
}

/* Image at BOTTOM */
.slider .item > img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  order: 3;
  margin-top: auto;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.slider .item ul,
.slider .item dl {
  text-align: left;
  margin: var(--spacing-md) 0;
}

.slider .item ul {
  padding-left: 0;
  list-style: none;
}

.slider .item ul li {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
  position: relative;
  font-size: var(--step-0); /* Larger font */
  line-height: 1.8;
  color: var(--color-dark-gray);
  font-weight: 500;
}

.slider .item ul li::before {
  content: "✓";
  color: var(--color-lime);
  font-weight: bold;
  font-size: 1.5em; /* Larger checkmark */
  position: absolute;
  left: 0;
}

.slider .item dl {
  padding: 0;
}

.slider .item dt {
  color: var(--color-teal);
  font-weight: 700;
  font-size: var(--step-1); /* Larger definition terms */
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slider .item dd {
  margin-left: 0;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-light-gray);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-teal);
  font-size: var(--step-0); /* Larger font */
  color: var(--color-dark-gray);
  line-height: 1.7;
  text-align: center;
}

.highlight {
  color: var(--color-lime-dark) !important;
  font-weight: 700;
  font-size: 1.15em; /* Larger */
  display: inline-block;
  margin-top: var(--spacing-sm);
  font-size: var(--step--1);
}

/* Slider Controls - Dedicated area with background */
.slider .buttons {
  position: relative;
  bottom: 1538px;
  left: auto;
  transform: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  z-index: 10;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.05) 0%, rgba(0, 139, 139, 0.05) 100%);
  border-radius: var(--radius-lg);
 /* border: 1px solid var(--color-teal); */
  

}

.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.75rem;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider .buttons button:hover,
.slider .buttons button:focus {
  background: var(--color-lime);
  color: var(--color-navy);
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
}

/* Play/Pause button - distinct styling */
#play-pause-btn {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal) 100%);
  border-color: var(--color-lime);
  width: 70px;
  height: 70px;
  font-size: 1.75rem;
}

#play-pause-btn:hover,
#play-pause-btn:focus {
  background: linear-gradient(135deg, var(--color-lime) 0%, var(--color-lime-light) 100%);
  transform: scale(1.2);
}

#play-pause-btn.paused {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

#play-pause-btn.paused:hover {
  background: linear-gradient(135deg, var(--color-lime) 0%, var(--color-lime-light) 100%);
}

/* Add labels under buttons */
.slider .buttons button::after {
  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;
}

/* Add a separator line above controls */
.slider .buttons::before {
  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;
}

/* Add control label */
.slider .buttons::after {
  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 - In control area with buttons */
.slider .dots {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  list-style: none;
  margin: var(--spacing-md) 0 0 0;
  padding: var(--spacing-md);
  z-index: 10;
}

.slider .dots li {
  width: 20px;
  height: 20px;
  background: var(--color-medium-gray);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 3px solid var(--color-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider .dots li.active,
.slider .dots li[aria-selected="true"] {
  background: var(--color-lime);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(50, 205, 50, 0.6);
}

.slider .dots li:hover,
.slider .dots li:focus {
  background: var(--color-teal);
  transform: scale(1.2);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-yellow {
  background-image: url('images/sections3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  margin: var(--spacing-lg) 0;
  position: relative;
  margin-top: 1500px;
}

/* Optional overlay for better form visibility */
.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-lg);
}

.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-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Contact Info */
.contact-info {
  font-style: normal;
  margin: var(--spacing-lg) 0;
  text-align: center;
}

.contact-info p {
  font-size: var(--step-1);
  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: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  font-size: var(--step-0);
 
  /* Standard property for future compatibility (limited support currently) */

  
}

.contact-info a:hover,
.contact-info a:focus {
  color: var(--color-lime-dark);
  border-bottom: 2px solid var(--color-lime-dark);
}

.contact-info i {
  color: var(--color-teal);
  margin-right: var(--spacing-sm);
  font-size: var(--step-2);
}

.excellence-badge {
  margin: var(--spacing-lg) 0;
  text-align: center;
 
}

#img7 {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  

}

/* =====================================================
   FORM STYLES
   ===================================================== */
.form-container {
  margin-top: var(--spacing-lg);
}

#Quote {
  font-size: var(--step-3);
  color: var(--color-navy);
  margin-bottom: var(--spacing-lg);
  font-weight: 900;
   text-shadow: 
    4px 4px 8px 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: all var(--transition-fast);
  background: var(--color-white);
}

.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: 120px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
}

.form-check-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.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;
}

/* Submit Button */
.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: all var(--transition-fast);
  border: none;
  font-family: var(--font-primary);
  min-width: 200px;
}

.btn-outline-dark {
  background: var(--color-white);
  color: var(--color-navy);
  border: 3px solid var(--color-navy);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loading {
  display: none;
}

/* Form Status Messages */
#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
   ===================================================== */
footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-md);
  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: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: var(--color-teal);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 50%;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.pagination a:hover,
.pagination a:focus {
  background: var(--color-lime);
  color: var(--color-navy);
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
}

.pagination a[aria-current="page"] {
  background: var(--color-lime);
  color: var(--color-navy);
  transform: scale(1.1);
}

/* Back to Top Button */
#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: 60px;
  height: 60px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

#back-to-top:hover,
#back-to-top:focus {
  background: var(--color-lime);
  color: var(--color-navy);
  transform: scale(1.15) rotate(360deg);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Tablets and below */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }
  
  header {
    min-height: 50vh;
    padding: var(--spacing-lg) var(--spacing-sm);
    background-attachment: scroll;
  }
  
  .header-container {
    padding: var(--spacing-md);
  }
  
  section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  /* Mobile: use scroll instead of fixed for better performance */
  .About,
  .Services-blue,
  .contact-yellow {
    background-attachment: scroll;
  
  }
  
  .slider .list {
    min-height: 1200px;
    margin-bottom: 0;
  }
  
  .slider .item {
    flex-direction: column;
  }
  
  .slider .item > img {
    height: 300px;
  }
  
  .slider .item .text-group {
    padding: var(--spacing-md);
  }
  
  .slider .buttons {
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
  }
  
  .slider .buttons button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .pagination a {
    width: 45px;
    height: 45px;
    line-height: 45px;
  }
  
  #back-to-top {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .slider .buttons button {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .slider .list {
    min-height: 1100px;
    margin-bottom: 0;
  }
  
  .slider .item > img {
    height: 250px;
  }
  
  .slider .item .text-group {
    padding: var(--spacing-sm);
  }
  
  .slider .item h3 {
    padding: var(--spacing-md) var(--spacing-sm);
    font-size: var(--step-1);
  }
  
  .slider .buttons {
    padding: var(--spacing-sm);
    margin-top: var(--spacing-md);
    gap: var(--spacing-sm);
  }
  
  .slider .buttons button {
    width: 55px;
    height: 55px;
    font-size: 1.25rem;
  }
  
  .slider .buttons::after {
    font-size: var(--step--2);
    top: -40px;
    padding: 3px 12px;
  }
  
  .slider .dots {
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }
  
  .slider .dots li {
    width: 16px;
    height: 16px;
  }
  
  .pagination a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: var(--step--1);
  }
  
  .btn {
    min-width: 150px;
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* Large screens - Fluid typography handles this automatically */
@media (min-width: 1400px) {
  /* Additional large screen optimizations can go here */
}

/* =====================================================
   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);
  }
}

/* =====================================================
   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
   ===================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn var(--transition-medium) ease-out;
}

/* =====================================================
   ACCESSIBILITY ENHANCEMENTS
   ===================================================== */
/* Focus styles */
*: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;
}

/* High contrast mode support */
@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;
  }
}



/* =====================================================
   END OF OPTIMIZED STYLESHEET
   ===================================================== */