/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700&family=Roboto:wght@400;700&display=swap');

/* CSS Variables for easier theme management */
:root {
    --dark-bg: #0a192f; /* Deep Space Blue/Grey */
    --medium-dark-bg: #112240; /* Slightly Lighter Dark Blue */
    --light-text: #ccd6f6; /* Light Grey/Blue Text */
    --medium-text: #8892b0; /* Greyer Text */
    --accent-color: #64ffda; /* Bright Emerald/Teal */
    --accent-hover: #7affef;
    --accent-darker: #00a884; /* Darker shade for contrast */
    --header-bg: rgba(10, 25, 47, 0.85); /* Semi-transparent header */
    --glow-color: rgba(100, 255, 218, 0.3); /* Glow effect for accent */

    --heading-font: 'Exo 2', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Общие стили */
*, *::before, *::after {
    box-sizing: border-box; /* More predictable sizing */
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23112240' fill-opacity='0.2'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px; /* Added horizontal padding inside container */
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--accent-color);
    text-align: center;
    margin: 0 0 40px 0;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.5em, 5vw, 4em);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
}

h2 {
    font-size: clamp(2em, 4vw, 2.8em);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
}

h3 {
    font-size: clamp(1.5em, 3vw, 1.8em);
    margin-bottom: 20px;
    color: var(--light-text);
}

/* Specific H3 adjustments */
.news-item h3 {
    color: var(--accent-color);
    text-align: left;
    margin-top: 0; /* Reset top margin for news items */
    margin-bottom: 8px; /* Adjust spacing */
    font-size: 1.4em;
    border-bottom: none; /* Ensure no default H3 border */
    padding-bottom: 0; /* Ensure no default H3 padding */
}
.movie-details h3 {
     color: var(--accent-color);
     text-align: left;
     margin-bottom: 20px;
     border-bottom: 1px solid var(--accent-darker);
     padding-bottom: 10px;
}
/* Removed Cast/Crew h3 styles as section isn't present */

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 8px var(--glow-color);
}

.btn {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 12px 28px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 25px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center; /* Ensure text centers if button wraps */
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-3px);
}

.btn-small { /* Kept in case it's used later */
    display: inline-block;
    background-color: var(--accent-darker);
    color: var(--light-text);
    border: none;
    padding: 8px 15px;
    text-transform: uppercase;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-small:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    transform: scale(1.03);
}

/* General Section Styling */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    position: relative; /* Needed for potential pseudo-elements & background */
    overflow: hidden; /* Prevent pseudo-elements/background from overflowing */
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.dark-section {
    background-color: var(--medium-dark-bg); /* Static color if no parallax */
}

/* Parallax Background Styling (Hero + Other Sections) */
.hero-background,
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* PARALLAX EFFECT */
    z-index: -2; /* Behind overlay */
    pointer-events: none; /* Prevent interaction */
}

/* Overlay for Parallax Sections */
#hero::before,
#trailer::before,
#screenings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.6), rgba(10, 25, 47, 0.95)); /* Adjusted gradient */
    z-index: -1; /* Between background and content */
    pointer-events: none; /* Prevent interaction */
}

/* Header стили */
header {
    background-color: var(--header-bg);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px; /* Reduced top/bottom padding */
    padding-bottom: 5px;
}

.logo img {
    height: 45px;
    transition: transform 0.3s ease;
    display: block; /* Fix potential spacing issues */
    vertical-align: middle; /* Better alignment */
}
.logo img:hover {
    transform: scale(1.1);
}

/* Navigation Styles */
nav#main-nav ul { /* Target specific nav */
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav#main-nav ul li {
    margin-left: 25px;
}

nav#main-nav a {
    color: var(--light-text);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

nav#main-nav a::after { /* Underline effect on hover */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%; /* Start from center */
    transform: translateX(-50%); /* Center align */
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav#main-nav a:hover {
    color: var(--accent-color);
}

nav#main-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle Button */
#menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001; /* Above header content */
    margin: 0; /* Reset margin */
}

#menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px 0;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

#menu-toggle:hover span {
    background-color: var(--accent-color);
}

/* Styles for when mobile menu is open (toggled by JS) */
#menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
#menu-toggle.active span {
    background-color: var(--accent-color); /* Keep accent color when active */
}


/* Hero секция */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px; /* Add padding to account for fixed header */
    padding-bottom: 40px; /* Space at the bottom */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%; /* Use full width of container */
    padding: 0;
}

#hero h1 {
    font-size: clamp(2.8em, 8vw, 5em); /* Adjusted clamp for better scaling */
    color: #fff;
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.5), 0 0 25px rgba(100, 255, 218, 0.5);
    margin-bottom: 15px;
}

#hero p {
    font-size: clamp(1em, 2.5vw, 1.2em); /* Responsive subtitle */
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 600px; /* Limit width of subtitle */
    margin-left: auto;
    margin-right: auto;
}

/* Анимации для Hero секции (unchanged) */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

.slide-up {
     opacity: 0;
    animation: slideUp 1.2s ease-out forwards;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }


/* Hero Gallery - Fixed 3 Columns */
.hero-gallery {
    margin-top: 50px;
    display: grid; /* Ensure display is grid */
    grid-template-columns: repeat(3, 1fr); /* Always 3 equal columns */
    gap: 10px;
    opacity: 0; /* Start hidden for animation */
    transform: translateY(30px); /* Start lower for animation */
    width: 100%;
}

.hero-gallery.visible { /* Use .visible class from Intersection Observer */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out 0.8s, transform 1s ease-out 0.8s;
}
/* Remove duplicated slide-up animation on gallery itself if JS handles it */
/*
.hero-gallery.slide-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out 0.8s, transform 1s ease-out 0.8s;
}
*/

.hero-gallery img {
    border-radius: 4px;
    width: 100%; /* Occupy full grid cell width */
    height: auto; /* Allow height to adjust based on aspect ratio */
    aspect-ratio: 16 / 9; /* Force aspect ratio (adjust 16/9 as needed) */
    object-fit: cover; /* Cover the area, maintain aspect ratio */
    display: block; /* Remove potential bottom space */
    box-sizing: border-box; /* Include padding/border in width */
}

/* General Gallery Grid Styles (kept for potential future use) */
.gallery-grid {
    display: grid;
    gap: 15px; /* Example default */
}

.gallery-grid a { /* Styles specifically for linked gallery items */
    display: block;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease; /* Add smooth transform */
}
.gallery-grid a:hover {
    transform: scale(1.03); /* Slight scale on hover */
}


.gallery-grid img { /* Default styles for images within any .gallery-grid */
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px; /* Match link radius */
    transition: opacity 0.4s ease;
    /* Removed transform from img, moved to link */
}

.gallery-grid a:hover img {
    opacity: 0.85; /* Slightly dim on hover */
}


/* About секция */
#about {
    padding-top: 80px; /* Ensure content below header */
}
#about p {
    margin-bottom: 25px;
    text-align: center;
    color: var(--medium-text);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
#about .message-from-gennady-intro {
     text-align: center;
     font-style: italic;
     color: var(--light-text);
     margin-bottom: 30px;
}

.author-intro {
    text-align: center;
    margin-bottom: 50px; /* Increased margin */
    position: relative; /* Needed for pseudo-element positioning */
}

.author-intro img {
    max-width: 150px;
    width: 100%; /* Ensure it scales down */
    height: auto; /* Maintain aspect ratio */
    aspect-ratio: 1 / 1; /* Make it square before potentially clipping */
    object-fit: cover; /* Cover the square area */
    margin-bottom: 15px; /* Space below image */
    /* Removed border and border-radius */
    display: inline-block; /* Center properly */
    position: relative; /* Context for pseudo-element if needed */
    z-index: 1; /* Ensure image is above pseudo-element */
}

/* NEW: Sketchy border effect */
.author-intro img::after {
    content: '';
    position: absolute;
    /* Adjust offsets to control border distance */
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    /* Border style */
    border: 3px solid var(--accent-darker);
    /* Tilt effect */
    transform: rotate(-4deg);
    z-index: 0; /* Behind the image */
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.author-intro:hover img::after {
    border-color: var(--accent-color);
    transform: rotate(-2deg) scale(1.02); /* Subtle hover effect */
}


.author-intro p {
    margin-top: 0; /* Adjusted margin */
    color: var(--light-text);
    font-weight: bold;
    text-align: center;
}

.movie-details {
    background-color: var(--medium-dark-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
    margin-top: 40px;
     box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.movie-details ul {
    list-style: none;
    padding: 0;
    margin: 0; /* Reset margin */
    text-align: left;
}

.movie-details li {
    margin-bottom: 12px;
    color: var(--medium-text);
}
.movie-details li:last-child {
    margin-bottom: 0; /* Remove margin from last item */
}
.movie-details li strong {
    color: var(--light-text);
    min-width: 100px;
    display: inline-block;
    margin-right: 10px; /* Space between label and value */
}


/* Trailer секция */
#trailer {
    padding-top: 100px;
    padding-bottom: 100px;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 20px auto 0 auto;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-darker);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
#trailer p {
    text-align: center;
    margin-top: 30px;
    color: var(--light-text); /* Lighter text for contrast on overlay */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Stronger shadow for readability */
    max-width: 700px; /* Limit width */
    margin-left: auto;
    margin-right: auto;
}

/* Removed Cast section styles as it's not in HTML */


/* News секция */
#news {
    /* Standard section padding */
}
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: var(--medium-dark-bg);
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
    border-left: 4px solid var(--accent-darker);
    display: flex; /* Use flexbox for better structure */
    flex-direction: column; /* Stack elements vertically */
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-left-color: var(--accent-color);
}

.news-date {
    font-size: 0.8em;
    color: var(--medium-text);
    margin-bottom: 10px; /* Reduced margin */
    display: block;
}

.news-item h3 { /* Re-applied styles from global H3 resets if needed */
     font-size: 1.4em;
     margin-bottom: 8px;
     text-align: left;
     color: var(--accent-color);
     border-bottom: none;
     padding-bottom: 0;
}

.news-item p {
    margin-bottom: 20px;
    text-align: justify;
    color: var(--medium-text);
    flex-grow: 1; /* Allow paragraph to take available space */
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9em;
    margin-top: auto; /* Push to bottom */
    align-self: flex-start; /* Align to left */
}
.read-more:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.news-item.placeholder {
    opacity: 0.7; /* Slightly more visible */
    border-left-color: var(--medium-text);
}
.news-item.placeholder:hover {
    transform: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    border-left-color: var(--medium-text);
}

#news > .container > p:first-of-type { /* Target the introductory paragraph */
    text-align: center;
    color: var(--medium-text);
    margin-bottom: 40px; /* Increased space */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.news-cta {
    text-align: center;
    margin-top: 40px;
}


/* Screenings секция */
#screenings {
    padding-top: 100px;
    padding-bottom: 100px;
}

#screenings > .container > p:first-of-type { /* Target the introductory paragraph */
    text-align: center;
    color: var(--light-text); /* Lighter text for contrast on overlay */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Stronger shadow for readability */
    margin-bottom: 40px; /* Increased space */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.screenings-cta {
    text-align: center;
    margin-top: 40px;
}
/* Make button text readable on parallax overlay */
#screenings .screenings-cta .btn {
    text-shadow: none; /* Remove potential inherited shadow */
    box-shadow: 0 0 15px var(--glow-color), 0 2px 4px rgba(0,0,0,0.4); /* Add glow and subtle dark shadow */
}
#screenings .screenings-cta .btn:hover {
    box-shadow: 0 0 20px var(--glow-color), 0 4px 8px rgba(0,0,0,0.5);
    transform: translateY(-3px); /* Keep hover effect */
    background-color: var(--accent-color); /* Keep hover effect */
    color: var(--dark-bg); /* Keep hover effect */
}


/* Contact секция */
#contact {
     /* Standard section padding */
     padding-bottom: 80px; /* Ensure space before footer */
}
#contact > .container > p:first-of-type { /* Target the introductory paragraph */
    text-align: center;
    color: var(--medium-text);
    margin-bottom: 40px; /* Increased space */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.social-media {
    text-align: center;
    margin-top: 30px;
}

.social-media a {
    display: inline-block;
    margin: 0 15px;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-media img {
    width: 50px;
    height: 50px;
    filter: grayscale(50%) contrast(1.2);
    transition: filter 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease; /* Added transitions */
    border-radius: 50%; /* Start slightly rounded */
}

.social-media a:hover {
    transform: scale(1.15) translateY(-3px);
    opacity: 1;
}
.social-media a:hover img {
     filter: none; /* Remove grayscale on hover */
     box-shadow: 0 0 10px var(--glow-color);
     border-radius: 50%; /* Ensure it's fully round on hover */
}


/* Footer стили */
footer {
    background-color: #040f21; /* Slightly different dark shade */
    color: var(--medium-text);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
    margin-top: 60px; /* Space above footer */
    border-top: 1px solid var(--medium-dark-bg);
}

footer p {
    margin: 8px 0;
}

footer a {
    color: var(--medium-text);
    text-decoration: underline;
    text-decoration-color: var(--accent-darker);
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration-color: var(--accent-color);
    text-shadow: none; /* Remove inherited shadow */
}


/* Медиа-запросы для адаптивности */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }
     /* Adjust parallax sections padding for smaller screens */
    #trailer, #screenings {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .author-intro img {
        max-width: 130px; /* Slightly smaller author photo */
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.6; /* Adjust line height slightly */
    }
    h1 { font-size: clamp(2.2em, 7vw, 3.2em); } /* Adjust clamp */
    h2 { font-size: clamp(1.8em, 5vw, 2.2em); }

    header .container {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    /* Show Menu Toggle Button */
    #menu-toggle {
        display: block; /* Show burger */
    }

    /* Mobile Navigation Styles */
    nav#main-nav {
        display: none; /* Hide nav by default */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--header-bg); /* Use header background */
        backdrop-filter: blur(5px); /* Keep blur effect */
        -webkit-backdrop-filter: blur(5px);
        padding: 20px 0 25px 0; /* More padding */
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        border-top: 1px solid var(--medium-dark-bg);
        /* Add animation */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    }

    nav#main-nav.nav-open {
        display: block; /* Needed for transition */
        max-height: 500px; /* Allow height to expand */
        opacity: 1;
    }

    nav#main-nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    nav#main-nav ul li {
        margin: 0; /* Remove horizontal margin */
        margin-left: 0;
    }
    nav#main-nav a {
        display: block; /* Make links take full width */
        padding: 15px 20px; /* Larger touch target */
        font-size: 1em; /* Slightly larger font */
        border-bottom: 1px solid rgba(136, 146, 176, 0.1); /* Subtle separator */
    }
     nav#main-nav ul li:last-child a {
        border-bottom: none; /* Remove border from last item */
     }
    nav#main-nav a::after {
        display: none; /* Remove underline effect on mobile */
    }
    nav#main-nav a:hover {
        background-color: rgba(100, 255, 218, 0.1); /* Subtle hover background */
        color: var(--accent-color); /* Keep accent color */
    }
    /* --- End Mobile Nav --- */

    #hero {
        padding-top: 70px; /* Adjust for header height */
        min-height: 90vh; /* Slightly less than full height */
    }

    .section {
        padding: 60px 0;
    }
     /* Adjust parallax sections padding */
    #trailer, #screenings {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* News list switches to single column */
    .news-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-gallery {
        margin-top: 40px;
        gap: 8px; /* Slightly smaller gap */
    }

    .author-intro img {
        max-width: 120px;
    }
    .movie-details {
        padding: 25px;
    }
}

@media (max-width: 480px) {
     body {
        font-size: 15px; /* Base font size */
     }
     h1 { font-size: clamp(2em, 8vw, 2.5em); } /* Adjust clamp */
     h2 { font-size: clamp(1.6em, 6vw, 2em); }
     h3 { font-size: clamp(1.3em, 5vw, 1.5em); }


    .btn {
        padding: 12px 20px; /* Adjust padding */
        font-size: 0.9em;
        width: 90%; /* Make button wider */
        max-width: 300px; /* But not excessively wide */
        margin-left: auto;
        margin-right: auto;
        display: block; /* Make it block to center */
    }
    .news-cta .btn,
    .screenings-cta .btn {
        width: 90%; /* Ensure CTA buttons are also wider */
        max-width: 300px;
    }

    .logo img {
        height: 40px; /* Smaller logo */
    }
    #hero {
        padding-bottom: 30px;
        padding-top: 65px; /* Adjust for smaller header */
     }
    .hero-content p {
        font-size: 1em; /* Ensure readability */
        padding: 0 10px; /* Add padding if text gets too wide */
    }
    .hero-gallery {
        gap: 5px; /* Smaller gap */
        margin-top: 30px;
    }

     .movie-details {
        padding: 20px;
     }
     .movie-details li strong {
        min-width: 80px; /* Adjust label width */
        margin-right: 5px;
     }

     .social-media a {
        margin: 0 10px;
     }
     .social-media img {
        width: 32px;
        height: 32px;
     }
     footer {
        padding: 20px 0;
        font-size: 0.85em;
     }
}

/* Animation helper class (unchanged) */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}