*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
background:#ffffff;
color:#111;
overflow-x:hidden;
}

header{
position:fixed;
top:0;
left:0;
width:100%;
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 8%;
background:#ffffff;
box-shadow:0 5px 20px rgba(0,0,0,.08);
z-index:1000;
}

.logo{
font-size:30px;
font-weight:800;
color:#e50914;
letter-spacing:2px;
}

.logo span{
color:#111;
}

nav a{
text-decoration:none;
margin-left:30px;
color:#111;
font-weight:600;
transition:.3s;
}

nav a:hover{
color:#e50914;
}

.hero{
height:100vh;
background: url("https://i.postimg.cc/7ZKhy0dZ/photo-1489599849927-2ee91cede3ba.avif") center center / cover no-repeat;
background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position:relative;
    display:flex;
    align-items:center;
    padding:0 8%;
}

.overlay{
position:absolute;
inset:0;
background:rgba(0,0,0,.55);
}

.hero-content{
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image{
    margin-bottom: 25px;
}

.hero-image img{
    width: 100%;
    max-width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.buttons{
display:flex;
gap:15px;
margin-bottom:30px;
flex-wrap:wrap;
}

.watch{
background:#fff;
color:#111;
padding:16px 34px;
border:none;
border-radius:50px;
font-size:17px;
font-weight:700;
cursor:pointer;
transition:.3s;
}

.watch:hover{
transform:translateY(-3px);
}

.download{
background:#e50914;
color:#fff;
padding:16px 34px;
border:none;
border-radius:50px;
font-size:17px;
font-weight:700;
cursor:pointer;
transition:.3s;
}

.download:hover{
background:#b20710;
}

.search{
display:flex;
margin-top:20px;
}

.search input{
width:320px;
padding:15px;
border:none;
border-radius:50px 0 0 50px;
font-size:16px;
outline:none;
}

.search button{
border:none;
background:#e50914;
color:#fff;
padding:0 22px;
border-radius:0 50px 50px 0;
cursor:pointer;
}

.title{
padding:70px 8% 25px;
}

.title h2{
font-size:34px;
color:#111;
}

.movies{
padding:0 8% 80px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
}

.card{
background:#fff;
border-radius:18px;
overflow:hidden;
box-shadow:0 15px 40px rgba(0,0,0,.08);
transition:.35s;
}

.card:hover{
transform:translateY(-8px);
}

.card img{
width:100%;
display:block;
height:320px;
object-fit:cover;
}

.card h3{
padding:18px;
font-size:20px;
}

.card span{
display:block;
padding:0 18px 20px;
color:#e50914;
font-weight:700;
}

footer{
background:#111;
color:#fff;
text-align:center;
padding:35px;
}

@media(max-width:900px){

header{
padding:15px 5%;
}

nav{
display:none;
}

.hero{
   min-height:100vh;
    padding: 0 5%;
    background-size: cover;
    background-position: center;
}

.hero h1{
font-size:42px;
}

.search input{
width:100%;
}

.buttons{
flex-direction:column;
}

.watch,
.download{
width:100%;
}

.title,
.movies{
padding-left:5%;
padding-right:5%;
}

}