@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: "Poppins" , sans-serif;
}

body {
    background-color: #11101D;
    margin-left: 0;
    width: 100%;
    overflow-x: hidden;
}

#heroSection {
    position: relative;
    width: 100%;
    height: 100vh;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    margin-top: 0px;
    padding: 220px;  
    overflow: hidden;
    /* Add left padding to account for sidebar */
    padding-left: 300px;
}

.vertical-div {
    width: 100px;
    height: 10vh;
    background-color: transparent;
}

.item {
    width: 180px;
    height: 250px;
    list-style-type: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(255,255,255,0.3) inset;
    transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
}

.item:nth-child(1), .item:nth-child(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
}

.item:nth-child(3) { left: 40%; }
.item:nth-child(4) { left: calc(40% + 220px); }
.item:nth-child(5) { left: calc(40% + 440px); opacity: 1;}
.item:nth-child(6) { left: calc(40% + 660px); opacity: 0; }

.content {
    width: min(25vw, 350px);
    position: relative;
    top: 50%;
    left: 15rem;
    transform: translateY(-50%);
    font: 400 0.85rem helvetica,sans-serif;
    color: white;
    text-shadow: 0 3px 8px rgba(0,0,0,0.5);
    opacity: 0;
    display: none;
    /* Added z-index to ensure content appears above sidebar */
    z-index: 1000;
}

.content .title {
    font-family: 'poppins';
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content .description {
    line-height: 1.5;
    margin: 0.75rem 0 1rem;
    font-size: 0.9rem;
}

.watch-now-button {
    width: fit-content;
    text-decoration: none;
    background-color: rgba(0,0,0,0.2);
    color: white;
    border: 1.5px solid white;
    border-radius: 0.35rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.watch-now-button:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.item:nth-of-type(2) .content {
    display: block;
    animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
    0% {
        filter: blur(5px);
        transform: translateY(calc(-50% + 75px));
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

.nav {
    position: relative;
    bottom: -15rem;
    left: 50%;
    width: 200px;
    transform: translateX(-50%);
    z-index: 5;
    user-select: none;
}

.nav .btn {
    background-color: rgba(255,255,255,0.5);
    color: rgba(0,0,0,0.7);
    border: 2px solid rgba(0,0,0,0.6);
    margin: 0 0.25rem;
    padding: .75rem;
    border-radius: 50%;
    cursor: pointer;
}

.nav .btn:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Fixed the invalid selector */
.item:nth-child(3):hover {
    left: 40%;
    visibility: visible;
}

@media (width > 650px) and (width < 900px) {
    #heroSection {
        padding-left: 200px;
    }
    
    .content {
        left: 12rem;
    }
    
    .content .title {
        font-size: 1.3rem;
    }
    
    .content .description {
        font-size: 0.8rem;
        margin: 0.5rem 0 0.75rem;
    }
    
    .watch-now-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .item {
        width: 160px;
        height: 270px;
    
        &:nth-child(3) { left: 50%; }
        &:nth-child(4) { left: calc(50% + 170px); }
        &:nth-child(5) { left: calc(50% + 340px); }
        &:nth-child(6) { left: calc(50% + 510px); opacity: 0; }
    }
}

@media (width < 650px) {
    #heroSection {
        padding-left: 100px;
        padding-right: 20px;
    }
    
    .content {
        left: 8rem;
        width: min(35vw, 300px);
    }
    
    .content .title {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .content .description {
        font-size: 0.75rem;
        line-height: 1.4;
        margin: 0.4rem 0 0.6rem;
    }
    
    .watch-now-button {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .item {
        width: 130px;
        height: 220px;
    }
    
    .item:nth-child(3) { left: 50%;}
    .item:nth-child(4) { left: calc(50% + 140px); }
    .item:nth-child(5) { left: calc(50% + 280px); }
    .item:nth-child(6) { left: calc(50% + 420px); opacity: 0; }
}

/* For very small screens */
@media (max-width: 480px) {
    #heroSection {
        padding-left: 80px;
        padding-right: 10px;
    }
    
    .content {
        left: 6rem;
        width: min(40vw, 250px);
    }
    
    .content .title {
        font-size: 1rem;
    }
    
    .content .description {
        font-size: 0.7rem;
    }
    
    .watch-now-button {
        padding: 0.3rem 0.45rem;
        font-size: 0.65rem;
    }
}

#hnav_Content {
    position: relative;
    width: 100%;
    margin-left: 80px; /* Account for sidebar */
    transition: margin-left 0.5s ease;
}

.sidebar.open ~ #hnav_Content {
    margin-left: 250px; /* Account for open sidebar */
}

nav {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-radius: 15px;
    border-style: solid;
    border-color: #63151500;
    background-color: #1d1b318c;
    border-left: transparent;
    border-right: transparent;
    margin: 20px 10px;
    margin-bottom: 5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Press Start 2p';
    font-size: 0.8em;
    margin: 5px;
    border-radius: 5px;
}

nav a:hover {
    background-color: #4a97e400;
    animation: jello-horizontal 1.0s;
}

@-webkit-keyframes jello-horizontal{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}
@keyframes jello-horizontal{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}

@media only screen and (max-width: 1000px) {
    nav a {
        font-size: 1.6vw;
    }
}

@media only screen and (max-width: 600px) {
    nav {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        font-size: 14px;
        margin: 5px 0;
    }
}

p {
    font-size: 25px;
    font-family: poppins;
    font-weight: bolder;
}

.btf {
    z-index: 99;
    position: absolute;
    top: 0%;
    left: 0%;
    width: 60px;
    height: 100%;
    border: none;
    border-radius: 15px;
    background-color: #11101da1;
}

.btw {
    border: none;
    z-index: 99;
    position: absolute;
    top: 0%;
    right: 0%;
    width: 60px;
    height: 100%;
    border-radius: 15px;
    background-color: #11101da1;
}

.bx.bxs-chevron-right {
    font-size: 40px;
    color: #ffffff;
}

.bx.bxs-chevron-left {
    font-size: 40px;
    color: #ffffff;
}

.imgbtn {
    position: relative;
}

.scroll-container {
    background-color: #1D1B31;
    min-height: 35vh;
    overflow-x: auto;
    border-radius: 15px;
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
    white-space: nowrap;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: 80px; /* Account for sidebar */
    transition: margin-left 0.5s ease;
}

.sidebar.open ~ .scroll-container {
    margin-left: 250px; /* Account for open sidebar */
}

/* WebKit scrollbar hiding */
.scroll-container::-webkit-scrollbar {
    display: none;
}

@media (max-width: 848px) {
    .scroll-container {
        min-height: 25vh;
    }
}

.scroll-container img {
    max-width: 100%;
    height: auto;
    max-height: 30vh;
    padding: 10px;
    box-sizing: border-box;
    display: inline-block;
}

@keyframes scrollMovies {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-500%);
    }
}

.shimmer-placeholder {
    position: relative;
    overflow: hidden;
}

.shimmer-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-90deg, #efeded 0%, #7db7f5 50%, #eeeeee 100%);
    background-size: 200% 200%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: -100% 50%;
    }
}

.sidebar {
    font-family: "Poppins" , sans-serif;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 80px;
    background: #11101D;
    padding: 6px 14px;
    z-index: 999;
    transition: all 0.5s ease;
}

.sidebar.open {
    width: 250px;
}

.sidebar .logo-details {
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar .logo-details .icon {
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar .logo-details .logo_name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name {
    opacity: 1;
}

.sidebar .logo-details #btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 22px;
    transition: all 0.4s ease;
    font-size: 23px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
}

.sidebar.open .logo-details #btn {
    text-align: right;
}

.sidebar i {
    color: #fff;
    height: 60px;
    min-width: 50px;
    font-size: 28px;
    text-align: center;
    line-height: 60px;
}

.sidebar .nav-list {
    margin-top: 20px;
    height: 100%;
}

.sidebar li {
    position: relative;
    margin: 8px 0;
    list-style: none;
}

.sidebar li .tooltip {
    position: absolute;
    top: -20px;
    left: calc(100% + 15px);
    z-index: 3;
    background: #fff;
    color: #000;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: 0s;
}

.sidebar li:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar.open li .tooltip {
    display: none;
}

.sidebar input {
    font-size: 15px;
    color: #FFF;
    font-weight: 400;
    outline: none;
    height: 50px;
    width: 100%;
    width: 50px;
    border: none;
    border-radius: 12px;
    transition: all 0.5s ease;
    background: #1d1b31;
}

.sidebar.open input {
    padding: 0 20px 0 50px;
    width: 100%;
}

.sidebar .bx-search {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 22px;
    background: #1d1b31;
    color: #FFF;
}

.sidebar.open .bx-search:hover {
    background: #1d1b31;
    color: #FFF;
}

.sidebar .bx-search:hover {
    background: #FFF;
    color: #11101d;
}

.sidebar li a {
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
    background: #11101D;
}

.sidebar li a:hover {
    background: #FFF;
}

.sidebar li a .links_name {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.sidebar.open li a .links_name {
    opacity: 1;
    pointer-events: auto;
}

.sidebar li a:hover .links_name,
.sidebar li a:hover i {
    transition: all 0.5s ease;
    color: #11101D;
}

.sidebar li i {
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    border-radius: 12px;
}

.sidebar li.profile {
    position: fixed;
    height: 60px;
    width: 78px;
    left: 0;
    bottom: -8px;
    padding: 10px 14px;
    background: #1d1b31;
    transition: all 0.5s ease;
    overflow: hidden;
}

.sidebar.open li.profile {
    width: 250px;
}

.sidebar li .profile-details {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.sidebar li img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}

.sidebar li.profile .name,
.sidebar li.profile .job {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
}

.sidebar li.profile .job {
    font-size: 12px;
}

.sidebar .profile #log_out {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #1d1b31;
    width: 100%;
    height: 60px;
    line-height: 60px;
    border-radius: 0px;
    transition: all 0.5s ease;
}

.sidebar.open .profile #log_out {
    width: 50px;
    background: none;
}

.home-section {
    position: relative;
    background: #E4E9F7;
    min-height: 100vh;
    top: 0;
    left: 78px;
    width: calc(100% - 78px);
    transition: all 0.5s ease;
}

.sidebar.open ~ .home-section {
    left: 250px;
    width: calc(100% - 250px);
}

.home-section .text {
    display: inline-block;
    color: #11101d;
    font-size: 25px;
    font-weight: 500;
    margin: 18px;
}

@media (max-width: 420px) {
    .sidebar li .tooltip {
        display: none;
    }
}

.card-image {
    transition: transform 0.3s ease-in-out;
}