/* Mobile nav + layout overrides */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bars span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: calc(24px + env(safe-area-inset-top)) 24px 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.25s ease;
  z-index: 2000;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mobile-nav-close {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-drawer-links a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-fullscreen-container {
  position: relative;
}

.video-fullscreen-btn {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 768px) {
  html, body {
    width: 100%;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  body.nav-open {
    overflow: hidden;
  }

  img, video, canvas {
    max-width: 100%;
    height: auto;
  }

  .nav {
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  .nav-links {
    display: none !important;
  }

  .nav-container {
    flex-direction: row;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    width: 100vw;
    min-height: 100vh;
    overflow: visible;
  }

  .hero-content.on-circle {
    max-width: 100%;
    padding: 0 18px;
  }

  .sigil-container {
    width: 200vw;
    height: 200vw;
    max-width: none;
    max-height: none;
  }

  .particles-canvas,
  .hero-bg {
    position: absolute;
    width: 100vw;
    height: 100%;
    left: 0;
  }

  .cta-container {
    width: 100%;
    align-items: stretch;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }

  .featured-films {
    padding: 70px 0;
  }

  .films-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .films-grid::-webkit-scrollbar {
    display: none;
  }

  .films-grid .film-card {
    min-width: 80vw;
    max-width: 85vw;
    height: 520px;
    scroll-snap-align: start;
  }

  .film-card-image-container {
    height: 420px;
  }

  .join-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .trailer-page {
    padding-top: 90px;
  }

  .trailer-container {
    width: 92%;
  }

  .hero-banner {
    height: 70vh;
    background-position: center;
  }

  .hero-banner h1 {
    font-size: 2.4rem;
    text-align: center;
  }

  .hero-banner p {
    font-size: 1rem;
    text-align: center;
    padding: 0 20px;
  }

  .video-fullscreen-btn {
    display: inline-flex;
  }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
  }
}
