/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Team Section Styles */
.team-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #044f0a 0%, #0f6c2b 40%, #2f8a55 100%);
  font-family: 'Poppins', sans-serif;
  padding: 56px 20px;
}

/* Flickity Carousel Styles */
.carousel {
  width: min(94%, 1240px);
  margin-top: 28px;
  overflow: visible;
}

/* Desktop: show static cards with no carousel behavior */
.carousel.static-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.carousel.static-grid .carousel-cell {
  width: 100%;
  margin: 0;
}

.carousel-cell {
  margin: 0 14px;
  width: clamp(280px, 30vw, 360px);
  height: clamp(400px, 56vh, 500px);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.carousel-cell:nth-of-type(1) {
  background-image: url('/assets/nitu_khemkar.png');
}
.carousel-cell:nth-of-type(2) {
  background-image: url('/assets/jay.jpg');
}
.carousel-cell:nth-of-type(3) {
  background-image: url('/assets/satya.jpg');
}

/* Content inside Carousel Cards */
.carousel-cell .content {
  width: 100%;
  font-size: 1.05rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px;
  background: linear-gradient(
    0deg,
    rgba(7, 19, 9, 0.88) 10%,
    rgba(7, 19, 9, 0.52) 55%,
    rgba(7, 19, 9, 0.1) 100%
  );
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hover Effects */
.carousel-cell:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  filter: saturate(1.07);
}

.carousel-cell:hover .content {
  opacity: 1;
  transform: translateY(0);
}

.carousel-cell .content h2 {
  color: #ffffff;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  margin-bottom: 2px;
  text-align: center;
  line-height: 1.2;
}

.carousel-cell .content span {
  color: #f3e2a4;
  font-size: 0.98rem;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.carousel .flickity-viewport {
  overflow: visible;
}

.carousel .flickity-prev-next-button {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.carousel .flickity-prev-next-button:hover {
  background: #ffffff;
}

.carousel .flickity-button-icon {
  fill: #0c5f24;
}

/* Join Button Styles */
#joinbtn {
  background-color: #f28b60;
  border: none;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  text-align: center;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 38px;
  width: auto;
}

#joinbtn:hover {
  background-color: #fb8332;
  transform: translateY(-5px);
}

#joinbtn a {
  color: white;
  text-decoration: none;
}

/* Mobile Styles: One Card per Swipe */
@media (max-width: 768px) {
  .team-section {
    padding: 40px 14px;
  }

  .carousel-cell {
    width: 84%;
    height: 420px;
    margin: 0 8px;
  }

  .carousel-cell .content {
    padding: 18px;
  }

  .carousel-cell .content h2 {
    font-size: 1.35rem;
  }

  .carousel .flickity-button {
    display: block;
  }
}

/* Desktop: no carousel controls because cards are static */
@media (min-width: 769px) {
  .carousel .flickity-button {
    display: none;
  }
}