:root {
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #1a1a1a;
    --color-bg-tertiary: #2d2d2d;
    --color-bg-subtle: #151515;
    --color-text-primary: #e8e8e8;
    --color-text-secondary: #b8b8b8;
    --color-text-tertiary: #888888;
    --color-accent-gold: #d4af37;
    --color-accent-hover: #e8c468;
    --color-border: #333333;
    --color-border-subtle: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
}

header {
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-tertiary) 100%);
    color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.6);
    border-bottom: 1px solid var(--color-border);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    color: #fff;
}

.logo-image {
    height: 35px;
    width: auto;
}

.logo-text {
    color: #fff;
}

.logo-text span {
    color: var(--color-accent-gold);
}

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

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-gold);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover,
nav a.active {
    color: var(--color-accent-gold);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

main {
    min-height: calc(100vh - 200px);
}

.hero {
    background: linear-gradient(rgba(10,10,10,0.6), rgba(10,10,10,0.85)),
                url('../images/hero.jpg') center/cover;
    color: #fff;
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--color-text-primary);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, #c9965e 100%);
    color: var(--color-bg-primary);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: none;
}

.btn:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent-gold) 100%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.content-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-text-primary);
    font-weight: 300;
    letter-spacing: -0.01em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: linear-gradient(145deg, var(--color-bg-secondary) 0%, var(--color-bg-subtle) 100%);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border-subtle);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(212, 175, 55, 0.2);
}

.card h3 {
    color: var(--color-accent-gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

.card p {
    color: var(--color-text-secondary);
}

.film-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.film-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.film-info {
    padding: 1.5rem;
    background: var(--color-bg-secondary);
}

.film-info h3 {
    margin-bottom: 0.5rem;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-post-image {
    display: block;
    flex-shrink: 0;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
}

.blog-post-content {
    flex: 1;
}

@media (min-width: 769px) {
    .blog-post-card {
        flex-direction: row;
    }

    .blog-post-image {
        order: 2;
        flex: 0 0 280px;
    }

    .blog-post-image img {
        width: 280px;
        height: 280px;
    }

    .blog-post-content {
        order: 1;
    }
}

.post-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.post-nav a {
    flex: 1;
    min-width: 240px;
    padding: 1rem 1.25rem;
    background: linear-gradient(145deg, #1a1a1a 0%, #151515 100%);
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-nav a:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
}

.post-nav a.next,
.post-nav a.next .post-nav-label,
.post-nav a.next .post-nav-title {
    text-align: right;
}

.post-nav .post-nav-label {
    display: block;
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 0.3rem;
    font-weight: 400;
}

.post-nav .post-nav-title {
    display: block;
    color: #d4af37;
    font-weight: 500;
    line-height: 1.35;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--color-bg-subtle);
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1),
                inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

footer {
    background: var(--color-bg-primary);
    color: var(--color-text-secondary);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
}

footer p {
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: #fff;
    margin: 0 0.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-accent-gold);
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .logo {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
        gap: 0.3rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    .gallery {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .gallery img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
    }

    .film-card-with-poster > div:first-child {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
    }

    .film-card-with-poster > div:first-child > div:first-child {
        width: 100%;
    }

    .film-card-with-poster > div:first-child > div:last-child {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100%;
        max-height: 400px;
    }

    .film-card-with-poster > div:first-child > div:last-child img {
        max-width: 100%;
        height: auto;
    }

    .content-section {
        padding: 1.5rem 0 2rem 0 !important;
    }

    .card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Lightbox mobile adjustments */
    #lightbox-prev,
    #lightbox-next {
        font-size: 40px !important;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #lightbox-prev {
        left: 10px !important;
    }

    #lightbox-next {
        right: 10px !important;
    }

    #lightbox {
        padding: 10px;
    }

    #lightbox img {
        max-width: 95%;
        max-height: 80vh;
    }
}

@media (max-width: 400px) {
    .gallery {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .logo-image {
        height: 25px;
    }

    .hero h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .hero {
        padding: 4rem 0;
    }

    .film-card-with-poster > div:first-child > div:last-child {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }

    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    strong {
        display: inline;
    }

    p {
        font-size: 0.95rem;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure no horizontal scroll */
    .container {
        overflow-x: hidden;
    }

    /* Better button sizing for mobile */
    a.btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Improve spacing for cards on mobile */
    .card p {
        line-height: 1.7;
    }

    /* Ensure lightbox fits properly */
    #lightbox-img {
        width: 100% !important;
        height: auto !important;
    }
}

/* ========================================
   CINEMATIC ENHANCEMENTS
   ======================================== */

/* Typography enhancements */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: -0.01em;
}

h1 {
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--color-text-primary);
}

/* Image cinematic filter */
img:not(.logo-image) {
    filter: brightness(0.95) contrast(1.05);
    transition: filter 0.3s ease, transform 0.3s ease;
}

img:not(.logo-image):hover {
    filter: brightness(1) contrast(1.1);
}

/* Gallery hover effects */
.gallery img {
    border: 1px solid var(--color-border-subtle);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery img:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7),
                0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* Alternating section backgrounds */
.content-section:nth-of-type(odd) {
    background: var(--color-bg-primary);
}

.content-section:nth-of-type(even) {
    background: var(--color-bg-subtle);
}

/* Poster and featured image shadows */
.film-card-with-poster img,
.blog-post-image img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

/* Enhanced link styling */
a {
    color: var(--color-accent-gold);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

/* Strong tags with gold accent */
strong {
    color: var(--color-accent-gold);
    font-weight: 500;
}

/* Responsive text sizing */
h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Lightbox enhancements */
#lightbox {
    background-color: rgba(10, 10, 10, 0.95);
}

#lightbox-prev,
#lightbox-next,
#lightbox-close {
    color: var(--color-accent-gold);
    transition: color 0.3s ease, transform 0.3s ease;
}

#lightbox-prev:hover,
#lightbox-next:hover,
#lightbox-close:hover {
    color: var(--color-accent-hover);
    transform: scale(1.1);
}
