/* ===== Global Styles ===== */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #F0F0F0;
}

main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

h2 {
  color: #C62828;
  font-weight: bold;
  margin-bottom: 20px;
  font-size: clamp(20px, 4vw, 45px);
}

/* ===== NAVBAR STYLING ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #002544;
  padding: 2.2em 50px;
  box-shadow: 0 2px 4px rgba(8, 42, 180, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
  flex-wrap: wrap;
}

.nav-title {
  font-family:'Trebuchet MS', sans-serif;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  white-space: nowrap;
  margin: 0;
  line-height: 1.2;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-content > * {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-content a,
.dropdown-button {
  position: relative;
  color: white;
  font-size: clamp(10px, 2vw, 18px);
  font-weight: bold;
  background: none;
  border: none;
  text-decoration: none;
  font-family: 'Trebuchet', sans-serif;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.nav-content a::after,
.dropdown-button::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right,#88ccf6, #fff);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-content a:hover,
.dropdown-button:hover {
  color: #88ccf6;
  text-shadow: 0 0 5px rgba(239, 191, 4, 0.5);
}

.nav-content a:hover::after,
.dropdown-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.dropdown-button {
  appearance: none;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: #f4f4f4;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  min-width: 160px;
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #002544;
}

.dropdown-content a:hover {
  background-color: #dedcdc;
}

.show .dropdown-content {
  display: block;
}

/* === TEAM SECTION === */
h1 {
  font-size: 40px;
  text-align: center;
  background: linear-gradient(90deg, #002544, #0a3d62, #5f8ac3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 40px;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
}

.member {
  background: linear-gradient(135deg, #f7fbff, #e3f2fd);
  padding: 30px 35px;
  border-radius: 20px;
  width: 90%;
  max-width: 620px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 60, 100, 0.15);
  color: #002544;
  line-height: 1.7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.member:hover {
  box-shadow: 0 12px 30px rgba(0, 60, 100, 0.25);
  transform: translateY(-7px);
}

.member::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, #88d0fd, white);
  z-index: 0;
  opacity: 0.2;
}

.member img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 4px solid #88ccf6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

.member img:hover {
  transform: scale(1.05);
}

.member h3 {
  font-size: 24px;
  margin: 10px 0 5px;
  color: #0d2c54;
  z-index: 1;
  position: relative;
}

.member p {
  font-size: 16px;
  z-index: 1;
  position: relative;
}

.contact a {
  color: #005ea2;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: #8f07c5;
  text-decoration: underline;
}


/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #002544;
  color: white;
  margin-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  place-items: center;
  padding: 20px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color:white;
}

.footer-section p {
  margin: 5px 0px;
  color:#bfe6ff;
}

.footer-bottom {
  text-align: center;
  padding: 10px 0 20px;
  font-size: 14px;
  color:white;
}

.footer-section a {
  text-decoration: none;
  color: #bfe6ff;
}

.recommend-divider {
  border: none;
  border-top: 2px solid #ccc;
  width: 75%;
  margin: 2em auto;
}

/* === Responsive === */
/* Tablet view */
@media (max-width: 1024px) {
  .member img {
    width: 130px;
    height: 130px;
  }
}


  /* ===== Phone View ===== */
 @media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 1em 20px;
  }

  .nav-title {
    text-align: center;
    width: 100%;
    margin-bottom: 0.5em;
  }

  .nav-content {
    justify-content: center;
    width: 100%;
    margin-top: 0.5em;
    text-align: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .team {
    padding: 20px 10px;
    gap: 20px;
  }

  .member {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
  }

  .member img {
    width: 110px;
    height: 110px;
    margin-bottom: 10px;
  }
 }

@media (max-width: 480px) {
  .nav-title {
    font-size: clamp(20px, 5vw, 28px);
  }

  .nav-content a,
  .dropdown-button {
    font-size: clamp(9px, 3vw, 14px);
  }
 }


 #backToTop {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  font-size: 22px;
  border: none;
  outline: none;
  background-color: #014c8c;
  color: #bfe6ff;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#backToTop:hover {
  background-color: #a7dcfd;
  transform: scale(1.2);
}