/* 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: var(--base);
    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;
    }
}

/* Section Styles */
section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--yellow);
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 600;
}

/* Movie Grid Styles */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Movie Card Styles */
.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(215, 150, 0, 0.2);
}

/* Movie Image Styles */
.movie-image {
    width: 100%;
    height: 375px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    transform-origin: center;
}

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

/* Movie Info Styles */
.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(
        transparent,
        rgba(3, 21, 21, 0.8) 20%,
        rgba(3, 21, 21, 0.95)
    );
    color: var(--white);
    transform: translateY(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.movie-card:hover .movie-info {
    transform: translateY(-10px);
}

/* Movie Title Styles */
.movie-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--white);
    font-family: var(--font-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

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

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .movie-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .movie-image {
        height: 300px;
    }
}

/* 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;
}
