/* ===== CSS Variables (palette from your logo) ===== */
:root {
  --brand-green: #019367; /* “GIS” green */
  --brand-blue: #4f87a7; /* wordmark blue */
  --brand-navy: #143c68; /* deep accent */
  --ink: #f6fafe; /* very light text */
  --muted: #8ea8b8; /* secondary text */
  --bg-900: #0b0f14; /* page background */
  --glass: rgba(0, 0, 0, 0.6); /* scrolled header */
  --transparent: transparent;
  --radius: 999px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
} /* ===== Global reset + base ===== */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg-900);
  font:
    16px/1.6 system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    "Helvetica Neue",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
} /* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}
.btn-primary {
  background: var(--brand-green);
  color: #fff;
  margin-top: -12px; /* subtle lift without overlap */
}
@media (max-width: 600px) {
  .btn-primary {
    margin-top: 0; /* neutral on small screens */
  }
}
.btn-primary:hover {
  filter: brightness(1.1);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  margin-top: -10px;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
} /* ===== Buttons (Unified SynerGIS Style) ===== */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-green); /*  green background */
  color: #fff; /*  white text */
  border: none; /*  no outline */
  border-radius: var(--radius); /*  rounded pill shape */
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.btn-outline:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.btn-outline:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
} /* ===== Header ===== */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  backdrop-filter: none;
  background: var(--transparent);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease;
}
.header.scrolled {
  background: var(--glass);
  backdrop-filter: saturate(150%) blur(6px);
  box-shadow: var(--shadow);
}
.header .container {
  padding: 0.8rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo {
  height: 84px;
  width: auto;
  transition: height 0.3s ease;
} /* Header shrink effect */
.header {
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease,
    padding 0.25s ease;
  padding: 1rem 0;
}
.logo {
  height: 84px;
  transition: height 0.25s ease;
}
.header.scrolled {
  background: var(--glass);
  backdrop-filter: saturate(150%) blur(6px);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}
.header.scrolled .logo {
  height: 56px; /* ~33% shrink */
} /* Smaller logo on mobile */
@media (max-width: 768px) {
  .logo {
    height: 56px; /* adjust as needed */
  }
} /* Even smaller on very narrow screens */
@media (max-width: 480px) {
  .logo {
    height: 48px;
  }
} /* Desktop nav */
.nav {
  display: none;
}
.nav-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: #fff;
  opacity: 0.9;
}
.nav-list a:hover {
  color: var(--brand-blue);
}

/* ===== Responsive Mobile Menu ===== */

/* Burger (menu icon) */
.burger {
  width: 40px;
  height: 40px;
  display: none; /* hidden on desktop */
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 100; /* above menu */
  position: relative;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Burger active (turns into X) */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Mobile Menu Panel ===== */
.mobile-menu {
  position: fixed;
  inset: 0 0 auto 0;
  top: 72px; /* just below the header */
  background: rgba(11, 15, 20, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  z-index: 99;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mobile-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu links */
.m-link {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  color: #fff;
  text-align: center;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.m-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-green);
}

/* Show burger and hide desktop nav */
@media (max-width: 900px) {
  .nav {
    display: none !important;
  }
  .burger {
    display: grid !important;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0; /* left-to-right subtle gradient + darkening for contrast */
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem;
  display: grid;
  gap: 1.25rem;
  max-width: 900px;
}
.hero h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: clamp(2rem, 3.8vw + 0.5rem, 4rem);
}
.accent {
  color: var(--brand-green);
}
.hero p {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.25rem);
  margin: 0 auto;
  max-width: 62ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
} /* ===== Responsive ===== */
@media (min-width: 900px) {
  .nav {
    display: block;
  }
  .burger {
    display: none;
  }
} /*Second Section Styling*/ /* ===== Features Section (Light Theme, Fixed Alignment) ===== */
.features {
  background: #ffffff;
  padding: 6rem 1rem;
  color: #222;
  text-align: center;
}
.features .container {
  max-width: 1200px;
  margin: 0 auto;
} /* Title and intro properly centered */
.section-title {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-align: center;
}
.section-intro {
  color: #555;
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
} /* Responsive grid for cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
  justify-items: center;
} /* Feature card styling */
.feature-card {
  background: #f8fafc;
  border: 1px solid #e5e8ec;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  max-width: 320px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-green);
} /* Icon, title, text */
.icon {
  font-size: 2rem;
  color: var(--brand-green);
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--brand-navy);
}
.feature-card p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
} /* ===== Section Base Styles ===== */
.section {
  min-height: 100vh; /* full viewport height for testing */
  padding: 6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
} /* ===== Background Variants ===== */
.section-light {
  background: #f8fafc; /* very light gray */
  color: #0b0f14;
}
.section-dark {
  background: #0b0f14; /* dark section for contrast */
  color: #ffffff;
}
.section-alt {
  background: #eaf3f6; /* soft bluish tone for visual rhythm */
  color: #0b0f14;
}
.section-white {
  background: #ffffff;
  color: #0b0f14;
} /* Optional: smooth transitions between sections */
.section + .section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
} /* ===== Scroll Snap Behavior ===== */
html,
body {
  scroll-behavior: smooth;
  height: 100%;
}
main {
  scroll-snap-type: y mandatory; /* vertical snapping */
  overflow-y: scroll;
}
.section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
} /* ===== Scroll Indicators ===== */
.scroll-indicators {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 40;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    border 0.3s ease;
}
.dot:hover {
  background: var(--brand-green);
  transform: scale(1.2);
}
.dot.active {
  background: var(--brand-green);
  border-color: rgba(255, 255, 255, 0.4);
} /* Adaptive scroll indicator colors */
.dot.light {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 0, 0, 0.2);
}
.dot.light.active {
  background: var(--brand-green);
  border-color: rgba(0, 0, 0, 0.4);
}
.dot.dark {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}
.dot.dark.active {
  background: var(--brand-green);
  border-color: rgba(255, 255, 255, 0.4);
} /* Hide on very small screens */
@media (max-width: 768px) {
  .scroll-indicators {
    display: none;
  }
} /* ===== ABOUT SECTION ===== */ /* Wrap for the whole section */
.about-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
} /* Top section: text + image side-by-side */
.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 3rem;
}
.about-text h2 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-navy);
  margin-bottom: 1rem;
}
.about-text .accent {
  color: var(--brand-green);
}
.about-text p {
  color: #444;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.about-image img {
  width: 50%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .about-image img {
    width: 70%;
    max-width: 300px;
  }
} /* Bottom section: features grid */ /* ===== About Features (clean + custom icon ready) ===== */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
  align-items: start;
}
.about-features .feature {
  padding-top: 2rem;
  background: transparent;
  border: none; /* removed green top line */
} /* Icon styling — ready for your own SVGs or PNGs */
.about-features .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem; /* centers icon */
  width: 106px; /* slightly larger */
  height: 106px; /* uniform square */
  color: var(--brand-green);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.about-features .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
} /* For icons that should float left instead of centered */
.icon.left {
  float: left;
  margin-right: 1rem;
}
.icon.center {
  display: block;
  margin-inline: auto;
  float: none;
} /* Headings + text (lighter, cleaner) */
.about-features h4 {
  font-size: 1.05rem;
  font-weight: 600; /* lighter weight */
  color: var(--brand-navy);
  margin-bottom: 0.4rem;
}
.about-features p {
  color: #555;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.55;
} /* Responsive adjustments */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-image {
    order: -1;
  }
} /* ===== Services Section (Refined Layout & White Cards) ===== */
.section-dark {
  background: var(--bg-900);
  color: var(--ink);
  padding: 6rem 0;
}
.section-dark .section-header {
  text-align: left;
  max-width: 560px;
  padding-right: 40px;
  margin-bottom: 4rem; /* more spacing from cards */
}
.section-dark .section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.section-dark .section-header p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
} /* Grid container */
.section-dark .services-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* responsive stack fix */
  gap: 2rem;
  align-items: stretch;
  clear: both;
} /* Card style */
.section-dark .service-card {
  background: #ffffff; /*  white card background */
  color: #111;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.section-dark .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
} /* Image/Icon */
.section-dark .service-card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: -2rem;
} /* Title */
.section-dark .service-card h3 {
  font-weight: 700;
  color: var(--brand-green);
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
} /* Description */
.section-dark .service-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  text-align: center;
  margin: 0;
} /* Ensure consistent stacking and spacing on mobile */
@media (max-width: 768px) {
  .section-dark {
    padding: 4rem 0;
  }
  .section-dark .section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-right: 0;
  }
  .section-dark .services-grid {
    grid-template-columns: 1fr; /*  single column on small screens */
  }
  .section-dark .service-card {
    max-width: 400px;
    margin: 0 auto;
  }
} /* ===== Fix layout stacking for mobile (Services Section) ===== */
@media (max-width: 992px) {
  /* Force header text to full width above grid */
  .section-dark .container {
    display: block; /*  stops header and grid from aligning side by side */
  }
  .section-dark .section-header {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem; /*  clean space between text and cards */
  }
  .section-dark .services-grid {
    width: 100%;
    grid-template-columns: 1fr; /*  one card per row */
    gap: 1.8rem;
  }
  .section-dark .service-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ===== Inline Capabilities (below Services) ===== */
.capabilities-inline {
  margin-top: 3rem;
  text-align: center;
}

.capabilities-inline h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-green);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.capabilities-inline-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.capabilities-inline-list li {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.capabilities-inline-list li:hover {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .capabilities-inline-list li {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
  }
}

/* ===== Footer ===== */
.footer {
  background: #0b0f14;
  color: #f6fafe;
  padding: 3rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-left p {
  color: #8ea8b8;
  font-size: 0.9rem;
}
.footer-right a {
  color: #f6fafe;
  margin-left: 1.2rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer-right a:hover {
  color: var(--brand-green);
} /* Stack on small screens */
@media (max-width: 768px) {
  .footer .container {
    flex-direction: column;
    text-align: center;
  }
  .footer-right a {
    margin: 0 0.6rem;
  }
}

/* ===== Projects Carousel (Fixed Layout) ===== */
.project-carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-window {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.project-slide {
  flex: 0 0 100%;
  text-align: center;
  padding: 1.5rem;
}

.project-slide a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-slide img {
  width: 100%;
  max-width: 750px;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.project-slide img:hover {
  transform: scale(1.03);
}

.project-slide h3 {
  color: var(--brand-green);
  margin-bottom: 0.5rem;
}

.project-slide p {
  font-size: 0.95rem;
  color: #333;
  max-width: 550px;
  margin: 0 auto;
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-green);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem 0.9rem;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #017853;
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .project-slide img {
    max-width: 100%;
  }
  .carousel-btn {
    font-size: 1.6rem;
  }
}
/* Carousel buttons – wider, pill-ish, soft */
.project-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-green);
  color: #fff;
  border: 0;
  width: 48px; /* wider */
  height: 48px; /* taller */
  border-radius: 14px; /* softer corner */
  display: grid;
  place-items: center;
  font-size: 1.4rem; /* icon size */
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.project-carousel .carousel-btn:hover {
  background: #018259;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

/* Tuck them slightly over the image edge */
.project-carousel .carousel-btn.prev {
  left: 6px;
}
.project-carousel .carousel-btn.next {
  right: 6px;
}

/* Make sure the window clips properly */
.project-carousel .carousel-window {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Track + slides */
.project-carousel .carousel-track {
  display: flex;
  will-change: transform;
  transition: transform 0.5s ease;
}

.project-carousel .project-slide {
  flex: 0 0 auto; /* width set by JS */
  text-align: center;
  padding: 1.25rem;
}

/* ===== Fix layout stacking for Projects Carousel (Mobile) ===== */
@media (max-width: 992px) {
  #projects .container {
    display: block;
    width: 100%;
    padding-inline: 1rem;
    text-align: center;
  }

  #projects .section-header {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 2rem;
    text-align: center;
  }

  #projects .project-carousel {
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  #projects .carousel-window {
    width: 100%;
    overflow: hidden;
    display: block;
  }

  #projects .carousel-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    transition: transform 0.5s ease;
  }

  #projects .project-slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 1.25rem;
  }

  #projects .project-slide img {
    width: 100%;
    max-width: 90%;
    height: auto;
    border-radius: 1rem;
  }

  #projects .carousel-btn.prev {
    left: 8px;
  }

  #projects .carousel-btn.next {
    right: 8px;
  }
}

/* ===== Contact Section (Dark Theme with Fixed Background Map) ===== */
.contact-dark {
  position: relative;
  background: #0b0f14;
  color: var(--ink);
  overflow: hidden;
  padding: 6rem 1rem;
  z-index: 1;
}

.contact-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/map-back.png") center center / cover no-repeat;
  /*filter: grayscale(100%) contrast(120%) brightness(60%);*/
  /*background-attachment: fixed; /* makes it fixed during scroll */
  z-index: 0;
  transition: transform 0.6s ease;
}

.contact-dark::after {
  /* Add a slight dark overlay for text contrast */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6),
    rgba(11, 15, 20, 0.6)
  );
  z-index: 0;
}

.contact-dark:hover::before {
  transform: scale(1.08);
}

.contact-wrapper {
  position: relative;
  z-index: 2;
  display: flex; /* simpler for one-column layouts */
  flex-direction: column;
  align-items: center;
  justify-content: center; /*  centers vertically */
  text-align: center;
  min-height: 100vh; /*  full viewport height for balanced centering */
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.contact-content h2 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.contact-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 700px;
}

.cta-buttons {
  display: flex;
  justify-content: center; /*  centers buttons horizontally */
  align-items: center; /* ensures vertical alignment */
  flex-wrap: wrap;
  gap: 1.2rem; /* equal spacing between buttons */
  margin: 3rem auto 1rem; /* centers the container itself */
  width: 100%;
  text-align: center;
}

.contact-details p {
  font-size: 0.95rem;
  color: var(--ink);
}

.contact-details a {
  color: var(--brand-green);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Centered text for mobile */
@media (max-width: 768px) {
  .contact-wrapper {
    text-align: center;
  }
  .cta-buttons {
    justify-content: center;
  }
}

/*====== Inner Pages CSS =====*/

/* ===== About Hero ===== */
.about-hero {
  position: relative;
  min-height: 100vh;
  display: flex; /* changed from grid */
  align-items: flex-start; /* move content toward the top */
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
}
.about-hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  color: var(--brand-navy);
}
.about-hero p {
  max-width: 800px;
  margin: 1rem auto 0;
  color: #444;
  font-size: 1.1rem;
}

.about-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 4rem 0 1.5rem 0;
  margin-top: 14vh; /* adjust this for vertical offset */
}

.about-hero-content h1 {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-hero-content p {
  font-size: clamp(1rem, 1.1vw + 0.6rem, 1.25rem);
  line-height: 1.7;
  color: var(--ink);
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .about-hero-content {
    margin-top: 3vh;
  }
}

/* ===== Mission, Vision, Values ===== */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.mv-card {
  background: #fff;
  border: 1px solid #e5e8ec;
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.mv-card h3 {
  color: var(--brand-green);
  margin-bottom: 1rem;
}
.mv-card p,
.mv-card li {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}
.mv-card ul {
  padding-left: 1.2rem;
  list-style: disc;
}

/* ===== Our Story ===== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
  align-items: center;
}
.story-text h2 {
  color: var(--brand-navy);
  margin-bottom: 1rem;
}
.story-text p {
  color: #333;
  line-height: 1.7;
  font-size: 1.05rem;
}
.story-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 1rem;
  margin: 0 auto;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  margin: 3rem auto;
  max-width: 800px;
  padding-left: 2rem;
  border-left: 3px solid var(--brand-green);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--brand-green);
  border-radius: 50%;
}
.timeline-item .year {
  font-weight: 700;
  color: var(--brand-green);
  display: block;
  margin-bottom: 0.3rem;
}

/* ===== Founder CTA ===== */
.about-founder {
  background: #0b0f14;
  text-align: center;
}
.about-founder .contact-content {
  max-width: 800px;
  margin: 0 auto;
}
.about-founder h2 {
  color: var(--brand-green);
}
.about-founder p {
  color: var(--muted);
  font-size: 1.05rem;
}
.about-story {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw); /* full-bleed stretch */
  color: var(--ink);
  padding: 6rem 1rem;
  text-align: center;
  overflow: visible; /* ensure fixed background isn't clipped */
  z-index: 0; /* creates proper stacking context */
}

.about-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.7);
  z-index: 0;
}

.about-story .container {
  position: relative;
  z-index: 1; /* bring text above overlays */
  max-width: 900px;
  margin: 0 auto;
}

.about-story h2 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 1rem;
}

.about-story p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
}

.about-story:hover::before {
  transform: scale(1.05);
  opacity: 0.95;
}

/* Mobile adjustments */

/* ===== Project Detail Page ===== */

.project-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  overflow: hidden;
  background: var(--bg-900);
  isolation: isolate;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/projects-background.png") center/cover no-repeat;
  opacity: 0.3;
  filter: brightness(60%);
  z-index: 0;
}

.project-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 4rem 1rem;
}

.project-hero-content h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 800;
  color: var(--brand-green);
}

.project-hero-content p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

/* ===== Project Info Section ===== */
.project-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-info h2 {
  color: var(--brand-green);
  margin-bottom: 1rem;
}

.project-info p {
  color: #444;
  line-height: 1.7;
}

.project-details {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.project-details h3 {
  color: var(--brand-navy);
  margin-bottom: 1rem;
}

.project-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.project-details li {
  margin-bottom: 0.6rem;
  color: #333;
}

/* ===== Visual Showcase ===== */
.project-showcase {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}

.project-showcase img,
.project-showcase video {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 70vh;
  filter: brightness(85%);
}

/* ===== Impact / Results ===== */
.project-impact {
  background: var(--bg-900);
  color: var(--ink);
  text-align: center;
  padding: 5rem 1rem;
}

.project-impact h2 {
  color: var(--brand-green);
  margin-bottom: 2rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.impact-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
}

.impact-item h3 {
  font-size: 2rem;
  color: var(--brand-green);
  margin: 0 0 0.5rem 0;
}

/* ===== Navigation (Previous / Next) ===== */
.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-nav a {
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 600;
}

.project-nav a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .project-info {
    grid-template-columns: 1fr;
  }
  .project-showcase img,
  .project-showcase video {
    height: 50vh;
  }
}

/* ===== Start Project Form ===== */
.project-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

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

.form-field label {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font-size: 0.95rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field.half {
  grid-column: span 1;
}

.project-form button {
  margin-top: 2rem;
  width: 100%;
  max-width: 260px;
  font-size: 1rem;
}

/* ===== Partner Page Hero ===== */
.partner-hero {
  position: relative;
  background: #f8fafc;
  color: #0b0f14;
  padding: 8rem 1rem 5rem;
  text-align: center;
}

.partner-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.partner-hero h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem);
  color: var(--brand-navy);
  font-weight: 800;
}

.partner-hero p {
  font-size: 1.1rem;
  color: #444;
  margin-top: 1rem;
  max-width: 700px;
  margin-inline: auto;
}

/* ===== Partnership Types ===== */
.partnership-types {
  background: #ffffff;
  color: #0b0f14;
  padding: 6rem 1rem;
  text-align: center;
}

.partnership-types .intro {
  color: #555;
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.partner-card {
  background: #f9fbfc;
  border: 1px solid #e5e8ec;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.partner-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.partner-card h3 {
  color: var(--brand-green);
  margin-bottom: 0.6rem;
}

.partner-card p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Partner Form ===== */
.partner-form-section {
  background: var(--brand-navy);
  color: var(--ink);
  text-align: center;
  padding: 6rem 1rem;
}

.partner-form-section h2 {
  color: var(--brand-green);
  font-size: clamp(2rem, 3vw + 1rem, 2.6rem);
  margin-bottom: 0.75rem;
}

.partner-form-section p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.partner-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}
/* ===== Mobile Fixes for Partner Page ===== */

/* Adjust hero padding on mobile */
@media (max-width: 768px) {
  .partner-hero {
    padding: 6rem 1rem 3rem;
  }

  .partner-hero h1 {
    font-size: 2rem;
  }

  .partner-hero p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}

/* Stack partner cards cleanly */
@media (max-width: 768px) {
  .partner-grid {
    grid-template-columns: 1fr; /* single column */
    gap: 1.5rem;
    justify-items: center;
  }

  .partner-card {
    max-width: 90%;
    margin: 0 auto;
  }

  .partner-card img {
    width: 70px;
    height: 70px;
  }
}

/* Fix form padding and sizing */
@media (max-width: 768px) {
  .partner-form-section {
    padding: 4rem 1rem;
  }

  .partner-form {
    padding: 1.5rem;
    max-width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr; /* stack fields */
    gap: 1rem;
  }

  .form-field.full,
  .form-field.half {
    grid-column: 1 / -1;
  }

  .form-field label {
    font-size: 0.9rem;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
  }

  .partner-form button {
    width: 100%;
    font-size: 1rem;
  }
}

/* Fine-tune text layout for readability */
@media (max-width: 480px) {
  .partner-form-section h2 {
    font-size: 1.8rem;
  }

  .partner-form-section p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .partner-hero-content {
    padding: 0 0.5rem;
  }
}

/* ===== Contact Form (Standalone Page) ===== */
.contact-dark {
  background: #0b0f14;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 8rem 1rem;
}

.contact-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/map-back.png") center center / cover no-repeat;
  background-attachment: fixed;
  opacity: 0.9;
  z-index: 0;
}

.contact-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.7);
  z-index: 1;
}

.contact-wrapper {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  font-size: clamp(2rem, 3vw + 1rem, 2.6rem);
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 1rem;
}

.contact-info {
  margin: 1.5rem 0 3rem;
}

.contact-info p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0.3rem 0;
}

.contact-info a {
  color: var(--brand-green);
  text-decoration: none;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

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

.form-field label {
  display: block;
  text-align: left;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--brand-green);
  background: rgba(255, 255, 255, 0.15);
}

.form-field.full {
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-dark {
    padding: 6rem 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
