html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
    background-color: black;
    scroll-behavior: smooth;
}
h2,
h3, 
p {
  cursor: default;
}
a {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
/* Font type */
/* Gravity Wide for logo */
@font-face {
  font-family: 'Gravity Wide';
  src: url('/fonts/ABCGravity/ABCGravity-Wide-Trial.woff2') format('woff2'),
       url('/fonts/ABCGravity/ABCGravity-Wide-Trial.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Diatype for all other text */
@font-face {
  font-family: 'Diatype-bold';
  src: url('/fonts/ABCDiatype/ABCDiatype-Bold-Trial.woff2') format('woff2'),
       url('/fonts/ABCDiatype/ABCDiatype-Bold-Trial.woff') format('woff');
  font-weight: 700; /* Bold */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Diatype-light';
  src: url('/fonts/ABCDiatype/ABCDiatype-Light-Trial.woff2') format('woff2'),
       url('/fonts/ABCDiatype/ABCDiatype-Light-Trial.woff') format('woff');
  font-weight: 300; /* Light */
  font-style: normal;
  font-display: swap;
}
h3, h2 {
  font-family: 'Diatype-bold';
}
p {
  font-family: 'Diatype-light';
}

/* Hero container */
.hero {
  top: 0;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .hero {
    top: -5.9vh;
  }
}

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

/* Overlay to darken video */
.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 1;
}

/* Text overlay container */
.hero-text-left {
  position: absolute;
  left: 7.5vw;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
  color: white;
}

/* Logo text */
.logo-text {
  font-family: 'Gravity Wide', sans-serif;
  font-feature-settings: "ss05";
  font-weight: 800;
  font-size: 2.3rem;
  line-height: .75;
  margin: 0;
  cursor: pointer;
}

/* Tagline / body text using Diatype */
.tagline-text {
  font-family: 'Diatype-bold', sans-serif;
  font-size: .71rem;
  max-width: 35rem;
  padding-left: .2rem;
  line-height: 1.4;
  margin-top: 0.25rem;
  color: lightgray;
}

/* Search */
.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.15rem 0;
  font-family: 'Diatype-bold', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  background: transparent;
  border: none;
  color: white;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-trigger svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  transition: transform 0.3s ease;
}

.search-trigger:hover,
.search-trigger:focus-visible {
  color: rgb(255, 221, 0);
  outline: none;
}

.search-trigger:hover svg,
.search-trigger:focus-visible svg {
  transform: scale(1.05);
}

.search-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.search-backdrop[hidden] {
  display: none;
}

.search-modal {
  width: min(66vw, 960px);
  max-height: 75vh;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.search-modal-header h2 {
  margin: 0;
  font-family: 'Diatype-bold', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: white;
}

.search-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.search-close:hover,
.search-close:focus-visible {
  color: rgb(255, 221, 0);
  transform: scale(1.1);
  outline: none;
}

.search-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow: hidden;
}

.search-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-modal-form input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-family: 'Diatype-light', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.search-modal-form input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-modal-form input[type="search"]:focus {
  border-color: rgba(255, 221, 0, 0.7);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 2px rgba(255, 221, 0, 0.15);
}

.search-results {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-result {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  color: white;
}

.search-result:hover,
.search-result:focus-visible {
  border-color: rgba(255, 221, 0, 0.6);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.search-result-title {
  font-family: 'Diatype-bold', sans-serif;
  font-size: 1.05rem;
  margin: 0;
}

.search-result-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.search-result-summary {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.search-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Menu */
.header {
  position: relative;
  top: 5vh;
  z-index: 10;
}
.header.home-page {
  top: 7vh;
}

.menu {
    position: absolute;
    right: 7.5vw;
    z-index: 2;
    color: white;
    font-family: 'Diatype-bold', sans-serif;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.menu h3 {
    font-size: 1rem;
    cursor: pointer;
    margin: 0;
    line-height: 1.25;
    transition: color 0.5s ease;
}

#menu-toggle {
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.menu h3:hover {
  color: rgb(255, 221, 0);
}

a.button,
a {
  text-decoration: none !important; 
  color: inherit;         
}

/* Language Change */
.menu-buttons .language-select {
  font-family: 'Diatype-bold';
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 1% 2%;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.menu-buttons .language-select:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-buttons .language-select option {
  background: #333;
  color: white;
}

/* Menu dropdown */
.menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 1rem);
  background: rgba(0, 0, 0, 0.95);
  padding: 20px;
  min-width: 200px;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

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

/* Hide default-hidden by default */
.menu-buttons.default-hidden {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show with staggered delays - adjust nth-child based on position in dropdown */
.menu-dropdown .menu-buttons.default-hidden:nth-child(1) {
  animation: slideIn 0.3s ease 0s forwards;
}

.menu-dropdown .menu-buttons.default-hidden:nth-child(2) {
  animation: slideIn 0.3s ease 0.1s forwards;
}

.menu-dropdown .menu-buttons.default-hidden:nth-child(3) {
  animation: slideIn 0.3s ease 0.2s forwards;
}

.menu-dropdown .menu-buttons.default-hidden:nth-child(4) {
  animation: slideIn 0.3s ease 0.3s forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Film info */
.hero-text-middle {
  font-family: 'Diatype-light';
  z-index: 2;
  position: absolute;
  /* top: 65vh; */
  top: 75vh;
  left: 7.5vw;
  color: white; 
  text-align: justify; 
}
@media (max-width: 768px) {
  .hero-text-middle {
    top: -5vh;
  }
}
.promotion {
  display: none;
}
.promotion h3 {
  font-size: 1rem;
  font-weight: 525;
  margin-top: -.8rem;
}
.promotion button,
.promotion a {
    font-family: 'Diatype-bold', sans-serif;
    color: rgb(255, 255, 255);
    background-color: rgba(255, 221, 0, 0.4);
    border: 2px solid rgba(255, 221, 0, 0.6);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s;
}
.promotion button:hover,
.promotion a:hover {
    background-color: rgb(255, 221, 0);
    color: black;
}
.yellow {
    color: rgb(255, 221, 0);
}
.film-info {
  display: flex;
  align-items: flex-start;
  gap: 18vw;
  flex-wrap: wrap;
  margin-top: 5vh;
}
.film-info > div {
  flex: 0 0 auto;
}
.film-info .description {
  flex: 1;
}
.film-title-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.film-title-container .buttons {
    margin: auto;
}
.film-title-container .buttons #watch-button {
  background-color: rgba(0, 0, 0, 0,);
}
.film-title-text {
  font-family: 'Diatype-bold', sans-serif;
    font-size: 1.5rem;
    line-height: 1;
}
.director {
  font-family: 'Diatype-light', sans-serif;
  font-size: 1rem;
  margin-top: 1rem;
}
.description {
  font-size: .9rem;
  width: 55vw;
}
/* Responsive adjustments */
@media (max-width: 1023px) {
  .menu {
    position: relative;
    top: 0;
    right: 0;
    width: 90vw;
    margin: 0 auto;
    padding: 0.5rem 0;
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-end;
    z-index: 100;
  }

  .menu h3 {
    font-size: 0.95rem;
    text-align: right;
  }

  #menu-toggle {
    display: inline-flex;
    align-self: flex-end;
    padding: 0.35rem;
  }

  .menu h3.menu-buttons:not(#menu-toggle) {
    display: none;
    width: 100%;
  }

  .menu.active {
    align-items: stretch;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
  }

  .menu.active h3.menu-buttons:not(#menu-toggle) {
    display: flex;
    justify-content: flex-end;
  }

  .menu.active h3.menu-buttons.menu-search {
    justify-content: flex-end;
  }

  .menu.active .search-trigger {
    margin-left: auto;
  }

  .menu-dropdown {
    position: static;
    right: auto;
    top: auto;
    background: transparent;
    padding: 0;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
    display: none;
  }

  .menu.active .menu-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .menu-buttons.default-hidden {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 768px) {
  .search-backdrop {
    padding-top: 8vh;
  }

  .search-modal {
    width: min(90vw, 560px);
  }

  .logo-text { font-size: 3rem; }
  .subtitle-text { font-size: 2rem; }
  .description-text { font-size: 1rem; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 2.25rem; }
  .subtitle-text { font-size: 1.5rem; }
  .description-text { font-size: 0.875rem; }
}

/* Curator's spotlight */
.grid-container {
  max-width: 90vw;
  margin: 0 auto;
}

.grid-heading{
  font-weight: bolder;
  color: white;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1vw;
  justify-items: center;
}

.film {
  width: 100%;
  height: 35vh;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.film img {
  width: 100%;
  height: 35vh;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

.film-text{
  position: absolute;
  bottom: 0vh;
  left: 0vw;
  right: 0;
  margin: 0;
  padding: 1rem;
  color: white;
  z-index: 1;
  text-align: left;
}
.film-title {
  font-size: 2rem;
  margin: 0;
}
.director-year {
  font-size: 0.9rem;
  margin: 0;
  padding-top: 0.5rem;
}
.film-image-container {
  position: relative;
  height: 35vh;
  transition: transform 0.3s ease;
}
.film-hover {
  position: absolute;
  width: inherit;
  top: 35vh;
  background-color: whitesmoke;
  padding: 1rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.2s ease;
  z-index: 10;
  box-sizing: border-box;
}

.buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.buttons button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid black;
  color: black;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.5s ease;
}

#watch-button-hero {
  border: 1px solid black;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}
#watch-button {
  padding: 0.5rem 1rem;
  border-radius: 5px;
}
#add-button {
  padding: 0.5rem 0.8rem;
  border-radius: 50%;
}
#heart-button {
  padding: 0.5rem 0.7rem;
  border-radius: 50%;
}

.buttons button:hover,
.buttons a:hover {
  transform: scale(1.1);
  color: white;
  background-color: rgba(0, 0, 128, 1);
  transition: all 0.1s ease;
}
.buttons button:active,
.buttons a:active {
  transform: scale(1.05);
  color: black;
  background-color: white;
}

.film-synopsis {
  color: black;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}
.film:hover {
  transform: scale(1.025);
  height: auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.film:hover .film-hover {
  opacity: 1;
  max-height: 20vh;
}

.grid-heading-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  width: fit-content;
}

.see-all {
  width: fit-content;
  text-align: right;
  padding: 0;
  margin: 2vh 0;
  right: 0%;
  color: lightgrey;
  font-size: 1.27rem;
  font-weight: bolder;
  cursor: pointer;
  transition: color 0.5s ease;
  z-index: 10;
}

.see-all p {
  font-family: "Diatype";
}

.see-all:hover {
  color: rgb(255, 221, 0);
}

/* Full bleed feature */
.full-bleed-feature {
  margin: 5vh auto;
  position: relative;
}
.feature-image-container {
  position: relative;
  height: 75vh;
  width: 59.7vw;
  margin-left: 4.5vw;
}
.feature-image {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.play-button {
  position: absolute;
  width: 5vw;
  height: 5vw;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(10);
  z-index: 2;
  transition: all 0.3s ease;
}
.play-button:hover {
  filter: brightness(1);
}

.feature-text {
  color: white;
  position: absolute;
  top: 0vh;
  left: 65.2vw;
  width: 29.3vw;
  height: 75vh;
  z-index: 2;
}

.feature-text-heading h1 {
  font-family: "Gravity Wide";
  font-feature-settings: "ss05";
  font-size: 2.5rem;
  margin: 0 0 3vh 0;
  line-height: 1;
}

.feature-text-heading p {
  font-family: 'Arial';
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0 0 2vh 0;
}

.feature-synopsis,
.filmmaker-bio {
  color: whitesmoke;
  font-family: 'Arial';
  font-size: 1rem;
  width: 100%;
  line-height: 1.5rem;
  text-align: justify;
}

.feature-block-2 {
  position: inherit;
  bottom: 0;
}

.feature-block-2 p {
  padding: 0;
  margin: 0;
}

.feature-text-heading {
  margin-bottom: 2vh;
}
.space {
  height: 2vh;
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  margin-top: 5vh;
}

.footer-container {
  max-width: 90vw; 
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex: 1;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Diatype-light', sans-serif;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: rgb(255, 221, 0);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.follow-text {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Diatype-light', sans-serif;
  font-size: 0.9rem;
  margin: 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(255, 221, 0, 0.2);
  color: rgb(255, 221, 0);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .footer-social {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  /* Hero text adjustments */
  .hero-text-left {
    top: 3vh;
    left: 5vw;
  }
  
  .logo-text { 
    font-size: 1.5rem; 
  }
  
  .tagline-text { 
    font-size: 0.46rem;
    max-width: 90vw;
  }
  
  /* Menu adjustments */
  .menu {
    position: relative;
    top: 0;
    right: 0;
    width: 90vw;
    margin: 0 auto;
    padding: 0.5rem 0;
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-end;
    z-index: 100;
  }

  .menu.active {
    align-items: stretch;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
  }

  .menu h3 {
    font-size: 0.9rem;
    text-align: right;
  }

  .menu h3.menu-buttons:not(#menu-toggle) {
    display: none;
  }

  #menu-toggle {
    display: inline-block;
    align-self: flex-end;
  }

  .menu.active h3.menu-buttons:not(#menu-toggle) {
    display: block;
  }

  .menu-dropdown {
    position: static;
    right: auto;
    top: auto;
    background: transparent;
    padding: 0;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
    display: none;
  }

  .menu.active .menu-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .menu-buttons.default-hidden {
    opacity: 1;
    transform: none;
    animation: none;
  }
  
  /* Film info section */
  .hero-text-middle {
    left: 5vw;
    right: 5vw;
    top: 70vh;
  }
  
  .film-info {
    flex-direction: column;
    gap: 1vh;
    margin-top: 3vh;
  }
  
  .film-title-text {
    font-size: 1.2rem;
  }
  
  .director {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
  }
  
  .description {
    margin-top: 0;
    font-size: 0.8rem;
    width: 85vw;
  }
  
  /* Grid adjustments */
  .grid-container {
    max-width: 85vw;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 3vh;
  }
  
  .film {
    height: 30vh;
  }
  
  .film img,
  .film-image-container {
    height: 30vh;
  }
  
  .film-title {
    font-size: 1.5rem;
  }
  
  .director-year {
    font-size: 0.8rem;
  }
  
  /* Mobile tap functionality for film hover */
  .film:hover {
    transform: none;
    box-shadow: none;
  }
  
  .film-hover {
    position: relative;
    top: 0;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
  }
  
  .film.active .film-hover {
    opacity: 1;
    max-height: 30vh;
  }
  
  .film.active {
    height: auto;
  }
  
  /* Full bleed feature adjustments */
  .full-bleed-feature {
    margin: 3vh auto;
  }
  
  .feature-image {
    width: 90vw;
    height: 50vh;
    margin-left: 5vw;
  }
  
  .feature-text {
    position: relative;
    top: auto;
    left: 5vw;
    width: 90vw;
    height: auto;
    margin-top: 3vh;
  }
  
  .feature-text-heading h1 {
    font-size: 2rem;
    margin-bottom: 2vh;
  }
  
  .feature-text-heading p {
    font-size: 1rem;
  }
  
  .feature-synopsis,
  .filmmaker-bio {
    font-size: 0.9rem;
    line-height: 1.4rem;
  }
}
