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

h2 {
  font-weight: 400;
}
p {
  font-size: 18px;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
}


header {
  background-color: transparent;
  /* transition: background-color 0.3s ease-in-out; */
  position: absolute; /* Keeps it at the top */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  width: 100vw; /* Ensure it spans full width */
  max-width: 100%; /* Prevents overflow */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100; /* Ensures it's above content */
  box-sizing: border-box; /* Prevents width from exceeding 100% */
  height: 96px;
}

/* Darker background when menu is open */
header.menu-open {
  background-color: rgb(0, 0, 0, 0.9); /* Darker header */
}

.nav_links.show {
  margin-top: 36px;
  padding-bottom: 30px;
  background-color: rgb(0, 0, 0, 0.9); /* Darker menu background */
}

/* Dropdown when menu is open */
.nav_links.show .nav_link.dropdown .dropdown-menu {
  display: block; /* Make the dropdown visible */
  position: relative; /* Position relative to the link */
  /* background-color: rgba(0, 0, 0, 0.9); */
  padding: 10px;
  border-radius: 4px;
  z-index: 1000; /* Ensure it sits on top of other elements */
}

/* Initially hide the dropdowns */
.nav_links .dropdown-menu {
  display: none;
  position: absolute;
  list-style: none;
  padding: 0.5rem 0rem;
  z-index: 1000;
}

.nav_link a {
  color: white; /* Ensure links are visible */
}

.head_logo img {
  height: 60px;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Prevents overflow */
  max-width: 100%;
}

.nav_links {
  display: flex;
  list-style: none;
  padding: 0;
}

.nav_link {
  margin-left: 1.5rem;
}

.nav_link:hover .dropdown-menu {
  display: block;
  position: absolute;
  background-color: transparent;
  border-radius: 4px;
}

.nav_links .nav_link a {
  text-decoration: none;
  color: rgb(132, 108, 70);
  font-size: 22px;
  font-weight: 400;
  transition: opacity 0.3s ease;
}
.nav_links .dropdown .dropdown-menu a {
  font-size: 18px;
}

.nav_links .nav_link a:hover {
  opacity: 0.8;
}

.dropdown-menu {
  color: black;
  display: none;
  position: absolute;
  list-style: none;
  z-index: 1000;
}

.dropdown-menu a {
  color: rgb(0, 0, 0) !important ;
  transition: color 0.3s ease;
}

.nav_link .dropdown-menu a:hover {
  color: #333;
}

.dropdown-menu li {
  margin: 0.5rem 0;
}

.lang_links {
  background-color: transparent;
}
.lang_links button {
  background-color: transparent;
  border: none;
  font-size: 18px;
  margin-left: 1rem;
}

/* Hamburger Icon - Hidden by default */
.hamburger {
  display: none;
  cursor: pointer;
  color: rgb(132, 108, 70);
  font-weight: 400;
  margin-right: 20px;
}
.hamburger p {
  font-size: 22px;
}

/* Default black logo */
.logo-white {
  display: none;
}

/* White header on film pages */
.film-header {
  max-width: 2000px;
  margin: 0 auto;
}
.film-header .logo-black {
  display: none;
}

.film-header .logo-white {
  display: block;
}

.film-header .navbar a {
  color: white !important;
}

.film-header .navbar a:hover {
  color: lightgray;
}
.film-header .nav-links a {
  color: white !important;
}

.film-header .nav-links a:hover {
  color: #ccc;
}

.film-header .nav_link a {
  color: white !important;
}

.film-header .nav_link a:hover {
  color: #ccc;
}

.film-header nav p {
  color: white !important;
}
.film-header nav p:hover {
  color: #ccc;
}

/* HERO */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero-image {
  position: fixed;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

.hero-content {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black;
  text-align: center;
  max-width: 1200px;
  padding: 0 20px;
  z-index: 1;
}
.hero-content p {
  max-width: 708px;
  margin: 0 auto;
  text-align: justify;
}

.hero_info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.hero_info p {
  text-align: center;
}
.hero_info a {
  color: black;
  text-decoration: none;
}
.hero_info a:hover {
  text-decoration: underline;
}
.icons {
  padding: 5px;
}

/* Works Page  */

.works {
  position: relative;
  z-index: 1;
  justify-content: center;
}

.works-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#our-works {
  padding-top: 196px;
}

#commissioned-works {
  padding-top: 96px;
}

.gategoris {
  padding-bottom: 4rem;
  text-align: center;
  font-size: 28px;
}

.films-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(720px, 1fr));
  gap: 4rem;
  max-width: 1600px;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.film-item {
  position: relative;
  display: inline-block;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.film-item img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transform-origin: center center;
}

/* On hover, apply the zoom-in effect */
.film-item img:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.film-item {
  position: relative;
  display: inline-block;
  width: 100%;
}

.film-overlay {
  position: relative;
}

.film-item:hover .film-overlay img {
  transform: scale(1.05);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.film-poster {
  width: 100%;
  transition: all 0.3s ease-in-out;
}

.film-text {
  width: 90%;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.film-overlay:hover .film-poster {
  filter: brightness(50%);
}

.film-overlay:hover .film-text {
  opacity: 1;
}

.film-poster {
  width: 100%;
  height: auto;
}

.film-item p {
  margin-top: 0.5rem;
  font-size: 18px;
}

/* FILM PAGE  */

.film-page-container {
  align-items: center;
  width: 100%;
}

.film-content {
  padding: 0 5%;
  padding-bottom: 100px;
  max-width: 1600px;
  margin: 0 auto;
}

.film-header-image {
  width: 100%;
  overflow: hidden;
}

.film-header-image img {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  display: block;
}

h1 {
  font-weight: 400;
  font-size: 2.5rem;
  margin: 20px 0;
}

.film-details {
  display: flex;
  gap: 20px;
}

.film-list-item {
  margin-bottom: 1rem;
}

.film-list-item h3 {
  font-weight: 600;
}

.left-column,
.right-column {
  width: 48%;
}

.film-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.image-item img {
  width: 100%;
  height: auto;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.right-column h3 {
  font-weight: 600;
  margin-top: 2rem;
}

/* Person Page  */

.people {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 200px;
}

.person-item {
  width: 100%;
  display: flex;
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 1000px;
}

.person-image img {
  width: 100%;
  max-width: 400px;
  object-fit: cover;
}

.person-details h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.person-title {
  margin-bottom: 100px;
}

.person-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.person-details a {
  font-size: 1rem;
  color: black;
  text-decoration: none;
}

#p-email {
  margin-top: 2rem;
}

#cv-link {
  margin-top: 2rem;
}

#cv-link a {
  color: rgb(132, 108, 70);
}
/* .person-cv {
  margin-top: 5rem;
} */

/* BIO pages  */

.portfolio {
  padding-bottom: 100px;
  padding-left: 100px;
  padding-right: 100px;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  margin-top: 100px;
  max-width: 90%;
  max-width: 1600px;
}
.bio-strong {
  font-weight: 600;
}

.portfolio_main {
  justify-content: center;
  display: flex;
  margin: 0 auto;
}

.info_text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-left: 2rem;
}

.portfolio-header {
  text-align: start;
  margin-bottom: 2rem;
}

.portfoliopage_img {
  display: flex;
  justify-content: center;
}

.portfolio-photo {
  max-width: 700px;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.bio {
  margin-bottom: 1rem;
}

.filmography h2 {
  margin-bottom: 1rem;
  width: 100%;
}

.bio p {
  text-align: justify;
}
.filmography {
  max-width: none;
  margin: 0 auto;
  margin-top: 50px;
  width: 100%;
}
.filmography ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.filmography li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Recent Work Section */
.recent_works {
  margin-top: 50px;
}

.recent_works h2 {
  margin-bottom: 1rem;
}

.recent_works_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.recent_work_item {
  position: relative;
  /* overflow: hidden; */
  transition: transform 0.3s ease-in-out;
}

.recent_work_item_link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.recent_work_image {
  position: relative;
  transition: box-shadow 0.3s ease-in-out;
}

.recent_work_image img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.recent_work_image img:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.recent_work_item:hover .recent_work_image img {
  transform: scale(1.05);
  filter: brightness(50%);
}

.recent_work_info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.recent_work_item:hover .recent_work_info {
  opacity: 1;
}

.recent_work_info h3 {
  margin: 0;
  font-size: 20px;
}

.recent_work_info p {
  margin: 5px 0;
  font-size: 14px;
}

/* SERVICES */

.services {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 5%;
  text-align: center;
}

.services_content {
  max-width: 850px;
  padding: 2rem;
  color: rgb(0, 0, 0);
}

.services_text {
  font-weight: 400 !important;
  font-size: 1.2rem;
  line-height: 1.6;
}

.services_info {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

/* SCREEN SIZES  */

@media (max-width: 1600px) {
  .hero-content p {
    font-size: 18px;
  }

  .films-grid {
    width: 90%;
    grid-template-columns: repeat(auto-fit, minmax(530px, 1fr));
  }
  .film-item {
    width: 100%;
  }

  .film-poster {
    width: 500px;
    height: auto;
  }
}

@media (max-width: 1300px) {
  .portfolio_main {
    display: flex;
    flex-direction: column !important;
    justify-content: center;
  }

  .portfoliopage_img {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
  }
  .portfolio-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
  }

  .info_text {
    justify-content: center;
    align-items: center;
    padding-left: 0;
  }

  .portfolio-header {
    width: 100%;
    width: fit-content;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .portfolio-header h2 {
    margin: 0;
  }
}

@media (max-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  /* MAIN */
  header {
    width: 100%;
  }
  .nav_links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    width: 100%;
    left: 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0);
  }

  .nav_links.show {
    display: flex;
  }

  .nav_link {
    margin: 15px 0;
    text-align: center;
  }

  .nav_link a {
    font-size: 20px;
    color: black;
  }

  .hamburger {
    display: flex;
  }

  .nav_link:hover .dropdown-menu {
    display: none;
  }

  .dropdown-menu a {
    color: rgb(156, 151, 151) !important ;
    transition: color 0.3s ease;
  }

  .dropdown-menu {
    display: none;
  }

  .films-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .films-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .film-item {
    width: 90%;
  }

  /* HERO */
  .hero-content {
    width: 80%;
  }

  /* PEOPLE */
  .people {
    margin: 0 auto;
    padding: 0 100px;
    padding-top: 130px;
  }

  /* .person-item {
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    gap: 2rem;
  } */
  /* .person-image img {
    max-width: 500px;
    width: 100%;
  } */

  /* PORTFOLIO */
  .portfolio {
    width: 100%;
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 800px) {
  /* MAIN */
  .header {
    width: 100%;
  }

  .head_logo a img {
    height: 36px;
  }
  .nav_links .nav_link a {
    font-size: 18px;
  }
  .hamburger .nav_link {
    font-size: 18px; /* menu */
  }
  .nav_links .dropdown .dropdown-menu a {
    font-size: 14px;
  }
  .lang_links button {
    font-size: 14px;
    margin-left: 0.2rem;
  }

  /* HERO */
  .hero-content {
    width: 80%;
  }
  /* WORKS */
  .gategoris {
    font-size: 22px;
  }
  .film-text {
    font-size: 10px;
  }
  .film-item p {
    font-size: 14px;
  }

  /* FILM PAGE */

  .film-details {
    flex-direction: column;
  }
  .left-column,
  .right-column {
    width: 100%;
  }
  .film-images-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  /* HERO */
  .hero-content p {
    font-size: 12px;
  }
  /* PEOPLE */
  .people {
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 100px;
  }
  .person-item {
    /* align-items: center; */
    margin: 0 auto;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    gap: 0.5rem;
    margin-bottom: 3rem;
  }

  .person-image {
    margin-bottom: 5px;
  }
  .person-details {
    margin-top: 0.5rem;
  }
  .person-details h2 {
    font-size: 1.5rem;
  }
  .person-title {
    margin-bottom: 1rem;
  }

  .person-details p {
    font-size: 1rem;
    margin: 0.2rem 0;
  }

  .person-details a {
    font-size: 1rem;
    color: black;
    text-decoration: none;
  }
  /* PORTFOLIO */
  .portfolio {
    width: 100%;
  }
  .recent_works_grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
