/* ================= RESET AND BASE STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #141414;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
    scroll-behavior: smooth;
}

/* ================= NAVIGATION ================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav.scrolled {
    background: #141414;
}

.logo img {
    height: 2rem;
    width: auto;
}

.action {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.JoinNow, .LogIn {
    background: #e50914;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.JoinNow:hover, .LogIn:hover {
    background: transparent;
}

.LogIn {
    background: transparent;
    border: 1px solid #ffffff;
}

.LogIn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ================= POPULAR MOVIES SLIDER (Bootstrap Carousel) ================= */
#carouselExampleSlidesOnly {
    height: 80vh;
    margin-top: 5rem; /* Account for fixed nav */
    position: relative;
}

.carousel-item {
    height: 100%;
    position: relative;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.carousel-item h1 {
    position: absolute;
    top: 40%;
    left: 3rem;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
    max-width: 600px;
}

.carousel-item p {
    position: absolute;
    top: 55%;
    left: 3rem;
    font-size: 1.2rem;
    color: #cccccc;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 2;
    max-width: 500px;
    line-height: 1.4;
}

.play-btn {
    position: absolute;
    top: 70%;
    left: 3rem;
    background: #e50914;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-btn:hover {
    background: #313131;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Overlay for better text readability */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

/* ================= SECTIONS WITH POSTERS ================= */
section {
    margin: 2rem 3rem;
}

section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.posters {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.posters::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.new {
    flex-shrink: 0;
    width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.new:hover {
    transform: scale(1.05);
}

.new img {
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
    transition: box-shadow 0.3s ease;
}

.new img:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.new h3 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    color: #ffffff;
}

.new a {
    text-decoration: none;
    color: inherit;
}

/* ================= ADDITIONAL TEXT AND BUTTON ================= */
h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 2rem 0;
    color: #ffffff;
}

.txt1 {
    text-align: center;
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

.Joinnow1 {
    display: block;
    margin: 0 auto;
    background: #e50914;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.Joinnow1:hover {
    background: #f40612;
}

/* ================= FOOTER ================= */
footer {
    background: #000000;
    padding: 2rem 3rem;
    color: #999999;
    font-size: 0.875rem;
}

footer h1 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.col {
    flex: 1;
    min-width: 150px;
}

.col a {
    display: block;
    color: #cccccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.col a:hover {
    color: #ffffff;
}

.icon {
    margin-top: 2rem;
    text-align: center;
    font-size: 1.5rem;
    color: #ffffff;
}

#English {
    display: block;
    margin: 1rem auto;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#English:hover {
    background: rgba(255, 255, 255, 0.2);
}

#English option {
    background: #141414;
    color: #ffffff;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
    .nav {
        padding: 1rem 2rem;
    }
    .action {
        gap: 0.75rem;
    }
    #carouselExampleSlidesOnly {
        height: 70vh;
    }
    .carousel-item h1 {
        font-size: 2.5rem;
        left: 2rem;
    }
    .carousel-item p {
        font-size: 1rem;
        left: 2rem;
    }
    .play-btn {
        left: 2rem;
    }
    section {
        margin: 2rem 2rem;
    }
    .new {
        width: 180px;
    }
    .row {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    .logo {
        margin-bottom: 1rem;
    }
    .action {
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }
    #carouselExampleSlidesOnly {
        height: 60vh;
        margin-top: 8rem; /* Adjust for stacked nav */
    }
    .carousel-item h1 {
        font-size: 2rem;
        left: 1.5rem;
        top: 35%;
    }
    .carousel-item p {
        font-size: 0.9rem;
        left: 1.5rem;
        top: 50%;
    }
    .play-btn {
        left: 1.5rem;
        top: 65%;
    }
    section {
        margin: 2rem 1rem;
    }
    section h1 {
        font-size: 1.25rem;
    }
    .new {
        width: 150px;
    }
    .row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.5rem;
    }
    .action {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .JoinNow, .SignIn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    #carouselExampleSlidesOnly {
        height: 50vh;
    }
    .carousel-item h1 {
        font-size: 1.5rem;
        left: 1rem;
        top: 30%;
    }
    .carousel-item p {
        font-size: 0.8rem;
        left: 1rem;
        top: 45%;
    }
    .play-btn {
        left: 1rem;
        top: 60%;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .new {
        width: 120px;
    }
    h2 {
        font-size: 1.5rem;
    }
    .txt1 {
        font-size: 1rem;
    }
    .Joinnow1 {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .icon {
        font-size: 1.25rem;
    }
    #English {
        width: 80%;
        max-width: 200px;
    }
}
/* ================= FOOTER ================= */
.footer {
    background: #000000;
    padding: 2rem 3rem;
    color: #999999;
    font-size: 0.875rem;
}

.footer h2 {
    font-size: 1.25rem;
    margin-right: 60rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer .col {
    flex: 1;
    min-width: 150px;
}

.footer .col a {
    display: block;
    color: #cccccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer .col a:hover {
    color: #ffffff;
}

.footer .copyright-text {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #cccccc;
}

/* ================= RESPONSIVE DESIGN FOR FOOTER ================= */
@media (max-width: 1024px) {
    .footer {
        padding: 2rem 2rem;
    }
    .footer .row {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem;
    }
    .footer h2 {
        font-size: 1rem;
    }
    .footer .row {
        flex-direction: column;
        gap: 1rem;
    }
    .footer .copyright-text {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 0.5rem;
    }
    .footer h2 {
        font-size: 0.9rem;
    }
    .footer .copyright-text {
        font-size: 0.8rem;
    }
}