/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
}

/* TITLE CONTAINER */
.title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand-name {
  font-family: alex brush, cursive;
  font-size: 1.5rem;
  font-weight: 700;
  color: #040;
  text-align: center;
  flex-grow: 1;
}

/* NAV MENU - Mobile */
.mobile-nav-menu {
  display: none;
}
.mobile-title{
  display: none;
}

/* NAV MENU - Desktop */
.nav-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.nav-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  margin-right: 1rem;
}
.nav-menu li a {
  text-decoration: none;
  color: #000;
  font-size: 1rem;
  font-weight: 500;
}
.nav-menu li a.active,
.nav-menu li a:hover {
  text-decoration: underline;
}

/* NAV TOGGLE BUTTON - Hidden on desktop */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  /* Optional: remove or adjust padding if you want the section to be flush */
  padding: 0;
}

/* WELCOME SECTION */
.welcome-section {
  /* Set the container height to 66.67% of the viewport height */
  height: 66.67vh;

  /* Use flexbox to center the image */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Hide any overflow if the image width exceeds the container */
  overflow: hidden;
}

/* WELCOME IMAGE */
.welcome-image {
  /* Make the image fill the entire container */
  width: 100%;
  height: 100%;

  /* object-fit: cover ensures the image completely fills the container
     while preserving its aspect ratio. Parts may be cropped if necessary. */
  object-fit: cover;

  display: block; /* Remove any unwanted inline spacing */
}

.gallery-section {

  /* Use flexbox to center the image */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Hide any overflow if the image width exceeds the container */
  overflow: hidden;
}

.gallery-image {
  /* Make the image fill the entire container */
  width: 100%;
  height: 100%;

  /* object-fit: cover ensures the image completely fills the container
     while preserving its aspect ratio. Parts may be cropped if necessary. */
  object-fit: cover;

  display: block; /* Remove any unwanted inline spacing */
}

/* ========== MOBILE BREAKPOINT ========== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .header{
    display: flex;
    align-items: center;
    padding: 1rem;
    position: relative;
  } 
  .mobile-title{
    position: absolute; /* Step 2: Remove it from the normal flow */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease-in-out;
  }
  .mobile-title.inactive {
    display: none;
  }
  .mobile-nav-menu {
    display: flex;
    margin: 0 auto;
    flex-direction: row;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 1rem;
    padding: 1rem;
    transition: max-height 0.4s ease-in-out, opacity 0.2s ease-in-out;
    width: 90%;
    max-width: 500px;
  }
  /* Show nav-menu (push content down) when .active is toggled */
  .mobile-nav-menu.active {
    max-height: 500px;
    opacity: 1;
  }
  .mobile-nav-menu.instant {
    transition: none !important;
  }
  body.disable-transitions .mobile-nav-menu,
  body.no-transitions .mobile-nav-menu {
    transition: none !important;
  }
  .mobile-nav-menu ul {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    padding: 0;
    width: 100%;
  }
  .mobile-nav-menu li {
    margin: 0.5rem 0;
    text-align: center;
    list-style: none;
  }
  .mobile-nav-menu li a {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
  }
  .mobile-nav-menu li a.active,
  .mobile-nav-menu li a:hover {
    text-decoration: underline;
  }
}