/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #141414;
    color: #fff;
}
html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}
/* Intro Screen */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fade-out 2s ease-in-out 3s forwards;
}

.netflix-logo {
    font-size: 10rem;
    font-weight: bold;
    color: #e50914;
    text-shadow: 0 0 60px rgba(229, 9, 20, 1), 0 0 30px rgba(229, 9, 20, 0.5);
    animation: zoom-in 3.5s ease-out forwards;
    transform-origin: center;
}

@keyframes zoom-in {
    0% {
        transform: scale(0.3);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(20);
        opacity: 0;
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Main Content */
#main-content {
    display: none;
    animation: fade-in 1s ease-in-out 3.5s forwards;
}

@keyframes fade-in {
    to {
        display: block;
        opacity: 1;
    }
}


/* Main Content */
#main-content {
    display: none;
    animation: fade-in 1.5s ease-in-out 3s forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
        display: block;
    }
}
/* Intro Screen */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.netflix-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
}

.n-path {
    stroke-dasharray: 200; /* The length of the path */
    stroke-dashoffset: 200; /* Starts hidden */
    animation: draw 3s cubic-bezier(0.42, 0, 0.58, 1) forwards; /* Smooth cubic-bezier easing */
}

@keyframes draw {
    0% {
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dashoffset: 100; /* Midway draw */
    }
    100% {
        stroke-dashoffset: 0; /* Fully drawn */
    }
}

/* Main Content */
#main-content {
    display: none;
    animation: fade-in 1s ease-in-out 3s forwards;
}

@keyframes fade-in {
    to {
        display: block;
        opacity: 1;
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #141414;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 28px;
    color: #e50914;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a:hover {
    color: #e50914;
}

.profile img {
    border-radius: 50%;
    cursor: pointer;
}

/* Carousel */
.carousel {
    display: flex;
    align-items: center;
    position: relative;
    margin: 20px 0;
}

.carousel-container {
    display: flex;
    overflow: hidden;
}

.carousel-item {
    min-width: 300px;
    height: 450px;
    margin-right: 10px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.1);
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}
/* Hero Section */
.hero {
    position: relative;
    height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000; /* Make sure background is black */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #e50914;
    padding: 10px 20px;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 5px;
    margin-right: 10px;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
    padding: 10px 20px;
    border: none;
    font-size: 1rem;
    border-radius: 5px;
}

/* Hero Image Carousel */
.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* Stack images vertically */
    transition: transform 1s ease-in-out;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
}

.hero-image.active {
    opacity: 1;
    z-index: 1;
}

/* Carousel Section */
.carousel {
    display: flex;
    align-items: center;
    position: relative;
    margin: 20px 0;
}

.carousel-container {
    display: flex;
    overflow: hidden;
}

.carousel-item {
    min-width: 300px;
    height: 450px;
    margin-right: 10px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.1);
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}


/* Carousel Section */
.carousel {
    display: flex;
    align-items: center;
    position: relative;
    margin: 20px 0;
}

.carousel-container {
    display: flex;
    overflow: hidden;
}

.carousel-item {
    min-width: 300px;
    height: 450px;
    margin-right: 10px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.1);
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}
