* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    align-items: center;
    background-color: rgb(242, 242, 242);
    font-family: serif, georgia, verdana, arial, 'times new roman';
    height: 2500px;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.logo {
    cursor: pointer;
    margin-right: auto;
}

.logoActive {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease 0s;
}

.logoActive:hover {
    filter: none;
}

li, a, button {
    font-family: serif, georgia, verdana, arial, 'times new roman';
    font-weight: 500;
    font-size: 16px;
    color: #edf0f1;
    text-decoration: none;
    display: block;
    padding: 10px;
}

header {
    list-style: none;
}

header li {
    display: inline-block;
    padding: 0px 20px;
}

header li a {
    transition: all 0.3s ease 0s;
}

header li a:hover {
    color: rgb(2, 35, 16);
    cursor: pointer;
}

button {
    padding: 9px 25px;
    background-color: rgb(1, 83, 36);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
    margin-left: 10px;
}

button:hover {
    opacity: 0.65;
}

.menu {
    cursor: pointer;
    transition: all 0.3s ease 0s;
    filter: brightness(0) invert(1);
}

.menu:hover {
    filter: none;
}

.exit {
    cursor: pointer;
    transition: all 0.3s ease 0s;
    filter: brightness(0) invert(1);
    margin-top: 25px;
    margin-left: 30px;
    transform: rotate(180deg);
}

.exit:hover {
    filter: none;
}

.navigation {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    height: 500px;
    margin: 0;
    padding: 30px 5%;
    height: 130px;
    background-color: rgba(1, 83, 36, 0.7);
    transition: all 0.3s ease-in-out;
    width: 100%;
    position: fixed;
    top: 0;
    left:0;
    z-index: 10;
}

.hero {
    width: 100%;
    height: 50vh;
    background-image: url("image2025/TrentUniBridgeBanner.jpeg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;  
    background-color: rgb(66, 66, 66);
}

.sideBar {
    position: fixed;
    top: 0;
    right: -1000px;
    height: 100vh;
    width: 200px;
    background-color: rgba(1, 83, 36, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: 0.3s ease-in;
}

.sideBar.active {
    right: 0px;
}

.sideBar li {
    width: 100%;
}

.sideBar a {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.sideBar a:first-child {
    padding-top: 30px;
}

.menu {
    align-items: center;
}

/* ===== Screen Size Display ===== */

@media(max-width: 1000px) {
    .hideOnMobile{
        display: none;
    }
}

@media(min-width: 1000px) {
    .menu{
        display: none;
    }
}

@media(min-width: 1000px) {
    .sideBar{
        display: none;
    }
}

@media(max-width: 600px) {
  .modal {
    height: 100%;
    width: 100%;
  }
}

@media(max-width: 1000px) {
    .tripleSection {
      flex-direction: column;
    }
    .tripleSection div {
      margin-left: auto;
      margin-right: auto;
      margin-top: 30px;
      width: 100%;
      padding-left: 10%;
      padding-right: 10%;
    }
  }

  @media(max-width: 700px) {
    .about img {
      float: none;
      background-position: none;
      padding: 0;
      margin: 0;
      margin-bottom: 30px;
      width: 400px;
      margin-left: 5%;
    }

    .about {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .about h3 {
      text-align: center;
    }

    .research img {
      float: none;
      background-position: none;
      padding: 0;
      margin: 0;
      margin-bottom: 30px;
      max-width: 600px;
    }

    .research {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .research h3 {
      text-align: center;
    }

    .textBox {
      text-align: center;
      margin-left: 5%;
      margin-right: 3%;
    }

    #research {
      margin-bottom: -45px;
    }

    .linkedin-container {
      flex-direction: column;
    }
  }

  @media(max-width: 600px) {
    .sideBar {
      width: 100%;
      margin: 0;
    }
  
    .sideBar li {
      border-bottom: 0.5px solid rgb(199, 199, 199);
      padding-bottom: 20px;
      padding-top: -10px;
      width: 80%;
      display: flex;
      flex-direction: column;
      margin-left: auto;
      margin-right: auto;
    }
  
    .sideBar li:last-child {
      border-bottom: none;
    }
  
    .sideBar a {
      justify-content: center;
    }
  }
/* ===== Scrolling Function ===== */

.scroll-down .navigation {
    top: -300px;
}

.scroll-up .navigation {
    filter: drop-shadow(0, -10px, 20px rgb(170, 170, 170))
}

.subHeader h1 {
    color: white;
    align-content: center;
    width: 100%;
    text-align: center;
    margin-right: 35px;
    font-size: 30px;
}

.subHeader {
    width: 100%;
    background-color: rgb(2, 55, 25);
    backdrop-filter: blur(5px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    display: inline-flex
}

.divider h2{
    color: rgb(1, 83, 36);
    padding: 20px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    font-size: 35px;
    margin-top: 30px;
}

h2:before, h2:after{
    content: "";
    flex: 1 1;
    border-bottom: 2px solid;
    margin: auto;
  }

  h2:before {
    margin-right: 20px
  }

  h2:after {
    margin-left: 20px
  }

  .about {
    text-align: center;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 40px;
    margin-bottom: 70px;
    width: 85%;
  }

  .about img {
    max-width: 350px;
    float: left;
    border: 1px solid rgb(224, 224, 224);
    border-radius: 1px;
    margin-right: 20px;
    position: relative;
    background-position: top left;
  }

  .textBox h3 {
    font-size: 25px;
  }

  .textBox p {
    font-size: 18px;
    margin-top: 13px;
  }

  .textBox {
    text-align: justify;
  }

  .tripleSection img {
    width: 250px;
    height: 250px;
  }

  .tripleSection {
    background-color: rgb(10, 10, 10);
    width: 100%;
    padding-top: 50px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 50px;
  }

  .firstSec {
    margin: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: whitesmoke;
    width: 25%;
    margin-left: auto;
  }

  .secondSec {
    margin: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: whitesmoke;
    width: 25%;
  }

  .thirdSec {
    margin: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: whitesmoke;
    width: 25%;
    margin-right: auto;
  }

  .firstSec p {
    font-size: 16px;
    margin-top: 12px;
  }

  .firstSec h4 {
    font-size: 20px;
    margin-top: 12px;
  }

  .secondSec p {
    font-size: 16px;
    margin-top: 12px;
  }

  .secondSec h4 {
    font-size: 20px;
    margin-top: 12px;
  }

  .thirdSec p {
    font-size: 16px;
    margin-top: 12px;
  }

  .thirdSec h4 {
    font-size: 20px;
    margin-top: 12px;
  }

  .research {
    text-align: center;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 40px;
    margin-bottom: 70px;
    width: 85%;
  }

.research img {
    max-width: 350px;
    float: right;
    border: 1px solid rgb(224, 224, 224);
    border-radius: 1px;
    margin-left: 20px;
    margin-top: 45px;
    position: relative;
    background-position: top right;
}

footer {
  background-color: #111;
  width: 100%;
  padding: 70px 30px 20px;
}

.socialIcons {
  display: flex;
  justify-content: center;
  margin-left: 20px;
  margin-right: 20px;
}

.socialIcons img {
  cursor: pointer;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease 0s;
}

.socialIcons img:hover {
  filter: none;
  cursor: pointer;
}

.footerNav {
  margin: 10px 0;
}

.footerNav ul {
  display: flex;
  justify-content: center;
  flex-flow: wrap;
  flex-wrap: wrap;
}

.footerNav ul li a {
  color: white;
  margin: 20px;
  text-decoration: none;
  font-size: 1em;
  transition: 0.3s;
}

.footerNav ul li a:hover{
  color: rgb(206, 194, 80);
  cursor: pointer;
}

.footerBottom {
  background-color: black;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.footerBottom p {
  color: white;
}

.designer {
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
  margin: 0 5px;
}

.modal {
  position:fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  z-index: 100;
  background: rgb(14, 14, 14);
  width: 500px;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  border: 3px solid rgba(1, 83, 36, 0.5);
  transition: 0.3s ease-in;
}

.modal.active {
  display: flex;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
}

.contactTitle h2 {
  font-weight: 600;
  color: rgb(1, 83, 36);
  font-size: 40px;
  margin-bottom: 5px;
}

.contact hr {
  border: none;
  width: 120px;
  height: 5px;
  background-color: rgb(1, 83, 36);
  border-radius: 10px;
  margin-bottom: 20px;
  margin-left: 22px;
  margin-top: -22px;
}

.contactInput  {
  width: 400px;
  height: 50px;
  border: none;
  outline: none;
  padding-left: 25px;
  font-weight: 500;
  color: #cfcfcf;
  border-radius: 50px;
  background-color: #202020;
}

.contactInputMessage {
  height: 140px;
  padding-top: 15px;
  border-radius: 20px;
  width: 400px;
  border: none;
  outline: none;
  padding-left: 25px;
  font-weight: 500;
  color: #cfcfcf;
  background-color: #202020;
}

.contactInputMessage:focus {
  border: 2px solid #D6AD60;
}

.contactInputMessage::placeholder {
  color: #cfcfcf;
}

.contactInput:focus {
  border: 2px solid #D6AD60;
}

.contactInput::placeholder {
  color: #cfcfcf;
}

.contact button {
  display: flex;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 30px;
  padding-right: 20px;
  font-size: 16px;
  color: #fff;
  gap: 10px;
  border: none;
  border-radius: 50px;
  background: rgb(1, 83, 36);
  cursor: pointer;
}

.submit img {
  transform: rotate(180deg);
  filter: brightness(0) invert(1);
  margin-left: 5px;
}

#overlay {
  position: fixed;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 99;
  background-color:rgba(0,0,0,0.5);
  pointer-events: all;
  display: none;
  backdrop-filter: blur(3px);
}

#overlay.active {
  display: flex;
  backdrop-filter: 0;
}

.modal .exitContact {
  cursor: pointer;
  background-color:rgb(1, 83, 36);
  padding: 15px 18px;
  margin-left: 100px;
  border-radius: 35px;
}

.modal .contactTitle {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.designer {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: #222222;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(73, 73, 73);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(84, 84, 84);
}

.linkedin-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.linkedin-button {
  display: flex;
  align-items: center; /* Centers items vertically */
  color: white;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  width: 300px;
  margin-bottom: 10px;
}

.linkedin-button-img {
  margin-left: 20px; /* Space between text and image */
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.linkedin-container img{
  border: none;
  height: 50px;
  width: 50px;
  margin-top: auto;
  margin-bottom: auto;
}

.media {
  text-align: center;
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 40px;
  margin-bottom: 70px;
  width: 85%;
}

.media img {
  max-width: 350px;
  float: right;
  border: 1px solid rgb(224, 224, 224);
  border-radius: 1px;
  margin-left: 20px;
  position: relative;
  background-position: top left;
}

.mediaPhotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
}

.mediaPhotos li {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px; /* Rounded corners for a modern look */
}

.mediaPhotos a {
  display: block;
  width: 100%;
  transition: transform 0.3s ease-in-out;
}

.mediaPhotos a:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
}

.mediaPhotos img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover; /* Ensures uniform image display */
  border-radius: 10px;
  transition: opacity 0.3s ease-in-out;
}

.mediaPhotos img:hover {
  opacity: 0.85; /* Adds a slight hover effect */
}

.publications-section {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
}

.publications-section h3 {
  text-align: center;
  font-size: 24px;
  color: #222;
  margin-bottom: 20px;
}

.publications-list {
  list-style: none;
  padding: 0;
}

.publications-list li {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  color:#111;
}

.publications-list li:last-child {
  border-bottom: none;
}

.publications-list a {
  color: #D6AD60;
  text-decoration: none; /* Optional: Removes the underline */
  white-space: nowrap; /* Prevents the link from breaking onto a new line */
}