/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  /* Enable snap scrolling along the vertical axis */

}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 50;
  transition: height 0.3s;
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

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

}

a:hover {
  color: #0fb4b4;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(0, 0, 0);
}

/* project image zoom*/
.image-zoom {
  display: inline-block;
  /* Ensures proper scaling */
  transition: transform 0.3s ease;
  /* Smooth zoom-out effect */
}

.image-zoom:hover {
  transform: scale(0.95);
  /* Slightly zooms out */
}

/* General style for the .logo container */
.logo {
  display: inline-block;
  /* Keeps the logo inline */
  font-size: 1.9rem;
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* Style the link */
.logo a {
  display: flex;
  /* Aligns logo image and text horizontally */
  align-items: center;
  /* Vertically center the items */
  gap: 9px;
  /* Adds spacing between the logo image and text */
  text-decoration: none;
  color: inherit;
  position: relative;
  /* Keeps the hover background effect in place */

  border-radius: 5px;
  /* Match the hover background’s rounded edges */
  z-index: 1;
  /* Ensures the link stays on top */
  transition: transform 0.2s ease-in-out;
  /* Smooth zoom-out transition */
}

/* Logo image styles */
.logo-image {
  width: 69px;
  /* Adjust size of the logo image */
  height: auto;
  /* Maintain aspect ratio */
  transition: transform 0.2s ease-in-out;
  /* Smooth zoom-out transition */
}



/* Add zoom-out effect on hover (text and image) */
.logo a:hover {
  transform: scale(1.03);
  /* Zoom out effect for the link */
}

.logo a:hover .logo-image {
  transform: scale(1.03);
  /* Zoom out effect for the image */
}

/* Optional: Add pointer cursor on hover */
.logo a:hover {
  cursor: pointer;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}



.menu-links {
  background-color: white;
  border-radius: 1rem;
  position: absolute;
  top: 80px;
  left: 50%;
  /* Center horizontally */
  transform: translateX(-50%);
  /* Adjust for the element's width */
  min-width: 320px;
  padding-right: 20px;
  padding-left: 20px;
  box-shadow: 0px 2px 5px rgba(15, 15, 15, 0.2);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}


.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
  background-color: transparent;

}

.menu-links a:hover {
  color: #0fb4b4;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(0, 0, 0);
}


.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}



.project {
  display: flex;
  justify-content: center;
  /* Center the contents horizontally */
  align-items: center;
  /* Center the contents vertically */
  gap: 20px;
  /* Optional spacing between children */
  margin: 20px auto;
  /* Center the entire .project container horizontally */
  border-radius: 50px;
  /* Optional rounded corners */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
  /* Optional shadow */
  padding: 1.5rem;
  /* Add padding for spacing inside the container */
  background: rgb(250, 250, 250);
  /* Background color */
  margin: 5rem 10rem;
  position: relative;
}


.project-left,
.project-right {
  flex: 1;
  /* Allow the sections to grow/shrink as needed */
  text-align: center;
  /* Optional text centering */


}

.project-left-1 {

  position: relative;
  width: 100%;
  /* Set a width for the container */
  height: auto;
  /* Set a height for the container */
  max-width: 500px;
  /* Optional: Set a maximum width */
  aspect-ratio: 4 / 3;
  /* Maintain aspect ratio (adjust as needed) */

  background-image: url('./my-assets/my-copy-cholera.png');
  background-size: cover;
  /* Ensure the image covers the entire container */
  background-position: center;
  /* Center the image */
  border-radius: 20px;
  /* Optional: Add rounded corners */
  overflow: hidden;
  /* Ensures no content spills out of the container */
  margin: 0 auto;
  /* Center the image */

}

.project-left-2 {

  position: relative;
  width: 100%;
  /* Set a width for the container */
  height: auto;
  /* Set a height for the container */
  max-width: 500px;
  /* Optional: Set a maximum width */
  aspect-ratio: 4 / 3;
  /* Maintain aspect ratio (adjust as needed) */

  background-image: url('./my-assets/music-class.png');
  background-size: cover;
  /* Ensure the image covers the entire container */
  background-position: center;
  /* Center the image */
  border-radius: 20px;
  /* Optional: Add rounded corners */
  overflow: hidden;
  /* Ensures no content spills out of the container */
  margin: 0 auto;
  /* Center the image */

}

.project-left-3 {

  position: relative;
  width: 100%;
  /* Set a width for the container */
  height: auto;
  /* Set a height for the container */
  max-width: 500px;
  /* Optional: Set a maximum width */
  aspect-ratio: 4 / 3;
  /* Maintain aspect ratio (adjust as needed) */

  background-image: url('./my-assets/project3-pics.jpg');
  background-size: cover;
  /* Ensure the image covers the entire container */
  background-position: center;
  /* Center the image */
  border-radius: 20px;
  /* Optional: Add rounded corners */
  overflow: hidden;
  /* Ensures no content spills out of the container */
  margin: 0 auto;
  /* Center the image */

}

.project-left-4{

  position: relative;
  width: 100%;
  /* Set a width for the container */
  height: auto;
  /* Set a height for the container */
  max-width: 500px;
  /* Optional: Set a maximum width */
  aspect-ratio: 4 / 3;
  /* Maintain aspect ratio (adjust as needed) */

  background-image: url('./my-assets/A calm, introspective.jpg');
  background-size: cover;
  /* Ensure the image covers the entire container */
  background-position: center;
  /* Center the image */
  border-radius: 20px;
  /* Optional: Add rounded corners */
  overflow: hidden;
  /* Ensures no content spills out of the container */
  margin: 0 auto;
  /* Center the image */

}

.explore-btn {
  position: absolute;
  bottom: 5px;
  /* Adjust based on your design */
  left: 50%;
  /* Center horizontally */
  transform: translateX(-50%);
  background-color: rgba(15, 180, 180, 0.6);
  /* Optional: Add a semi-transparent background */
  text-decoration: none;
  padding: 10px 20px;

  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.explore-btn:hover {
  background-color: #0a8080;
  color: white;


}


.project-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* Stack the description and buttons vertically */
  justify-content: space-between;
  /* Ensure the content and buttons are spaced apart */
  padding: 20px;


}

.project-top {
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
  flex-grow: 1;
  /* Allow this div to grow and take available space */
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20
  px;
}

.button-group a {
  text-decoration: none;
  padding: 10px 20px;
  background-color: #0fb4b4;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.button-group a:hover {
  background-color: #0a8080;
}

.project-details p {
  margin-bottom: 1em; /* Adds spacing below each paragraph */
}

.tools-used h3 {
  margin-bottom: 0.5em; /* Reduced spacing below the h3 */
  margin-top: 1em;
}

.tools-used ul {
  list-style-type: none; /* Removes bullet points */
  padding-left: 0; /* Removes default left padding */
  margin-bottom: 1em; /* Adds bottom margin */
}

/* Optional: Add spacing between list items */
.tools-used li {
  margin-bottom: 0.25em; /* Small space between list items */
}

footer {
  height: 26vh;
  margin: 0 1rem;
  scroll-snap-align: start;

}

footer p {
  text-align: center;
}

.footer__text {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  /* Ensure it's on top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.popup-content {
  background-color: #fefefe;
  margin: 10% auto;
  /* Adjust top margin as needed */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 1200px;
  /* Adjust max width as needed */
  border-radius: 5px;
  position: relative;
  /* For positioning the close button */
}

.close {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: red;
  text-decoration: none;
}

/* Responsive Layout */
@media (max-width: 1200px) {
  .project {
    flex-direction: column;
    /* Stack items vertically */
    margin: 2rem;
    /* Reduce side margins for smaller screens */
  }

  .project-left,
  .project-right {
    width: 100%;
    /* Full width for stacked items */
  }

  .project-left {
    margin-bottom: 20px;
    /* Add spacing between stacked sections */
  }

  .button-group {
    flex-wrap: wrap;
    /* Allow buttons to wrap if needed */
    gap: 15px;
    /* Increase gap for better spacing on smaller screens */
  }
}