/* General Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}


:root {
    --base: #031515;
    --yellow: #D79600;
    --white: #fff;
    --blue: #1a3685;
    --font-primary: 'Outfit', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-primary);
    background-color: #f5f5f5;
    color: var(--base);
    line-height: 1.6;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--base);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo_container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 78px;
    margin-right: 0.5rem;
}

.logo_text {
    color: var(--yellow);
    font-weight: bold;
    font-size: 1.25rem;
}

.nav_bar {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.menu a:hover {
    color: var(--yellow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.3rem;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--yellow);
    transition: transform 0.3s ease-in-out;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .logo_text {
        display: none;
    }

    .logo {
        display: flex;
        width: 100px;
    }

    .menu {
        display: none;
        
    }

    .menu[data-visible="true"] {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 1rem;
        background-color: var(--base);
        border: 1px solid var(--yellow);
        border-radius: 10px;
        width: 250px; /* Adjust as needed */
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
        align-items: stretch; /* Ensures buttons are the same width */
        z-index: 1000;
        padding: 0.5rem;
    }

    .menu[data-visible="true"] a {
        padding: 0.5rem 1rem;
        text-align: center;
        border-radius: 0;
        width: 100%;
        display: block;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .menu[data-visible="true"] a:hover {
        background-color: var(--yellow);
        color: var(--base);
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .menu {
        display: none;
    }

    .menu[data-visible="true"] {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 1rem;
        background-color: var(--base);
        border: 1px solid var(--yellow);
        border-radius: 10px;
        width: 250px; /* Adjust as needed */
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        padding: 0.5rem 0;
    }

    .menu[data-visible="true"] a {
        padding: 0.75rem 1rem;
        text-align: center;
        border-radius: 0; /* No border radius for full-width effect */
        width: 100%;
        display: block; /* Ensures the link takes the full width */
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .menu[data-visible="true"] a:hover {
        background-color: var(--yellow);
        color: var(--base);
    }

    .hamburger {
        display: flex;
    }
}



/* Hero Section */
.hero {
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/assests/pexels-alxs-927444.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 20px;
}

/* Button styles */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.btn {
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 2px solid white;
    color: white;
    background-color: transparent;
    transition: all 0.3s ease;
    display: inline-block;
    width: 200px;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    border-color: white;
}

.btn-secondary {
    border-color: white;
}

.btn:hover {
    background-color: var(--yellow);
    color: var(--base);
}

/* Highlights styles */
.highlights {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.highlights div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 250px;
    }

    .highlights {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}


#short-movies {
    padding: 2rem 1rem;
    background-color: var(--base);
    position: relative;
    overflow: hidden; /* Prevent overflow of items */
}
#short-movies h2 {
    text-align: center;
    margin-bottom: 2rem; /* Adds space between heading and content */
    color: var(--yellow); /* Ensure the heading is visible */
    font-size: 2rem; /* Adjust font size for better visibility */
}

.movie-container {
    display: flex;
    gap: 1rem;
    animation: scroll 20s linear infinite;
    width: calc(200px * 12);
}

.movie-container:hover {
    animation-play-state: paused; /* Stop scrolling on hover */
}

.movie-item {
    flex: 0 0 auto;
    width: 250px; /* Keep original size */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: scale(0.95); /* Original hover zoom effect */
    opacity: 0.8;
    cursor: pointer;
}

.movie-item:hover {
    transform: scale(1); /* Original hover zoom effect */
    opacity: 1;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.movie-poster {
    width: 100%; /* Ensure image fills container width */
    height: 350px; /* Keep original height */
    object-fit: cover;
    transition: transform 0.3s ease; /* Original hover zoom effect for image */
}

.movie-item:hover .movie-poster {
    transform: scale(1.05);
}

.movie-title {
    display: none;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.movie-item:hover .movie-title {
    color: var(--yellow); /* Original hover effect for title */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%); /* Full container scroll */
    }
}
.movie-container::after {
    content: '';
    display: flex;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    #short-movies h2 {
        font-size: 2rem;
    }
    .movie-container {
        animation: scroll 20s linear infinite; /* Increase speed for mobile view */
    }

    .movie-item {
        height: 250px;
        width: 250px; /* Decrease size for mobile view */
    }
    
    .movie-poster {
        height: 200px; /* Reduce height for mobile view */
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100%); /* Full container scroll */
        }
    }
}

@media (max-width: 480px) {
    .movie-container {
        animation: scroll 20s linear infinite; /* Increase speed for mobile view */
    }

    .movie-item {
        height: 250px;
        width: 250px; /* Decrease size for mobile view */
    }
    
    .movie-poster {
        height: 200px; /* Reduce height for mobile view */
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100%); /* Full container scroll */
        }
    }
}



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    font-family: 'Outfit', sans-serif;
}

.modal-content {
    background-color: var(--base);
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.close-btn {
    color: var(--yellow);
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #666;
}

#modalMovieTitle {
    color: var(--yellow);
    margin-bottom: 15px;
    font-size: 24px;
}

#modalMovieDescription {
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 20px;
}

#modalWatchLink {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: black;
    background-color: var(--yellow);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#modalWatchLink:hover {
    background-color: var(--yellow);
    transition: transform 0.3s ease;
}

.movie-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.movie-item:hover {
    transform: scale(1.05);
}

#upcoming-movies {
    padding: 2rem 1rem;
    background-color: var(--base);
}

#upcoming-movies h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--yellow);
    font-size: 2rem;
    animation: fadeIn 1s ease-in-out; /* Fade-in animation for the title */
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.movie-card {
    background-color: #666;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(20px); /* Starting position for animation */
    opacity: 0; /* Start invisible */
    animation: slideUp 0.5s ease forwards; /* Slide-up animation */
}

.movie-card:nth-child(odd) {
    animation-delay: 0.2s; /* Slight delay for odd-numbered cards */
}

.movie-card:nth-child(even) {
    animation-delay: 0.4s; /* Slight delay for even-numbered cards */
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .poster {
    transform: scale(1.1);
}

.movie-title {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
    color: var(--base);
}

.movie-description {
    font-size: 1rem;
    padding: 0 1rem 1rem;
    color: var(--base);
}

/* Responsive Design */
@media (max-width: 1200px) {
    #upcoming-movies h2 {
        font-size: 2rem; /* Slightly smaller title */
    }

    .movie-title {
        font-size: 1.3rem;
    }

    .movie-description {
        font-size: 0.95rem;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Smaller grid items */
    }
}

@media (max-width: 768px) {
    .upcoming-movies h2 {
        font-size: 2rem; /* Adjust for medium screens */
    }

    .movie-title {
        font-size: 1.2rem;
    }

    .movie-description {
        font-size: 0.9rem;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust grid for mobile */
    }

    .movie-card {
        padding: 1rem; /* Smaller padding for cards */
    }

    .poster {
        height: 250px; /* Reduce poster size */
    }
}

@media (max-width: 480px) {
    .upcoming-movies h2 {
        font-size: 1.4rem; /* Smaller title for very small screens */
    }

    .movie-title {
        font-size: 1.1rem;
    }

    .movie-description {
        font-size: 0.85rem; /* Smaller description for mobile screens */
    }

    .movies-grid {
        grid-template-columns: 1fr; /* Single column layout for small screens */
    }

    .poster {
        height: 200px; /* Further reduce poster size */
    }
}

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


.modal-upcoming {
    align-items: center;
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    font-family: 'Outfit', sans-serif;
}

.modal-content-upcoming {
    color: var(--yellow);
    background-color: var(--base);
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden; /* Prevents overflow issues */
}

.modal-body-upcoming {
    display: flex;
    flex-wrap: wrap; /* Allows the poster and details to stack on smaller screens */
    gap: 20px;
    justify-content: center; /* Centers content on smaller screens */
}

.modal-poster-upcoming {
    max-width: 270px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px; /* Adds spacing below the poster for small screens */
}

.modal-details-upcoming {
    flex-grow: 1;
    min-width: 200px; /* Ensures the details section has a minimum width */
    text-align: left; /* Align text to the left for better readability */
}

.modal-title-upcoming {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.modal-genre-upcoming,
.modal-description-upcoming {
    align-items: center;
    color: var(--white);
    font-size: 1em;
    margin-bottom: 10px;
}

.close-btn-upcoming {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: var(--yellow);
    cursor: pointer;
    background: none;
    border: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-content-upcoming {
        width: 90%;
        padding: 20px;
    }

    .modal-title-upcoming {
        font-size: 1.6em;
    }

    .modal-poster-upcoming {
        max-width: 100%;
    }

    .modal-details-upcoming {
        min-width: 0; 
        text-align: center; 
    }

    .modal-body-upcoming {
        flex-direction: column; 
        align-items: center; 
    }

    .close-btn-upcoming {
        top: 5px;
        right: 5px;
        font-size: 1.2em; 
    }
}

@media (max-width: 480px) {
    .modal-content-upcoming {
        width: 95%; 
        padding: 15px;
    }

    .modal-title-upcoming {
        font-size: 1.4em; 
    }

    .modal-genre-upcoming,
    .modal-description-upcoming {
        font-size: 0.9em; 
    }

    .close-btn-upcoming {
        font-size: 1.1em; 
    }
}

/* Keyframes for animations */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* About Us Section */
.about-us {
    background-color: var(--base);
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.about-us h2 {
    font-size: 2rem;
    color: var(--yellow);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-description,
.about-sub-description {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 auto 1.5rem;
    max-width: 700px;
}

.read-more-btn {
    background-color: transparent;
    color: var(--white);
    font-weight: bold;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    border: 2px solid white;;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.read-more-btn:hover {
    transform: scale(1.05);
    color: var(--base);
    background-color: var(--yellow);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Section */
.footer {
    background: linear-gradient(180deg, #031515, #222020);
    color: var(--yellow);
    padding: 2rem 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--yellow);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: #ffcc00;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
    transform: scale(1.2);
}

.footer-copy {
    font-size: 0.9rem;
    color: #bbb;
    margin-top: 1rem;
}

.footer-copy strong {
    color: #ffcc00;
}

/* Page Transition Styles */
#page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black; /* Matches the theme */
    z-index: 9999;
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Prevent interference */
    transition: opacity 0.5s ease-in-out;
}

#page-transition.active {
    opacity: 1; /* Make it visible */
    pointer-events: all;
}
