/* ===== Reset ===== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body{
  background:#000;
  color:#fff;
  overflow-x:hidden;
}

/* ===== Header ===== */
header{
  position:fixed;
  top:0;
  width:100%;
  padding:20px 60px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:1000;
  transition:0.3s ease;
  background:linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
}

header.scrolled{
  background:#000;
}

.logo{
  color:#e50914;
  font-size:2rem;
  font-weight:bold;
}

.header-right{
  display:flex;
  gap:15px;
}

select{
  padding:6px 10px;
  background:transparent;
  color:white;
  border:1px solid #777;
}

.sign-in{
  background:#e50914;
  border:none;
  padding:7px 18px;
  color:white;
  font-weight:bold;
  cursor:pointer;
  border-radius:4px;
  transition:0.3s;
}

.sign-in:hover{
  background:#f40612;
}

/* ===== Hero Section ===== */
.hero{
  height:90vh;
  background:url("images/netflix.jpg") center/cover no-repeat;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  position:relative;
  padding:0 20px;
  overflow:hidden;
}

.overlay{
  position:absolute;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.7);
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:750px;
}

.hero-content h1{
  font-size:3.8rem;
  margin-bottom:20px;
  font-weight:800;
}

.hero-content h3{
  font-size:1.6rem;
  margin-bottom:20px;
  font-weight:400;
}

.hero-content p{
  margin-bottom:20px;
}

/* ===== Email Box ===== */
.email-box{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.email-box input{
  padding:15px;
  width:320px;
  border:none;
  outline:none;
  border-radius:4px;
}

.email-box button{
  background:#e50914;
  border:none;
  padding:15px 28px;
  color:white;
  font-weight:bold;
  cursor:pointer;
  border-radius:4px;
  transition:0.3s;
}

.email-box button:hover{
  background:#f40612;
}

/* =============================== */
/* 🔥 PERFECT NETFLIX CURVE */
/* =============================== */

.top-curve{
  position:absolute;
  bottom:-75px;   /* Trending ke just upar */
  left:50%;
  transform:translateX(-50%);
  width:1449.6px;
  height:150px;
  pointer-events:none;
  z-index:5;

  /* subtle burn light */
  filter: drop-shadow(0 20px 40px rgba(229,9,20,0.15));
}

/* Black curve */
.top-curve::before{
  content:"";
  position:absolute;
  width:100%;
  height:280px;
  top:-190px;
  background:#000;
  border-radius:50%;
}

/* Red glowing arc */
.top-curve::after{
  content:"";
  position:absolute;
  width:100%;
  height:280px;
  top:-200px;
  border-radius:50%;
  border-top:4px solid #e50914;

  box-shadow:
    0 0 25px rgba(229,9,20,0.9),
    0 0 60px rgba(229,9,20,0.7),
    0 0 120px rgba(229,9,20,0.4);
}

/* ===== TRENDING SECTION ===== */
.trending{
  background:#000;
  padding:130px 60px 60px 60px;
  margin-top:-30px; /* smooth connect */
  position:relative;
}

.trending h2{
  margin-bottom:30px;
  font-size:2rem;
  font-weight:700;
}

.row-posters{
  display:flex;
  gap:22px;
  overflow-x:auto;
  scroll-behavior:smooth;
  scrollbar-width:none;
  padding-bottom:20px;
}

.row-posters::-webkit-scrollbar{
  display:none;
}

.movie-card{
  width:200px;
  height:295px;
  flex:0 0 auto;
  transition:0.3s ease;
  position:relative;
}

.movie-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:14px;
}

.movie-card:hover{
  transform:scale(1.08);
  z-index:10;
}

.rank{
  position:absolute;
  bottom:-20px;
  left:-12px;
  font-size:110px;
  font-weight:900;
  color:transparent;
  -webkit-text-stroke:3px white;
  opacity:0.9;
  pointer-events:none;
}

/* ===== MORE REASONS ===== */
.reasons{
  background:radial-gradient(circle at top left, #141414, #000);
  padding:90px 60px;
  border-top:8px solid #000;
}

.reason-container{
  display:flex;
  gap:25px;
  margin-top:50px;
  flex-wrap:wrap;
}

.reason-card{
  flex:1;
  min-width:260px;
  background:linear-gradient(145deg, #1c1c1c, #0f0f0f);
  padding:35px;
  border-radius:18px;
  transition:0.3s ease;
  border:1px solid #222;
}

.reason-card:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 40px rgba(0,0,0,0.7);
}

.reason-card h3{
  margin-bottom:15px;
  font-size:1.3rem;
}

/* ===== FAQ ===== */
.faq{
  padding:100px 20px;
  border-top:8px solid #222;
  text-align:center;
}

.faq h2{
  font-size:2.7rem;
  margin-bottom:40px;
}

.faq-item{
  max-width:850px;
  margin:12px auto;
  background:#303030;
  transition:0.3s;
}

.faq-item:hover{
  background:#3a3a3a;
}

.faq-item h3{
  padding:22px;
  cursor:pointer;
  text-align:left;
}

.faq-answer{
  display:none;
  padding:22px;
  text-align:left;
  border-top:1px solid #000;
}

.faq-item.active .faq-answer{
  display:block;
}

.email-bottom{
  margin-top:50px;
}

/* ===== Footer ===== */
footer{
  padding:60px 10%;
  border-top:8px solid #222;
  color:#999;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:60px;
  margin:30px 0;
}

footer ul{
  list-style:none;
}

footer li{
  margin-bottom:12px;
  cursor:pointer;
  font-size:0.9rem;
}

footer li:hover{
  text-decoration:underline;
}

.country{
  margin-top:25px;
}

/* ===== Responsive ===== */
@media(max-width:1500px){
  .top-curve{
    width:95%;
  }
}

@media(max-width:768px){

  header{
    padding:20px;
  }

  .hero-content h1{
    font-size:2.2rem;
  }

  .hero-content h3{
    font-size:1.2rem;
  }

  .email-box{
    flex-direction:column;
  }

  .email-box input{
    width:100%;
  }

  .movie-card{
    width:150px;
    height:220px;
  }

  .rank{
    font-size:80px;
  }

  .reasons{
    padding:70px 20px;
  }

  .top-curve{
    width:100%;
    bottom:-55px;
  }

  .trending{
    padding-top:110px;
  }
}