/* ==========================================
   JACKIE CHAN FAN SITE — MAIN STYLES
   Dark cinematic theme with gold accents
   ========================================== */

:root {
  --black: #0a0a0f;
  --dark: #0f0f18;
  --dark-mid: #14141f;
  --dark-card: #1a1a28;
  --gold: #c9a227;
  --gold-light: #f0c040;
  --gold-dark: #a07c10;
  --red: #c0392b;
  --red-bright: #e74c3c;
  --white: #f5f5f0;
  --gray: #8888a0;
  --gray-light: #b0b0c0;
  --font-heading: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   NAV
   ========================================== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 32px rgba(0,0,0,0.7);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(8deg);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold-light);
  transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */

#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-police-story.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.85) 0%,
    rgba(10, 10, 15, 0.55) 50%,
    rgba(10, 10, 15, 0.75) 100%
  );
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--black), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.5);
  padding: 0.35rem 1.1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 16vw, 13rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  color: var(--white);
  text-shadow: 0 4px 60px rgba(0,0,0,0.8), 0 0 120px rgba(201,162,39,0.15);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s 0.4s forwards;
}

.hero-title span {
  color: var(--gold-light);
  display: block;
}

.hero-tagline {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.65s forwards;
}

.hero-tagline em {
  color: var(--gold);
  font-style: normal;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 30px rgba(201, 162, 39, 0.35);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-cta svg {
  transition: transform var(--transition);
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(201, 162, 39, 0.55);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(201, 162, 39, 0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse-dot {
  width: 3px;
  height: 7px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

/* ==========================================
   SECTION COMMONS
   ========================================== */

section {
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-title .gold {
  color: var(--gold-light);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

#about {
  background: var(--dark);
  padding: 7rem 0 5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text .section-label {
  margin-bottom: 0.75rem;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-light);
  margin: 1.5rem 0 2.5rem;
}

.about-bio strong {
  color: var(--white);
}

.about-bio em {
  color: var(--gold);
  font-style: normal;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.stat-card {
  background: var(--dark-card);
  border: 1px solid rgba(201, 162, 39, 0.12);
  border-radius: 4px;
  padding: 1.4rem 1rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.stat-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.4rem;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-gallery-img {
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 1;
  background: var(--dark-card);
}

.about-gallery-img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

.about-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-gallery-img:hover img {
  transform: scale(1.07);
}

/* ==========================================
   FILMOGRAPHY SECTION
   ========================================== */

#filmography {
  background: var(--black);
  padding: 6rem 0;
}

.filmography-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.filmography-header .section-label {
  justify-content: center;
}

.filmography-header .section-label::before {
  display: none;
}

.filmography-header .section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.films-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.film-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.film-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,162,39,0.3);
}

.film-card-img {
  aspect-ratio: 1;
  overflow: hidden;
}

.film-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.film-card:hover .film-card-img img {
  transform: scale(1.1);
}

.film-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.98) 0%, rgba(10,10,15,0.3) 55%, transparent 100%);
  opacity: 0.7;
  transition: opacity var(--transition);
}

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

.film-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  transform: translateY(4px);
  transition: transform var(--transition);
}

.film-card:hover .film-card-content {
  transform: translateY(0);
}

.film-year {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.film-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.film-desc {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--gray-light);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.film-card:hover .film-desc {
  opacity: 1;
  transform: translateY(0);
}

.film-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

.film-rating-star {
  color: var(--gold);
  font-size: 0.75rem;
}

.film-rating-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

/* ==========================================
   ACTION GALLERY
   ========================================== */

#gallery {
  background: var(--dark);
  padding: 6rem 0;
}

.gallery-header {
  margin-bottom: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 0.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  background: var(--dark-card);
}

.gallery-item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  aspect-ratio: 16/9;
}

.gallery-item:nth-child(2) {
  grid-column: 3 / 4;
  aspect-ratio: 1;
}

.gallery-item:nth-child(3) {
  grid-column: 4 / 5;
  aspect-ratio: 1;
}

.gallery-item:nth-child(4) {
  grid-column: 1 / 2;
  aspect-ratio: 1;
}

.gallery-item:nth-child(5) {
  grid-column: 2 / 3;
  aspect-ratio: 1;
}

.gallery-item:nth-child(6) {
  grid-column: 3 / 5;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(10,10,15,0.5);
}

.gallery-zoom-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.gallery-zoom-icon svg {
  color: var(--black);
}

/* ==========================================
   LIGHTBOX
   ========================================== */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

#lightbox.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold-light);
  transition: background var(--transition);
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(201,162,39,0.35);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold-light);
  transition: background var(--transition);
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(201,162,39,0.35);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ==========================================
   FOOTER
   ========================================== */

#footer {
  background: var(--dark-mid);
  border-top: 1px solid rgba(201,162,39,0.12);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}

.footer-brand .nav-logo {
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.6;
  max-width: 260px;
}

.footer-links-group h4 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  font-size: 0.85rem;
  color: var(--gray-light);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links-list a:hover {
  color: var(--gold-light);
}

.footer-links-list a svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray);
}

.footer-copy span {
  color: var(--gold);
}

.footer-signature {
  height: 28px;
  width: auto;
  opacity: 0.6;
  filter: brightness(0) invert(1) sepia(1) saturate(1.5) hue-rotate(5deg);
}

/* ==========================================
   DIVIDER
   ========================================== */

.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1rem 0 2rem;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

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

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
  .films-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,15,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .films-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: 1 / -1;
  }

  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: auto;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .films-grid {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-item:nth-child(n) {
    grid-column: 1 / -1;
  }
}
