html, body {
  height: 100%;
}

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

body {
  font-family: "Poppins", sans-serif;
  background: url('../NepPath.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: #050505;
  color: #f0f0f0;
}

/* HEADER */
header {
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
  height: 50px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  position: absolute;
  top: 22px;
  right: 20px;
  z-index: 999;
  width: 18px;
  height: 14px;
}

.menu-toggle div {
  width: 18px;
  height: 2px;
  background-color: white;
  border-radius: 1px;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #ff5a20;
  transition: width 0.3s;
}

nav a:hover {
  color: #ff5a20;
}
nav a:hover::after { width: 100%; }

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 22px;
    right: 20px;
    z-index: 999;
    width: 18px;
    height: 14px;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
  }

  .menu-toggle div {
    width: 18px;
    height: 2px;
    background-color: white;
    border-radius: 1px;
}

  nav {
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    right: -180px;
    height: flex;
    width: 120px;
    padding: 60px 15px 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  nav.show {
    right: 0;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* TEAM SECTION */
.team-section {
  padding: 100px 20px 40px;
  max-width: 1200px;
  margin: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.team-member {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger animation for a cascading effect */
.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }
.team-member:nth-child(5) { animation-delay: 0.5s; }
.team-member:nth-child(n+6) { animation-delay: 0.6s; }

.team-member:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 90, 32, 0.5);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255, 90, 32, 0.15);
}

.avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 90, 32, 0.8);
  margin-bottom: 15px;
  box-shadow: 0 0 15px rgba(255, 90, 32, 0.3);
}

.name {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.role-btn {
  background: linear-gradient(135deg, #ff5a20, #d93d0a);
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(255, 90, 32, 0.3);
}

.member-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.member-icons a {
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.member-icons a:hover {
  color: #ff5a20;
}

@media screen and (max-width: 600px) {
  .avatar {
    width: 80px;
    height: 80px;
  }

  .name {
    font-size: 1rem;
  }
}