 * {
  box-sizing: border-box;
}

 html, body {
      margin: 0;
      padding: 0;
      font-family: 'Raleway', sans-serif;
      overflow-x: hidden;
      color: #fff;
      scroll-behavior: smooth;
      overflow-x: hidden; 
      box-sizing: border-box;
      width: 100%;
    }

/* MAIN NAVIGATION */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
  z-index: 1000;
}

.main-nav.sticky {
  position: fixed;
  top: 0;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
}

.logo img {
  height: 35px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

.nav-menu a:hover,
.nav-menu i:hover {
  color: #ffbb00;
}
.nav-menu img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.nav-menu i {
  font-size: 1.2rem;
  color: #fff;
  transition: color 0.3s ease;
}

.nav-menu i:hover {
  color: #ffbb00;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem 0;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
  }

  .main-nav {
    position: absolute;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 1rem 2rem 0;
  }

  .nav-menu {
    display: inline-block;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.8); /* darker bg */
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
  }

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

 .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-menu a {
    padding: 0.5rem 0.8rem;
    width: 100%;
    font-size: 0.9rem;
  }
 .logo img {
    height: 25px;
  }

  .hero-inner {
    margin-top: 1rem;
  }

}

/* Hamburger button (hidden by default) */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
}
    /* HERO SECTION */
    .hero {
      position: relative;
      height: 100svh;
      width: 100%;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: left;
      padding-top: 2rem;
    }

    .video-background {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
    }

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.65);
      z-index: 0;
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      padding: 2rem;
      gap: 4rem;
      width: 100%;
      max-width: 1300px;
      box-sizing: border-box;
    }

    .poster {
      flex: 1 1 200px;
      max-width: 100%;
    }

    .poster img {
      width: 100%;
      height: auto;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
      transition: transform 0.3s ease;
    }

    .poster img:hover {
      transform: scale(1.03);
    }

    .hero-content {
      flex: 1 1 400px;
      max-width: 700px;
    }

    .hero h1 {
      font-size: 2.8rem;
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      line-height: 1.2;
      color: #ffbb00;
      text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    }

    .hero h1 span {
      font-size: 1.5rem;
      display: block;
      color: #ffffff;
    }

    .meta {
      font-size: 1rem;
      color: #bbb;
      margin-bottom: 1rem;
    }

    .hero p {
      font-size: 1rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }

    .buttons {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .btn {
      padding: 12px 24px;
      background: linear-gradient(135deg, #ff9900, #e24b00);
      border: none;
      border-radius: 5px;
      color: white;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(255, 136, 0, 0.6);
    }

    .btn.secondary {
      background-color: transparent;
 /*     border: 1px solid white; */
      color: white;
          text-decoration: none;
    }

    /* FILMS SECTION */
    .films-section {
      padding: 4rem 2rem;
      background-color: #111;
      text-align: center;
    }

    .films-section h2 {
      font-size: 2.8rem;
      margin-bottom: 2rem;
      color: #ffbb00;
    }

    .films-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 2rem;
      max-width: 1220px;
      margin: 0 auto;
    }

    .film-card {
      background-color: #1a1a1a;
      border-radius: 10px;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    .film-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(255, 187, 0, 0.3);
    }

    .film-card img {
      width: 100%;
      height: auto;
      display: block;
    }

    .film-card-title {
      padding: 1rem;
      font-size: 1.1rem;
      color: #fff;
    }

 footer {
  background-color: #000;
  padding: 1.5rem 1rem;
  color: #E0D4BA;
  font-size: 0.9rem;
  opacity: .8;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  flex: 1 1 auto;
  margin-bottom: 0.5rem;
}

.footer-logos {
  display: flex;
  gap: 1rem;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.footer-logos img {
  height: 40px;
  max-width: 100px;
  object-fit: contain;
}

/* Responsive: stack on small screens */

@media (max-width: 1024px) {
  .hero-inner {
        padding: 5rem;
      }
}
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-text,
  .footer-logos {
    justify-content: center;
    margin-bottom: 0.5rem;
  }
}

    /* Responsive Adjustments */
@media (max-width: 768px) {
      .hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0rem;
        margin-top: 100px;
      }
      .hero-content, .poster {
        max-width: 100%;
      }
       .buttons {
            justify-content: center;
        }
        .hero p {
            font-size: 0.7rem;
        }
        .meta {
            font-size: 0.8rem;
        }
        .poster img {
            width: 70%;
        }
        .hero {
          padding-top: 5rem;
          height: 130svh;
        }
        .film-card {
          transform: scale(1.05);
          box-shadow: 0 4px 12px rgba(255, 136, 0, 0.2);
        }

        .films-grid {
            gap: 4rem;
        }
    }

    @media (max-width: 480px) {
      .hero h1 {
        font-size: 2rem;
      }
      .films-section h2 {
        font-size: 1.5rem;
        margin-bottom: 3rem;
        margin-top: -1rem;
      }
    }

    /* Trailer slide-in panel */
.trailer-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.6s ease;
  z-index: 1000;
}

.trailer-overlay.active {
  right: 0;
}

.trailer-video {
  position: relative;
  width: 100%;
  max-width: 1500px;
  height: 100vh;
  box-shadow: 0 0 20px #000;
  animation: slideIn 0.7s ease forwards;
}

.trailer-video iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Close Button */
.close-btn {
  position: absolute;
  font-size: 2rem;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Slide animation */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

/* Slide poster/details left when trailer opens */
body.trailer-open .hero-inner {
  transform: translateX(-50px);
  opacity: 0.4;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

@media (max-width: 768px) {
  .trailer-video {
    padding: 0.8rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .close-btn {
    top: 1.5rem;
    right: 0.5rem;
    font-size: 2rem;
  }
}


/* ======= MODAL OVERLAY ======= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======= MODAL CONTENT LAYOUT ======= */
.modal-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  max-width: 1700px;
  background-color: transparent;
  position: relative;
  padding: 1rem;
  box-sizing: border-box;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-poster {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-poster img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.modal-video {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-video video {
  width: 100%;
  max-height: 100vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* ======= CLOSE BUTTON ======= */
.close-btn {
  position: absolute;
  top: 1.7rem;
  right: 1rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

/* ======= MODAL OVERLAY ======= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======= MODAL OVERLAY ======= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.4s ease;
  overflow-y: auto;     
}

/* Split‑layout container */
.synopsis-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  margin: 4% auto;
  padding: 2.5rem;
  max-width: 1200px;
  color: #fff;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======= MODAL OVERLAY ======= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======= MODAL CONTENT ======= */


.modal-video {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-video video {
  width: 100%;
  max-height: 100vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* ======= CLOSE BUTTON ======= */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

/* Poster image */
.synopsis-poster {
  flex: 1 1 320px;            /* min 320 px, can grow */
  max-width: 40%;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}

/* Text column */
.synopsis-details {
  /* flex: 1 1 300px; */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

/* Typography */
.synopsis-title   { font: 700 1.25rem/1.2 'Raleway', sans-serif; letter-spacing: .05em; }
.synopsis-main    { font: 800 3rem/1.1 'Raleway', sans-serif; color: #ffbe16; }
.synopsis-meta    { margin: .75rem 0 1.25rem; font-size: .9rem; color: #ccc; }
.synopsis-text    { font-size: 1rem; line-height: 1.6; color: #ddd; }

/* ======= RESPONSIVE (Mobile Fullscreen Video) ======= */
@media (max-width: 768px) {
  .modal-content {
    padding: 0.5rem;
  }

  .modal-video video {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .close-btn {
    top: 1.5rem;
    right: 1rem;
    font-size: 2rem;
  }


  
}

/* Responsive tweak: stack poster above text on small screens */
@media (max-width: 640px) {
  .synopsis-layout { flex-direction: column; padding: 1.5rem; }
  .synopsis-poster { max-width: none; margin: 0 auto; }

 .trailer-wrapper > .trailer-video { 
    position: absolute;
    height: unset;
    margin-top: 16rem;
  }
}

.trailer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  max-width: 1500px;
  margin: auto;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

.trailer-synopsis {
  flex: 1 1 400px;
  color: #fff;
}

.trailer-video {
  flex: 1 1 600px;
  display: flex;
  justify-content: center;
  align-items: center;
/*
  position: absolute;
  height: unset;
  margin-top: 20rem;
*/
}

.trailer-video video {
  width: 100%;
  max-height: 80vh;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .trailer-wrapper {
    flex-direction: column;
    padding: 1rem;
  }

  .trailer-video video {
    width: 100%;
    height: auto;
  }
}

/* Responsive adjustments for screens smaller than 768px */
@media screen and (max-width: 768px) {
  .trailer-wrapper,
  .synopsis-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .trailer-synopsis,
  .trailer-video,
  .synopsis-details {
    flex: 1 1 100%;
    text-align: center;
  }

  .synopsis-poster {
    width: 70%;
    max-width: 300px;
    margin-top: 1rem;
  }

  .close-btn {
    top: 20px;
    right: 5px;
    font-size: 1.8rem;
  }

  .synopsis-title, .synopsis-main,
  .synopsis-meta, .synopsis-text {
    text-align: center;
  }

  .synopsis-main {
    font: 800 1.8rem / 1.1 'Raleway', sans-serif;
  }
  .synopsis-title { 
    font: 600 1rem / 1.2 'Raleway', sans-serif;
  }
  .synopsis-text { 
    font-size: 0.8rem;
  }

  #synopsisModal > .synopsis-layout, #synopsisModal > .flex-wrap {
    display: unset;
    flex-wrap: unset;
  }
}