:root {
  --primary-color: #1e90ff;
  --primary-gradient: linear-gradient(135deg, #1e90ff 60%, #6ec1e4 100%);
  --dark-bg: #171e2b;
  --dark-bg-gradient: linear-gradient(120deg, #171e2b 0%, #232b3e 100%);
  --light-bg-gradient: linear-gradient(120deg, #e3f0ff 0%, #f7faff 100%);
  --text-light: #e3f0ff;
  --text-dark: #333;
  --text-muted: #b6c7e3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  transition: overflow 0.3s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  display: block;
  height: auto; /* Ensure images scale proportionally */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.sub-heading {
  color: #888;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.highlight {
  color: var(--primary-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 12px 28px;
  border-radius: 28px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  border: none;
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(30, 144, 255, 0.1);
  transition: all 0.2s;
}

.btn:hover {
  box-shadow: 0 4px 16px rgba(30, 144, 255, 0.13);
  transform: translateY(-2px);
}

/* --- Header --- */
.advanced-header {
  background: var(--dark-bg-gradient);
  color: var(--text-light);
  box-shadow: 0 4px 24px rgba(30, 144, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 80px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 80px;
  padding: 0 20px; /* Ensure padding on smaller screens */
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img img {
  max-height: 6.54rem;
  padding: 4px;
}

.logo-text {
  font-size: 1.5rem; /* Base font size for logo */
  font-weight: 700;
  white-space: nowrap; /* Prevent logo text from wrapping */
}

.logo-text:hover {
  color: var(--primary-color);
}

.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 36px;
}

.nav-link {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 22px;
  transition: all 0.6s;
  animation: fadeInNavBar 0.9s forwards;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cta-btn {
  padding: 10px 24px;
  font-size: 1.1rem;
  background-color: #1e90ff;
  border-radius: 25px;
}

.menu-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001; /* Ensure toggle is above overlay */
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

body.menu-open {
  overflow: hidden; /* Prevent scrolling when mobile menu is open */
}
body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* --- Hero Section --- */
.hero-section {
  background: var(--light-bg-gradient);
  padding: 60px 0;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-text {
  flex: 1.2;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
  animation: fadeIn 0.9s backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-120px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-text h1 .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  color: var(--primary-color);
  background: #fff;
  border-radius: 22px;
  padding: 8px 18px;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.07);
  font-weight: 500;
}

.hero-img {
  flex: 1;
  max-width: 550px;
  max-height: 550px;
  display: flex;
  justify-content: center;
}
.hero-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: fadeInImage 0.9s forwards;
}

@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: translateX(120px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- About Us Section --- */
.about-section {
  padding: 80px 0;
}
.about-flex {
  display: flex;
  gap: 60px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
  flex: 1;
  max-width: 450px;
  margin: 0 auto; /* Center image on smaller screens */
}
.about-main-img img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(30, 144, 255, 0.08);
  animation: fadeInIllustrator 0.9s forwards;
}

@keyframes fadeInIllustrator {
  from {
    opacity: 0;
    transform: translateX(-120px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-stats-card {
  position: absolute;
  top: 24px;
  right: -32px;
  background: var(--primary-color);
  color: #fff;
  padding: 18px 24px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(30, 144, 255, 0.15);
}
.about-stats-card i {
  font-size: 2rem;
}
.about-stats-card span {
  font-size: 1.7rem;
  font-weight: bold;
  display: block;
}
.about-info {
  flex: 1.5;
}
.about-info .sub-heading {
  text-align: left;
}
.about-info h2 {
  font-size: 2.8rem;
  margin: 0.5rem 0 18px 0;
  text-align: left;
  line-height: 1.2;
  animation: fadeInSlide 0.9s forwards;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(120px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-lead {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 24px;
}
.about-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.about-features li {
  width: 100%;
  font-size: 1.05rem;
  color: #222;
  background-color: #e8f3ff;
  border-radius: 50px;
  padding: 7px 15px 7px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-features i {
  color: var(--primary-color);
  font-size: 1.2em;
}
.about-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}
.about-contact-link {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.about-contact-link:hover {
  color: #0d5cb6;
}

/* --- Services Section --- */
.services-section {
  padding: 80px 0;
  background: var(--light-bg-gradient);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.service-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(30, 144, 255, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(30, 144, 255, 0.13);
}
.service-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}
.service-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 3px solid #fff;
}
.service-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.service-card-body h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-weight: 700;
}
.service-card-body p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.service-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.service-link:hover {
  color: #0d5cb6;
  text-decoration: underline;
}

/* --- Testimonials Section --- */
.testimonials-section {
  padding: 80px 0;
  width: 100%;
  display: block;
  justify-content: center;
}
.testimonials-section .sub-heading {
  color: var(--primary-color);
}
.testimonials-section .container {
  display: grid;
  max-width: 100%;
  justify-content: center;
  align-content: center;
}

.testimonials-slider {
  display: flex;
  gap: 32px;
  margin-top: 10px;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

.testimonial-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(30, 144, 255, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  /* flex-shrink: 0; */
  max-width: 380px;
  scroll-snap-align: start;
  margin: 10px;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(30, 144, 255, 0.15);
}
.testimonial-quote {
  color: var(--primary-color);
  font-size: 2.5rem;
  position: absolute;
  top: 12px;
  left: 24px;
  opacity: 0.18;
}
.testimonial-card p {
  font-size: 1.08rem;
  margin-top: 18px;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.6;
  min-height: 120px;
  padding: 0 24px;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  align-self: center;
  margin-bottom: 24px; /* Add margin below author */
}
.testimonial-card .author i {
  font-size: 24px;
  color: #0084ff;
  width: 48px;
  height: 48px;
  display: flex;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
}
.testimonial-card .author strong {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 700;
}
.testimonial-card .author span {
  font-size: 0.95rem;
  color: #888;
  display: block;
}

/* --- Footer --- */
.footer {
  background: var(--dark-bg-gradient);
  color: var(--text-light);
  padding: 80px 0 30px;
  border-radius: 32px 32px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 60px;
}
.footer-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.footer-about p {
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-links h4,
.footer-contact h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 12px;
}
.footer-links ul li a,
.footer-contact ul li a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links ul li a:hover,
.footer-contact ul li a:hover {
  color: var(--primary-color);
}
.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}
.footer-contact ul li i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 4px;
}
.footer-social {
  margin-top: 24px;
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: var(--text-muted);
  background: #232b3e;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--primary-gradient);
  color: #fff;
  transform: translateY(-4px);
}
.footer-divider {
  border-top: 1.5px solid #2e3952;
  margin: 40px 0 24px 0;
}
.footer-copyright {
  text-align: center;
  color: #7ea5d6;
  font-size: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .container {
    padding: 0 25px;
  }
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
  .header-container {
    min-height: 70px;
    padding: 0 25px; /* Consistent padding */
  }
  .logo-img img {
    max-height: 5.5rem; /* Smaller logo */
  }
  .logo-text {
    font-size: 1.3rem; /* Smaller logo text */
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Initially off-screen */
    width: 280px; /* Slightly smaller menu width */
    height: 100vh;
    background: var(--dark-bg-gradient);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 30px; /* Padding for mobile menu items */
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    transition: right 0.35s cubic-bezier(0.77, 0, 0.18, 1);
    z-index: 999;
  }
  .nav-menu.is-open {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: 12px 15px;
    font-size: 1.2rem;
    text-align: center; /* Center menu items */
  }
  .header-cta {
    gap: 10px; /* Reduce gap between cta elements */
  }
  .cta-text {
    display: none; /* Hide 'Get Started' text */
  }
  .cta-btn {
    padding: 8px 18px; /* Slightly smaller button */
    font-size: 1rem;
  }
  .menu-toggle {
    display: block;
  }
  .hero-section {
    padding: 50px 0; /* Slightly less padding */
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px; /* Reduced gap */
  }
  .hero-text h1 {
    font-size: 2.5rem; /* Smaller heading for tablets */
  }
  .hero-text p {
    font-size: 1.1rem; /* Slightly smaller paragraph text */
  }
  .hero-features {
    justify-content: center;
    gap: 10px; /* Reduced gap for features */
  }
  .hero-features li {
    padding: 6px 14px; /* Smaller padding for feature tags */
    font-size: 1rem;
  }
  .hero-img {
    max-width: 80%; /* Allow image to take more width on tablet */
    max-height: auto;
  }
  .form-img {
    padding: 30px 25px; /* Adjust padding */
  }

  .about-section {
    padding: 60px 0; /* Adjust padding */
  }
  .about-flex {
    flex-direction: column;
    gap: 40px; /* Reduced gap */
  }
  .about-image-wrap {
    max-width: 400px; /* Adjust max-width for image */
  }
  .about-img-overlay {
    width: 120px; /* Smaller overlay image */
    left: -15px; /* Adjust position */
    bottom: -15px;
  }
  .about-stats-card {
    padding: 15px 20px; /* Smaller stats card */
    right: -15px; /* Adjust position */
    top: 15px;
  }
  .about-stats-card i {
    font-size: 1.8rem;
  }
  .about-stats-card span {
    font-size: 1.5rem;
  }
  .about-info .sub-heading,
  .about-info h2 {
    text-align: center;
  }
  .about-info h2 {
    font-size: 2.3rem; /* Smaller about heading */
  }
  .about-lead {
    font-size: 1.05rem; /* Slightly smaller lead text */
    text-align: center; /* Center align lead text */
  }
  .about-features {
    grid-template-columns: 1fr; /* Stack features vertically */
    text-align: left; /* Align features to left */
    justify-items: center; /* Center individual list items */
  }
  .about-features li {
    font-size: 1rem;
  }
  .about-cta-row {
    flex-direction: column; /* Stack buttons */
    gap: 15px; /* Smaller gap */
    justify-content: center;
    align-items: center; /* Center buttons */
  }
  .services-section {
    padding: 60px 0; /* Adjust padding */
  }
  .services-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(280px, 1fr)
    ); /* Allow smaller service cards */
    gap: 25px; /* Reduced gap */
  }
  .service-card-body h3 {
    font-size: 1.2rem; /* Smaller service card title */
  }
  .service-card-body p {
    font-size: 0.95rem; /* Smaller service card paragraph */
  }

  /* Testimonials */
  .testimonials-section {
    padding: 60px 0;
  }
  .testimonials-slider {
    gap: 20px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
  }
  .testimonial-card {
    width: 320px;
    flex-shrink: 0;
  }
}

/* Medium devices (tablets, 768px and up) - More specific tablet adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 20px; /* Standard padding */
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .hero-section {
    padding: 40px 0; /* Further reduce padding */
  }
  .hero-text h1 {
    font-size: 2.2rem; /* Adjust heading size */
    margin-bottom: 15px;
  }
  .hero-text p {
    font-size: 1rem; /* Adjust paragraph size */
    margin-bottom: 20px;
  }
  .hero-features {
    justify-content: center;
    gap: 8px; /* Even smaller gap */
  }
  .hero-features li {
    padding: 5px 12px;
    font-size: 0.95rem;
  }
  .hero-img {
    max-width: 90%; /* Allow image to take more width */
  }

  .about-section {
    padding: 50px 0; /* Adjust padding */
  }
  .about-flex {
    gap: 30px; /* Further reduced gap */
  }
  .about-image-wrap {
    max-width: 350px; /* Smaller image wrap */
  }
  .about-img-overlay {
    width: 100px; /* Smaller overlay */
    left: -10px;
    bottom: -10px;
  }
  .about-stats-card {
    padding: 12px 18px;
    right: -10px;
    top: 10px;
  }
  .about-stats-card i {
    font-size: 1.5rem;
  }
  .about-stats-card span {
    font-size: 1.3rem;
  }
  .about-info h2 {
    font-size: 2rem; /* Further smaller about heading */
    margin-bottom: 15px;
  }
  .about-lead {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .about-features li {
    font-size: 0.95rem;
  }
  .about-cta-row {
    gap: 10px; /* Smaller gap for buttons */
  }

  .services-section {
    padding: 50px 0; /* Adjust padding */
  }
  .services-grid {
    grid-template-columns: 1fr; /* Stack service cards vertically */
    gap: 20px; /* Reduced gap */
  }
  .service-card {
    max-width: 400px; /* Limit width of stacked cards */
    margin: 0 auto; /* Center them */
  }
  .service-card-body h3 {
    font-size: 1.15rem;
  }
  .service-card-body p {
    font-size: 0.9rem;
  }

  /* Testimonials */
  .testimonials-slider {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
  .testimonial-card {
    max-width: 450px;
    max-height: 350px;
    padding: 20px 20px;
  }
  .testimonial-card p {
    font-size: 1rem;
    min-height: 100px; /* Adjust min-height for text */
  }
}

/* Small devices (phones, up to 480px) */
@media (max-width: 480px) {
  body {
    font-size: 0.75rem; /* Slightly smaller base font size for overall text */
  }
  .container {
    padding: 0 10px; /* Even smaller padding on very small screens */
  }
  .sub-heading {
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  /* Header */
  .header-container {
    padding: 0 15px; /* Consistent padding */
  }
  .logo-img img {
    max-height: 4.5rem; /* Smaller logo */
  }
  .logo-text {
    font-size: 1.1rem; /* Smaller logo text */
  }
  .nav-menu {
    width: 100%; /* Mobile menu takes full width */
    padding: 80px 20px; /* Adjust padding for full-width menu */
  }
  .nav-link {
    font-size: 1.1rem; /* Slightly smaller menu links */
    padding: 10px 15px;
  }
  .header-cta {
    gap: 8px; /* Reduce gap even more */
  }
  .cta-btn {
    padding: 8px 16px; /* Smaller CTA button */
    font-size: 0.9rem;
  }
  .menu-toggle {
    font-size: 1.8rem; /* Smaller toggle icon */
  }

  /* Hero Section */
  .hero-section {
    padding: 30px 0; /* Minimal padding */
  }
  .hero-container {
    gap: 30px; /* Smaller gap */
  }
  .hero-text h1 {
    font-size: 1.9rem; /* Further reduce heading size */
    margin-bottom: 12px;
  }
  .hero-text p {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  .hero-features {
    flex-direction: column; /* Stack features vertically on very small screens */
    align-items: center; /* Center stacked features */
    gap: 8px;
    margin-bottom: 25px;
  }
  .hero-features li {
    width: 80%; /* Make them take more width when stacked */
    padding: 8px 15px;
    font-size: 0.9rem;
    justify-content: center; /* Center text within feature tags */
  }
  .hero-img {
    max-width: 95%; /* Allow image to take almost full width */
  }
  .form-img {
    padding: 25px 20px; /* Adjust form padding */
  }

  /* About Us Section */
  .about-section {
    padding: 40px 0;
  }
  .about-flex {
    gap: 25px;
  }
  .about-image-wrap {
    max-width: 90%; /* Max width for image to prevent overflow on small screens */
    margin: 0 auto;
  }
  .about-img-overlay {
    width: 80px; /* Much smaller overlay */
    left: 5%; /* Adjust relative to image wrap */
    bottom: -10px;
    transform: translateX(-50%); /* Center it better */
  }
  .about-stats-card {
    padding: 10px 15px;
    right: 5%; /* Adjust relative to image wrap */
    top: 10px;
    transform: translateX(50%); /* Center it better */
  }
  .about-stats-card i {
    font-size: 1.2rem;
  }
  .about-stats-card span {
    font-size: 1.1rem;
  }
  .about-info h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  .about-lead {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  .about-features {
    grid-template-columns: 1fr; /* Keep stacked */
    justify-items: center; /* Center the items */
  }
  .about-features li {
    font-size: 0.9rem;
    text-align: center;
  }
  .about-cta-row {
    flex-direction: column;
    gap: 8px;
  }

  /* Services Section */
  .services-section {
    padding: 40px 0;
  }
  .services-grid {
    gap: 15px;
  }
  .service-card {
    max-width: 95%; /* Take almost full width */
  }
  .service-card-body h3 {
    font-size: 1.1rem;
  }
  .service-card-body p {
    font-size: 0.85rem;
  }
  .service-icon {
    width: 48px; /* Smaller icon */
    height: 48px;
    font-size: 1.6rem;
  }

  /* Testimonials Section */
  .testimonials-section {
    padding: 40px 0;
  }
  .testimonials-slider {
    gap: 15px; /* Reduce gap further */
    flex-wrap: nowrap; /* Crucial for horizontal scroll */
    overflow-x: scroll; /* Enable scrolling */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; /* Space for scrollbar */
  }
  .testimonial-card {
    width: 250px; /* Smallest fixed width for phones */
    min-height: 260px; /* Adjust min-height as content allows */
    padding: 20px 15px; /* Reduce padding */
  }
  .testimonial-card p {
    font-size: 0.9rem;
    min-height: 90px; /* Adjust min-height */
    margin-bottom: 25px;
  }
  .testimonial-quote {
    font-size: 2rem; /* Smaller quote icon */
    top: 10px;
    left: 15px;
  }
  .testimonial-card .author {
    gap: 10px;
    margin-bottom: 15px;
  }
  .testimonial-card .author img {
    width: 40px; /* Smaller author image */
    height: 40px;
  }
  .testimonial-card .author strong {
    font-size: 1rem;
  }
  .testimonial-card .author span {
    font-size: 0.85rem;
  }

  /* Footer */
  .footer {
    padding: 60px 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr; /* Stack footer columns */
    gap: 30px; /* Reduced gap */
    text-align: center; /* Center align text in stacked columns */
  }
  .footer-logo {
    justify-content: center; /* Center logo */
  }
  .footer-links h4,
  .footer-contact h4 {
    text-align: center; /* Center align headings */
    margin-bottom: 15px;
  }
  .footer-links ul li,
  .footer-contact ul li {
    text-align: center; /* Ensure list items are centered if text wraps */
    justify-content: center; /* Center content in flex if needed */
  }
  .footer-social {
    justify-content: center; /* Center social icons */
    margin-top: 18px;
    gap: 12px;
  }
  .footer-social a {
    width: 36px; /* Smaller social icons */
    height: 36px;
    font-size: 1.1rem;
  }
  .footer-divider {
    margin: 30px 0 18px 0;
  }
  .footer-copyright {
    font-size: 0.9rem;
  }
}

/* Even smaller phones (e.g., iPhone 5/SE, up to 375px) */
@media (max-width: 375px) {
  .hero-text h1 {
    font-size: 1.7rem;
  }
  .hero-text p {
    font-size: 0.85rem;
  }
  .hero-features li {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  .about-info h2 {
    font-size: 1.6rem;
  }
  .testimonial-card {
    width: 230px; /* Further narrow for very small screens */
    padding: 18px 12px;
  }
  .testimonial-card p {
    font-size: 0.85rem;
    min-height: 80px;
  }
}
