* {
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: white;

  /* Stack backgrounds: gradient first, then PNG */
  background: url("img/wave.png"), linear-gradient(180deg, #01000a, #050030);

  background-size: 100% auto, cover;

  overflow-x: hidden;
  position: relative;
}
header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4rem;
  padding: 1rem;
  font-size: 2rem;
  margin-top: 4rem;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  font-size: 2rem;
}

h1 {
  font-style: bold;
  font-size: clamp(2rem, 6vw, 4rem);
}

h2 {
  font-style: bold;
  font-size: clamp(1.75rem, 6vw, 4rem);
}

p {
  font-style: regular;
  font-size: 1.5rem;
  line-height: 3rem;
}

#phead {
  line-height: 3rem;
  background: linear-gradient(360deg, #ef4ef0, #f06e4f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* Firefox */
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  /* width: 100%; */
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem;
  transition: background-color 0.5s ease;
  z-index: 1000;
  background: transparent; /* starts transparent */
}

nav.scrolled {
  background-color: #01000a71;
  backdrop-filter: blur(10px); /* solid on scroll */
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-style: regular;
  font-size: 2rem;
}

.logo img {
  height: clamp(1.5rem, 6vw, 2rem);
  margin-right: 10px;
}

.logo span {
  font-size: clamp(1.5rem, 6vw, 2rem);
}

/* Nav links container */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding-right: 4rem;
}

/* Shared link styles */
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.5rem;
  display: inline-block;
  transition: color 0.3s ease;
}

/* Hover gradient text */
.nav-links a:hover {
  background: linear-gradient(90deg, #ef4ef0, #f06e4f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* Firefox */
}

/* Dropdown wrapper */
.dropdown {
  position: relative;
}

/* Dropdown menu box */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #01000a;
  backdrop-filter: blur(5px);
  min-width: 110px;
  list-style: none;
  margin: 0;
  padding: 1.5rem 2.5rem;
}

/* Dropdown menu links */
.dropdown-menu li a {
  display: block;
  padding: 0.75rem 0;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -2rem;
  height: 100vh;
  width: 100%;
  z-index: 999;
  background-color: #01000af3;
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  text-decoration: none;
  padding-left: 2rem;
  padding-top: 2rem;
}

.sidebar li {
  width: 100%;
}

.sidebar a,
.footer-right a {
  width: 100%;
  color: white;
  font-weight: 500;
  font-size: 1.5rem;
  display: inline-block;
  transition: color 0.3s ease;
  text-decoration: none;
}
.sidebar a:hover,
.footer-right a:hover,
.footer-left h2,
.insta-link {
  background: linear-gradient(90deg, #ef4ef0, #f06e4f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* Firefox */
}

#closeSidebar,
#openSidebar {
  color: white;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  border-width: 0;
  transition: color 0.3s ease;
  text-decoration: none;
  background-color: transparent;
  cursor: pointer;
  margin-top: -4px;
  margin-right: 5px;
}

#closeSidebar:hover,
#openSidebar:hover {
  background: linear-gradient(90deg, #ef4ef0, #f06e4f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* Firefox */
}

#openSidebar {
  display: none;
}

#project-intro-image {
  align-items: "center";
  margin: 0 auto;
  max-width: 998px;
  object-fit: cover;
}

.scroll-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.scroll-btn img {
  width: 48px;
  height: 48px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

footer {
  padding: 2rem;
  background-color: #01000a;
}

.footer-top {
  display: flex;
  justify-content: center; /* centers both left + right together */
  gap: 4rem; /* space between left and right */
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  margin-bottom: 2rem;
  padding: 0;
}

.footer-left h4 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.insta-link {
  display: inline-flex;
  gap: 0.5rem;
  text-decoration: none;
  align-items: center;
  font-weight: 500;
  font-size: 1.5rem;
}

.insta-link img {
  width: 48px;
  height: 48px;
}

.footer-right ul {
  list-style: none;
}

.footer-right li {
  margin-bottom: 0.5rem;
}

.footer-bottom p {
  font-style: regular;
  font-size: 1rem;
  justify-content: center;
  text-align: center;
  color: white;
}

.project-section {
  margin: 0 auto;
  max-width: 998px;
}

/* Mobile footer*/
@media (max-width: 768px) {
  .footer-top {
    gap: 2rem;
    justify-content: left;
  }

  .footer-bottom p {
    justify-content: left;
    text-align: left;
  }
}

/* background shapes*/
#half-circle-down {
  position: absolute;
  top: 3%;
  right: 0;
  z-index: -1;
  transform: translateX(50%);
  width: clamp(150px, 20vw, 250px);
  height: auto;
}

#half-circle-left {
  position: absolute;
  top: 18%;
  left: 0;
  z-index: -1;
  transform: translateX(-30%);
  width: clamp(150px, 20vw, 250px);
  height: auto;
}

#ring-shape-left {
  position: absolute;
  top: 4%;
  left: 0;
  z-index: -1;
  transform: translateX(-20%) rotate(15deg);
  width: 500px;
}

/* join us section */
#join-us {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  text-align: center;
  font-size: 1.5rem;
}

#join-us-button {
  background: linear-gradient(90deg, #f06e4f 0%, #ef4ef0 100%);
  border-radius: 50px;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  padding: 20px 30px;
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 0px; /* start with no gap */
}

#join-us-button .arrow-icon {
  opacity: 0; /* hidden initially */
  transform: translateX(0px); /* slide from left */
  transition: all 0.3s ease;
  margin-left: -30px;
}

#join-us-button:hover {
  gap: 8px; /* push arrow out */
}

#join-us-button:hover .arrow-icon {
  opacity: 1;
  transform: translateX(+5px); /* slide in */
  margin-left: 0px;
}

/* projects links section */
.project-card {
  position: relative;
  display: block;
  width: clamp(360px, 20vw, 800px);
  height: clamp(360px, 20vw, 800px);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column-left .project-card {
  border-radius: 0 8rem 0 8rem;
  text-align: right;
}

.column-left .project-card p {
  padding-left: 25%;
}

.column-right .project-card p {
  padding-right: 25%;
}

.column-right .project-card {
  border-radius: 8rem 0 8rem 0;
  text-align: left;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay with text */
.project-card .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  color: white;
}

.project-card h3 {
  margin: 0 0 0.25rem;
  font-weight: bold;
}

.project-card p {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.4;
}

/* Hover effect card */
.project-card:hover {
  transform: translateY(-10px); /* lift up */
  box-shadow: 0 0 30px 5px rgba(73, 0, 209, 0.377); /* pink glow */
}

.projects-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem; /* space between columns */
  flex-wrap: wrap;
  padding-top: 4rem;
}

.column-left,
.column-right {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.column-right {
  margin-top: 10rem;
}

.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 4rem 0rem;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.project-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 2rem;
  text-align: left;
  gap: 2rem;
}

#team {
  text-align: center;
}

#project-intro-image {
  width: clamp(400px, 27vw, 700px);
  height: auto;
  padding: 0 2rem;
}

#map {
  border-width: 0;
  width: 100%;
  max-width: 998px;
  height: 998px;
  margin: 120px 0;
}

/* Responsive: stack on smaller screens */
@media (max-width: 1200px) {
  .projects-section {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin: 0 10%;
  }

  .column-right {
    margin-top: 0;
  }

  .column-left,
  .column-right {
    gap: 3rem;
  }

  #groupB {
    border-radius: 8rem 0 8rem 0;
    text-align: left;
  }
  #groupB p {
    padding-right: 25%;
    padding-left: 0;
  }

  #groupE {
    border-radius: 0 8rem 0 8rem;
    text-align: right;
  }

  #groupC p {
    padding-right: 0;
    padding-left: 20%;
  }

  #groupE p {
    padding-right: 0;
    padding-left: 25%;
  }

  #map {
    width: 100%;
    height: 100vh;
  }

  .nav-links li,
  .nav-links a {
    display: none; /* hide all list items */
  }

  #openSidebar {
    display: inline-block; /* show button */
  }

  #project-intro-image {
    max-width: 80%;
  }

  /* .project-section:has(#map) {
    padding: 0;
  } */
  p {
    font-size: 1.2rem;
    line-height: 2.5rem;
  }
}

@media (max-width: 430px) {
  .project-card {
    width: 100%; /* fit screen */
    height: auto;
  }

  .project-card h3 {
    margin: 0 0 0.5rem;
    font-weight: bold;
    line-height: 1;
  }

  .project-card p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1;
  }

  .about-section {
    padding: 3rem 3rem 0rem;
  }

  #join-us-button {
    font-size: 1.2rem;
  }

  p {
    line-height: 2rem;
  }

  .project-section {
    padding: 3rem 3rem;
  }
}

#shapes-container {
  overflow: hidden;
  position: relative;
}

.filter-invert {
  filter: invert(100%);
}

.team-member {
  color: white;
  text-decoration: none;
}

.team-member svg {
  fill: white;
  margin-bottom: -2px;
  margin-left: 5px;
}

.team-member:hover svg {
  fill: #f06e4f;
}

.team-member:hover {
   background: linear-gradient(90deg, #ef4ef0, #f06e4f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* Firefox */
}