/* ===============================
   GLOBAL STYLES
================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth; /* ✅ Smooth section scrolling */
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #fff;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===============================
   HEADER / NAVBAR
================================= */
.navbar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Remove container limitation for the nav bar */
.nav-flex {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Left white area for logo */
.nav-left {
  background: #fff;
  flex: 0 0 340px; /* fixed width for logo area */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
}

/* Logo */
.nav-left .logo {
  height: 65px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-left .logo:hover {
  transform: scale(1.05);
}

/* Right blue area for menu */
.nav-center {
  background: #0a3d62;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 60px;
}

.nav-center ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-center ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-center ul li a:hover {
  color: #74b9ff;
}

/* ===============================
   RESPONSIVE HEADER
================================= */
@media (max-width: 900px) {
  .nav-flex {
    flex-direction: column;
  }

  .nav-left,
  .nav-center {
    flex: 1 1 100%;
    width: 100%;
  }

  .nav-left {
    padding: 15px 0;
  }

  .nav-center {
    justify-content: center;
    padding: 15px 0;
  }

  .nav-center ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .nav-center ul li a {
    font-size: 1rem;
  }
}

/* ===============================
   HERO SECTION
================================= */
.hero {
  background: linear-gradient(rgba(10,61,98,0.8), rgba(10,61,98,0.8)), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #fff; text-align: center;
  display: flex; align-items: center; justify-content: center;
  height: 90vh; padding: 0 20px;
  animation: fadeIn 1.2s ease-out both;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 15px; transition: color .3s, transform .3s; }
.hero h1:hover { color: #74b9ff; transform: scale(1.03); }
.hero p { max-width: 700px; margin: auto; line-height: 1.6; margin-bottom: 25px; transition: opacity .3s, transform .3s; }
.hero p:hover { opacity: .9; transform: translateY(-3px); }

.btn-primary, .btn-secondary {
  display: inline-block; padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: 500; transition: transform .25s ease, background .25s ease;
}
.btn-primary { background: #0984e3; color: #fff; }
.btn-primary:hover { background: #74b9ff; transform: scale(1.05); }
.btn-secondary { background: #0a3d62; color: #fff; }
.btn-secondary:hover { background: #0984e3; transform: scale(1.05); }

/* ===============================
   SPLIT SECTIONS (About, Services, Process, Contact)
================================= */
.split-section {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 80px 10%; gap: 40px;
  opacity: 0; transform: translateY(40px);
  animation: fadeUp .9s ease-out forwards;
  animation-delay: .35s;
}
.split-section.reverse { flex-direction: row-reverse; }

/* Staggered animation delays */
.split-section:nth-of-type(2) { animation-delay: .35s; }
.split-section:nth-of-type(3) { animation-delay: .55s; }
.split-section:nth-of-type(4) { animation-delay: .75s; }
.split-section:nth-of-type(5) { animation-delay: .95s; }

.split-image { overflow: hidden; border-radius: 10px; flex: 0 0 480px; max-width: 100%; }
.split-image img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform .45s ease, filter .35s ease;
}
.split-image img:hover { transform: scale(1.04); filter: saturate(1.08); }

.split-text { flex: 1; min-width: 280px; transition: opacity .3s, transform .3s; }
.split-text:hover { transform: translateY(-5px); }

.split-text h2 {
  color: #0a3d62; font-size: 2.2rem; margin-bottom: 18px; position: relative;
  transition: color .3s, transform .3s;
}
.split-text h2::after {
  content: ""; position: absolute; width: 48px; height: 4px; background: #0984e3; left: 0; bottom: -10px; border-radius: 2px;
}
.split-text h2:hover { color: #0984e3; transform: translateY(-3px); }

.split-text p, .split-text li {
  line-height: 1.7; margin-bottom: 14px;
  transition: color .3s, transform .3s;
}
.split-text p:hover, .split-text li:hover {
  color: #0a3d62; transform: translateX(4px);
}
.split-text ul, .split-text ol { margin-left: 20px; }

/* Fade transition between sections */
section {
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
section:target {
  opacity: 1;
  transform: scale(1.01);
}

/* ===============================
   CLIENTS SECTION
================================= */
.clients-section {
  background: #f5f7fa;
  padding: 80px 0;
  text-align: center;
}

.clients-section h2 {
  font-size: 2.2rem;
  color: #0a3d62;
  margin-bottom: 15px;
}

.clients-section .client-subtext {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: #555;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
  padding: 0 40px;
}

.client-box {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.client-box img {
  width: 100%;
  max-width: 170px; /* increased from 150px for better visibility */
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.client-box img:hover {
  filter: grayscale(0%);
  transform: scale(1.08); /* slightly more zoom effect */
}

/* ===============================
   FOOTER
================================= */
.footer {
  background: #0a3d62;
  color: #fff;
  text-align: center;
  padding: 30px 10px;
  font-size: .95rem;
}
.footer p { transition: color .25s; }
.footer p:hover { color: #74b9ff; }

/* ===============================
   ANIMATIONS
================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   RESPONSIVE DESIGN
================================= */
@media (max-width: 992px) {
  .split-section { padding: 60px 6%; gap: 30px; }
  .split-image { flex-basis: 420px; }
}
@media (max-width: 768px) {
  .nav-flex { flex-direction: column; gap: 12px; }
  .nav-center ul { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .nav-center ul li a { font-size: 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .split-section { flex-direction: column !important; padding: 40px 6%; }
  .split-image { width: 100%; max-width: 100%; flex-basis: auto; }
}
