/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --primary: #2a7d5e;
  --primary-dark: #1f5e47;
  --primary-light: #e8f5f0;
  --secondary: #f5a623;
  --text: #333333;
  --text-light: #666666;
  --muted: #888888;
  --light: #f9fafb;
  --white: #ffffff;
  --border: #e1e1e1;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-dark: rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ============================================
   NAVBAR – SLIM WITH ORIGINAL LOGO LAYOUT
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e8e8;
  padding: 0;
  margin: 0;
  height: 90px; /* Slim navbar height */
}

/* Slim container */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px; /* Match navbar height */
  padding: 0;
  margin: 0;
}

/* Logo container with original layout */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 90px; /* Match navbar height */
  padding: 0;
  margin: 0;
}

/* Logo shield image - original size */
.logo-img {
  height: 80px; /* Keep it prominent */
  width: auto;
  object-fit: contain;
  display: block;
}

/* Logo text container - original layout */
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* TrueField - original style */
.logo-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem; /* Original size */
  font-weight: 700;
  color: #111;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* WORKFORCE SOLUTIONS - original style */
.logo-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; /* Original size */
  font-weight: 600;
  color: #2a7d5e;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-top: 2px;
  margin-bottom: 0;
  padding: 0;
  line-height: 1;
}

/* Optional tagline */
.logo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: #666;
  margin-top: 3px;
  margin-bottom: 0;
  padding: 0;
  line-height: 1;
}

/* Navigation links - slim */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

/* Link style - slim */
.nav-links a {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
  position: relative;
  white-space: nowrap;
  padding: 4px 0;
}

/* Hover underline - slim */
.nav-links a:not(.nav-btn):hover {
  color: var(--primary);
}

.nav-links a:not(.nav-btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: 0;
  left: 0;
  transition: width 0.25s ease;
}

.nav-links a:not(.nav-btn):hover::after {
  width: 100%;
}

/* CTA – modern rectangle */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 36px;                /* breathable */
  padding: 0 20px;             /* balanced horizontal space */

  background: rgba(42, 125, 94, 0.1);
  color: #2a7d5e;

  border-radius: 6px;          /* 🔑 rectangle, not pill */
  border: 1px solid rgba(42, 125, 94, 0.25);

  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;

  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-btn:hover {
  background: rgba(42, 125, 94, 0.18);
  transform: translateY(-1px);
}


/* Mobile menu button - slim */
.mobile-menu-btn {
  display: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
  background: none;
  border: none;
  padding: 8px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    height: 80px; /* Slightly taller on mobile for logo */
  }
  
  .nav-container {
    height: 80px;
  }
  
  .logo-container {
    height: 80px;
    gap: 8px; /* Reduce gap on mobile */
  }
  
  .logo-img {
    height: 65px; /* Slightly smaller but still visible */
  }
  
  .logo-title {
    font-size: 1.5rem; /* Slightly smaller on mobile */
  }
  
  .logo-subtitle {
    font-size: 0.75rem; /* Slightly smaller on mobile */
    letter-spacing: 1px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background: var(--white);
    width: 80%;
    max-width: 280px;
    height: calc(100vh - 80px);
    padding: 30px 20px;
    box-shadow: -5px 0 15px var(--shadow);
    transition: right 0.3s ease;
    gap: 20px;
    align-items: flex-start;
  }
  
  .nav-links.active {
    right: 0;
  }
}

@media (max-width: 576px) {
  .navbar {
    height: 75px;
  }
  
  .nav-container {
    height: 75px;
  }
  
  .logo-container {
    height: 75px;
    gap: 6px;
  }
  
  .logo-img {
    height: 60px;
  }
  
  .logo-title {
    font-size: 1.3rem;
  }
  
  .logo-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.8px;
  }
  
  .logo-tagline {
    font-size: 0.6rem;
  }
  
  .nav-links {
    top: 75px;
    height: calc(100vh - 75px);
  }
}

/* ============================================
   HERO SECTION - COMPACT FOR SINGLE PAGE VIEW
   ============================================ */
.hero-section {
  padding: 15px 0 60px; /* Reduced padding */
  min-height: calc(100vh - 90px); /* Adjusted for navbar height */
  background: linear-gradient(135deg, #f4faf7 0%, #e8f5f0 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center; /* Center content vertically */
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 50%;
  margin-left: auto;
  background-image: url('/assets/images/herobackground.png');
  background-size: cover;
  background-position: center;
  opacity: 0.23;
}

.hero-content {
  max-width: 680px; /* Slightly narrower */
  position: relative;
  z-index: 2;
  padding-top: 20px;
}

.hero-content h1 {
  font-size: 2.8rem; /* Reduced from 3.1rem */
  margin-bottom: 15px;
  color: var(--text);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.05rem; /* Reduced from 1.15rem */
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 580px;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  gap: 30px; /* Reduced gap */
  margin-top: 30px; /* Reduced margin */
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem; /* Reduced from 2.1rem */
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem; /* Reduced from 0.85rem */
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 3px;
}

/* Button in hero */
.hero-content .btn-primary {
  padding: 12px 28px; /* Slightly smaller button */
  font-size: 0.95rem;
}

/* Mobile adjustments for compact hero */
@media (max-width: 768px) {
  .hero-section {
    padding: 10px 0 50px;
    min-height: calc(100vh - 80px);
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .hero-stats {
    gap: 20px;
    margin-top: 25px;
  }
  
  .stat-number {
    font-size: 1.7rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 5px 0 40px;
    min-height: calc(100vh - 75px);
  }
  
  .hero-content h1 {
    font-size: 1.9rem;
  }
  
  .hero-content p {
    font-size: 0.95rem;
  }
  
  .hero-stats {
    gap: 15px;
    margin-top: 20px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .hero-content .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* ============================================
   SECTIONS COMMON STYLES
   ============================================ */
.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 50px;
}

.section.light {
  background-color: var(--light);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.steps-container:before {
  content: '';
  position: absolute;
  width: 4px;
  height: 70%;
  background: var(--primary-light);
  left: 50%;
  top: 15%;
  transform: translateX(-50%);
  z-index: 1;
}

.step-row {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-row:nth-child(odd) {
  flex-direction: row-reverse;
}

.step-content {
  flex: 1;
  padding: 30px;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(42, 125, 94, 0.2);
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text);
}

.step-description {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ===== HOW IT WORKS: minimal tweak (no redesign) ===== */

/* remove extra top space ONLY for How It Works */
#how.section {
  padding-top: 40px;   /* was too tall */
  padding-bottom: 80px; /* keep some breathing room */
}

/* slightly smaller section header */
#how .section-title {
  font-size: 2.4rem;   /* small drop */
  margin-bottom: 12px;
}

#how .section-subtitle {
  font-size: 1.05rem;  /* small drop */
  margin-bottom: 40px;
}

/* very small font scale (keeps your design) */
#how .step-title {
  font-size: 1.35rem;  /* was 1.5rem */
}

#how .step-description {
  font-size: 1rem;     /* was 1.05rem */
  line-height: 1.6;
}

/* tiny spacing reduction between rows */
#how .steps-container {
  gap: 34px;           /* was 40px */
}

/* ===== Scroll slide animations ===== */

/* initial hidden state */
.step-row {
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

/* slide directions */
.step-row.slide-right {
  transform: translateX(60px);
}

.step-row.slide-left {
  transform: translateX(-60px);
}

/* visible state */
.step-row.in-view {
  opacity: 1;
  transform: translateX(0);
}


#how.section{
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: none; /* important: we move bg to ::before so blur won’t hit text */
  background-color: #0b1220;
}

/* BLURRED BACKGROUND IMAGE (only the photo blurs) */
#how.section::before{
  content: "";
  position: absolute;
  inset: -30px; /* extra to avoid blur edges */
  z-index: 0;

  background-image: url('/assets/images/hero2.png');
  background-attachment: fixed;
  background-repeat: no-repeat;

  /* your current sizing + alignment */
  background-size: 95vw auto;
  background-position: 50% 40%;

  /* ✅ blur + slightly darker for contrast */
  filter: blur(2px) brightness(0.75) saturate(1.05);
  transform: scale(1.06);
}

/* DARK OVERLAY (helps text pop) */
#how.section::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.45);
}

/* keep content above overlays */
#how.section .container{
  position: relative;
  z-index: 2;
}

/* ✅ MAKE TEXT POP */
#how .section-title,
#how .section-subtitle,
#how .step-title,
#how .step-description{
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75);
}

/* optional: boost title even more */
#how .section-title{
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 18px rgba(0,0,0,0.85);
}

/* make steps readable on top of photo */
#how .step-row,
#how .step-content{
  background: rgba(0,0,0,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(2px); /* subtle, if supported */
}

/* center line contrast */
#how .steps-container:before{
  background: rgba(255,255,255,0.35);
}

/* ============================================
   SERVICES SECTION – IMAGE + MODERN CARDS
   ============================================ */

.services-section {
  padding-top: 10px;
  padding-bottom: 80px;
}

/* IMAGE STRIP */
.services-image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 50px 0 60px;
}

.services-image-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* CARD */
.service-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* TOP ACCENT */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(42, 125, 94, 0.9),
    rgba(42, 125, 94, 0.3)
  );
  border-radius: 18px 18px 0 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

/* ICON */
.service-icon {
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 18px;
}

/* TITLE */
.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1f1f1f;
}

/* DESCRIPTION */
.service-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5f6b67;
}

/* MOBILE */
@media (max-width: 900px) {
  .services-image-strip {
    grid-template-columns: 1fr;
  }

  .services-image-strip img {
    height: 200px;
  }
}

/* REMOVE TOP GAP ABOVE SERVICES */
#services {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Override generic .section padding */
#services.section {
  padding-top: 0 !important;
}

/* Kill margin collapse from previous section */
#services::before {
  content: '';
  display: block;
  margin-top: -30px; /* adjust if needed */
}

/* Tighten title spacing */
#services .section-title {
  margin-top: 0;
  padding-top: 20px;
}

/* ============================================
   LOCATIONS SECTION – WORKING (IMAGE BACKGROUND)
   ============================================ */
.locations-section {
  position: relative;
  background: url('/assets/images/workers4.png') center / cover no-repeat;
  color: #fff;
  text-align: center;

  /* fallback if image fails */
  background-color: #1f5e47;
}

/* make text readable on photo WITHOUT tinting whole section */
.locations-section .section-title,
.locations-section .section-subtitle,
.locations-section p,
.locations-section h3 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Grid */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* Cards readable on photo */
.location-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 22px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.location-item:hover {
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-5px);
}

/* Icons */
.location-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  color: var(--secondary);
}

/* Location name */
.location-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}
/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  font-size: 1.3rem;
  color: var(--primary);
  margin-top: 3px;
}

.contact-details h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 125, 94, 0.1);
}

/* ============================================
   ABOUT – fixed American flag background (NO blur)
   ============================================ */
#about.section{
  position: relative;
  overflow: hidden;

  /* ✅ fixed image */
  background-image: url('/assets/images/americanflag.png');
  background-attachment: fixed;
  background-repeat: no-repeat;

  /* ✅ size + alignment (adjust if needed) */
  background-size: 95vw auto;
  background-position: 50% 40%;

  background-color: #0b1220;
}

/* dark overlay for readability */
#about.section::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
  pointer-events: none;
}

/* keep content above overlay */
#about.section .container{
  position: relative;
  z-index: 1;
}

/* make About text pop */
#about .section-title,
#about p,
#about h3{
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75);
}

/* optional: make the right-side cards readable */
#about .contact-item{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-about {
  color: #cccccc;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cccccc;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact p {
  color: #cccccc;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999999;
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
  .container {
    max-width: 95%;
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .steps-container:before {
    left: 40px;
  }
  
  .step-row, .step-row:nth-child(odd) {
    flex-direction: row;
  }
  
  .step-number {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  .step-content {
    padding: 20px 30px;
  }
  
  .logo-img {
    height: 60px; /* Still large on tablet */
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 90px; /* Adjusted for taller logo */
    right: -100%;
    flex-direction: column;
    background: var(--white);
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 90px); /* Adjusted for taller logo */
    padding: 40px 20px;
    box-shadow: -5px 0 15px var(--shadow);
    transition: right 0.3s ease;
    gap: 25px;
    align-items: flex-start;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 25px;
  }
  
  .section {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .logo-img {
    height: 50px; /* Good size on mobile */
    max-width: 220px;
    min-width: 180px;
  }
  
  .logo-container {
    height: 60px; /* Adjusted for mobile */
  }
  
  .navbar {
    padding: 8px 0; /* Slightly less padding on mobile */
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.05rem;
  }
  
  .btn {
    padding: 12px 24px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .logo-img {
    height: 45px; /* Still good size on small screens */
    max-width: 190px;
    min-width: 150px;
  }
  
  .logo-container {
    height: 55px;
  }
}

@media (max-width: 400px) {
  .logo-img {
    height: 40px; /* Minimum size for very small screens */
    max-width: 160px;
    min-width: 130px;
  }
  
  .logo-container {
    height: 50px;
  }
}

/* ============================================
   MOBILE NAV - PERFECT VERTICAL ALIGNMENT
   ============================================ */
@media (max-width: 576px) {
  .nav-container {
    display: flex;
    align-items: stretch; /* Changed from center to stretch */
    justify-content: space-between;
    height: 100%; /* Take full navbar height */
  }

  /* Logo container - make it full height */
  .logo-container {
    display: flex;
    align-items: center; /* Vertically center contents */
    height: 100%; /* Match navbar height */
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  /* Logo image - adjust to match text height */
  .logo-img {
    height: 80px; /* Adjust this based on what looks right */
    width: auto;
    object-fit: contain;
    display: block;
  }

  /* Text block - ensure it centers with the image */
  .logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* This centers text vertically */
    height: 100%; /* Take full container height */
    margin: 0;
    padding: 0;
  }

  /* Adjust text to sit nicely with the image */
  .logo-title {
    font-size: 1.4rem;
    line-height: 1;
    margin: 0 0 3px 0;
  }

  .logo-subtitle {
    font-size: 0.7rem;
    line-height: 1;
    margin: 0 0 2px 0;
  }

  .logo-tagline {
    font-size: 0.6rem;
    line-height: 1;
    margin: 0;
  }
}

/* ============================================
   MOBILE HERO - Vertical background image fix
   ============================================ */
@media (max-width: 768px) {
  .hero-section {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 20px 0 40px;
    display: flex;
    align-items: center;
  }
  
  /* Replace horizontal image with vertical mobile version */
  .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/herobackgroundmobile.png'); /* Your vertical image */
    background-size: cover; /* Fill the mobile screen */
    background-position: center center; /* Center it perfectly */
    background-repeat: no-repeat;
    opacity: 0.23; /* Match your original opacity */
    z-index: 1;
  }
  
  /* Ensure content is readable over the new background */
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0 20px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Slight shadow for readability */
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--text);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    line-height: 1.6;
  }
  
  /* Keep your existing stats layout but ensure readability */
  .hero-stats {
    display: flex !important;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 30px;
  }
  
  .hero-stats .stat-item {
    flex: 1 1 calc(50% - 14px);
    text-align: center;
    margin: 0;
    background: rgba(255, 255, 255, 0.85); /* Semi-transparent white for contrast */
    padding: 15px 10px;
    border-radius: 8px;
    backdrop-filter: blur(4px); /* Slight blur effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .hero-stats .stat-item:nth-child(3) {
    flex-basis: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: none;
  }
  
  .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-shadow: none;
  }
  
  /* Make button stand out */
  .hero-content .btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(42, 125, 94, 0.3);
  }
}

/* ============================================
   HOW IT WORKS - Different image for mobile only
   ============================================ */
#how.section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: none;
  background-color: #0b1220;
}

/* DESKTOP BACKGROUND (larger screens) */
@media (min-width: 769px) {
  #how.section::before {
    content: "";
    position: absolute;
    inset: -30px;
    z-index: 0;
    background-image: url('/assets/images/hero2.png'); /* Desktop image */
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 95vw auto;
    background-position: 50% 40%;
    filter: blur(2px) brightness(0.75) saturate(1.05);
    transform: scale(1.06);
  }
}

/* MOBILE BACKGROUND (smaller screens) */
@media (max-width: 768px) {
  #how.section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/assets/images/mobilehero.png'); /* Mobile-optimized image */
    background-attachment: scroll; /* Better performance on mobile */
    background-repeat: no-repeat;
    background-size: cover; /* Fill the mobile screen */
    background-position: center center;
    filter: blur(1px) brightness(0.7);
    transform: none; /* Remove scale on mobile */
  }
}

/* DARK OVERLAY (for both desktop and mobile) */
#how.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.45);
}

/* Keep content above overlays */
#how.section .container {
  position: relative;
  z-index: 2;
}

/* ✅ MAKE TEXT POP (both desktop and mobile) */
#how .section-title,
#how .section-subtitle,
#how .step-title,
#how .step-description {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75);
}

/* Optional: boost title */
#how .section-title {
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 18px rgba(0,0,0,0.85);
}

/* Make steps readable */
#how .step-row {
  background: rgba(0,0,0,0.25);
  border-radius: 14px;
  backdrop-filter: blur(2px);
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 20px;
}

/* Center line - desktop only */
@media (min-width: 769px) {
  #how .steps-container:before {
    background: rgba(255,255,255,0.35);
    height: 80%;
    top: 10%;
  }
}

/* MOBILE SPECIFIC STYLES */
@media (max-width: 768px) {
  #how.section {
    padding: 60px 0;
    min-height: auto;
  }
  
  /* Hide center line on mobile */
  .steps-container:before {
    display: none;
  }
  
  /* Stack steps vertically on mobile */
  .step-row {
    flex-direction: column !important;
    text-align: center;
    margin: 0 10px 25px 10px;
  }
  
  .step-number {
    margin: 0 auto 20px auto;
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    order: -1; /* Put number above content on mobile */
  }
  
  .step-content {
    padding: 0 !important;
  }
  
  /* Adjust text sizes for mobile */
  #how .section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  #how .section-subtitle {
    font-size: 1.05rem;
    padding: 0 15px;
    margin-bottom: 40px;
  }
  
  #how .step-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  
  #how .step-description {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* For very small phones */
@media (max-width: 400px) {
  #how.section::before {
    filter: blur(0.5px) brightness(0.65); /* Less blur on very small screens */
  }
  
  #how .section-title {
    font-size: 1.8rem;
  }
  
  #how .step-row {
    padding: 15px;
    margin: 0 5px 20px 5px;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }
}
/* ============================================
   SERVICES - Auto-Rotating Carousel
   ============================================ */

/* Fix padding for mobile */
@media (max-width: 768px) {
  #services.section {
    padding-top: 50px !important;
    padding-bottom: 60px;
  }
  
  #services .section-title {
    margin-top: 10px;
    margin-bottom: 15px;
  }
}

/* CAROUSEL CONTAINER */
.services-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 30px auto 40px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* CAROUSEL TRACK */
.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  height: 300px; /* Desktop height */
}

/* SLIDES */
.carousel-slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: none;
}

.carousel-slide.active {
  opacity: 1;
  display: block;
}

/* CAROUSEL DOTS */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* CAROUSEL ARROWS */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  opacity: 0.8;
}

.carousel-arrow:hover {
  background: white;
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* HIDE ARROWS ON MOBILE */
@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
}

/* MOBILE CAROUSEL STYLES */
@media (max-width: 768px) {
  .services-carousel {
    margin: 20px auto 30px;
    border-radius: 12px;
    height: 220px;
  }
  
  .carousel-track {
    height: 220px;
  }
  
  .carousel-slide {
    height: 220px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  .carousel-dots {
    bottom: 15px;
  }
}

/* VERY SMALL SCREENS */
@media (max-width: 400px) {
  .services-carousel {
    height: 180px;
  }
  
  .carousel-track {
    height: 180px;
  }
  
  .carousel-slide {
    height: 180px;
  }
}

/* SERVICES GRID MOBILE FIXES */
@media (max-width: 768px) {
  .services-grid {
    padding: 0 15px;
  }
  
  .service-card {
    padding: 25px 20px;
    margin-bottom: 20px;
  }
}

/* ============================================
   ABOUT SECTION - Different background for mobile
   ============================================ */

#about.section {
  position: relative;
  overflow: hidden;
  background-color: #0b1220; /* Fallback color */
}

/* DESKTOP BACKGROUND (769px and above) */
@media (min-width: 769px) {
  #about.section {
    /* Fixed American flag background for desktop */
    background-image: url('/assets/images/americanflag.png');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 95vw auto;
    background-position: 50% 40%;
  }
  
  /* Dark overlay for desktop */
  #about.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 0;
    pointer-events: none;
  }
}

/* MOBILE BACKGROUND (768px and below) */
@media (max-width: 768px) {
  #about.section {
    /* Mobile-optimized background */
    background-image: url('/assets/images/americanflagmobile.png'); /* Your mobile image */
    background-attachment: scroll; /* Better for mobile performance */
    background-repeat: no-repeat;
    background-size: cover; /* Fill the screen */
    background-position: center center;
  }
  
  /* Different overlay for mobile (can adjust opacity) */
  #about.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* Slightly darker for better contrast on mobile */
    z-index: 0;
    pointer-events: none;
  }
}

/* Keep content above overlay - for both desktop and mobile */
#about.section .container {
  position: relative;
  z-index: 1;
}

/* Make About text pop on both */
#about .section-title,
#about p,
#about h3,
#about .contact-details h3,
#about .contact-details p {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75);
}

/* Optional: make cards more readable on mobile */
@media (max-width: 768px) {
  #about .contact-item {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 20px 16px;
    backdrop-filter: blur(3px);
    margin-bottom: 20px;
  }
}

/* MOBILE LAYOUT OPTIMIZATION */
@media (max-width: 768px) {
  #about.section {
    padding: 60px 0;
  }
  
  #about .section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 25px;
    padding: 0 15px;
  }
  
  #about .contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }
  
  .about-content p {
    font-size: 1.05rem !important;
    line-height: 1.7;
    margin-bottom: 18px !important;
    text-align: center;
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px !important;
  }
  
  .contact-icon {
    font-size: 1.8rem !important;
    margin-bottom: 15px;
    color: #fff !important;
    background: rgba(42, 125, 94, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .contact-details h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
  
  .contact-details p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* For very small phones */
@media (max-width: 400px) {
  #about.section {
    padding: 50px 0;
  }
  
  #about .section-title {
    font-size: 1.8rem;
  }
  
  .about-content p {
    font-size: 1rem !important;
  }
  
  .contact-item {
    padding: 20px 15px !important;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem !important;
  }
}

/* Optional: Add transition for background change */
@media (max-width: 768px) {
  #about.section {
    transition: background-image 0.5s ease;
  }
}