/* --- Hero Section --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3f4f6;
  color: #ffffff;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Hero image (hidden until scroll) */
.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
  z-index: 1;
  opacity: 0;
  transform: translateY(-40px) scale(1.05);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-image.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Overlay with text */
.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  padding: 0 1.5rem;
}

/* Hero text (hidden until scroll) */
.hero-text {
  max-width: 700px;
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 1.2s ease 0.3s, transform 1.2s ease 0.3s;
}

.hero-text.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 550;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
}



/* --- Mission & Vision Section --- */
.mission-vision {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  text-align: center;
  position: relative;
  z-index: 1;
}

.mission, .vision {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.mission {
  background-color: #0e7141;
  color: #ffffff;
}

.vision {
  background-color: #a8d06e;
  color: #ffffff;
}

.mission h2, .vision h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 550; 
  margin-bottom: 1rem;
}

.mission p, .vision p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* White divider */
.mission-vision::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 4px;
  background-color: white;
  transform: translateX(-50%);
  z-index: 3;
}

/* Text Animation */
.mission h2, .mission p,
.vision h2, .vision p {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease-out;
}

/* When in view */
.mission-vision.show .mission h2,
.mission-vision.show .mission p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.mission-vision.show .vision h2,
.mission-vision.show .vision p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
  .mission-vision {
    flex-direction: column;
  }

  .mission, .vision {
    padding: 40px 20px;
  }

  .mission-vision::before {
    display: none;
  }
}



/* --- Impact Section --- */
.impact-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 80px 60px;
  background-color: white;
  color: #111;
  overflow: hidden;
}

.impact-text {
  flex: 1 1 40%;
  padding-right: 40px;
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s ease-out;
}

.impact-stats {
  flex: 1 1 60%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  opacity: 0;
  transform: translateX(60px);
  transition: all 1s ease-out;
}

/* When visible */
.impact-section.show .impact-text {
  opacity: 1;
  transform: translateX(0);
}

.impact-section.show .impact-stats {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

/* Text styling */
.impact-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.impact-text p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #333;
}

/* Card styling */
.impact-card {
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.impact-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.impact-card p {
  font-size: 1.25rem;
  line-height: 1.4;
}

.impact-card span {
  font-size: 1rem;
  opacity: 0.9;
}

/* Color themes */
.light-green {
  background-color: #a8d06e;
  color: #0e7141;
}

.dark-green {
  background-color: #0e7141;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .impact-section {
    flex-direction: column;
    padding: 40px 20px;
  }

  .impact-text {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }

  .impact-stats {
    transform: translateY(40px);
  }

  .impact-section.show .impact-stats {
    transform: translateY(0);
  }
}



/* --- Team Section --- */
.team-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
  color: #111;
}

.team-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.team-section p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 40px;
  color: #444;
}

.team-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.team-member {
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  width: 320px;
  background-color: #f9f9f9;
}

.member-image {
  position: relative;
  background-color: #d1d1d1;
  height: 220px; 
  padding: 0;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #fff;
  color: #000;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: bold;
}

.member-info {
  padding: 10px;
  background-color: #fff;
}

.member-info h4 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 5px;
}

.member-info p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #666;
}

.arrow {
  background-color: #a7d46f;
  border: none;
  color: white;
  font-size: 2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.arrow.left {
  order: -1;
}

.arrow.right {
  order: 2;
}



/* --- Portfolio Showcase Section --- */
.portfolio-showcase {
  background-color: #f5f5f5;
  padding: 5rem 2rem;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
}

.portfolio-showcase h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 700;
}

.portfolio-intro {
  max-width: 700px;
  margin: 0 auto 4rem;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Alternating Layout */
.portfolio-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 4rem;
  flex-wrap: wrap;
  text-align: left;
}

.portfolio-item.reverse {
  flex-direction: row-reverse;
}



/* Carousel Container */
.carousel-container {
  position: relative;
  flex: 1 1 45%;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  width: 100%;
}

/* Carousel Wrapper */
.carousel {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
  aspect-ratio: 16 / 9; /* adjust ratio if your warehouse image is more square */
  position: relative;
}

/* Each Image */
.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  display: none;
  transition: transform 0.5s ease;
  border-radius: 15px;
}

.carousel img.active {
  display: block;
}

/* Hover Zoom */
.carousel img:hover {
  transform: scale(1.05);
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #a8d06e;
  border: none;
  color: white;
  font-size: 1.5em;
  width: 45px;            /* fixed width */
  height: 45px;           /* fixed height to make a perfect circle */
  border-radius: 50%;     /* makes it circular */
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center; /* centers the arrow icon */
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1); /* adds a nice hover bounce */
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}



/* Text Section */
.portfolio-text {
  flex: 1 1 45%;
}

.portfolio-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.portfolio-text p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .portfolio-item,
  .portfolio-item.reverse {
    flex-direction: column;
    text-align: center;
  }
  .portfolio-text p {
    max-width: 100%;
  }
}
