:root {
  --brand-blue: #0a3d62;
  --brand-orange: #f39c12;
  --text: #333;
  --muted: #f5f6fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

/* NAVIGATION */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--brand-blue); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.container {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
}
.navbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700;
}
.brand img { height: 32px; width: auto; }
.nav { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 600;
  transition: color .2s;
}
.nav a:hover { color: var(--brand-orange); }

/* HERO SECTION with logo watermark */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  background: linear-gradient(to bottom right, rgba(40, 127, 189, 0.85), rgba(40,127,189,.85)),
              url('assets/Vibe\ eng.png') center/contain no-repeat;
}
.hero .content { padding: 60px 20px; }
.hero h1 { font-size: 42px; margin: 0 0 10px; }
.hero p { font-size: 18px; margin: 0 0 20px; }
.btn {
  display: inline-block;
  background: var(--brand-orange); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  text-decoration: none; font-weight: 700;
  transition: transform .15s, background .2s;
}
.btn:hover { transform: scale(1.04); background: #e67e22; }

/* HERO SLIDESHOW with Crossfade */
.hero.slideshow {
  position: relative;
  height: 100vh;
  color: #fff;
  overflow: hidden;
}

.hero.slideshow .slides {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero.slideshow .slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlideshow 30s infinite;
}

.hero.slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero.slideshow .slide:nth-child(2) { animation-delay: 5s; }
.hero.slideshow .slide:nth-child(3) { animation-delay: 10s; }
.hero.slideshow .slide:nth-child(4) { animation-delay: 15s; }
.hero.slideshow .slide:nth-child(5) { animation-delay: 20s; }
.hero.slideshow .slide:nth-child(6) { animation-delay: 25s; }

@keyframes fadeSlideshow {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Overlay to darken background for text readability */
.hero.slideshow .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,61,98,.6);
  z-index: 1;
}

.hero.slideshow .content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}


/* SECTION LAYOUT */
section { padding: 60px 0; }
section h2 {
  color: var(--brand-blue); text-align: center; margin: 0 0 10px; font-size: 30px;
}
.section-sub {
  color: #555; text-align: center; max-width: 800px; margin: 0 auto 30px;
}

/* CARD GRID */
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  background: var(--muted); border-radius: 14px; padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(0,0,0,.15); }
.card img {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: 10px; margin-bottom: 12px;
}
.card h3 { margin: 8px 0; }

/* LISTS */
ul.clean { padding-left: 20px; }
ul.clean li { margin: 6px 0; }

/* FOOTER */
footer {
  background: var(--brand-blue); color: #fff;
  text-align: center; padding: 24px 0;
}

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
/* CLIENT LOGOS GRID */
.grid.logos {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: center;
  gap: 30px;
}

.logo-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}

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

.logo-card img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
}
.btn.large {
  font-size: 18px;
  padding: 14px 26px;
}
/* DROPDOWN MENU */
.nav .dropdown {
  position: relative;
}

.nav .dropdown-menu {
  display: none;
  position: absolute;
  background: var(--brand-blue);
  list-style: none;
  margin: 0;
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 2000;
}

.nav .dropdown-menu li {
  padding: 0;
}

.nav .dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background .2s;
}

.nav .dropdown-menu li a:hover {
  background: var(--brand-orange);
}

/* Show on hover (desktop) */
.nav .dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile: stack menu and show dropdown inline */
@media (max-width: 640px) {
  .nav .dropdown-menu {
    position: static;
    box-shadow: none;
    background: none;
  }
  .nav .dropdown-menu li a {
    padding-left: 20px;
    color: #fff;
  }
}
/* FULL BACKGROUND SECTION */
.bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.bg-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,61,98,0.6); /* dark overlay for readability */
  z-index: 1;
}

.bg-image .container,
.bg-image .content {
  position: relative;
  z-index: 2;
}
/* PROJECT FOOTPRINT MAP */
.footprint-map {
  position: relative;
}

.marker {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--brand-orange);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 6px rgba(0,0,0,.3);
  cursor: pointer;
  transition: transform .2s;
}

.marker:hover {
  transform: scale(1.3);
}
/* CORE SERVICES ICONS */
.icon-box img {
  width: 80px;          /* force same width */
  height: 80px;         /* force same height */
  object-fit: contain;  /* preserve aspect ratio, no stretching */
  margin-bottom: 20px;
}
/* CORE SERVICES ICONS */
.icon-box img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover effect */
.icon-box:hover img {
  transform: scale(1.15);               /* subtle zoom */
  filter: brightness(0) saturate(100%) invert(64%) sepia(98%) saturate(500%) hue-rotate(-10deg) brightness(100%) contrast(95%);
}

/* Optional: card hover styling */
.icon-box:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transform: translateY(-6px);
  transition: all 0.3s ease;
}
/* PAGE TRANSITION ANIMATION */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease;
}
/* COUNTER STYLING */
.counter {
  font-size: 3rem;           /* larger size */
  font-weight: 800;          /* extra bold */
  color: var(--brand-blue);  /* Vibe Engineering brand blue */
  margin-bottom: 10px;
}
/* SOCIAL MEDIA ICONS */
.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
  opacity: 0.8;
}
/* Default desktop menu */
.nav {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* Dropdown styling */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  background: #0a3d62;
  padding: 10px;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
}

/* Desktop: show on hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: flex;
  }
}

/* Mobile: toggle with .open class */
@media (max-width: 768px) {
  .dropdown.open .dropdown-menu {
    display: flex;
    position: static; /* stack in menu */
    background: #0a3d62;
  }
}

/* Hamburger hidden on desktop */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  margin-left: auto;
}

/* Mobile view */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: #0a3d62;
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 15px;
    border-radius: 5px;
  }

  .nav.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}
@media (max-width: 768px) {
  .nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    flex-direction: column;
    background: #0a3d62;
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 0;
  }

  .nav.show {
    max-height: 400px; /* enough space for all links */
    padding: 15px;
  }
}
.clients {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
}

.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100px;
}

.logos {
  display: flex;
  gap: 50px;
  animation: scroll 20s linear infinite;
}

.logos img {
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.logos img:hover {
  filter: grayscale(0%);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

