@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Indie+Flower&display=swap');

/* General Styles */
body {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    background: #0c0c0c;
    color: #fff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease-in-out;
}

.navbar-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #e62429;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: #e62429;
    /* Marvel Red */
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 15px;
    background-color: white;
    border-radius: 5px;
    border: 2px solid #e62429;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.navbar-logo:hover {
    transform: scale(1.1);
    /* Slightly enlarges the logo on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background-color: #e62429;
    color: white;
    cursor: pointer;
}

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin: 0 15px;
}

.navbar-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: #e62429;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #e62429;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.navbar-menu a:hover::after {
    transform: scaleX(1);
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 35px;
    font-family: "Comfortaa", sans-serif;
    background: #C61414;
    background: linear-gradient(to bottom, #C61414 11%, #78E235 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;

}

.hero-section p {
    font-size: 24px;
    /* margin-bottom: 40px; */
}

/* Carousel Container */
.carousel-container {
    text-align: center;
    margin: 30px 0;
}

.carousel-container h3 {
    color: greenyellow;
}

#villain h2,
#other h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 200px;
}

/* Carousel */
.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1200px;
    /* Adjusted to increase the size */
    height: 600px;
    /* Adjusted height */
    margin: 0 auto;
    overflow: hidden;
    border: 4px solid black;
    border-radius: 20px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    max-width: 800px;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background: #222;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

.carousel-item img {
    width: 100%;
    height: 400px;
    /* Adjusted height to fit the increased size */
    border-radius: 10px 10px 0 0;
    object-fit: cover;
}

.carousel-info {
    padding: 20px;
    text-align: center;
}

.carousel-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    /* Slightly increased font size */
    margin-bottom: 10px;
}

.carousel-info p {
    font-size: 18px;
    /* Slightly increased font size */
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease-in-out;
    border: 2px solid #e62429;
    border-radius: 10px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.left-btn {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.right-btn {
    right: 0;
    border-radius: 5px 0 0 5px;
}


.left-btn {
    left: 0;
}

.right-btn {
    right: 0;
}

.left-btn:hover,
.right-btn:hover {
    background: red;
    color: whitesmoke;
}

/* Movies Section */
.movies-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(to right, #1c1c1c, #292929);
    /* Subtle gradient background */
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.movie-item {
    display: flex;
    margin-bottom: 40px;
    border-radius: 15px;
    background: linear-gradient(to right, #333, #222);
    /* Gradient background for movie items */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 2px solid #e62429;
    /* Marvel red border */
}

.movie-item img {
    max-width: 300px;
    border-radius: 13px 0 0 13px;
    /* Slight border radius to match container */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.movie-info {
    padding: 20px;
    text-align: left;
    color: #f5f5f5;
    /* Light color for text */
}

.movie-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    margin-bottom: 10px;
    color: #e62429;
    /* Marvel red for titles */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.movie-info p {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #ddd;
}

@media (max-width: 768px) {
    .movie-item {
        flex-direction: column;
    }

    .movie-item img {
        max-width: 100%;
        border-radius: 13px 13px 0 0;
    }
}