/* -------------------------------------------------------------------------- */
/* 6) HERO SECTION & BACKGROUND IMAGE */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: -1;
}





/* For static background images, always visible */
.bg-static {
  opacity: 1;
  transition: none;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* Your existing styles for the hero section remain unchanged */
.relative-background {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

.bg-static.show {
  opacity: 1;
}

/* Gradient overlay on hero */
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.388),
      rgba(0, 0, 0, 0.432),
      rgba(0, 0, 0, 0.356),
      rgba(0, 0, 0, 0.298),
      rgba(0, 0, 0, 0.256));
  z-index: -1;
  pointer-events: none;
}

body.dark-mode .gradient-overlay {
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.3));
}

/* Page title in hero */
.page-title {
  width: 100%;
  position: fixed;
  top: 3.5em;
  text-align: center;
  color: #d3ff96;
  font-size: 3.5em;
  border: none;
  padding: 0.3em;
  z-index: -1;
}

/* -------------------------------------------------------------------------- */
/* 7) RELATIVE BACKGROUND  */
/* -------------------------------------------------------------------------- */
.relative-background {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}



/* -------------------------------------------------------------------------- */
/* 9) ABOUT HEADING (style-about.css) */
/* -------------------------------------------------------------------------- */

.about-heading {
  text-align: center;
  padding: 4em 2em;
  background-color: #aebbb0;
}

body.dark-mode .about-heading {
  background-color: #111;
}

/* Heading Styles */
.about-heading h2 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  background: linear-gradient(90deg, #ff5429, #0800ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .about-heading h2 {
  background: linear-gradient(to bottom, #43f55e, #9f34f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-heading p {
  max-width: 1000px;
  margin: 1.5em auto; /* Increased vertical spacing between paragraphs */
  text-align: left;
  font-size: 1.2em;
  line-height: 2; /* Improved readability with increased line height */
  color: #000000;
}

body.dark-mode .about-heading p {
  color: #ffffff;
}





/* -------------------------------------------------------------------------- */
/* 11) TEAM SECTION */
/* -------------------------------------------------------------------------- */
.team {
  max-width: 100%;
  margin: 0 auto;
  padding: 4em 1em;
  text-align: center;
  background-color: #aebbb0;
}

body.dark-mode .team {
  background-color: #111;
}

.team h2 {
  margin-bottom: 2em;
  font-size: 2em;
  color: #363636;
}

body.dark-mode .team h2 {
  color: #ffffff;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}

.team-member {
  flex: 1 1 calc(33.33% - 2em);
  max-width: 400px;
  text-align: center;
}

.image-container {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  aspect-ratio: 1;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.default-img {
  opacity: 1;
  z-index: 1;
}

.hover-img {
  opacity: 0;
  z-index: 2;
}

.image-container:hover .default-img {
  opacity: 0;
}

.image-container:hover .hover-img {
  opacity: 1;
}

.team-member p {
  margin-top: 1em;
  font-weight: bold;
  font-size: 1.1em;
  color: #555;
}

@media (max-width: 768px) {
  .team-member {
    flex: 1 1 calc(50% - 1em);
  }
}

@media (max-width: 480px) {
  .team-member {
    flex: 1 1 100%;
  }
}