/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  padding-top: 5vh;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
/* header {
  background-color: #004aad;
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
} */

/* .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.logo i {
  color: #ffcc00;
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul a:hover,
nav ul a:focus {
  color: #ffcc00;
  outline: none;
} */

/* Hamburger menu - hidden on desktop */
/* .hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
} */

/* Header & Nav */
header {
  background-color: #002776; 
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

/* Navigation Links */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul a:hover,
nav ul a:focus {
  color: #ffcc00;
  outline: none;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}
main, section {
  margin-top: 0;
  /* you already have body padding-top so no big margin needed */
}

/* https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1400&q=80 */
/* Hero Section */
/* .hero {
  background: url('clients/staffing.jpg') no-repeat center center/cover;
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px; 
  text-align: center;
  color: #fff;
  position: relative;
  background-size: cover;
} */
.hero {
 position: relative;
  height: calc(100vh - 30px); /* full screen minus header height (adjust if needed) */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden; /* clip video */
  /* margin-top: 40px;  */
}

/* Video styles */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes it behave like background-size: cover */
  z-index: -1;      /* push it behind content */
}


.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 74, 173, 0.7);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1rem;
  
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background-color: #ffcc00;
  color: #004aad;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn:hover,
.btn:focus {
  background-color: #e6b800;
  outline: none;
}


.background-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}
/* 
.foreground-content {
  position: relative;
  z-index: 10;
} */



/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 3rem 0 2rem;
  color: #004aad;
}


/*service*/


#services {
  padding: 20px 40px; /* Add padding on sides for desktop */
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards in each row */
  gap: 20px; /* Space between cards */
  padding: 10px 0; /* Padding top-bottom for spacing */
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
}

.card:hover,
.card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.15);
}
.card img {
  width: 100%;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  height: 180px;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #004aad;
}

.card p {
  flex-grow: 1;
  margin: 0 1rem 1rem;
  color: #555;
  font-size: 0.95rem;
}
.btn-small {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #007BFF;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}
.btn-small:hover,
.btn-small:focus {
  background-color: #003080;
  outline: none;
}

/* Responsive Design for Mobile */
@media screen and (max-width: 768px) {
  #services {
    padding: 10px 20px; /* Reduce side padding on smaller screens */
  }

  .service-cards {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 15px;
  }

  .card img {
    height: 150px;
  }
}

/* Responsive for tablets / small laptops */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
  }
}




/* How It Works Section */
.how {
  background-color: #e6f0ff;
  padding: 3rem 1rem 4rem;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.1);
  padding: 2rem 1.5rem;
  flex: 1 1 280px;
  max-width: 320px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.step:hover,
.step:focus-within {
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.15);
}

.step i {
  font-size: 2.5rem;
  color: #004aad;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #004aad;
}

.step p {
  color: #555;
  font-size: 1rem;
}

/* Clients Section*/

.clients-section {
  text-align: center;
  margin: 50px 0;
}


.clients-section h2 {
  color: #004aad;
  margin-bottom: 3rem;
}

.clients-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.clients-track {
  display: flex;
  width: calc(200px * 14); /* depends on logo count */
  animation: scroll 25s linear infinite;
}

.clients-track img {
  height: 100px;
  margin: 0 30px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s;
}

.clients-track img:hover {
  filter: grayscale(0%); 
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* About Section */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 1rem 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  flex: 1 1 400px;
  color: #333;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #004aad;
}

.about-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.about-image {
  flex: 1 1 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact / Lead Form Section */
.lead-form {
  background-color: #004aad;
  color: #fff;
  padding: 3rem 1rem 4rem;
  text-align: center;
}

.lead-form h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.lead-form form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lead-form input,
.lead-form select {
  padding: 0.75rem 1rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.lead-form input::placeholder,
.lead-form select {
  color: #666;
}

.lead-form select {
  appearance: none;
  background-color: #fff;
  color: #333;
  cursor: pointer;
}

.lead-form button {
  background-color: #ffcc00;
  color: #004aad;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.lead-form button:hover,
.lead-form button:focus {
  background-color: #e6b800;
  outline: none;
}

/* Footer */
/* Footer updated styles */
footer {
  background-color: #002d72;
  color: #fff;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  user-select: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-left,
.footer-right {
  flex: 1 1 280px;
}

.footer-left h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffcc00;
}

.footer-left p,
.footer-left a {
  margin-bottom: 0.5rem;
  display: block;
  color: #fff;
  text-decoration: none;
}

.footer-left a:hover,
.footer-left a:focus {
  text-decoration: underline;
  outline: none;
}

.footer-right h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ffcc00;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover,
.social-icons a:focus {
  color: #ffcc00;
  outline: none;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background-color: #1ebe57;
  outline: none;
}

/* Responsive */

/* Mobile menu */
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: #004aad;
    height: calc(100vh - 60px);
    width: 200px;
    flex-direction: column;
    padding-top: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  nav ul.show {
    transform: translateX(0);
  }

  nav ul{
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .hamburger {
    display: block;
  }
}

/* Hero text smaller on small screens */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* About section stacked on small screens */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
  }

  .about-image,
  .about-content {
    flex: 1 1 100%;
  }
}

/* Loader overlay */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner */
.loader::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007BFF; /* Blue color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
