* {
  box-sizing: border-box;
}

body{
      margin: 0;
      padding: 0;
      font-family: "Poppins", sans-serif;
      background: linear-gradient(#d5f2ee, #d7edea, #dfeae9);
      overflow-x: hidden; /* ← horizontal scroll रोकता है */
}

/* Premium Navbar */
.navbar-wrapper {
  height: 80px;
  width: 100%;
}

.navbar {
  position: fixed;
  top: 5px;

  max-width: 1250px;
  margin: 0 auto;
  left: 0; right: 0;

  height: 70px;

  background: linear-gradient(
      to right,
      rgba(198, 241, 231, 0.9),
      rgba(193, 224, 249, 0.9)
  );
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.4);

  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 30px; 
  z-index: 999;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: #0b8d5c;
}

.navbar ul {
  display: flex;
  gap: 25px; 
  padding: 0;
}

.navbar ul li {
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.navbar ul li:hover {
  color: #0b8d5c;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.navbar a {
  text-decoration: none;
  color: inherit;
}

.team-mates{
  font-size: 20px;
  font-weight: 600;
  gap: 4px;
 display: flex;
 align-items: center;
 justify-content: center;
 margin-top: 15px;
 text-transform: uppercase;
}

.team-mates img{
  width: 50px;
}

/* ==== TEAM SECTION ==== */

.team-section {
  width: 100%;
  max-width: 1100px;
  margin: 60px auto 60px;
  padding: 0 15px; /* safe for mobile */
}

/* Single row (photo + text) */
.member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* ← सबसे बड़ा FIX */
  gap: 40px;

  padding: 40px 30px;
  background: linear-gradient(to bottom, #f7f7f7, #e6eaee);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  margin-bottom: 40px;
}

/* Reverse layout */
.member-card.reverse {
  flex-direction: row-reverse;
}

/* Photo area */
.member-photo img {
  width: 220px;
  height: 220px;
  max-width: 100%;  /* ← overflow रोकता है */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* Text area */
.member-info {
  flex: 1;
  min-width: 240px; /* text squeeze नहीं होगा */
  text-align: left;
}

.member-name {
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #222;
}

.member-role {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e35b2f;
  margin-bottom: 16px;
}

.member-about {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 10px;
}

.member-project-role {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 15px;
  font-size: 0.8rem;
  color: #140f0f;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {

  .member-card,
  .member-card.reverse {
    flex-direction: column;
    text-align: center;
  }

  .member-info {
    text-align: center;
  }

  .member-photo img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 500px) {

  .navbar ul li {
    font-size: 15px;
    font-weight: 300;
   
  }

  .navbar ul {
    gap: 8px;
  }

  .member-card {
    padding: 20px 15px;
  }

  .member-photo img {
    width: 150px;
    height: 150px;
  }
}

/* ===== ANIMATION EFFECT ===== */

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to each member card */
/* Hidden by default */
.member-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

/* Visible on scroll */
.member-card.show {
  opacity: 1;
  transform: translateY(0);
}
