/* === DESIGN TOKENS === */
:root {
  --color-primary: #560100;
  --color-bg: #000000;
  --color-bg-section: #0D0D0D;
  --color-bg-card: #1A1A1A;
  --color-white: #FFFFFF;
  --color-gray: #9A9A9A;
  --color-gray-dark: #333333;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-star: #560100;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
}

/* === RESET & DEFAULTS === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-gray);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === NAV === */
#nav-logo {
  height: 28px;
  width: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#nav-logo.nav-logo--visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* === HERO === */
.hero-gradient {
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.45) 100%);
}

.hero-logo {
  width: clamp(280px, 38.5vw, 595px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5));
}

/* About text — below logo */
.hero-about {
  margin-top: 1.4em;
  text-align: left;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 3.2vw, 1.5625rem);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-white);
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.2);
}

/* Plain info rows — no bubble */
.hero-info {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-white);
}

/* Social links — bottom-right of hero */
.hero-social-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.hero-social-link:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* Hero pill links */
.hero-pill-link {
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-pill-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* === LANG SWITCHER === */
.lang-btn {
  cursor: pointer;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.lang-btn:hover {
  color: var(--color-primary);
}
.lang-btn.active {
  color: var(--color-white);
}

/* === MOBILE NAV LINKS === */
.mobile-nav-link {
  transition: color 0.2s ease;
}
.mobile-nav-link:hover {
  color: var(--color-primary);
}

/* === HAMBURGER === */
#menu-toggle {
  transition: color 0.2s ease;
}
#menu-toggle:hover {
  color: var(--color-primary);
}
#menu-toggle:hover span {
  background-color: var(--color-primary);
}

/* === HAMBURGER ANIMATION === */
.menu-open #menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.menu-open #menu-toggle span:nth-child(2) {
  opacity: 0;
}
.menu-open #menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* === PLAY BUTTON HOVER === */
.play-btn span {
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.play-btn:hover span {
  background-color: var(--color-primary);
  transform: scale(1.1);
}

/* === GALLERY GRID === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  height: 680px;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}

.gallery-cell {
  overflow: hidden;
  border-radius: 0.5rem;
  min-height: 0;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-cell:hover img {
  transform: scale(1.08);
}

/* 33% height */
.gallery-cell--sm  { flex: 1; }
/* 66% height */
.gallery-cell--lg  { flex: 2; }
/* full height */
.gallery-cell--full { flex: 1; }

/* Mobile: stack columns vertically, fixed individual heights */
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .gallery-col {
    flex-direction: row;
    height: 240px;
  }
  .gallery-cell--full {
    flex: 1;
  }
}

/* === GALLERY LIGHTBOX === */
#gallery-lightbox {
  overscroll-behavior: contain;
}

#lightbox-carousel {
  display: none;
}
#lightbox-carousel.active {
  display: flex;
}

#carousel-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

#carousel-thumbs img.active,
#carousel-thumbs img:hover {
  opacity: 1;
  border-color: var(--color-primary);
}

@media (max-width: 767px) {
  #lightbox-grid {
    display: none !important;
  }
  #lightbox-carousel.active,
  #gallery-lightbox:not(.hidden) #lightbox-carousel {
    display: flex;
  }
}

/* === AFTERMOVIES MOBILE CAROUSEL === */
@media (max-width: 767px) {
  #aftermovies-grid .video-card {
    display: none;
  }
  #aftermovies-grid .video-card.carousel-active {
    display: block;
  }
}

/* === SECTION SEPARATOR === */
.section-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
