/* === RESET & GLOBAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  font-family: 'Inter', sans-serif;
  background: #f6fff8;
}

h1, h2, h3, h4 {
  font-weight: 900;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 80px 5%;
  scroll-margin-top: 120px; /* heading is visible when scrolling */
}


/* === HEADER === */
header {
  background:linear-gradient(135deg, #fffef4, #fffef4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

}


/* Logo area */

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 30px
}

.logo-img {
  height: 95px;
  width: auto;
  border-radius: 8px;
}

.logo-text {
  display: flex;
  align-items: center;
}

.logo-survey {
  color: #373643;
  font-weight: 700;
  font-size: 2.5rem;
}

.logo-mi {
  color: #cc7a00;
  font-weight: 700;
  font-size: 2.5rem;
}

/* Navigation */
header nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: #607d53;
  font-weight: 800;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color:  rgba(0, 77, 64, 0.82);
}

/* === HERO SECTION (VIDEO BACKGROUND) === */
.header-video,
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.header-video video,
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* 45% dark overlay */
  z-index: 1;
}



.header-text,
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: #fffef4;
  padding: 0 20px;
  margin: 0; /* remove margin pushing text down */
  width: 100%;
}


.header-text h1,
.hero-content h1 {
  
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fffef4;
}

.header-text p,
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  line-height: 1.6;
  color:#f5f5f5
}

.header-text .btn,
.hero-content .btn {
  padding: 12px 28px;
  background: #004d40;
  color: #fff;
  border-radius: 30px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.header-text .btn:hover,
.hero-content .btn:hover {
  background: #657439;
}


/* === ABOUT === */
#about {
  background: #f4f4f4;
  text-align: center;
}


.divider-section {
  width: 100%;
  background: #fffef4; /* same as your page background */
  padding: 20px 0;
}

.full-divider {
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, #244907, transparent);
  border: none;
}


/* === EXPERTISE (SLIDER) === */
#expertise {
  background: #fffef4;
  padding: 40px 20px;
  margin-top: 20px;
  position: relative; /* keeps arrows scoped inside */
}

#expertise h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 40px 0 30px;
  text-align: center;
  position: relative;
  z-index: 20;
}

#expertise h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #2e7d32;
  margin: 10px auto 0;
  border-radius: 2px;
}

#expertise h4{
  color:#244907
}
.expertise-section {
  padding: 30px;
  font-family: Arial, sans-serif;
}

.expertise-heading {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.expertise-intro {
  text-align: justify;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.offer-heading {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
}

.offer-list {
  text-align: justify;
  font-size: 16px;
  line-height: 1.6;
  list-style-type: none; /* remove bullets */
  padding: 0;
}

.offer-list li {
  margin-bottom: 12px;
}

.offer-list i {
  color: #0077cc; /* customize icon color */
  margin-right: 8px;
}

#expertise li{
  margin-left: 10px;
}

#expertise .expertise-slider {
  position: relative;   /* makes arrows relative to slider only */
  display: flex;
  align-items: center;
  justify-content: center;
}

#expertise .expertise-slide {
  display: none;

  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: -20px;
  transition: opacity 0.8s ease-in-out;
}

#expertise .expertise-slide.active {
  display: flex;
  opacity: 1;
}

#expertise .expertise-text {
  flex: 1;
  margin-top: -20px;
  padding-left: 30px; /* move text to the right */
  text-align: justify;
}

.expertise-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.expertise-slide.active {
  display: flex;
  opacity: 1;
}


#expertise .expertise-text h3 {
  margin-bottom: 15px;
  font-size: 26px;
  color: #244907;
}

#expertise .expertise-text p {
  font-size: 16px;
  color: #555;
}

#expertise .expertise-image {
  flex: 1;
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

#expertise .expertise-image img {
  max-width: 350px;
  height: auto;
  border-radius: 10px;
}

/* === Expertise Navigation Arrows === */
#expertise .expertise-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

#expertise .expertise-controls button {
  pointer-events: auto;
  background: #244907;
  color: #fff;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 30%;
  transition: background 5s;
}

#expertise .expertise-controls button:hover {
  background: #1b5e20;
}

.offer-list {
  text-align: justify;
  font-size: 16px;
  line-height: 1.6;
  list-style-type: disc;  /* restore bullets */
  padding-left: 20px;     /* indent bullets properly */
}


@media (max-width: 768px) {
  #expertise h2 {
    font-size: 2rem;
  }
}



/* === PROJECTS SECTION === */
#projects {
  background: #fffef4;
  padding: 80px 5%;
}

#projects h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 8px;
  letter-spacing: 1.5px;
  font-weight: 700;
  z-index: 20;
}

#projects h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background:rgba(0, 77, 64, 0.82);
  margin: 10px auto 0;
  border-radius: 2px;
}


#projects > .projects-container > p {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.8;
  max-width: 850px;
  margin: 10px auto 50px; /* small space above, more below */
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
}


.projects-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  
}

.project-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: brightness(85%);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.project-card:hover img {
  transform: scale(1.08);
  filter: brightness(60%);
}

.bridge-card {
  height: auto !important;       /* don't force a fixed card height */
           /* let the full image show */
}


.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 77, 64, 0.82);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 60px;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(40px);
  border-radius: 20px;
}

/* Overlay covers full image */
.bridge-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 77, 64, 0.82);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 60px;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(40px);
  border-radius: 20px;
}



.project-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.overlay p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 700px;
}


/* === TEAM SECTION (Magazine Style - Wider Cards) === */
#team {
  padding: 90px 8%;
  text-align: center;
  background: #f7f9fb;
}

#team h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 8px;
  letter-spacing: 1.5px;
  font-weight: 700;
  z-index: 20;

}

#team h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background:rgba(0, 77, 64, 0.82);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Grid layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  justify-items: center;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Center bottom row */
.team-grid .team-member:nth-last-child(-n+2) {
  grid-column: span 1;
  justify-self: center;
}

/* === TEAM SECTION (Magazine Style - Wider Cards) === */
#team {
  padding: 90px 8%;
  text-align: center;
  background: #fffef4;
}

#team h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  letter-spacing: 1.5px;
}

/* Grid layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  justify-items: center;
}

/* Center bottom row */
.team-grid .team-member:nth-last-child(-n+2) {
  grid-column: span 1;
  justify-self: center;
}

/* Team member card (wider) */
.team-member {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 30px 25px;
  width: 340px; /* was 280px */
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Profile photo */
.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #004d40;
  margin-bottom: 15px;
}

/* Text styling */
.team-member h3 {
  font-size: 1.2rem;
  color: #222;
  font-weight: 600;
  margin-bottom: 5px;
}

.team-member p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

/* Social icons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 15px;
}

.social-button {
  color: #004d40;
  font-size: 1.1rem;
  background: #e9f5f2;
  border-radius: 50%;
  padding: 10px;
  transition: all 0.3s ease;
}

.social-button:hover {
  background: #004d40;
  color: #fff;
}

/* Bio button */
.bio-button {
  display: inline-block;
  font-size: 0.8rem;
  padding: 6px 18px;
  border: 1.5px solid #004d40;
  border-radius: 20px;
  text-decoration: none;
  color: #004d40;
  transition: all 0.3s ease;
}

.bio-button:hover {
  background: #004d40;
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-member {
    width: 90%;
  }
}

/* ===== FAQ ===== */
#faqs {
  padding: 3rem 2rem;
  text-align: center;
  background: #fffef4;
}

#faqs h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  letter-spacing: 1.5px;
}

.faq-item {
  margin: 1rem auto;
  max-width: 700px;
  background: linear-gradient(#607d53,#fffef4, #607d53);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  text-align: left;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem;
  list-style: none;
  outline: none;
}

.faq-item summary::marker {
  display: none;
}

.faq-item[open] summary {
  color: #1d3124;
}

.faq-item p {
  margin: 0.5rem 0 1rem;
  padding: 0.5rem;
}


/* ===== CONTACT ===== */
#contact {
  padding: 3rem 2rem;
  text-align: center;
  background:  #fffef4;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button {
  background: #1d3124;
  color: #f6fff8;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #40916c;
}


footer {
  background:  #fffef4;
  color: rgb(31, 1, 1);
  font-family: Arial, sans-serif;
  padding: 40px 20px 0;  /* remove bottom padding so the green bar touches */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-left,
.footer-middle,
.footer-right {
  flex: 1;
  min-width: 250px;
  margin: 15px;
}

.footer-left .logo {
  width: 60px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 14px;
  line-height: 1.5;
}

.social-icons {
  margin-top: 15px;
}

.social-icons a {
  margin-right: 12px;
  font-size: 18px;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #064e2e; /* light green hover */
}

.footer-middle h3,
.footer-right h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-middle ul,
.footer-right ul {
  list-style: none;
  padding: 0;
}

.footer-middle li,
.footer-right li {
  margin-bottom: 8px;
}

.footer-middle a,
.footer-right a {
  text-decoration: none;
  color:#122a02;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-middle a:hover,
.footer-right a:hover {
  color: #6fa043;
}

.subscribe {
  margin-top: 15px;
  display: flex;
}

.subscribe input {
  padding: 8px;
  border: none;
  border-radius: 5px 0 0 5px;
  flex: 1;
}



.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  font-size: 13px;
  background: rgba(0, 77, 64, 0.82);  /* solid green bar */
  color: #333;          /* readable text */
  border-top: none;      /* no split line */
}

/* === RESPONSIVE DESIGN === */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .team-member {
    width: 300px;
    padding: 25px 20px;
  }

  #team h2 {
    font-size: 2rem;
  }
}

/* Mobile phones (≤ 600px) */
@media (max-width: 600px) {
  #team {
    padding: 60px 5%;
  }

  .team-grid {
    grid-template-columns: 1fr; /* one card per row */
    gap: 1.8rem;
  }

  .team-member {
    width: 100%;
    max-width: 360px;
  }

  .team-member img {
    width: 120px;
    height: 120px;
  }

  #team h2 {
    font-size: 1.8rem;
    margin-bottom: 35px;
  }

  .bio-button {
    padding: 6px 12px;
  }
}

/* === UNIVERSAL MOBILE RESPONSIVENESS === */

/* Prevent horizontal scrolling */
body {
  overflow-x: hidden;
}

/* Make all images scale properly */
img {
  max-width: 100%;
  height: auto;
}

/* Adjust section padding for small devices */
section {
  padding: 40px 20px;
}

/* === TEXT RESPONSIVENESS === */
h1, h2, h3 {
  line-height: 1.2;
}

@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  p { font-size: 1rem; }
}

@media (max-width: 768px) {
  section {
    padding: 30px 15px;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }
  p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  p { font-size: 0.9rem; }
}

/* === FINAL MOBILE OPTIMIZATION === */

/* Mobile Navigation (Hamburger Style) */
/* === MOBILE NAVIGATION (RIGHT-ALIGNED) === */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    color: #244907;
  }

  header nav ul {
    position: absolute;
    top: 60px; /* below header */
    right: 1.5rem;
    background: #fffef4;
    flex-direction: column;
    align-items: flex-end;
    display: none;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  header nav ul.show {
    display: flex;
  }

  header nav ul li {
    padding: 0.5rem 0;
  }

  header nav ul li a {
    color: #244907;
    font-weight: 500;
  }
}


/* Fix video scaling on phones */
@media (max-width: 768px) {
  .header-video video,
  .hero-video {
    height: 100vh;
    object-fit: cover;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* Contact form scaling */
@media (max-width: 600px) {
  form {
    width: 100%;
    padding: 0 10px;
  }

  input,
  textarea {
    font-size: 0.95rem;
  }

  button {
    font-size: 1rem;
    padding: 0.7rem;
  }
}

/* Footer layout stack */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left, .footer-middle, .footer-right {
    margin: 10px 0;
  }
}


/* === GENERAL HEADER === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fffef4;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo img {
  height: 80px; /* Bigger and more visible */
  width: auto;
  max-height: 12vh; /* Keeps it responsive on smaller screens */
  transition: transform 0.3s ease;
}

header .logo img:hover {
  transform: scale(1.05);
}


header nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

header nav ul li a {
  text-decoration: none;
  color: #244907;
  font-weight: 500;
}

/* === MOBILE MENU === */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    color: #244907;
  }

  header nav ul {
    position: absolute;
    top: 60px;
    right: 1.5rem;
    background: #fffef4;
    flex-direction: column;
    align-items: flex-end;
    display: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  header nav ul.show {
    display: flex;
  }

  header nav ul li {
    padding: 0.5rem 0;
  }

  header nav ul li a {
    color: #244907;
  }
}


@media (max-width: 768px) {
  .header-text h1,
  .hero-content h1 {
    font-size: 2rem;
  }

  .header-text p,
  .hero-content p {
    font-size: 1rem;
  }
}
