/* Globals & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #000000, #0a0a0a);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #e5e5e5; /* Light gray text for contrast */
    overflow-x: hidden;
    perspective: 1200px;
}

/* Red Highlight */
::selection {
    background: #e50914;
    color: white;
}

/* Navbar */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0));
    z-index: 100;
    transition: all 0.4s ease-in-out;
    transform: translateZ(100px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    width: 95px;
    cursor: pointer;
    transition: transform 0.3s ease-out;
}

.logo:hover {
    transform: scale(1.1) rotateZ(2deg);
}

.menu {
    display: flex;
    gap: 20px;
    list-style: none;
    font-size: 14px;
}

.menu li {
    cursor: pointer;
    transition: all 0.3s;
    color: #e5e5e5;
}

.menu li:hover {
    color: #b3b3b3;
    transform: translateY(-3px) scale(1.05);
}

.nav-right {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 4%;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://wallpapercave.com/wp/wp4056410.jpg"); /* Stranger Things HD Poster */
    background-size: cover; /* Ensures the image covers the entire area */
    background-position: center center; /* Centers the image perfectly */
    background-repeat: no-repeat; /* Prevents tiling */
    background-attachment: fixed;
    filter: brightness(0.88) saturate(0.95);
    z-index: -2;
    transform: translateZ(-50px) scale(1.1);
    transform-style: preserve-3d;
}

.hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 180px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, #141414, transparent);
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(20,20,20,0.95) 0%, rgba(20,20,20,0) 65%);
    z-index: -1;
}

.content {
    max-width: 600px;
    margin-top: 50px;
    text-align: left;
}

.content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6), 0 0 20px rgba(229, 9, 20, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateZ(20px); }
    50% { transform: translateY(-10px) translateZ(30px); }
}

.content p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-weight: 500;
}

.btns {
    display: flex;
    gap: 12px;
}

.btns button {
    padding: 8px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    transform-style: preserve-3d;
    perspective: 1200px;
}

.play {
    background: white;
    color: black;
}

.play:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateZ(10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.info {
    background: rgba(109, 109, 110, 0.7);
    color: white;
}

.info:hover {
    background: rgba(109, 109, 110, 0.4);
    transform: translateZ(10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(109,109,110,0.5);
}

/* Movies Rows */
#main-content {
    padding-bottom: 50px;
    z-index: 2;
    position: relative;
    margin-top: -120px;
}

.row {
    margin-bottom: 30px;
}

.row h2 {
    font-size: 1.3rem;
    margin-left: 4%;
    margin-bottom: 5px;
    font-weight: 600;
    color: #e5e5e5;
    transition: all 0.3s ease-out;
    transform-style: preserve-3d;
}

.row h2:hover {
    color: #fff;
    cursor: pointer;
    transform: translateX(10px) translateZ(15px);
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

/* Slider Container */
.slider {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
    padding: 15px 4% 45px 4%;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    perspective: 1200px;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider img {
    /* Fixed Aspect Ratio: 160 x 240 */
    width: 160px;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    flex-shrink: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.slider img:hover {
    transform: scale(1.15) rotateY(8deg) rotateX(-5deg) translateZ(30px);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.9), 0 0 30px rgba(229, 9, 20, 0.4);
}

/* Footer Section */
.footer {
    background: linear-gradient(to bottom, #000000, #0a0a0a);
    border-top: 1px solid #e50914;
    padding: 50px 4%;
    color: #808080;
    font-size: 0.85rem;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
}

.footer-contact {
    font-size: 0.9rem;
    color: #b3b3b3;
    transition: all 0.3s ease-out;
}

.footer-contact .highlight {
    color: #e50914;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column {
    transform-style: preserve-3d;
}

.footer-column h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-out;
}

.footer-column h4:hover {
    color: #e50914;
    text-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
    transition: transform 0.3s ease-out;
}

.footer-column a {
    color: #808080;
    text-decoration: none;
    transition: all 0.3s ease-out;
    display: inline-block;
    transform-style: preserve-3d;
}

.footer-column a:hover {
    color: #e50914;
    transform: translateX(5px) translateZ(3px);
    text-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    margin-bottom: 30px;
}

.footer-language {
    position: relative;
    display: inline-block;
}

.language-select {
    background: #0a0a0a;
    border: 1px solid #404040;
    color: #b3b3b3;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease-out;
    padding-right: 30px;
}

.language-select:hover {
    border-color: #e50914;
    color: #e50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

.language-select:focus {
    outline: none;
    border-color: #e50914;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    color: #565656;
    font-size: 0.8rem;
}

.footer-copyright p {
    margin: 0;
    transition: all 0.3s ease-out;
}

.footer-copyright p:hover {
    color: #e50914;
}

/* 3D Animations & Effects */
@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 10px rgba(229, 9, 20, 0.3); }
    50% { text-shadow: 0 0 20px rgba(229, 9, 20, 0.6), 0 0 30px rgba(229, 9, 20, 0.3); }
}

@keyframes slide-up-3d {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(-20px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0) rotateX(0);
    }
}

@keyframes card-flip {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    50% { transform: rotateY(10deg) rotateX(5deg); }
    100% { transform: rotateY(0deg) rotateX(0deg); }
}

.content p {
    animation: slide-up-3d 0.8s ease-out 0.2s both;
}

/* Responsiveness */
@media (max-width: 1000px) {
    .content h1 {
        font-size: 3rem;
    }
    .slider img {
        width: 140px;
        height: 210px;
    }
}

@media (max-width: 768px) {
    body {
        perspective: none;
    }
    
    .menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .content h1 {
        font-size: 2.2rem;
        animation: none;
    }
    .content p {
        font-size: 1rem;
        animation: none;
    }
    .slider img {
        width: 120px;
        height: 180px;
        perspective: none;
        transform-style: flat;
    }
    .slider img:hover {
        transform: scale(1.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    }
    #main-content {
        margin-top: -60px;
    }
    .hero::before {
        height: 100px;
    }
    .banner {
        background-attachment: scroll;
        background-position: top center;
        background-size: cover;
        transform: none;
    }
    
    .play:hover,
    .info:hover,
    .row h2:hover,
    .footer-links a:hover {
        transform: none;
    }
    
    .footer {
        padding: 30px 4%;
        margin-top: 50px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .footer-column h4 {
        font-size: 0.85rem;
    }
    
    .footer-column a {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-contact {
        font-size: 0.8rem;
    }
}