@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&family=Roboto:wght@100..900&display=swap");

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

/* Body */
body {
  font-family: "Open Sans", sans-serif;
  color: white;
  background-color: black;
}

/* header */

header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.header-bg {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(./resources/background-img.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Nav Bar */

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 80px;
  height: 80px;
  width: 100%;
}

#netflix-logo {
  width: 148px;
  height: 40px;
  margin-left: 16px;
}

.s-btn {
  background: rgb(229, 8, 21);
  color: white;
  font-weight: 500;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  width: 76px;
  height: 32px;
  padding: 4px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.s-btn:hover {
  background-color: rgb(193, 17, 25);
}

/* Banner */
.banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  margin-top: -32px;
  margin-bottom: 0px;
  margin-left: auto;
  margin-right: auto;

  width: 100%;
  max-width: 1240px;
  min-height: 592px;

  padding-top: 0px;
  padding-bottom: 32px;
  padding-left: 32px;
  padding-right: 32px;
}

.banner-top h1 {
  display: block;
  width: 100%;
  max-width: 508px;
  font-size: 46px;
  font-weight: 800;
  line-height: 50px;
  text-align: center;
  margin-bottom: 8px;
}

.banner-top p {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.banner h3 {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

/* Email Input */
.input-get-started {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  width: 100%;
  justify-content: center;
}

#email-text {
  width: 100%;
  max-width: 319px;
  height: 3.5rem;
  background-color: rgba(22, 22, 22, 0.7);
  border: 0.0625rem solid rgba(128, 128, 128, 0.7);
  border-radius: 0.25rem;
  color: white;

  font-size: 16px;
  line-height: 24px;
  padding: 24px 16px;
}
#email-text::placeholder {
  color: #b9b8b9;
}

.get-started-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgb(229, 9, 20);
  color: white;
  font-size: 23px;
  font-weight: 700;
  height: 3.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
}
.get-started-btn:hover {
  background-color: rgb(193, 17, 25);
}
/* Main */
main {
  overflow: hidden;
  width: 100%;
  padding-top: 32px;
}
.content-wrapper {
  padding: 0 160px;
}

main h2 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
}

/* Trending Section */
.trending {
  padding-left: 28px;
  padding-top: 10px;
  display: flex;
  gap: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  scroll-behavior: smooth;
  white-space: nowrap;
  margin-bottom: 55px;
  border-radius: 8px;
  height: 265px;
}

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

span {
  color: black;
  -webkit-text-stroke: 1px white;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;

  position: absolute;
  left: -25px;
  bottom: 0;
  z-index: 1;
}

.card {
  min-width: 180px;
  height: 250px;

  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  padding: 6px 22px;
  border-radius: 8px;
  position: relative;

  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;

  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: scale(1.05);
  z-index: 5;
}

#show1 {
  background: url(./resources/trending1.webp) center/cover;
}
#show2 {
  background: url(./resources/trending2.webp) center/cover;
}
#show3 {
  background: url(./resources/trending3.webp) center/cover;
}
#show4 {
  background: url(./resources/trending4.webp) center/cover;
}
#show5 {
  background: url(./resources/trending5.webp) center/cover;
}
#show6 {
  background: url(./resources/trending6.webp) center/cover;
}
#show7 {
  background: url(./resources/trending7.webp) center/cover;
}
#show8 {
  background: url(./resources/trending8.webp) center/cover;
}
#show9 {
  background: url(./resources/trending9.webp) center/cover;
}
#show10 {
  background: url(./resources/trending10.webp) center/cover;
}

/* Trailer */
.trailer {
  margin-bottom: 62px;
}

.trailer-video {
  width: 100%;
  height: 450px;
  border-radius: 8px;
  display: block;
}

/* Reasons card section */
.reasons-to-join {
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 12px;
  margin-bottom: 62px;
}

.reasons-card {
  width: 230px;
  height: 330px;
  background: linear-gradient(149deg, #192247 0%, #210e17 96.86%);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.join-icon {
  height: 72px;
  width: 72px;
  position: absolute;
  bottom: 16px;
  right: 16px;
}

.reasons-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* FAQ Section */
.faq {
  padding: 0;
}

details {
  background-color: rgb(45, 45, 45);
  color: white;
  margin-bottom: 9px;
}

summary {
  padding: 24px;
  font-size: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  background-color: rgb(65, 65, 65);
}

.faq p {
  padding: 24px;
  margin: 0;
  border-top: 1px solid black;
  font-size: 24px;
  background-color: rgb(45, 45, 45);
}

summary::after {
  content: "+";
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}
details[open] summary::after {
  content: "×";
}
/* Bottom email section */
#bottom-email-text {
  width: 100%;
  max-width: 455px;
  height: 3.5rem;
  background-color: rgba(22, 22, 22, 0.7);
  border: 0.0625rem solid rgba(128, 128, 128, 0.7);
  border-radius: 0.25rem;
  color: white;
  padding: 0.75rem 1rem;
  font-size: 16px;
}
#bottom-email-text::placeholder {
  color: #b9b8b9;
}

.bottom-get-started {
  margin-top: 75px;
  margin-bottom: 64px;
}
.bottom-get-started h3 {
  font-size: 16px;
  font-weight: 400;
  text-align: center;
}

.bottom-input-get-started {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  width: 100%;
  justify-content: center;
  margin-bottom: 86px;
}
/* Footer Section */
footer {
  padding: 0px 0px 96px 0px;
}

footer p {
  padding: 3px 3px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

footer p a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

footer .disclaimer {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 36px;
}

footer .region {
  font-size: 14px;
  font-weight: 400;
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.7);
}

footer ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

footer li {
  margin: 12px 0 0 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: underline;
}

.footer-section {
  margin-top: 36px;
}

.lang-container {
  position: relative;
  display: inline-block;
  font-family: sans-serif;
  margin-top: 50px;
  padding: 3px;
}

.btn-dropdown {
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 36px;
  border: 1px solid rgba(128, 128, 128, 0.7);
  border-radius: 4px;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.icon-left {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.icon-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.btn-dropdown option {
  background-color: #141414;
  color: #ffffff;
}

/* Curve div */
.curve-container {
  width: 100%;
  height: 160px;
  position: relative;
  margin-top: -160px;
  flex-shrink: 0;
  z-index: 2;
}

.curve-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

footer li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  font-size: 14px;
}

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  .nav-bar {
    padding: 0 40px;
  }

  .content-wrapper {
    padding: 0 60px;
  }

  .banner {
    width: 100%;
    padding: 32px;
  }

  .banner-top h1 {
    width: 100%;
    max-width: 100%;
  }

  .reasons-to-join {
    flex-wrap: wrap;
    justify-content: center;
  }

  .reasons-card {
    width: calc(50% - 12px);
    height: auto;
    min-height: 220px;
  }

  #bottom-email-text {
    width: 100%;
    max-width: 380px;
  }
  .trailer-video {
    height: 380px;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .content-wrapper {
    padding: 0 20px;
  }

  /* --- Nav --- */
  .nav-bar {
    padding: 0 16px;
    height: 64px;
  }

  #netflix-logo {
    width: 100px;
    height: auto;
    margin-left: 0;
  }

  /* --- Hero banner --- */
  .banner {
    width: 100%;
    min-height: auto;
    padding: 24px 16px 40px;
    text-align: center;
    margin-top: -16px;
    justify-content: center;
    flex: 1;
  }

  .banner-top h1 {
    width: 100%;
    max-width: 100%;
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 12px;
  }

  .banner-top p {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .banner h3 {
    font-size: 14px;
    line-height: 22px;
  }

  .input-get-started,
  .bottom-input-get-started {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 12px;
  }

  #email-text,
  #bottom-email-text {
    width: 100%;
    max-width: 100%;
  }

  .get-started-btn {
    width: 100%;
    font-size: 18px;
  }

  .trending {
    gap: 16px;
    padding-left: 8px;
    height: 200px;
  }

  .card {
    min-width: 115px;
    height: 180px;
  }

  span {
    font-size: 52px;
    left: -12px;
  }

  /* Reasons cards: switch to horizontal */
  .reasons-to-join {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .reasons-card {
    width: 100%;
    height: auto;
    min-height: unset;

    flex-direction: row;
    align-items: center;
    padding: 20px 16px;
    padding-right: 100px;
  }

  .join-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    bottom: unset;
    width: 60px;
    height: 60px;
  }

  /* --- FAQ --- */
  summary {
    font-size: 18px;
    padding: 18px 16px;
  }

  .faq p {
    font-size: 16px;
    padding: 18px 16px;
  }

  /* --- Bottom CTA --- */
  .bottom-get-started {
    margin-top: 48px;
    margin-bottom: 40px;
  }

  .bottom-get-started h3 {
    font-size: 14px;
    padding: 0 8px;
  }

  .bottom-input-get-started {
    margin-bottom: 48px;
  }

  footer ul {
    grid-template-columns: 1fr;
  }

  footer li {
    margin: 8px 0 0 0;
  }
  footer ul a {
    color: inherit;
    text-decoration: none;
  }

  footer p {
    font-size: 14px;
  }

  .lang-container {
    margin-top: 32px;
  }
  .trailer-video {
    height: 220px;
  }
}

/* Small Phones (max 480px) */
@media (max-width: 480px) {
  .nav-bar {
    padding: 0 12px;
    height: 56px;
  }

  #netflix-logo {
    width: 88px;
  }

  .banner-top h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .banner-top p {
    font-size: 14px;
  }

  .banner h3 {
    font-size: 13px;
  }

  .trending {
    height: 170px;
    padding-left: 4px;
  }

  .card {
    min-width: 100px;
    height: 155px;
  }

  span {
    font-size: 42px;
    left: -10px;
  }

  summary {
    font-size: 16px;
    padding: 16px 14px;
  }

  .faq p {
    font-size: 15px;
    padding: 16px 14px;
  }

  footer li {
    font-size: 13px;
  }

  .get-started-btn {
    padding: 12px;
    font-size: 16px;
  }

  .curve-container {
    height: 80px;
    margin-top: -80px;
  }
  .trailer-video {
    height: 180px;
  }
}
