* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", serif;
    overflow-y: hidden;
    overflow-x: hidden;
}

@media (max-width: 1024px) {
  * {
    font-family: "Roboto", sans-serif;
  }
}

html {
    overflow-y: scroll !important;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 0.5vw;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: black;
    border: 0.125vw solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.625vw;
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
    cursor: pointer;
}

/* header */
header,
header .navbar,
header .navbar ul,
header .navbar ul li {
  overflow: visible !important;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  width: 100vw;
  height: 10vh;
  box-shadow: 0 0.3vw 0.6vw rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease-in-out;
}

.hidden {
  transform: translateY(-100%);
}

nav {
  height: 100%;
}

header .navbar .nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4vw;
  list-style-type: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

header .navbar .nav-menu li {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

header .navbar .nav-menu li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 1vw;
}

header .navbar .nav-menu li a:hover {
  color: darkred;
}

/* Dropdown Styles */
header .dropdown {
  position: relative;
  overflow: visible;
}

header .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 0 0 0.3vw 0.3vw;
  display: none !important;
  width: 10vw;
  z-index: 1000;
  margin: 0;
  padding: 0 !important;
}

header .dropdown-menu li {
  width: 100%;
  list-style: none;
  padding: 0.5vw;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header .dropdown-menu li a {
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: black;
  font-size: 1vw;
  display: block;
  padding: 1vh 0;
  transition: color 0.3s ease-in-out;
}

header .dropdown-menu li a:hover {
  color: darkred;
}

header .dropdown a {
  display: flex;
  align-items: center;
}

header .dropdown a div {
  margin-left: 0.5vw;
  transition: transform 0.3s ease-in-out;
}

header .dropdown:hover a div {
  transform: rotate(180deg);
}

header .dropdown:hover .dropdown-menu {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  height: auto !important;
}

/* Logos */
header .acmLogo {
  height: 7vh;
  width: 7vh;
  margin-left: 3vw;
  cursor: pointer;
}

header .tiuLogo {
  height: 7vh;
  width: 7vh;
  margin-left: 1vw;
  cursor: pointer;
}

header .technoLogo {
  height: 5vh;
  width: 35vh;
  margin-right: auto;
  margin-left: 1vw;
  cursor: pointer;
}

/* Register Button */
header nav .reg {
  font-size: 1.1vw;
  font-weight: 700 !important;
  color: #fff !important;
  background-color: rgb(255, 35, 35) !important;
  padding: 1.55vh 2.25vw;
  margin-right: 4vw;
  border-radius: 0.25vw;
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out,
    box-shadow 0.5s ease-in-out;
}

header nav .reg:hover {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

header nav .active {
  color: rgb(255, 35, 35) !important;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 1vw;
}

.hamburger span {
  height: 2px;
  width: 20px;
  background: #000;
  margin: 2px 5px;
  transition: all 0.3s;
}

/* Tablet styles: Devices between 769px and 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  header {
    height: 10vh;
    padding: 0 4vw;
  }
  header .acmLogo,
  header .tiuLogo {
    height: 6vh;
    width: 6vh;
    margin-left: 2vw;
  }
  header .technoLogo {
    height: 4.5vh;
    width: auto;
  }
  header .navbar .nav-menu {
    gap: 2vw;
  }
  header .navbar .nav-menu li a {
    font-size: 1.5vw;
  }
  header nav .reg {
    font-size: 1.5vw;
    padding: 1vh 2vw;
  }
  header .dropdown-menu {
    width: 20vw;
  }
}

/* Mobile styles: Devices up to 768px */
@media screen and (max-width: 768px) {
  header {
    flex-direction: row;
    height: auto;
    padding: 1vh 2vw;
  }

  /* Show hamburger and hide nav-menu initially */
  .hamburger {
    display: flex;
  }

  header .navbar .nav-menu {
    display: none;
    position: absolute;
    top: 6.5vh; /* Adjust based on header height */
    right: 0;
    flex-direction: column;
    gap: 2vw;
    width: 40%;
    height: auto;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
    z-index: 999;
  }
  .navbar .nav-menu.active {
    display: flex;
  }

  /* Adjust logos for mobile */
  header .acmLogo,
  header .tiuLogo {
    height: 4vh;
    width: 4vh;
    margin-left: 2vw;
  }
  header .acmLogo {
    margin-right: -5vw;
  }
  header .tiuLogo {
    margin-left: auto;
  }
  header .technoLogo {
    height: 2.5vh;
    width: auto;
    margin: 1vh auto;
    margin-left: 2vw;
    display: block;
  }
  /* Center nav items and adjust spacing */
  header .navbar .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 1vh 0;
  }
  header .navbar .nav-menu li a {
    font-size: 3vw;
    font-weight: 400;
  }
  /* Adjust register button for mobile */
  header nav .reg {
    font-size: 3vw;
    padding: 0.8vh 6vw;
    border-radius: 0.5vw;
    margin: 1vh auto;
  }
  /* Dropdown adjustments */
  header .dropdown-menu {
    width: 40vw;
    left: 50%;
    transform: translateX(-50%);
  }
}


/* Base Styles (Desktop) */
.MainBox {
  margin: 18vh 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.MainBox .headImg {
  width: max-content;
  height: 50vh;
  margin-bottom: 2.5vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid #000;
}

.MainBox .headImg img {
  width: 40vw;
  height: auto;
  object-fit: contain;
}

.MainBox .heading {
  text-align: center;
  color: #000000;
  font-size: 3vw;
  font-weight: bold;
  height: 10vh;
  margin-bottom: 5vh;
  margin-top: 10vh;
}

.MainBox h5 {
  font-size: 1.05vw;
  text-align: center;
}

.MainBox .team-container {
  width: 95vw;
  padding: 2.5vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8vw;
}

.MainBox .team-member {
  position: relative;
  width: 40vh;
  height: 45vh;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.25vw;
  text-align: center;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}

.MainBox .team-member img {
  margin-top: 5vh;
  height: 20vh;
  width: 20vh;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.MainBox .team-member .info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 17.5vh;
  background: #fff;
  padding: 0.75vw;
  font-size: 1.5vw;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
}

.MainBox .team-member .info span:nth-of-type(1) {
  font-size: 1.5vw;
  font-weight: 600;
}

.MainBox .team-member .info span:nth-of-type(2) {
  font-size: 1.25vw;
  font-weight: 400;
  color: rgb(0, 0, 0, 0.5);
}

.MainBox .team-member:hover .info {
  background: #fff !important;
  color: #fff !important;
}

.MainBox .team-member:hover {
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.MainBox .team-member .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 145%;
  background: white;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  padding: 1vw;
  text-align: center;
}

.MainBox .team-member:hover .overlay {
  opacity: 1;
  transform: translateY(-50px);
}

.MainBox .overlay h2 {
  position: absolute;
  top: 0.5vw;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2vw;
  font-weight: bold;
}

.MainBox .overlay p {
  font-size: 1.35vw;
  line-height: 1.5;
}

.MainBox .social-icons {
  display: flex;
  gap: 2vw;
  margin-top: 5vh;
  padding: 2vw;
}

.MainBox .social-icons a {
  color: #000;
  font-size: 2vw;
  transition: transform 0.2s;
}

.MainBox .social-icons a:hover {
  transform: scale(1.2);
}

.other-members {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 30px;
  background: #f9f9f9;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.other-members h2 {
  position: relative;
  text-align: center;
  font-size: 2rem;
  color: #222;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.other-members h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #0073e6;
  margin: 12px auto 0;
  border-radius: 2px;
}

.members-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  gap: 28px; /* more breathing room between cards */
}

.members-container li {
  background: #fff;
  padding: 22px 20px; /* more space inside */
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #333;
  text-align: center;
  border: 1px solid #e6e6e6;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  min-height: 65px; /* consistent height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.members-container li:hover {
  background: #0073e6;
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 115, 230, 0.25);
}


/* Tablet Styles */
@media (max-width: 768px) {
  .MainBox {
      margin: 10vh 0;
  }
  .MainBox .headImg {
      height: 40vh;
  }
  .MainBox .headImg img {
      width: 60vw;
  }
  .MainBox .heading {
      font-size: 5vw;
      height: auto;
      margin-top: 5vh;
      margin-bottom: 3vh;
  }
  .MainBox .team-container {
      width: 95vw;
      gap: 4vw;
      padding: 2vw;
  }
  .MainBox .team-member {
      width: 30vh;
      height: 38vh;
      margin-bottom: 5vh;
  }
  .MainBox .team-member img {
      height: 20vh;
      width: 20vh;
  }

  .MainBox .team-member .info {
      height: auto;
      padding: 1vw;
      font-size: 3.5vw;
      gap: 1vh;
  }

  .MainBox .team-member .info span:nth-of-type(2) {
    font-size: 2vw;
  }

  .MainBox .overlay p {
      font-size: 3.5vw;
      margin-top: 2vw;
  }
  .MainBox .social-icons a {
      font-size: 4vw;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .MainBox {
      margin: 12.5vh 0;
  }
  .MainBox .headImg {
      height: auto;
  }
  .MainBox .headImg img {
      width: 40vw;
      height: auto;
  }
  .MainBox h5 {
    font-size: 4.5vw;
    font-weight: 300;
    padding: 0 6vw;
  }
  .MainBox .heading {
      font-size: 6vw;
      font-weight: 500;
      margin-top: 5vh;
      margin-bottom: 3vh;
  }
  .MainBox .team-container {
      width: 100vw;
      gap: 2vw;
      padding: 2vw;
  }
  .MainBox .team-member {
      width: 70vw;
      height: 75vw;
      margin-bottom: 2vh;
      border-radius: 1.5vw;
  }
  .MainBox .team-member img {
      height: 27.5vw;
      width: 27.5vw;
  }
  .MainBox .team-member .info {
      height: auto;
      padding: 2vw;
      font-size: 4vw;
      margin-bottom: 12.5vw;
  }

  .MainBox .team-member .info span:nth-of-type(1) {
    font-size: 6vw;
  }

  .MainBox .team-member .info span:nth-of-type(2) {
    font-size: 4vw;
  }
  .MainBox .overlay p {
      font-size: 4vw;
      font-weight: 400;
      margin-top: 2vw;
      line-height: 2;
  }
  .MainBox .social-icons {
      gap: 2vw;
  }
  .MainBox .social-icons a {
      font-size: 5vw;
  }
}



/* Footer */
/* Base Footer Styles */
.footer {
  background-color: #0d1128;
  color: #fff;
  padding: 15vh 10vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: auto;
  flex-wrap: wrap;
}

.footer-column {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
  width: max-content;
  margin-bottom: 2vh;
}

.footer-column:nth-last-of-type(1) {
  align-items: flex-end;
}

.footer-column:nth-last-of-type(1) > div {
  width: 100%;
  display: flex;
  justify-content: center !important;
}

.footer-column .title {
  font-size: 1.5vw;
  font-weight: 500;
  margin-bottom: 1.5vh;
  margin-top: 5vh;
  color: #fff;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-column a {
  text-decoration: none;
  color: #fff;
  margin-bottom: 1vh;
  font-size: 1vw;
  font-weight: 400;
  transition: color 0.3s ease;
}

.footer-column:nth-of-type(1) .title {
  font-size: 2vw;
}

.footer-column:nth-of-type(1) a {
  font-size: 1.5vw;
}

.footer-column .social-icons {
  display: flex;
  gap: 10px;
  margin-top: 0;
  color: #fff;
}

.footer-column .social-icons img {
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: transform 0.3s ease;
  filter: invert(1);
}

.footer-column .social-icons img:hover {
  transform: scale(1.1);
}

.footer-column .title .svg {
  width: 100%;
  height: auto;
  margin-right: 0.5vw;
  margin-bottom: 1vh;
}

.footer-column .title .logo,
.footer-column .title .acmlogo {
  width: 5vw;
  margin-right: 0.5vw;
}

.footer-column .title .name {
  filter: invert(1);
}

.footer-column .email,
.footer-column .address {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  color: #fff;
  margin: 0.5vh 0.25vw;
}

.footer-column .email i,
.footer-column .address i {
  font-size: 1.5vw;
  margin-right: 0.5vw;
  margin-top: 0.5vh;
  color: #fff;
}

#map {
  width: 90%;
  height: 40vh;
  margin-top: 4vh;
}

#map * {
  overflow: visible !important;
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .footer {
    padding: 12vh 8vw;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .footer-column {
    width: 100%;
    align-items: center;
  }
  .footer-column:nth-last-of-type(1) {
    align-items: center;
  }
  .footer-column .title {
    font-size: 2.5vw;
    margin-top: 4vh;
    justify-content: center;
  }
  .footer-column a {
    font-size: 1.75vw;
  }
  .footer-column:nth-of-type(1) .title {
    font-size: 3vw;
  }
  .footer-column:nth-of-type(1) a {
    font-size: 2vw;
  }
  .footer-column .social-icons img {
    width: 32px;
    height: 32px;
  }
  .footer-column .title .logo,
  .footer-column .title .acmlogo {
    width: 7vw;
  }
  .footer-column .email i,
  .footer-column .address i {
    font-size: 2vw;
  }
  #map {
    width: 95%;
    height: 35vh;
    margin-top: 3vh;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .footer {
    padding: 8vh 4vw;
    flex-direction: column-reverse;
    align-items: center;
    text-align: start;
  }
  .footer-column {
    width: 90%;
    align-items: center;
  }
  .footer-column .title {
    font-size: 5vw;
    margin-top: 3vh;
    justify-content: center;
  }
  .footer-column a {
    font-size: 3vw;
    font-weight: 300;
  }

  .footer-column:nth-of-type(1) .title {
    font-size: 5vw;
  }
  .footer-column:nth-of-type(1) a {
    font-size: 4vw;
  }
  .footer-column .social-icons {
    justify-content: center;
  }
  .footer-column .social-icons img {
    width: 24px;
    height: 24px;
  }
  .footer-column .title .logo,
  .footer-column .title .acmlogo {
    width: 15vw;
  }
  .footer-column .email i,
  .footer-column .address i {
    font-size: 4vw;
  }
  #map {
    width: 80%;
    height: 25vh;
    margin-top: 3vh;
  }
}

.openInPC {
  display: none;
}

@media (max-width: 1024px) {
  .openInPC {
    display: block;
    color: #000;
    font-size: 1.5vw;
    font-weight: 600;
    text-align: center;
    background-color: #cfff41;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000000;
  }
}
