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

:root {
  --primary-color: #fbc3c0;
  --secondary-color: #f8f5b9;
}

html,
body {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  font-style: normal;
  background-color: #fff;
  color: #000;
  font-size: larger;
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body > *:not(footer) {
  flex: 1;
}

a {
  color: black;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.primary {
  color: var(--primary-color);
}

.secondary {
  color: var(--secondary-color);
}

.not_bold {
  font-weight: 400;
  text-transform: none;
}

/* Header styling */
.nav {
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.4s ease-in-out,
    backdrop-filter 0.4s ease-in-out;
}

.nav.scrolled {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav_container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav_brand {
  display: flex;
  align-items: center;
}

.nav_menu {
  display: flex;
  justify-content: right;
}

.nav_menu-no-underline a:hover {
  text-decoration: none; /* removes underline normally */
  color: #000; /* example color */
}

.nav_menu-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 600;
  font-size: 1rem;
}

.nav_logo {
  font-size: 1.5rem;
  font-weight: medium;
  letter-spacing: 0.5px;
}

.nav_emblem {
  color: black;
  width: 67px;
  height: 67px;
  margin-right: 0.5rem;
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 1.5rem;
}

nav a:hover {
  text-decoration: underline;
}

/* Mobile Menu */

.nav_mobile-menu {
  display: none;
}

.nav_mobile-menu-items {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease-in-out;
}

.nav_mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 600;
  cursor: pointer;
}

.nav_mobile-menu-items {
  transform: translateX(100%);
}

.nav_mobile-menu-items.active {
  transform: translateX(0);
}

.nav_mobile-menu-link.primary:hover {
  text-decoration: none;
}

.nav_mobile-menu-link {
  border: 2px solid black;
  padding: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav_mobile-menu-toggle {
  cursor: pointer;
}

.nav_menu-link--primary i {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav_menu-link--primary:hover i {
  transform: scale(1.1);
  opacity: 0.7;
}

/* Hero */

.hero {
  padding-top: 10rem;
}

.hero_container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-top: 3px solid black;
  border-bottom: 3px solid black;
}

.hero_description {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
}

.hero_title h1 {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.6;
}

.hero_highlight {
  color: var(--primary-color);
  font-weight: 500;
}

.hero_image-wrapper {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.hero_decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 250px;
  height: 250px;
  background-color: var(--primary-color);
  z-index: -1;
}

.hero_image {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Background */

.background {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  padding-top: 4rem;
  padding-bottom: 4rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.research {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 3px solid black;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.publications {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 3px solid black;
  border-bottom: 3px solid black;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.about_me {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 3px solid black;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
}

/* Footer */
.footer {
  padding: 2rem;
}

.main-content {
  flex: 1;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Projects */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 10rem;
  text-align: center;
  gap: 5rem;
}

.projects-learn-more {
  grid-column: 1 / -1;
  color: rgb(0, 0, 0);
  margin-top: 1.5rem;
}

.p_container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects_status {
  max-width: 500px;
  margin: 0 auto;
}

.projects-time {
  text-align: left;
  padding-top: 3rem;
  border-bottom: 3px solid black;
}

.project_img {
  max-width: 500px;
  max-height: auto;
  transition: transform 0.3s ease;
}

.project_img_lg {
  max-width: 600px;
  max-height: auto;
  transition: transform 0.3s ease;
}

.img1 {
  border: 0.5rem solid var(--secondary-color);
}

.img2 {
  border: 0.5rem solid var(--primary-color);
}

.project_img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.project-title {
  text-align: left;
  margin: 0 0.5rem 0 0.5rem;
}

.project-description {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
  text-align: left;
  margin: 0 1rem 0 1rem;
}

.project_item {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.lg {
  width: 500px;
}

.sm {
  width: 400px;
}

.hc {
  filter: contrast(80%);
}

/* Contact Form */
.contact-form {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 10rem;
}

.contact-form p {
  margin-bottom: 3rem;
}

.contact-form input,
.contact-form textarea {
  display: block;
  font-family: inherit;
  font-size: medium;
  width: 100%;
  margin: 1.5rem 0;
  border: 1px solid #ccc;
  padding: 1.2rem 1rem;
}

.contact-form textarea {
  height: 200px;
}

.contact-form .btn {
  display: block;
  width: 100%;
  font-size: inherit;
  font-family: inherit;
  margin: 0 auto;
}

.contact_email {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.contact-inquiry {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
}

/* Specific Projects */

.sp_project {
  margin-top: 8rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 4rem;
}

.sp_project-info {
  grid-column: 1/3;
  grid-row: 3;
}

.project-description {
  margin-top: 1rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.sp_project-info {
  margin-bottom: 5rem;
}

.projects-takeaway li {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.sp_project-img {
  max-width: 500px;
  margin-top: 5rem;
}

.pub_link {
  display: inline-block;
  text-decoration: none;
  color: #000;
  transition: transform 0.3s ease;
}

.pub_link:hover {
  text-decoration: underline;
}

/* Gallery */
.gallery_container {
  padding-bottom: 4rem;
}

.gallery_grid {
  column-count: 2;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.5rem;
  margin-top: 2rem;
}

.gallery_grid_wide {
  column-count: 3;
  column-gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.gallery_item {
  margin-bottom: 1.5rem;
  width: 100%;
}

.gallery_caption {
  display: none;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 0.9rem;
  text-align: left;
}

.gallery_img {
  width: 100%;
  height: auto;
  border: 0.2rem solid black;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.gallery_img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Modal (Lightbox) */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

.modal-caption {
  margin: 10px auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1.4rem;
}

#modalVideo {
  display: none;
}

.modal-caption {
  margin: 10px auto;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.close-button {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-button:hover,
.close-button:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Media Queries */
@media (max-width: 1200px) {
  .projects {
    grid-template-columns: repeat(1, 1fr);
    margin: 0 auto;
  }

  .contact-form {
    grid-template-columns: repeat(1, 1fr);
  }

  .sp_project {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    column-gap: 0;
    row-gap: 2rem;
  }

  .sp_project-summary,
  .sp_project-wil,
  .sp_project-info {
    grid-column: 1;
  }

  .projects-time {
    text-indent: 20px;
  }

  .gallery_grid {
    column-count: 2;
  }
}

@media (max-width: 900px) {
  .nav_menu {
    display: none;
  }

  .gallery_grid {
    column-count: 1;
  }

  .nav_mobile-menu {
    display: block;
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .nav_menu {
    display: none;
  }

  .nav_mobile-menu {
    display: block;
  }

  .hero_container {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .background {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .research {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .publications {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .about_me {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .projects-time {
    border: none;
    text-decoration: underline;
  }
}
