* {
  font-family: Montserrat;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}
  
.banner {
   min-height: 100px; /* minimum height for banner */
  height: auto;       /* grows with content */
  width: 100%;
  z-index: 40;
  overflow: visible;
}

.banner * {
  padding: 0;
  margin: 0;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden; /* ok */
}

body {
  width: 100%;
  background-color: #e0e0e0;
 
}

 ul {
    list-style: none;
  } 

a:hover {
cursor: pointer;
}

/* -----------------------
   MENUBAR CONTAINER
------------------------ */
.menubar {
  position: sticky;
  top: 0;
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  font-weight: 500;
  text-transform: uppercase;
  z-index: 100;
  padding: 0;
  margin: 0;
 
}

/* -----------------------
   NAV LIST
------------------------ */
.menubar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* allows items to wrap */
  margin: 0;
  padding: 0;
}

/* -----------------------
   NAV ITEMS
------------------------ */
.menubar li {
  display: inline-block;
  margin: 5px 15px; /* spacing between items and lines */
  position: relative; /* for dropdown positioning */
}

/* -----------------------
   NAV LINKS
------------------------ */
.menubar a {
  text-decoration: none;
  text-align: center;
  padding: 15px 12px;
  color: #ffffff;
  font-size: clamp(14px, 1.8vw, 18px); /* responsive font with limits */
  transition: color 0.2s, background-color 0.2s;
}

/* Hamburger menu - hidden on desktop */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 15px;
}

/* Make nav list vertical on small screens */


/* HOVER COLORS FOR MENU ITEMS */
.menubar #aboutmemenuitem a:hover {
  background-color: black;
  color: #b0ff00;
}

.menubar #projectsmenuitem a:hover {
  background-color: black;
  color: #b0ff00;
}

.menubar #contactmenuitem a:hover {
  background-color: black;
  color: #b0ff00;
}

.menubar #reelmenuitem a:hover {
  background-color: black;
  color: #b0ff00;
}

.menubar #studiomenuitem a:hover {
  background-color: black;
  color: #b0ff00;
}

/* -----------------------
   DROPDOWN
------------------------ */
li.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: calc(100% - 11px);  
  left: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  visibility: hidden;
  background-color: #f9f9f9;
  min-width: 160px;
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  text-align: left;
  padding: 12px 16px;
  text-decoration: none;
  color: black;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}
    
    .dropdown:hover > .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(20px); /* optional smooth drop effect */
}

.section {
  padding: 30px;
  scroll-margin-top: 50px;

}
  
.section .posters-content {
  background-color: #e0e0e0;
}

.posters-content {
  background-color: #e0e0e0;
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  justify-content: space-evenly;
  align-items: stretch;
}

.poster {
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative; /* Ensure the text will be positioned relative to the poster */
  width: 250px; /* Set a fixed width for consistency */
  height: 350px; /* Set a height (adjust if needed) */
}

.poster-img {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Ensures the image doesn’t overflow */
  position: relative; /* Ensure the text will be positioned relative to the image */
  width: 100%;
  height: 100%;
}

.poster-img img {
  transition: transform 0.3s ease, filter 0.3s ease; /* Smooth transition for image */
  width: 100%;
  height: 100%; /* Ensure the image fills the area */
  object-fit: cover; /* Ensures the image covers the container area without distortion */
}

.poster:hover .poster-img{
  transform: scale(1.2); /* Zoom-in effect */
  filter: brightness(0.4); /* Darken the image */
}
  
  .poster-img {
  transition: transform 0.3s ease, filter 0.3s ease; /* Smooth transition for image */
  width: 100%;
  height: 100%; /* Ensure the image fills the area */
  object-fit: cover; /* Ensures the image covers the container area without distortion */
}

.poster-text {
  position: absolute; /* Position text over the image */
  top: 45%;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  z-index: 10; /* Ensure text is on top of the image */
  font-size: large;
  font-weight: 700;
  
}

.poster:hover .poster-text {
  display: block; /* Show text when the image is hovered */
}

#about-me {
  background-color: #e0e0e0;
  text-align: center;
  }

  #about-me ul {
    font-weight: 600;
    margin: 0 auto;       /* center horizontally */
    padding-left: 0;      /* remove default left padding */
    display: inline-block; /* shrink to fit content */
    list-style: none;
  }

#projects-foley {
  background-color: #e0e0e0;
}

#projects-sound {
   background-color: #e0e0e0;
} 

#location-sound {
   background-color: #e0e0e0;
}

#location-sound ul {
  list-style: square;
  font-weight: 600;
}

#reel {
  background-color: #e0e0e0;
}

#studio {
  background-color: #e0e0e0;
}

#contact {
  background-color: #e0e0e0;
}

.contact-section {
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1rem;
}

.contact-intro > * + * {
  margin-top: 1rem;
}

.contact-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
}

.contact-description {
  color: rgb(107 114 128);
}

.form-group-container {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.form-input::placeholder,
.form-textarea:focus-visible {
  color: #6b7280;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.form-textarea {
  min-height: 120px;
}

.form-submit {
  width: 100%;
  margin-top: 1.2rem;
  background-color: #000000;
  color: #fff;
  padding: 13px 5px;
  border-radius: 0.375rem;
}

@media (max-width: 700px) {

  /* Menubar tweaks */
  .menubar {
    justify-content: center;
    position: relative;
  
  }

  /* Hamburger toggle perfectly centered */
  .menu-toggle {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2rem;  
    cursor: pointer;
    padding: 12px 0;
    color: white;
  }

  /* Nav list vertical and hidden by default */
  .menubar ul {
    flex-direction: column;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    display: none;
    background-color: #000; /* full black background */
    padding: 0;
    margin: 0;
  }

  /* Show menu when active */
  .menubar ul.active {
    display: flex;
  }

  /* Menu items full width with airy spacing */
  .menubar ul li {
    width: 100%;
    text-align: center;
    position: relative;
    margin: 0;
  }

  .menubar ul li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 20px 0;  
    color: white;
    font-size: 1.2rem;
    transition: background-color 0.2s, color 0.2s;
  }

  /* Hover highlight full width */
  .menubar ul li a:hover {
    background-color: #111;
    color: #b0ff00;
  }

  /* Dropdown menu nested under parent "Projects" */
  li.dropdown {
    position: relative; /* keep dropdown nested */
  }

  .dropdown-content {
    position: relative;        /* now flows under the parent item */
    top: 0;
    left: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    background-color: #111;    /* slightly lighter than main menu for contrast */
    display: none;             /* hide by default */
    flex-direction: column;    
    width: 100%;
    margin: 0;
  }

  /* Show dropdown on click (or hover for desktop) */
  li.dropdown.active .dropdown-content {
    display: flex;
    z-index: 200;
  }

  /* Dropdown links styling */
  .dropdown-content a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px 0;   
    color: white;
    font-size: 1.1rem;
  }
  
   .section {
    padding-top: 60px;
    scroll-margin-top: 60px;
  }
}



