/* --- ROOT VARIABLES & GLOBAL SETUP --- */
:root {
  --primary-color: #0e76bd;
  --primary-color-dark: #0a5a8e;
  --primary-gradient: linear-gradient(45deg, #0e76bd, #00a8e6);
  --secondary-color: #f0f8ff;
  --text-color: #333;
  --light-text-color: #fff;
  --bg-color: #ffffff;
  --font-family: "Poppins", sans-serif;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
  --smooth-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  cursor: default;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
}

/* --- HEADER & NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: top 0.4s var(--smooth-ease);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo img {
  height: 50px;
  transition: transform 0.3s var(--smooth-ease);
}
.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  position: relative;
  font-weight: 500;
  transition: color 0.3s var(--smooth-ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.4s var(--smooth-ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- HERO & BACKGROUND STYLES --- */
.sticky-background-container {
  height: 150vh;
  position: relative;
  z-index: 1;
}
.sticky-background-image {
  height: 100vh;
  width: 100%;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.sticky-background-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(14, 118, 189, 0.6), rgba(0, 0, 0, 0.6));
  z-index: -1;
}
#bg1 {
  background-image: url("../assets/background.jpg");
}
#bg2 {
  background-image: url("../assets/background2.jpeg");
}

.hero-text {
  max-width: 900px;
  margin: auto;
  color: var(--light-text-color);
  padding: 1rem;
}
.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-align: center;
}
.hero-text p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  font-weight: 300;
}
@keyframes revealText {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.reveal-text {
  animation: revealText 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  opacity: 0;
}
.btn {
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  margin: 5px;
  display: inline-block;
  font-weight: 600;
  transition: all 0.4s var(--smooth-ease);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary-color);
  color: var(--light-text-color);
}
.btn-primary:hover {
  background: var(--primary-color-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(14, 118, 189, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--light-text-color);
  border-color: var(--light-text-color);
}
.btn-secondary:hover {
  background: var(--light-text-color);
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* --- CONTENT SECTION --- */
.content-section {
  position: relative;
  z-index: 2;
  background-color: var(--bg-color);
  padding: 6rem 0;
}
.content-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}
.content-section:nth-of-type(even) {
  background-color: var(--secondary-color);
}
.hero.content-section {
  padding-top: 140px;
  padding-bottom: 60px;
}

/* --- CARD & GRID STYLES (Used across multiple pages) --- */
.services-grid,
.content-grid,
.client-grid,
.contact-grid,
.values-grid,
.leadership-grid {
  display: grid;
  gap: 2rem;
}
.services-grid,
.content-grid,
.client-grid,
.contact-grid,
.leadership-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
  background: var(--bg-color);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.4s var(--smooth-ease);
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.4s var(--smooth-ease);
  z-index: 0;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
  color: var(--light-text-color);
}
.service-card:hover::before {
  opacity: 1;
}
.service-card > * {
  position: relative;
  z-index: 1;
}
.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

/* --- ANIMATIONS --- */
[data-animation] {
  opacity: 0;
  transition: opacity 0.8s var(--smooth-ease), transform 0.8s var(--smooth-ease);
}
[data-animation="fade-in"] {
  transform: scale(0.95);
}
[data-animation="fade-in-up"] {
  transform: translateY(50px);
}
[data-animation].visible {
  opacity: 1;
  transform: none;
}
.stagger-children > * {
  transition-delay: var(--stagger-delay, 0s);
}

/* --- FOOTER --- */
.footer {
  background: #111;
  color: #aaa;
  padding: 6rem 0 2rem;
  position: relative;
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-col h3 {
  color: var(--light-text-color);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col p,
.footer-col a {
  margin-bottom: 0.5rem;
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-col ul {
  list-style: none;
}
.footer-col a:hover {
  color: var(--primary-color);
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.social-link {
  display: inline-block;
  transition: transform 0.3s ease;
}
.social-link:hover {
  transform: translateY(-3px);
}
.social-link svg {
  width: 24px;
  height: 24px;
  fill: #aaa;
  transition: fill 0.3s ease;
}
.social-link:hover svg {
  fill: var(--primary-color);
}
.copyright {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 2rem;
  font-size: 0.9rem;
}

/* --- HAMBURGER AND RESPONSIVE DESIGN --- */
/* CORRECTED: Hide hamburger on desktop FIRST */
.hamburger {
  display: none;
}

/* THEN, show it on mobile using the media query */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    cursor: pointer;
    z-index: 1001; /* Ensure it's on top */
  }
  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: left 0.4s var(--smooth-ease);
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    gap: 0;
  }
  .nav-item {
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-link {
    padding: 1.5rem 1rem;
    display: block;
  }
  .nav-menu.active {
    left: 0;
  }
  .footer {
    clip-path: none;
    padding-top: 4rem;
  }
}

/* --- OTHER PAGE-SPECIFIC STYLES (from previous steps) --- */
.logo-slider-section {
  background-color: var(--secondary-color);
}
.logo-slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.logo-slider-container::before,
.logo-slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.logo-slider-container::before {
  left: 0;
  background: linear-gradient(to right, var(--secondary-color), transparent);
}
.logo-slider-container::after {
  right: 0;
  background: linear-gradient(to left, var(--secondary-color), transparent);
}
@keyframes infinite-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.logo-slider {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: calc(250px * 16);
  animation: infinite-scroll 40s linear infinite;
}
.logo-slider img {
  height: 60px;
  max-width: 180px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s var(--smooth-ease);
}
.logo-slider:hover {
  animation-play-state: paused;
}
.logo-slider img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}
.client-grid-container {
  margin-bottom: 4rem;
}
.client-grid-container:last-child {
  margin-bottom: 0;
}
.client-grid-container h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 500;
}
.client-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  font-size: 1.1rem;
  box-shadow: var(--card-shadow);
  transition: all 0.4s var(--smooth-ease);
}
.client-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
  color: var(--primary-color);
}
.content-card {
  background: var(--bg-color);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  border: 1px solid #e0eaf3;
  box-shadow: var(--card-shadow);
  transition: all 0.4s var(--smooth-ease);
}
.content-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-color);
}
.content-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.content-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}
.content-card p {
  font-size: 1rem;
  line-height: 1.6;
}
.contact-card {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.4s var(--smooth-ease);
}
.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
}
.contact-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}
.contact-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.contact-card p {
  color: #555;
  min-height: 48px;
}
.contact-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-card a:hover {
  color: var(--primary-color-dark);
}
.map-container {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 450px;
  box-shadow: var(--card-shadow);
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vision-card,
.mission-card {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: 10px;
  border: 1px solid #e0eaf3;
}
.vision-card h3,
.mission-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.leadership-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.leader-card {
  text-align: center;
}
.leader-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--primary-color);
}
.leader-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.leader-card p.title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}
