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

body {
  background-color: #fff;
  color: #222;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  min-height: 100vh; /* Ensure content is at least as tall as the viewport */
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #f8f8f8;
}

a {
  color: #ff8c00;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px; /* Smaller padding when scrolled */
  z-index: 100; /* Ensure header is always on top */
  transition: background-color 0.3s ease, padding 0.3s ease;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 1); /* Near-opaque white when scrolled */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow when scrolled */
}

header nav a {
  color: #222222;
}

header nav a:hover {
  color: #ff8c00;
}

.logo img {
  height: 40px; /* Slightly smaller logo */
  transition: height 0.3s ease;
}

header .logo img {
  height: 35px;
}

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

nav li {
  margin-left: 30px; /* More space between nav items */
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
  color: #ff8c00; /* Orange hover effect for navigation links */
  transform: translateY(-2px);
}

.masthead {
  color: #fff;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.masthead-content {
  max-width: 1200px;
  text-align: center;
  margin: 0 15px;
}

.masthead-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Slightly lighter overlay */
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)); /* Subtle gradient */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.masthead h1 {
  font-size: 4em; /* Larger font size for impact */
  margin: 0;
  letter-spacing: 2px; /* Slightly more spaced out letters */
  line-height: 1.2;
}

.masthead p {
  font-size: 1.3em; /* Slightly larger font size */
  margin: 0; /* Adjusted margin */
  font-weight: 300; /* Lighter font weight */
}

.masthead h2 {
  margin-left: 10px;
  margin-right: 10px;
}

.masthead h1, .masthead p {
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8); /* Stronger, more defined text shadow */
}

.masthead .btn {
  background-color: #ffffff;
  color: #222222;
  padding: 15px 30px; /* Larger padding */
  border-radius: 25px; /* Slightly more rounded */
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 60px; /* More space */
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); /* Subtle shadow */
}

.masthead .btn:hover {
  background-color: #ff8c00;
  color: #ffffff;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7); /* Slightly stronger shadow on hover */
}

.home-sections {
  display: flex;
  justify-content: center; /* Center the sections */
  padding: 60px 20px; /* More vertical padding, less horizontal */
  flex-wrap: wrap; /* Allow sections to wrap on smaller screens */
  gap: 40px; /* Space between sections */
}

.section-link {
  position: relative;
  width: 48%; /* Adjusted width to allow for gap */
  max-width: 550px; /* Limit max width for larger screens */
  overflow: hidden;
  aspect-ratio: 16 / 9; /* Maintain aspect ratio for consistent sizing */
  border-radius: 10px; /* Slightly rounded corners */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

.section-link:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}

.section-link img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers the entire area */
  display: block;
  transition: transform 0.3s ease; /* Smooth zoom effect */
}

.section-link:hover img {
  transform: scale(1.05); /* Subtle zoom on image hover */
}

.section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
  display: flex;
  flex-direction: column; /* Stack title and description */
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: background-color 0.3s ease, opacity 0.3s ease; /* Smooth transitions */
  padding: 20px; /* Padding inside overlay */
  box-sizing: border-box;
}

.section-link:hover .section-overlay {
  background-color: rgba(0, 0, 0, 0.3); /* Lighter overlay on hover */
}

.section-overlay h2 {
  color: #ffffff;
  font-size: 2.2em; /* Slightly larger font */
  margin-bottom: 10px; /* Space between title and potential description */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7); /* Stronger text shadow */
}

.section-overlay p {
  color: #f0f0f0;
  font-size: 1em;
  margin: 0;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease;
}

.section-link:hover .section-overlay p {
  opacity: 1; /* Show description on hover */
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  padding: 50px 20px; /* Adjusted padding for consistency */
}

.gallery-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3; /* Make gallery items 4x3 */
  width: 100%; /* Ensure it takes full width of its grid cell */
  height: 100%; /* Ensure it takes full height of its grid cell */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  border-radius: 8px; /* Rounded corners for gallery items */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  transition: transform 0.2s ease, box-shadow 0.3s ease; /* Added transition for hover effects */
}

.gallery-item:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block; /* Ensure image behaves as a block element */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  transition: transform 0.2s ease; /* Added transition for hover effects */
}

.gallery-item img:hover {
  transform: scale(1.05); /* Subtle zoom on image hover */
}

@media (max-width: 767px) {
  .home-sections {
    flex-direction: column;
    align-items: center;
  }

  .section-link {
    width: 90%; /* Adjust as needed for mobile padding */
    margin-bottom: 20px; /* Add some space between vertical items */
  }
}

@media (min-width: 768px) {
  .gallery-item.span-2-cols {
    grid-column: span 2; /* For 3 images per row (2+2+2=6) */
  }
  .gallery-item.span-3-cols {
    grid-column: span 3; /* For 2 images per row (3+3=6) */
  }
}

@media (max-width: 767px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item.span-2-cols,
  .gallery-item.span-3-cols {
    grid-column: span 1;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 100; /* Higher than header's z-index */
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  width: 90%;
  max-width: 900px; /* Increased max-width */
  height: calc(100vh - 200px); /* Adjust height to fit within modal */
  text-align: center;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.modal-content {
  width: 100%;
  height: auto;
  max-height: 80vh; /* Maximize height */
  object-fit: contain; /* Ensure entire image is visible */
  border: 15px solid white; /* White border */
}

#caption {
  margin-top: 10px;
  color: #f1f1f1;
  font-size: 1.2em;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little transparency */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.content-wrapper {
  margin: 0 auto; /* Still center content */

}

.content-wrapper > h1 {
  color: #222;
  text-shadow: none;
  margin-top: 100px;
}

.content-section {
  padding: 40px 20px; /* Add more padding around the content */
  background-color: #fefefe; /* Slightly lighter dark background for content */
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 40px; /* Add space below content */
  text-align: center;
}

.content-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2em;
  margin-top: 0;
  margin-bottom: 25px;
  color: #f8f8f8;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.content-section p {
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.btn {
  border: 0px;
  cursor: pointer;
  display: inline-block; /* Allow text to flow next to it */
  background-color: #ffffff; /* Match masthead button */
  color: #222222; /* Match masthead button */
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 25px; /* Match masthead button */
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease; /* Added transform for hover effects */
  font-weight: bold;
  text-transform: none; /* Remove uppercase transformation */
  letter-spacing: 1.5px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); /* Match masthead button */
  margin-right: 8px; /* Add a few pixels of right margin */
  margin-top: 60px; /* Match masthead button top margin */
  margin-bottom: 0; /* Remove auto centering for bottom margin */
}

.btn:hover {
  background-color: #ff8c00; /* Match masthead button hover */
  color: #ffffff; /* Match masthead button hover */
  transform: translateY(-3px); /* Keep existing hover effect */
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7); /* Match masthead button hover */
}

.content-page-width {
  max-width: 1200px;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  transition: all 0.3s ease-in-out;
}

header .hamburger span {
  background-color: #222222;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px; /* Adjust based on header height */
    left: 0;
    background-color: #ffffff;
    padding: 20px;
    box-sizing: border-box;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-menu li {
    margin: 10px 0;
    text-align: center;
  }

  header .nav-menu a {
    color: #222222;
  }

  .masthead h1 {
    font-size: 2.5em; /* Smaller font size for mobile */
  }

  .section-overlay h2 {
    font-size: 1.5em; /* Smaller font size for mobile */
  }
}

/* Form Styling */
.form {
  margin: 0 auto;
  text-align: left;
}

.form .btn {
  background: #ff8c00;
  border: none;
  box-shadow: none;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #222;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  color: #222;
  font-size: 1em;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: #ff8c00;
  outline: none;
  box-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
}

textarea.form-control {
  resize: vertical; /* Allow vertical resizing */
  min-height: 100px;
}

.form footer {
  text-align: center;
  margin-top: 30px;
}

.site-footer {
  background-color: #131313; /* Slightly darker grey */
  color: #ffffff;
  text-align: center;
  padding: 10px 0; /* Small amount of padding */
  font-size: 0.9em; /* Slightly smaller font */
  margin-top: auto; /* Push footer to the bottom */
}

.page-title {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 40px;
  font-size: 3em;
  color: #f8f8f8;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}