@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

.header nav {
  width: 100%;
  max-width: 2100px; /* Max width for nav */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 150px; /* Increased padding for top, left, and right */
  box-sizing: border-box;
  z-index: 3; /* Ensure nav is on top */
  margin: 0 auto; /* Center nav */
}

.header nav a {
  font-family: 'Montserrat', sans-serif; /* Apply Montserrat font */
  color: #ffffff; /* explicit white color */
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  font-size: 1em; /* Adjusted font size */
  letter-spacing: 0.1em; /* Added letter spacing */
}


body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff; /* white background */
  overflow-x: hidden;
}

.header {
  background-color: #5bdfae; /* pastel green */
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}


.header nav .center-nav {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.header nav .logo,
.header nav .contact {
  flex-shrink: 0;
}

.header nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: yellow;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -5px;
}

.header nav a:hover::after {
  width: 100%;
}

.header .logo img {
  height: 50px;
}

.header .hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 2; /* Ensure hero content is on top */
  position: absolute;
  top: 0;
  left: 0;
}

.header .hero-content video {
  width: 60vw; /* Set to 60% of the viewport width */
  height: 60vh; /* Set to 60% of the viewport height */
  object-fit: contain; /* Ensures the entire video is visible */

}

.hero-content video {
  transition: transform 0.1s ease-out; /* Smooth transition */
}

.header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* Lighten the overlay */
  z-index: 1;
}

.arrow {
  position: absolute;
  bottom: 20px;
  z-index: 3;
  cursor: pointer;
}

.arrow svg {
  width: 30px;
  height: 30px;
  fill: #ffffff; /* white color */
  transition: transform 0.3s;
}

.arrow:hover svg {
  transform: translateY(5px);
}

#sticky-div {
  background-color: white;
  padding: 10px;
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #ccc;
}


/* the sorting '/////////////////////////// stick div*/

#sticky-div {
  background-color: white;
  padding: 100px 10px; /* Initial padding for more space above and below the buttons */
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between buttons */
  position: relative; /* Required for the sticky effect */
  border: none; /* Ensure there is no border */
  box-shadow: none; /* Ensure there is no box-shadow */
  transition: padding 0.3s ease; /* Smooth transition for padding changes */
}

#sticky-div.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: none; /* Ensure there is no box-shadow */
  padding: 30px 10px; /* Padding when sticky */
}

button.sorting-button {
  background: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid #333;
  position: relative;
  overflow: hidden;
  transition: background-color 0.6s ease-out, color 0.6s ease-out; /* Updated transition */
}

button.sorting-button:hover {
  background-color: #333; /* Change to black */
  color: white; /* Change text to white */
}


/*/////////////////////////// ///////////////////////


/* Gallery styling */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three columns grid */
  gap: 20px; /* Gap between items */
  max-width: 2000px; /* Maximum width */
  width: calc(100% - 80px); /* Full width minus the total padding (40px each side) */
  padding: 0px 40px 40px 40px; /* Padding around the gallery */
  margin: 0 auto; /* Center the gallery */
  overflow: hidden; /* Prevent overflow */
}

/* Gallery items */
.gallery-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Maintain aspect ratio */
  overflow: hidden;
  opacity: 0; /* Initial state hidden */
  transform: translateY(20px); /* Initial position for parallax effect */
  transition: opacity 1s ease-in-out, transform 1s ease-in-out; /* Smooth fade in/out transition */
}

.gallery-item.visible {
  opacity: 1; /* Visible state */
  transform: translateY(0); /* Reset position for parallax effect */
}

.gallery-item img,
.gallery-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the entire image or video fills the container without clipping */
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img:hover,
.gallery-item iframe:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}




/* Media query for mobile view */
@media (max-width: 600px) {
  .gallery {
      grid-template-columns: 1fr; /* Single column grid for mobile */
  }
}





/* Media query for mobile view */
@media (max-width: 600px) {
  .gallery {
      grid-template-columns: 1fr; /* Single column grid for mobile */
  }
}





/* Media queries to handle smaller viewport heights */
@media (max-height: 800px) {
  .header nav {
    padding: 30px 50px; /* Reduce padding for smaller heights */
  }

  .header .hero-content img {
    width: 50vw; /* Reduce size for smaller heights */
    height: 50vh; /* Reduce size for smaller heights */
  }

  .arrow {
    bottom: 10px; /* Adjust position for smaller heights */
  }
}

@media (max-height: 600px) {
  .header nav {
    padding: 20px 30px; /* Further reduce padding for very small heights */
  }

  .header .hero-content img {
    width: 40vw; /* Further reduce size for very small heights */
    height: 40vh; /* Further reduce size for very small heights */
  }

  .arrow {
    bottom: 5px; /* Adjust position for very small heights */
  }
}

/* Media queries to handle smaller viewport widths */
@media (max-width: 1200px) {
  .header nav {
    padding: 30px 50px; /* Reduce padding for smaller widths */
  }

  .header nav .center-nav {
    gap: 20px; /* Reduce gap between nav items for smaller widths */
  }
}

@media (max-width: 800px) {
  .header nav {
    padding: 20px 30px; /* Further reduce padding for very small widths */
  }

  .header nav .center-nav {
    gap: 10px; /* Further reduce gap between nav items for very small widths */
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr; /* Single column grid for mobile */
  }
}






/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.7); /* Black with opacity */
  overflow: hidden; /* Disable scroll */
  z-index: 1000; /* High z-index to appear above everything */

}

.modal-content {
  background-color: white;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  text-align: center;
  border-radius: 10px; /* Rounded corners */
}

.modal-button {
  background-color: #4CAF50; /* Green background */
  color: white; /* White text */
  padding: 10px 20px;
  border: none;
  border-radius: 10px; /* Rounded corners */
  cursor: pointer;
  font-size: 16px;
}

.modal-button:hover {
  background-color: #45a049; /* Darker green on hover */
}