* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  background: black;
  color: white;
}

/* Button  Shared Styles */
button {
  background-color: rgb(229, 9, 20);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
/* Section Shared Styles */
main,
.faq-container,
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 45px;
}

/* Hero and Navigation*/
.header {
  width: 100%;
  min-height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(./assets/Netflix-hero.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 6%;
}

.logo {
  width: 150px;
  cursor: pointer;
}

.nav-btn {
  border: 0;
  padding: 8px 20px;
  border-radius: 4px;
}

.nav-btn:hover {
  background-color: rgb(194, 44, 40);
}

/* Hero Content  & Input Form  */

.hero-content {
  min-height: calc(100vh - 100px);
  text-align: center;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.hero-content h1,
h3,
p {
  margin: 5px;
}

.hero-content h1 {
  font-size: 60px;
  font-weight: 600;
  line-height: 70px;
}

.hero-content h3 {
  font-size: 18px;
  font-weight: 400;
}

/* Email Sign Up Styling  */
.email-signup {
  display: flex;
  align-items: center;
  margin-top: 20px;
  width: 100%;
  gap: 10px;
  max-width: 600px;
}

.email-signup input {
  flex: 1;
  padding: 16px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  color: white;
}

.email-signup button {
  font-size: 24px;
  font-weight: 500;
  padding: 12px 24px;
  white-space: nowrap;
}

.email-signup button:hover {
  background-color: rgb(194, 44, 40);
}

/* Curved  Halo Effect  */
.curve-in {
  height: 80px;
  width: 130vw;
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    black,
    #bc1760,
    #e50914,
    #bc1760,
    black
  );
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  z-index: 2;
}

.curve-out {
  height: 100%;
  width: 100%;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgb(23, 23, 61) 20%,
    black 50%
  );
  position: absolute;
  top: 4px;
  left: 0;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
}

/* Trending Now Carousel  */
main h3 {
  margin-bottom: 20px;
  font-size: 24px;
}
.trending-now {
  display: flex;
  gap: 45px;
  padding: 20px 0px 40px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  max-width: 1200px;
  margin: 0 auto;
}

.trending-now::-webkit-scrollbar {
  display: none;
}

.clip {
  position: relative;
  flex: 0 0 calc((100% - (45px * 4)) / 5);
  min-width: 180px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.clip:first-child {
  margin-left: 60px;
}

.clip:hover {
  transform: scale(1.08);
  z-index: 10;
}

.clip-img {
  width: 100%;
  height: 250px;
  display: block;
  border-radius: 12px;
}

.clip span {
  position: absolute;
  left: -35px;
  bottom: -15px;
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
  color: black;
  -webkit-text-stroke: 2px #d5d4d4;
  transition: transform 0.3s ease-in-out;
  pointer-events: none;
}

/* Video Trailer Style  */
.info-container {
  background: black;
  color: white;
  display: flex;
  padding: 70px 45px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
}

.tv-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tv-container img {
  z-index: 1;
}

.tv-container video {
  position: absolute;
}
/* Faq Section  */
.faq-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 45px;
  background: black;
}

.faq-container h2 {
  font-size: 24px;
  margin-bottom: 25px;
  text-align: left;
}

/* FAQ Container Style  */
.faq-item {
  background: #2d2d2d;
  margin-bottom: 8px;
  font-size: 18px;
}

.faq-item summary {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  cursor: pointer;
}
.faq-item summary:hover {
  background: #414141;
}

.faq-item summary:-webkit-details-marker {
  display: none;
}

.faq-item .content {
  font-size: 18px;
  padding: 18px 24px;
  border-top: 2px solid black;
  line-height: 1.5;
}

.faq-item .content p {
  margin-bottom: 20px;
}

details[open] {
  border: 1px solid black;
}

details[open] .icon {
  transform: rotate(45deg);
  font-size: 45px;
}

.icon {
  font-size: 45px;
  font-weight: 300;
  transition: transform 0.2s ease;
}

/* Footer Styles  */
footer {
  max-width: 1000px;
  margin: 100px auto 40px;
  padding: 0 45px;
  color: #737373;
}

.footer-contact {
  font-size: 16px;
  margin-bottom: 30px;
}

.footer-contact a {
  color: #737373;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.footer-links li a {
  color: #b3b3b3;
  font-size: 13px;
}

.footer-links li a:hover {
  color: #b3b3b3;
}

.footer-country {
  font-size: 14px;
  margin-top: 20px;
}

/* Extra small phones  responsiveness*/
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 24px;
    line-height: 36px;
  }

  .clip {
    flex: 0 0 120px;
    min-width: 120px;
  }

  .clip-img {
    height: 170px;
  }

  .clip span {
    font-size: 60px;
  }
}
