/* General Styles */

body {
  font-family: "Rand", "Helvetica", "Open Sans", Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow: auto; /* Enable scrolling for the entire screen */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  scroll-behavior: smooth; /* Add smooth scrolling */
}

html, body {
  height: 100%;
}

/* Header */

.header-container {
  display: flex;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 50px;
  padding-left: 30px;
  padding-right: 30px;
}

.logo {
  margin-left: auto;
}

.nav-links {
  margin-left: auto;
  overflow: auto;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

nav ul li {
  display: inline-block;
  margin-left: 10px;
}

nav ul li a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  display: none;
  z-index: 9999;
  padding: 10px;
  margin-left: -23px;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  font-weight: normal; /* Reset font weight for dropdown menu items */
  display: block;
  padding: 4px;
  text-align: left;
  box-sizing: border-box;
}

.dropdown-menu li a {
  font-weight: normal; /* Set font weight for dropdown menu item links */
}

/* Logo */
.logo {
  width: 100px;
  height: auto;
}

.logo:hover {
  opacity: 0.8;
}

/* Footer */
footer {
  background-color: #fff;
  text-align: center;
  margin-top: auto;
  padding: 20px 0;
}

footer p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* Homepage Grid */
.content-wrapper {
  overflow-y: auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 20px;
  margin: 0 20px;
  margin-top: -20px;
  }

.project-box {
  position: relative;
  height: 400px;
  border: 2px solid black;
}

.project-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity 0.3s;
}

.project-box:hover img {
  opacity: 0.5;
}

.project-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  color: #000;
  transition: opacity 0.3s;
}

.project-box:hover .project-title {
  opacity: 1;
}

/* About */

.about-content {
  margin: 0 0 0 20px; /* Update the left and right margins to create spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  overflow-y: auto;
  box-sizing: border-box;

}

.about-image {
  width: 100%; 
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.about-image img {
  width: 400px;
  height: auto;
  border: 2px solid black;
  max-width: 100%;
}

.about-text {
  width: 100%;
  display: flex;
  justify-content: center;
  max-width: 400px;
}

.text-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid black;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Contact */
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center; /* Add this line */
  margin: 0 0 0 0px;
  margin-bottom: 40px;
}
.contact-content h2 {
  text-align: center;
  margin: 0;
}

.contact-text .text-box {
  display: inline-block;
  border: 2px solid black;
  padding: 20px;
  text-align: center;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.contact-text-box {
  border: 2px solid black;
  padding: 20px;
  max-width: 400px;
}

.contact-text p {
  margin: 0;
  padding: 0;
}

.contact-social {
  display: flex;
  justify-content: center;
}

.contact-social a {
  margin-right: 10px;
}

.contact-social img {
  width: 30px;
  height: 30px;
}

/* Portfolio Item Content */

.portfolio-item-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto; /* Add back 'overflow-y' property */
}

.slideshow {
  text-align: center;
  position: relative;
}

.slideshow img {
  max-height: 650px;
  border: 2px solid black;
  text-align: center;
  position: relative;
  margin: 0 auto;
}

.slideshow-controls {
  position: absolute;
  left: 50%;
  bottom: -40px; /* Adjust the distance from the bottom as needed */
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.slideshow-controls .prev-button,
.slideshow-controls .next-button {
  background-color: #fff;
  color: #000000;
  border: none;
  font-size: 14px;
  cursor: pointer;
  /* margin: 0 10px;  Adjust the margins between the buttons */
}

.current-image,
.total-images {
  margin: 0 3px;
  font-weight: normal; /* Set font weight for current image count */
}

.project-details {
  position: relative;
  text-align: left;
  box-sizing: border-box;
  width: 400px;
  margin-top: 60px;
}

.project-text-box {
  text-align: left;
  border: 2px solid black;
  padding: 20px;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  /* Homepage Grid */
  .content-wrapper {
    flex-wrap: nowrap;
    overflow-y: visible;
    margin: 0 0px;
  }  
  .header-container {
    flex-wrap: nowrap;
    justify-content: center;
    overflow: visible; 
  }
  .nav-links {
    overflow: visible;
  }
  .portfolio-item-container {
    overflow-y: visible;
    margin: 0 20px;
  }
  .project-text-box{
    margin-left: 20px;
    margin-right: 20px;
  }

  .slideshow img {
    width: 100%; /* Remove the 'margin' property */
  }

  .about-content {
  margin-left: 20px;
  margin-right: 20px;
  overflow-y: visible;
  }

  .contact-content {
    overflow: visible;
    margin-left: 20px;
    margin-right: 20px;
  }

}