/* ============================================
   Films Page — EXCITING DESIGN
   United Venture Productions
   ============================================ */

.page-films {
  background: var(--bg-deep);
}

.page-films main {
  padding-top: 0;
}

/* Particles */
.page-particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.page-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  opacity: 0.12;
  animation: pageFloat 20s infinite;
}

.page-particle:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 28s; }
.page-particle:nth-child(2) { left: 28%; animation-delay: 4s; animation-duration: 32s; }
.page-particle:nth-child(3) { left: 52%; animation-delay: 2s; animation-duration: 26s; }
.page-particle:nth-child(4) { left: 72%; animation-delay: 6s; animation-duration: 30s; }
.page-particle:nth-child(5) { left: 92%; animation-delay: 3s; animation-duration: 24s; }

@keyframes pageFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.12; }
  90% { opacity: 0.12; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   Films Hero
   ============================================ */
.films-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(120px + env(safe-area-inset-top)) var(--space-md) var(--space-2xl);
  overflow: hidden;
  background: var(--bg-hero);
}

.films-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/file.jpeg') center / cover no-repeat;
  opacity: 0.2;
  animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.films-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 17, 23, 0.5) 0%, rgba(13, 17, 23, 0.8) 100%);
}

.films-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.films-hero .section-label {
  color: var(--accent-gold);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.films-title {
  font-family: var(--font-impact);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
  line-height: 0.9;
  color: var(--text-light);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: titleReveal 1s ease 0.4s forwards;
}

@keyframes titleReveal {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.films-intro {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

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

/* ============================================
   Featured Film Section
   ============================================ */
.featured-film {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-md);
  background: var(--bg-card);
}

.featured-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.featured-inner .section-label {
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
}

.featured-card {
  display: grid;
  gap: var(--space-xl);
  background: var(--bg-deep);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(212, 165, 55, 0.2);
}

@media (min-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr 1fr;
  }
}

.featured-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

@media (min-width: 900px) {
  .featured-image {
    aspect-ratio: auto;
    min-height: 500px;
  }
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-card:hover .featured-image img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.featured-play {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-gold);
  border-radius: 50%;
  color: var(--bg-dark);
  box-shadow: var(--shadow-gold);
  transition: all var(--transition);
}

.featured-play:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.featured-play svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.featured-status {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

.status-badge--distribution {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.featured-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-laurels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.laurel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.laurel svg {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
}

.laurel--winner {
  color: var(--accent-gold);
}

.featured-title {
  font-family: var(--font-impact);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-md);
  color: var(--text-primary);
}

.featured-logline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent-gold);
  margin: 0 0 var(--space-md);
  line-height: 1.4;
}

.featured-synopsis {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 var(--space-md);
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.meta-item {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-item strong {
  color: var(--text-primary);
}

.featured-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ============================================
   Projects Section
   ============================================ */
.projects-section {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-md);
  background: var(--bg-deep);
}

.projects-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.projects-inner .section-label {
  color: var(--accent-gold);
}

/* Filter Buttons */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.filter-btn.active {
  color: var(--bg-dark);
  background: var(--gradient-gold);
  border-color: var(--accent-gold);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.project-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(212, 165, 55, 0.3);
}

.project-card--featured {
  border-color: var(--accent-gold);
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hero);
  color: var(--accent-gold);
}

.project-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.5;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.project-link {
  padding: 0.8rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--gradient-gold);
  border-radius: 4px;
  transition: all var(--transition);
}

.project-link:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.project-status {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

.project-status--distribution {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.project-status--development {
  background: var(--accent-blue);
}

.project-status--production {
  background: var(--accent-teal);
}

.project-status--active {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.project-content {
  padding: var(--space-md);
}

.project-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}

.project-logline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.project-awards {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.award-badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 3px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.award-badge--gold {
  background: rgba(212, 165, 55, 0.15);
  color: var(--accent-gold);
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-md);
  background: var(--bg-card);
}

.services-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}

.services-inner .section-label {
  color: var(--accent-gold);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  text-align: left;
}

.service-card {
  padding: var(--space-xl);
  background: var(--bg-deep);
  border-radius: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: var(--space-md);
  color: var(--accent-gold);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   Films CTA
   ============================================ */
.films-cta {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-md);
  background: var(--bg-dark);
  text-align: center;
}

.films-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.films-cta .cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.films-cta .cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-light);
  margin: 0 0 var(--space-md);
}

.films-cta .cta-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0 0 var(--space-lg);
}

.films-cta .cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.page-films .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-films .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .page-particle {
    display: none;
  }

  .films-hero-bg {
    animation: none;
  }

  .films-hero .section-label,
  .films-title,
  .films-intro {
    opacity: 1;
    animation: none;
  }

  .page-films .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Mobile Adjustments
   ============================================ */
@media (max-width: 640px) {
  .featured-content {
    padding: var(--space-md);
  }

  .featured-laurels {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .project-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
  }

  .filter-btn {
    flex-shrink: 0;
  }
}
