html, body {
  overflow-x: hidden;
  width: 100%;
}
/* hh,k,kj,hhnnhhhhbgb*/
:root {
  --primary-color: #ec4415;
  --bg-light: #ffffff;
  --text-light: #000000;
  --bg-dark: #121212;
  --text-dark: #ffffff;
}
.logo-img {
   max-height: 50px;
  transform: scale(1.8);       /* Zoom in logo */
  transform-origin: center;
  margin-top: 12px;  
  image-rendering: auto;
  margin-left: 32px; 
  margin-bottom: 15px; 
  margin-right: 30px;
   /* Keep it centered */    /* Keep it centered */
}
/* 1. Define the slide-in keyframes */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 2. Apply the animation to the service cards */
.service.with-bg {
  /* existing styles... */
  opacity: 0; /* start invisible */
  animation: slideInFromLeft 0.6s ease-out forwards;
}

/* 3. Add subtle staggered delays for a cascading effect */
.service.with-bg:nth-child(1) { animation-delay: 0.1s; }
.service.with-bg:nth-child(2) { animation-delay: 0.2s; }
.service.with-bg:nth-child(3) { animation-delay: 0.3s; }
.service.with-bg:nth-child(4) { animation-delay: 0.4s; }
.service.with-bg:nth-child(5) { animation-delay: 0.5s; }
/* Continue as needed depending on your number of cards */
 /* Slide-in animation from left */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Initial state before cards are visible */
.service.with-bg {
  opacity: 0;
  transform: translateX(-20px);
  transition: none;
}

/* Triggered when cards enter viewport */
.service.with-bg.visible {
  animation: slideInFromLeft 0.6s ease-out forwards;
}


.navbar .brand {
  display: flex;
  align-items: center;
  padding: 4px 0;
}
/* Theme Modes */
body.light-mode {
  background-color: var(--bg-light);
  color: var(--text-light);
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* Transitions */
body, nav, nav a, .why-choose-us, .site-footer {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* General Layout */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--primary-color);
  z-index: 1000;
  position: sticky;
  top: 0;
}

.navbar .brand {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar a {
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--primary-color);
}

body.light-mode nav {
  background-color: var(--bg-light);
  color: var(--text-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.light-mode nav a {
  color: var(--text-light);
}

body.dark-mode nav {
  background-color: var(--bg-dark);
  color: var(--text-dark);
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

body.dark-mode nav a {
  color: var(--text-dark);
}

/* Theme Toggle */
#theme-toggle {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  padding: 6px 12px;
  font-size: 18px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#theme-toggle:hover {
  transform: scale(1.05);
}

.navbar .nav-links li button {
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  color: inherit;
}

/* Hamburger for Mobile */
#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar .nav-links li a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

/* Services Container */
.container {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.container h1,
#typed-heading {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 600;
  min-height: 3.5rem; /* Prevent layout shift while typing */
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 24px;
}

/* Service Card with Image and Overlay */
.service.with-bg {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  /* Adjusted height for consistency, based on your screenshot's card proportions */
  height: 280px; /* This ensures all cards are the same height */
  display: flex;
  flex-direction: column; /* Stack image and text */
  align-items: center;
  justify-content: flex-start; /* Align image to the top */
  padding: 0; /* Remove padding from the main container */
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  
  /* border: 2px solid olive; */
}


.service.with-bg a { /* Make the entire card clickable and manage its internal layout */
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none; /* Remove underline from the link by default */
}

.service.with-bg img {
  width: 100%;
  height: 180px; /* Fixed height for the image part */
  object-fit: cover; /* Ensures the image covers the area, cropping as needed */
  display: block;
  border-radius: 12px 12px 0 0; /* Rounded top corners for the image */
}
.service.with-bg {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 2px solid black;
}

/* ✅ Transparent overlay WITHOUT blur */
.service.with-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.3); /* semi-transparent white */
  z-index: 1;
  transition: background-color 0.3s ease;
  pointer-events: none;
}

/* ✅ On hover, make it clear */
.service.with-bg:hover::after {
  background-color: rgba(255, 255, 255, 0);
}

/* ✅ Image stays sharp and behind everything */
.service.with-bg img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
  position: relative;
  z-index: 0;
}

/* ✅ Title stays on top */
.service.with-bg h2 {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 12px 10px;
  width: 100%;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.3);
  color: black;
  box-sizing: border-box;
  border-radius: 0 0 12px 12px;
  transition: background-color 0.3s ease;
}

/* Optional: clearer background on hover for text */
/* .service.with-bg:hover h2 {
  background-color: white;
} */

/* Remove the `::before` overlay entirely as it's not present in your screenshot's style */
.service.with-bg::before {
  content: none;
}

.service.with-bg h2 {
  position: static;
  color: black; /* Default text color is black */
  font-size: 1.2rem; /* Keep the original text size */
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 15px 10px;
  width: 100%;
  height: 100px; /* <--- CHANGE THIS LINE FROM 70px to 100px */
  background-color: #ec4415;
  box-sizing: border-box;
  border-radius: 0 0 12px 12px;
  transition: color 0.3s ease;
}

/* Dark mode adjustments for text within the service card */
body.dark-mode .service.with-bg h2 {
  background-color: #1a1a1a; /* Dark background for the text area in dark mode */
  color: white; /* White text for contrast in dark mode */
}

/* Hover effect for the entire card (lifting and shadow) */
.service.with-bg:hover {
  transform: translateY(-5px); /* Lift the card */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

/* Specific text changes for hover within the link */
.service.with-bg a:hover h2 {
  color: white; /* Change text color to primary on hover */
  text-decoration: underline; /* Add underline on hover */
}

/* Default Service Card (Not used in this updated design but kept for reference) */
.service {
  padding: 30px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  transition: transform 0.3s ease, background-color 0.3s, color 0.3s;
  border: 2px solid black;
}

/* Light Mode */
body.light-mode .service {
  background-color: #f9f9f9;
  color: #000;
}

body.light-mode .service h2 {
  color: black;
}

body.light-mode .service p {
  color: #333;
}

/* Dark Mode */
body.dark-mode .service h2 {
  background-color: #111;
  color: #fff;
}

body.dark-mode .service h2 { /* This rule is duplicated, but matches your original. The one above handles the background for .with-bg h2 */
  color: white;
}

body.dark-mode .service p {
  color: #ccc;
}

.service.with-bg { /* Corrected class selector from 'service with-bg' to 'service.with-bg' */
  text-align: center;
}

/* Hover effect (consistent across themes) */
.service:hover {
  transform: translateY(-5px);
  /* You can adjust background-color on hover if needed, but for the new design, it might not be necessary for the whole card */
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-dark);
  text-align: center;
  padding: 15px 10px;
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

body.light-mode .site-footer {
  color: var(--text-light);
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-right: 40px;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: inherit;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 99;
  }

  #menu-toggle:checked ~ .nav-links {
    max-height: 500px;
    padding: 10px 0;
  }

  .container h1 {
    font-size: 2.2rem;
  }

  #theme-toggle {
    top: 80px;
    right: 15px;
    font-size: 18px;
    padding: 8px 10px;
  }

  .form-container iframe {
    max-width: 90vw;
    height: 450px;
  }

  /* Responsive adjustments for service cards on small screens */
  .services-grid {
    grid-template-columns: 1fr; /* Stack cards vertically on smaller screens */
    padding: 15px;
  }
  .service.with-bg {
    height: auto; /* Allow height to adjust on mobile for better responsiveness */
  }
  .service.with-bg img {
    height: 150px; /* Slightly reduce image height on mobile */
  }
  .service.with-bg h2 {
    height: auto; /* Allow text height to adjust on mobile */
    padding: 10px;
  }
}

/* Background Overlay for Light/Dark Modes */
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
}

body.light-mode .background-overlay {
  background-image: url('aboutUslight.png');
}

body.dark-mode .background-overlay {
  background-image: url('aboutUsdark.png');
}
/* Ensure Outfit Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

body {
  font-family: 'Outfit', sans-serif;
}

/* Footer Base */
.saas-footer {
  background-color: #ec4415;
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  padding: 40px 20px 10px;
  transition: all 0.3s ease;
z-index: 9999; 
}

body.light-mode .saas-footer {
  color: #000;
}

body.dark-mode .saas-footer {
  color: #fff;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-group {
  flex: 1 1 220px;
  min-width: 180px;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: inherit;
}

.footer-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group a {
  color: inherit;
  text-decoration: none;
}
/* --- Uniform Service Card Layout --- */
.service.with-bg {
  height: 280px !important; /* Fixed card height */
}

.service.with-bg img {
  height: 180px !important; /* Fixed image height */
}

.service.with-bg h2 {
  height: 100px !important; /* Fixed title height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}





