* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
font-size: 16px;
scroll-behavior: smooth;
overflow-x: hidden;
}

body {
opacity: 0;
transition: opacity 0.5s ease-in-out;
}

.new-navbar-parent {
  position: sticky;
  display: flex;
  top: 0px;
  height: 100%;
  width: 100%;
  z-index: 1001;
}
.new-navbar {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  list-style: none;
  width: 100%;
  padding: 15px 20px;
  background-color: white;
  border-bottom: 1px solid #f0f0f0;
  z-index: 1001;
}
.new-navbar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  list-style: none; 
}
.new-navbar li {
  margin-left: 30px;
}
.new-navbar li a {
  color: black;
  font-size: 35px;
  font-weight: 1000;
  text-decoration: none;
  opacity: 0.2;
  transition: opacity 0.2s ease-in-out;
}
.new-navbar a:hover {
  opacity: 1;
}
.new-navbar .logo {
  display: flex;
  justify-content: flex-end;
  margin: 5px 0 0 30px;
  opacity: 1;
  transition: none;
  transform: none;
}
.new-navbar .logo a {
  display: block;
  height: 40px;
  transition: transform 0.3s ease-in-out;
}
.new-navbar .logo a:hover {
  transform-origin: center;
  transform: rotate(-0.25turn);
}
.new-navbar .logo img {
  height: 40px;
  width: 40px;
}
@media (max-width: 935px) {
  .new-navbar-parent {
    justify-content: center;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
  }
  .new-navbar {
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
  }
  .hamburger-menu {
    position: sticky;
    display: flex;
    font-size: 40px;
    background: none;
    border: none;
    padding-bottom: 5px;
    cursor: pointer;
    z-index: 1002;
    color: black;
  }
  .dropdown {
    position: relative;
    display: inline-block;
  }
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #f0f0f0;
    width: 100vw; /* Makes it full width */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
  }
  .dropdown-content a {
    color: black;
    padding: 5% 10%;
    text-decoration: none;
    display: block;
    font-size: 2rem;
    font-weight: 600;
  }
  .show {display:block;}
  hr {
    border: 0;
    border-top: 1px solid #e7e7e7;
  }
}

@media (min-width: 935px) {
.dropdown {
  display: none; 
}
}


#works {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
background-color: white;
margin-top: 110px;
scroll-margin-top: 110px;
margin-bottom: 60px;
}
.gallery {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 50px; 
justify-content: center;
margin: 0 auto; 
overflow: hidden;
padding: 0 30px;
}
.project {
  border: solid 2px #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}
.thumbnail {
  max-width: 810px;
  max-height: 540px;
  width: 100%;
  aspect-ratio: 3 / 2; /* same as 810x540 */
  overflow: hidden;
}

.thumbnail video, .thumbnail img {
  display: block;
  width: 100%;
  height: 100%; /* force it to fill height */
  object-fit: cover;
}

@media (max-width: 935px) {
  #works {
    margin-top: 0;
    margin-bottom: 5px;
  }
  .gallery {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 15px;
  }
  .thumbnail {
    max-width: 750px;
    max-height: 500px;
    width: 100%; /* Makes it responsive */
    height: auto; /* Maintains aspect ratio */
    overflow: hidden;
  }
  }

.back-to-top {
    width: 50%;
    margin: 20px auto;
    padding-bottom: 2%;
    color: #555;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s ease-in-out;
}
  
.back-to-top:hover{
    opacity: 1;
}

footer {
  background-color: #f0f0f0;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: black;
  width: 100%;
  margin-top: auto; /* This ensures the footer stays at the bottom */
}

footer p {
  font-weight: 300;
}