/* Films Page - Dark Cinematic Theme */

:root {
    /* Dark Theme Colors */
    --background: #0a0a0a;
    --foreground: #f5f5f5;
    --card: #1a1a1a;
    --card-foreground: #f5f5f5;
    --primary: #dab900; /* Golden accent */
    --primary-foreground: #0a0a0a;
    --secondary: #2a2a2a;
    --secondary-foreground: #f5f5f5;
    --muted: #1f1f1f;
    --muted-foreground: #a1a1a1;
    --accent: #dab900;
    --accent-foreground: #0a0a0a;
    --border: #2a2a2a;
    --charcoal: #1a1a1a;
    --warm-light: #dab900;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: #a89100;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(218, 185, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--foreground);
    border: 2px solid var(--foreground);
}

.btn-outline-dark:hover {
    background-color: var(--foreground);
    color: var(--background);
}

.btn-white {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--muted-foreground);
    padding: 0.5rem 0;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--primary);
}

/* Section 1: Films Hero */
.films-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--charcoal);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8));
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: fadeUp 1s ease-out;

    /* Metallic gold gradient */
    background: linear-gradient(
        to bottom,
        #ffd700 0%,      /* bright gold top */
        #ffec8b 20%,     /* lighter highlight */
        #b38d31 50%,     /* mid-tone gold */
        #ffec8b 80%,     /* lighter highlight */
        #ffd700 100%     /* bright gold bottom */
    );

    /* Clip gradient to text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Stronger shadow for the larger 5rem text */
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.7));
}

.hero-subtitle {
    opacity: 0.9;
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    animation: fadeUp 1.2s ease-out;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    animation: fadeUp 1.4s ease-out;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section 2: Feature Film Spotlight */
.feature-spotlight {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.feature-poster {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}

.feature-poster.visible {
    opacity: 1;
    transform: translateX(0);
}

.poster-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(218, 185, 0, 0.2);
    border: 1px solid rgba(218, 185, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.poster-image:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(218, 185, 0, 0.3);
}

.feature-details {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.feature-details.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--warm-light);
    color: var(--charcoal);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.feature-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.meta-separator {
    color: rgba(255, 255, 255, 0.4);
}

.feature-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--warm-light);
    margin-bottom: 1.5rem;
}

.feature-synopsis {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-credits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: rgba(218, 185, 0, 0.05);
    border: 1px solid rgba(218, 185, 0, 0.1);
    border-radius: 0.5rem;
}

.credit-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.credit-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(218, 185, 0, 0.8);
}

.credit-name {
    font-size: 0.9375rem;
    color: white;
}

.feature-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Section 3: Short Films Gallery */
.short-films {
    padding: 6rem 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;

    /* Metallic gold gradient */
    background: linear-gradient(
        to bottom,
        #ffd700 0%,      /* bright gold top */
        #ffec8b 20%,     /* lighter highlight */
        #b38d31 50%,     /* mid-tone gold */
        #ffec8b 80%,     /* lighter highlight */
        #ffd700 100%     /* bright gold bottom */
    );

    /* Clip gradient to text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Drop-shadow for readability on lighter backgrounds */
    filter: drop-shadow(0 3px 6px rgba(62, 12, 16, 0.3));
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    font-weight: 300;
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.film-card {
    background-color: var(--card);
    border: 1px solid rgba(218, 185, 0, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.7s ease-out;
    margin: 0 auto;
    max-width: 100%;
}

.film-card.visible {
    opacity: 1;
    transform: scale(1);
}

.film-card:hover {
    box-shadow: 0 25px 50px rgba(218, 185, 0, 0.2);
    border-color: rgba(218, 185, 0, 0.3);
}

.film-poster-wrap {
    position: relative;
    width: 350px;
    height: 500px;
    border-radius: 0.75rem 0.75rem 0 0;
    overflow: hidden;
    margin: 0 auto 0 auto;
}

.film-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.film-card:hover .film-poster {
    transform: scale(1.05);
}

.film-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.film-card:hover .film-overlay {
    opacity: 1;
}

.film-info {
    padding: 2rem;
    color: white;
}

.film-tagline {
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--warm-light);
    margin-bottom: 0.75rem;
}

.film-synopsis-short {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.film-credits-short {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.film-credits-short p {
    margin-bottom: 0.25rem;
}

.film-buttons-overlay {
    display: flex;
    gap: 0.75rem;
}

.film-card-footer {
    padding: .5rem;
    background: linear-gradient(135deg, var(--primary), #a89100);
}

.film-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-foreground);
    
    text-align: center;
}

.film-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9375rem;
}

.meta-dot {
    color: rgba(0, 0, 0, 0.5);
}

.section-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 3rem;
}

/* Section 4: Philosophy Strip */
.philosophy-strip {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

.philosophy-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(218, 185, 0, 0.03) 2px,
        rgba(218, 185, 0, 0.03) 4px
    );
    animation: filmGrain 8s steps(10) infinite;
}

@keyframes filmGrain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

.philosophy-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-quote {
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: white;
    line-height: 1.5;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .films-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .film-poster-wrap {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .philosophy-quote {
        font-size: 1.75rem;
    }
    
    .film-poster-wrap {
        height: 380px;
    }
}

@media (max-width: 480px) {
    .film-poster-wrap {
        height: 320px;
    }
}