/* style.css (Main Stylesheet) */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Define CSS custom properties for consistent theming and easy updates */
:root {
  --primary-color: #f39c12;           /* Primary brand color for accents */
  --secondary-color: #2c3e50;         /* Secondary color for text and contrast */
  --bg-light: #f8f9fa;               /* Light background for sections */
  --bg-white: #fff;                  /* Pure white for clean backgrounds */
  --text-dark: #333;                 /* Dark text for readability */
  --text-medium: #555;               /* Medium gray for secondary text */
  --shadow-light: rgba(0, 0, 0, 0.1); /* Subtle shadow for elevation */
  --border-color: #ddd;              /* Light border color for separation */
  --font-primary: 'Open Sans', sans-serif; /* Primary font for general use */
  --font-secondary: 'Roboto', sans-serif; /* Secondary font for headings */
  --primary-color-rgb: 243, 156, 18; /* RGB equivalent of #f39c12 for opacity */
  --transition-normal: 0.4s ease;    /* Standard transition for smooth effects */
}

/* Set base styles for body */
body {
  font-family: var(--font-primary);   /* Default font */
  background-color: var(--bg-light);  /* Light page background */
  color: var(--text-dark);            /* Dark text for contrast */
  line-height: 1.6;                   /* Improved readability */
  margin: 0;                          /* Remove default margin */
}

/* Style headings with consistent typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-color);      /* Dark blue for headings */
  font-family: var(--font-secondary); /* Use secondary font */
  font-weight: 700;                   /* Bold headings */
  line-height: 1.2;                   /* Tight line spacing for headings */
}

/* Style paragraphs with medium text color */
p {
  color: var(--text-medium);
  margin-bottom: 1em;                 /* Consistent spacing below paragraphs */
}

/* --- Button Styles --- */
/* Style contact button with animated background */
.contact-button {
  position: relative;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--primary-color);
  background-color: transparent;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: 2px solid var(--primary-color);
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-secondary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  text-decoration: none;              /* Remove underlines */
}

/* Ensure button text stays above animation */
.contact-button span {
  position: relative;
  z-index: 2;
  transition: color var(--transition-normal);
}

/* Animated background layer for hover */
.button-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transform: translateY(100%);        /* Hidden below button */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bounce effect */
  z-index: 1;
}

/* Slide background up on hover */
.contact-button:hover .button-background {
  transform: translateY(0);
}

/* Change text color on hover */
.contact-button:hover span {
  color: white;
}

/* --- Search Box Styles --- */
/* Style search box with collapsible animation */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 40px;                        /* Collapsed width */
  height: 40px;
  overflow: hidden;                   /* Hide input initially */
  transition: width 0.4s ease;        /* Smooth width transition */
  border-radius: 50%;                 /* Circular when collapsed */
}

/* Expand search box when active */
.search-box.active {
  width: 200px;                       /* Expanded width */
  border-radius: 25px;
  border: 1px solid var(--text-medium); /* Border when active */
}

/* Style search input field */
.search-input {
  flex: 1;                            /* Fill available space */
  border: none;
  padding: 8px 10px;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-dark);
  font-family: var(--font-secondary);
  width: 100%;                        /* Ensure full width */
}

/* Style search icon with circular hover effect */
.search-icon {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  position: relative;
  overflow: hidden;
  z-index: 2;                         /* Icon above background */
}

/* Circular background effect on hover */
.search-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--primary-color-rgb), 0.1); /* Subtle primary color overlay */
  border-radius: 50%;
  transform: scale(0);                /* Hidden by default */
  transition: transform 0.3s ease;
  z-index: 1;
}

/* Change icon color and show background on hover */
.search-icon:hover {
  color: var(--primary-color);
}

/* Expand background circle on hover */
.search-icon:hover::before {
  transform: scale(1);
}

/* --- Footer Styles --- */
/* Style footer with dark background and centered text */
footer {
  background-color: var(--secondary-color);
  padding: 20px 20px; /* Adjusted padding to match Contact Us page */
  text-align: center;
  border-top: 1px solid var(--border-color); /* Subtle separation */
  box-shadow: 0 -2px 12px var(--shadow-light); /* Shadow for depth */
  margin-top: 40px;                   /* Space above footer */
}

/* Style footer text */
footer p {
  margin: 0;
  color: #fff; /* White text */
  font-size: 0.9rem;
  font-family: var(--font-secondary);
  transition: color var(--transition-normal); /* Smooth transition */
}

/* Change footer text color to yellow when clicked */
footer p:active {
  color: var(--primary-color); /* Yellow text */
}

/* Add hover effect for footer links */
footer a:hover {
  color: var(--primary-color); /* Yellow text */
}

/* --- Who-we-serve.css (Page-specific Styles) --- */

/* Style main content area with centered max-width */
main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;                     /* Center content */
  padding-top: 80px;  /* ADD THIS LINE.  Adjust as needed. */
}

/* --- Hero Section --- */
/* Flex layout for hero section with shadow and rounded corners */
.who-we-serve-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;     /* Distribute content */
  padding: 4rem 2rem;
  background-color: var(--bg-white);
  box-shadow: 0 4px 20px var(--shadow-light); /* Subtle shadow */
  margin-bottom: 0;
  flex-wrap: wrap;                    /* Allow wrapping on smaller screens */
  border-radius: 10px;
  overflow: hidden;                   /* Contain content */
}

/* Style hero content area */
.who-we-serve-content {
  flex: 0 0 45%;                      /* Take up 45% of width */
  padding: 2rem;
  box-sizing: border-box;             /* Include padding in width */
}

/* Large hero title */
.who-we-serve-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* Readable hero paragraph */
.who-we-serve-content p {
  font-size: 1.2rem;
}

/* Style hero image container */
.who-we-serve-image {
  flex: 0 0 50%;                      /* Take up 50% of width */
  height: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Style hero image with shadow */
.who-we-serve-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--shadow-light);
}

/* --- Page Navigation --- */

/* --- Page Navigation (Sticky) --- */
/* Style sticky navigation with gradient background */
.page-nav {
  background: linear-gradient(to bottom, #f8f9fa, #f0f2f5); /* Subtle gradient */
  border-bottom: 1px solid var(--border-color);  /* Use CSS variable */
  padding: 0;
  position: sticky;                   /* Sticks below header */
  top: 0;  /* Stick to the very top. Important! */
  z-index: 999;                        /* Above main content, below header */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Light shadow */
}

/* Center navigation container */
 .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
} 

/* Flex layout for navigation list */
.page-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;            /* Center links */
  height: 60px; /* Consistent height */
  background-color: var(--secondary-color); /* Dark background */
  /* Remove redundant position, top, left, width, z-index */
  flex-wrap: wrap; /* Add flex-wrap for responsiveness */

}

/* Style nav list items */
.page-nav-list li {
  margin: 0; /* Reset default margins */
  position: relative;  /* For the underline effect */
}

/* Style page navigation links with hover effect */
.page-nav-link {
  text-decoration: none;
  color: var(--bg-light); /* Use CSS variable */
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 0 1.5rem;
  display: flex; /* Use flexbox for vertical centering */
  align-items: center;
  height: 100%; /* Fill the parent's height */
  transition: all 0.25s ease;
  position: relative; /* Needed for the underline */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); /* Subtle text shadow */
}

/* Underline effect for nav links */
.page-nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--primary-color); /* Use CSS variable */
  transition: all 0.25s ease;
  transform: translateX(-50%); /* Center the underline */
}

/* Expand underline on hover or active state */
.page-nav-link:hover,
.page-nav-link.active {
  color: var(--primary-color); /* Use CSS variable */
}

/* Animate underline width */
.page-nav-link:hover:after,
.page-nav-link.active:after {
  width: 70%;
}

/* Bold active link */
.page-nav-link.active {
  font-weight: 700;
}

/* Add borders between nav items */
.page-nav-list li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.2); /*  Subtle border */
}

/* --- Responsive Adjustments (Media Queries) --- */
@media (max-width: 768px) {
  .page-nav-list {
    flex-direction: column; /* Stack links vertically */
    height: auto; /* Allow height to adjust */
  }

  .page-nav-list li {
    width: 100%; /* Full width */
    text-align: center; /* Center text */
  }

  .page-nav-list li + li {
      border-left: none;  /*Remove the left border*/
      border-top: 1px solid rgba(255, 255, 255, 0.2); /* Add top border */
  }
    .page-nav-link {
        padding: 0.75rem 1.5rem; /* Adjust padding for smaller screens */
    }

  /* Hide page navigation for mobile view */
  .page-nav {
    display: none;
  }

  /* Mobile menu styling */
  .nav-list {
    display: flex; /* Change to flex for desktop view */
    flex-direction: row; /* Stack horizontally */
    width: auto; /* Auto width */
    background-color: transparent; /* Transparent background */
    position: static; /* Static position */
    top: auto; /* Remove top positioning */
    left: auto; /* Remove left positioning */
    box-shadow: none; /* Remove shadow */
    z-index: auto; /* Default z-index */
  }

  /* Remove mobile menu toggle */
  .mobile-menu-toggle {
    display: none; /* Hide toggle button */
  }

  /* Remove borders between nav items in mobile view */
  .page-nav-list li + li {
    border-left: none;
  }

  /* Hide page navigation for mobile view */
  .page-nav {
    display: none;
  }

  .header-container {
    flex-direction: row; /* Keep horizontal layout */
    padding: 15px 20px; /* Consistent padding */
    align-items: center; /* Center alignment */
    justify-content: space-between; /* Space between logo and menu */
  }

  .header-left {
    width: auto; /* Let it take natural width */
    justify-content: flex-start; /* Align to start */
  }

  /* Hamburger menu styling */
  .mobile-menu-toggle {
    display: block;
    font-size: 1.3rem; /* Slightly smaller icon */
    padding: 8px;
    border-radius: 4px;
    margin-left: 15px; /* Space from logo */
    transition: background-color var(--transition-normal);
  }

  .mobile-menu-toggle:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
  }

  /* Mobile navigation improvements */
  .main-nav {
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    z-index: 1001;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 4px 10px var(--shadow-light);
    padding: 0; /* Remove padding */
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-normal);
  }

  .nav-list.active {
    display: flex;
    max-height: 300px; /* Enough height for menu items */
    padding: 10px 0; /* Add padding when open */
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

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

  .nav-link {
    display: block;
    padding: 12px 20px;
    text-align: left;
    font-weight: 600;
  }

  /* Contact button in mobile */
  .contact-button {
    margin: 10px 20px; /* Add margin inside nav list */
    width: calc(100% - 40px); /* Full width with margins */
    justify-content: center; /* Center button text */
    padding: 6px 16px; /* Further reduced padding */
    font-size: 0.75rem; /* Further reduced font size */
  }
}

/* Laptop Breakpoint (up to 1024px) */
@media (max-width: 1024px) {
  .page-nav {
    position: fixed; /* Fix the navigation header */
    top: 0;
    width: 100%;
    z-index: 1000;
  }
}

/* --- Section Styles --- */
/* Consistent padding for sections */
.section {
  padding: 4rem 0;
  margin-bottom: 0;
}

/* Center section content */
.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Style section headings */
.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Justify section paragraphs */
.section p {
  font-size: 1.1rem;
}

/* Style overview section with light background */
.section-overview {
  background-color: var(--bg-light);
  border-radius: 10px;
  padding: 4rem 2rem;
}

/* --- Container Grid Styles --- */
/* Responsive grid layout for containers */
.container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adaptive columns */
  gap: 30px;                          /* Space between items */
  margin-top: 40px;                   /* Space above grid */
}

/* Style individual containers with hover effects */
.container {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* Light shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;     /* Distribute content */
  border-top: 4px solid var(--primary-color); /* Top accent */
  overflow: hidden;
  position: relative;
}

/* Lift container on hover with enhanced shadow */
.container:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Subtle gradient overlay on hover */
.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Show overlay on hover */
.container:hover::before {
  opacity: 1;
}

/* Style container heading with underline effect */
.container h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 12px;
  z-index: 2;                         /* Above overlay */
}

/* Underline animation for container heading */
.container h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

/* Extend underline on hover */
.container:hover h3::after {
  width: 100px;
}

/* Style container paragraph */
.container p {
  z-index: 2;
  flex-grow: 1;                       /* Fill available space */
  margin-bottom: 20px;
  color: var(--text-medium);
  line-height: 1.7;                   /* Improved readability */
}

/* Style container icon with scaling animation */
.container-icon {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

/* Scale icon on hover */
.container:hover .container-icon {
  transform: scale(1.2);
}

/* --- Section Header --- */
/* Center section header content */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

/* Style section header title */
.section-header h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

/* Add gradient underline to section header */
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Style section header paragraph */
.section-header p {
  color: var(--text-medium);
  max-width: 800px;
  margin: 0 auto;                     /* Center text */
}

/* --- Learn More Button --- */
/* Style learn-more button with hover animation */
.learn-more-btn {
  display: none; /* Hide Learn More buttons */
}

/* --- Responsive Adjustments --- */

/* Larger Breakpoint (up to 992px) */
@media (max-width: 992px) {
  /* Reduce padding in hero section */
  .who-we-serve-hero {
      padding: 3rem 1rem;
  }

  /* Adjust padding for hero content */
  .who-we-serve-content {
      padding: 1rem;
  }

  /* Reduce hero title size */
  .who-we-serve-content h1 {
      font-size: 2.5rem;
  }

  /* Adjust padding for hero image */
  .who-we-serve-image {
      padding: 1rem;
  }

  /* Reduce section padding */
  .section {
      padding: 3rem 0;
  }

  /* Reduce section heading size */
  .section h2 {
      font-size: 2rem;
  }

  /* Adjust grid column width */
  .container-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  /* Reduce container padding */
  .container {
      padding: 25px;
  }

  /* Reduce section header title size */
  .section-header h2 {
      font-size: 2rem;
  }
}

/* Mobile Breakpoint (up to 768px) */
@media (max-width: 768px) {
  /* Stack hero content vertically */
  .who-we-serve-hero {
      flex-direction: column;
      padding: 2rem 1rem;
  }

  /* Full width for hero content and image */
  .who-we-serve-content,
  .who-we-serve-image {
      flex: 0 0 100%;
      padding: 1rem;
  }

  /* Center hero title on mobile */
  .who-we-serve-content h1 {
      text-align: center;
  }

  /* Adjust page navigation for mobile */
  .page-nav-list {
      justify-content: space-around;
      height: auto;                   /* Allow height to adjust */
      flex-wrap: wrap;                /* Wrap items if needed */
      padding: 0.5rem 0;              /* Add padding */
  }

  /* Adjust padding for nav links */
  .page-nav-link {
      padding: 0.75rem 1rem;
      height: auto;
  }

  /* Add spacing between nav items */
  .page-nav-list li {
      margin: 0.25rem 0;
  }

  /* Reduce padding in overview section */
  .section-overview {
      padding: 3rem 1rem;
  }

  /* Reduce container padding */
  .container {
      padding: 1.5rem;
  }

  /* Reduce section header title size */
  .section-header h2 {
      font-size: 1.8rem;
  }

  /* Mobile menu styling */
  .nav-list {
    display: flex; /* Change to flex for desktop view */
    flex-direction: row; /* Stack horizontally */
    width: auto; /* Auto width */
    background-color: transparent; /* Transparent background */
    position: static; /* Static position */
    top: auto; /* Remove top positioning */
    left: auto; /* Remove left positioning */
    box-shadow: none; /* Remove shadow */
    z-index: auto; /* Default z-index */
  }

  /* Remove mobile menu toggle */
  .mobile-menu-toggle {
    display: none; /* Hide toggle button */
  }

  /* Remove borders between nav items in mobile view */
  .page-nav-list li + li {
    border-left: none;
  }

  /* Hide page navigation for mobile view */
  .page-nav {
    display: none;
  }

  .header-container {
    flex-direction: row; /* Keep horizontal layout */
    padding: 15px 20px; /* Consistent padding */
    align-items: center; /* Center alignment */
    justify-content: space-between; /* Space between logo and menu */
  }

  .header-left {
    width: auto; /* Let it take natural width */
    justify-content: flex-start; /* Align to start */
  }

  /* Hamburger menu styling */
  .mobile-menu-toggle {
    display: block;
    font-size: 1.3rem; /* Slightly smaller icon */
    padding: 8px;
    border-radius: 4px;
    margin-left: 15px; /* Space from logo */
    transition: background-color var(--transition-normal);
  }

  .mobile-menu-toggle:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
  }

  /* Mobile navigation improvements */
  .main-nav {
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    z-index: 1001;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 4px 10px var(--shadow-light);
    padding: 0; /* Remove padding */
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-normal);
  }

  .nav-list.active {
    display: flex;
    max-height: 300px; /* Enough height for menu items */
    padding: 10px 0; /* Add padding when open */
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

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

  .nav-link {
    display: block;
    padding: 12px 20px;
    text-align: left;
    font-weight: 600;
  }

  /* Contact button in mobile */
  .contact-button {
    margin: 10px 20px; /* Add margin inside nav list */
    width: calc(100% - 40px); /* Full width with margins */
    justify-content: center; /* Center button text */
    padding: 6px 16px; /* Further reduced padding */
    font-size: 0.75rem; /* Further reduced font size */
  }
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-light);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1480px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    width: 100px;
    height: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color var(--transition-normal);
    display: none;
    margin-right: 15px;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 700;
    transition: color var(--transition-normal);
    white-space: nowrap;
}

.nav-link.home-link {
    color: var(--text-dark);
    font-weight: 700;
    transition: color var(--transition-normal);
    white-space: nowrap;
}

.nav-link.home-link:hover {
    color: var(--primary-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.contact-button {
    position: relative;
    padding: 8px 20px;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    color: var(--primary-color);
    background-color: transparent;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-color);
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    font-family: var(--font-secondary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.contact-button span {
    position: relative;
    z-index: 2;
    transition: color var(--transition-normal);
}

.contact-button:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.contact-button:hover span {
    color: white;
}

.button-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.contact-button:hover .button-background {
    transform: translateY(0);
}

/* Sticky Header */
.sticky-header {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-light);
}

/* Media Queries */
@media (max-width: 768px) {
    /* Header Adjustments */
    .header-container {
        flex-direction: row; /* Keep horizontal layout */
        padding: 15px 20px; /* Consistent padding */
        align-items: center; /* Center alignment */
        justify-content: space-between; /* Space between logo and menu */
    }

    .header-left {
        width: auto; /* Let it take natural width */
        justify-content: flex-start; /* Align to start */
    }

    /* Hamburger menu styling */
    .mobile-menu-toggle {
        display: block;
        font-size: 1.3rem; /* Slightly smaller icon */
        padding: 8px;
        border-radius: 4px;
        margin-left: 15px; /* Space from logo */
        transition: background-color var(--transition-normal);
    }

    .mobile-menu-toggle:hover {
        background-color: rgba(var(--primary-color-rgb), 0.1);
    }

    /* Mobile navigation improvements */
    .main-nav {
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        z-index: 1001;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 4px 10px var(--shadow-light);
        padding: 0; /* Remove padding */
        margin: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height var(--transition-normal);
    }

    .nav-list.active {
        display: flex;
        max-height: 300px; /* Enough height for menu items */
        padding: 10px 0; /* Add padding when open */
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

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

    .nav-link {
        display: block;
        padding: 12px 20px;
        text-align: left;
        font-weight: 600;
    }

    /* Contact button in mobile */
    .contact-button {
        margin: 10px 20px; /* Add margin inside nav list */
        width: calc(100% - 40px); /* Full width with margins */
        justify-content: center; /* Center button text */
        padding: 6px 16px; /* Further reduced padding */
        font-size: 0.75rem; /* Further reduced font size */
    }

    /* Slider Adjustments */
    .homepage-slider {
        height: auto;
    }

    .slide {
        flex-direction: column;
        text-align: center;
    }

    .slide-content, .slide-image {
        flex: 0 0 100%;
        padding: 40px 20px;
    }

    .slide-image {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .slide-content h1::after {
        margin: 0 auto;
        margin-bottom: -5px;
    }

    .view-success-story-button {
        margin: 10px auto;
        margin-top: 25px;
    }

    .promise-content h2 {
        font-size: 2rem;
    }

    .what-we-do-content h2 {
        font-size: 2rem;
    }

    .service-cards, .specialization-cards {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        bottom: 5px;
    }

    /* Footer Adjustments */
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        width: 100%;
        margin-top: 20px;
        justify-content: space-around;
    }

    .footer-column {
        min-width: 140px;
        margin-bottom: 20px;
    }
}


@media (max-width: 480px) {
    .header-logo {
        width: 100px; /* Slightly smaller logo */
    }

    .logo-text {
        font-size: 1.3rem; /* Smaller text */
    }

    .mobile-menu-toggle {
        margin-left: 10px; /* Less space in smaller screens */
    }
    .logo-text {
        font-size: 1.1rem; /* Further reduce font size for iPhone X */
    }
     /* Footer Adjustments */
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0;
    }

    .legal-links {
        justify-content: center;
    }
    /* Adjust font sizes for smaller screens */
    .slide-content h1 {
        font-size: 2rem; /* Even smaller */
    }

    .promise-content h2, .what-we-do-content h2 {
        font-size: 1.8rem; /* Slightly smaller */
    }

    .positive-difference h2{
      font-size: 1.8rem;
    }

    .card-content h3 {
        font-size: 1.3rem; /* Smaller card headings */
    }

    .footer-column h4 {
      font-size: 1.1rem;
    }
}