/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

a {
  color: #004b96;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2eb67d;
}

/* Navigation */
header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #004b96;
}

/* Logo image styling */
.logo-img {
  /* Set a reasonable height so the logo fits within the navbar */
  height: 40px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Partner logos section */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.partner-logo {
  max-height: 80px;
  max-width: 160px;
  object-fit: contain;
  padding: 0.5rem;
}

/* Client logos section */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.client-logo {
  max-height: 80px;
  max-width: 160px;
  object-fit: contain;
  padding: 0.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  background-color: #004b96;
  height: 3px;
  width: 25px;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle .hamburger::before {
  top: -8px;
}

.nav-toggle .hamburger::after {
  top: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  /* The hero uses a positioned image element rather than CSS background to ensure reliable loading under file:// scheme. */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Semi‑transparent overlay to improve text contrast on hero images. */
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

/* Hero image element to display background pictures reliably under file scheme */
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
}

.btn-primary {
  background-color: #004b96;
  color: #fff;
}

.btn-primary:hover {
  background-color: #003e7a;
}

.btn-secondary {
  background-color: #f5f7fa;
  color: #004b96;
  border: 1px solid #004b96;
}

.btn-secondary:hover {
  background-color: #e6ecf5;
}

/* Animations & effects */
/* Fade and slide in on load for hero content */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply the animation to hero text containers */
.hero-content {
  animation: fadeSlideIn 1s ease-out;
}

/* Scroll reveal default state */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

/* When the element is visible, fade it in */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Enhance card hover effect */
.card:hover,
.solution:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

/* Sections */
section {
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.intro {
  background-color: #ffffff;
  padding: 4rem 0;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #004b96;
  text-align: center;
}

.intro p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
  text-align: center;
}

.values {
  background-color: #f5f7fa;
  padding: 4rem 0;
}

.values h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #004b96;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #004b96;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.solutions {
  background-color: #ffffff;
  padding: 4rem 0;
}

.solutions h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #004b96;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.solution {
  background-color: #f5f7fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.solution:hover {
  transform: translateY(-5px);
}

.solution img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.solution h3 {
  color: #004b96;
  margin-top: 1rem;
  font-size: 1.3rem;
}

.solution p {
  padding: 0 1rem;
  font-size: 0.95rem;
  color: #555;
  margin: 0.5rem 0 1.5rem;
}

.solution .btn-secondary {
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: #003f7d;
  color: #ffffff;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .solution-grid {
    grid-template-columns: 1fr;
  }
}