* {
  margin: 0;
  padding: 0;
  font-size: 16px;
}

/* Body defaults - Sets black background */
body {
  margin: 0;
  box-sizing: border-box;
  line-height: 1.5;
font-family: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Typography Reset - Removes default margins from headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

/* List Reset - Removes default list styling */
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Link Reset - Removes default link decoration */
a {
  text-decoration: none;
}

/* Image Reset - Makes images responsive */
img {
  max-width: 100%;
  display: block;
}

/* css reset ends */

/* Header Section - Hero area with background image and gradient overlay */
header {
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/netflix-backgroundImage.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
}

/* Header Gradient - Creates dark overlay effect */
header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100vh;
  z-index: 1;
}

/* Language Selector - Styles for the language dropdown in nav */
.nav-item .languageSelect {
  color: white;
  background: transparent;
  padding: 0 30px 0 10px; /* extra right padding for the icon */
  height: 35px;
  width: auto; /* increased width to accommodate the icon */
  border: 1px solid #f4eeee80;
  border-radius: 5px;
  font-weight: 500;
  appearance: none;
  background-image: url("images/dropdown-select-arrow.png");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 10px;
  text-align: center;
  position: relative;
}

/* Dropdown Options - Basic styling for select options */
select option {
  color: black;
}

/* Sign In Button - Top right corner button styling */
.nav-item .sign-in-btn {
  color: white;
  background: #e50914;
  margin-left: auto;
  padding: 10px 10px;
  height: 30px;
  width: 80px;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  line-height: 0;
}

/* Netflix Logo - Sets dimensions and positioning */
.navbar-brand img {
  display: block;
  width: 11.5rem;
  margin-top: 12px;
}

/* Main CTA Section - Contains hero content */
.cta-main {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 0;
  color: white;
  text-align: center;
}

/* Content Container - Centers and spaces main content */
.content {
  margin: auto;
  padding: auto;
  max-width: 900px !important;
}

/* Main Headline - Hero text styling */
.content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 125%;
}

/* Subheading - Secondary hero text */
.content p {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 2rem 0;
  font-weight: bold;
}

/* Email Form Header - Text above email input */
.content h3 {
  font-size: 15px;
  margin-bottom: 9px;
}

/* Email Input - Styles for the email field */
form input {
  background: transparent !important;
  outline: none;
  appearance: none;
  border-color: gray !important;
  border-radius: 3px !important;
  width: 100% !important;
  color: white !important;
}

/* Input Label - Email input label styling */
form label {
  color: #ffffff80 !important;
}

/* CTA Button - Get Started button styling */
form button {
  max-width: auto;
  padding: 10px;
  margin: 10px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  background-color: #e50914;
  color: white;
  font-size: 23.6px;
  font-weight: 700;
  text-align: center !important;
  width: 200px;
  height: 60px;
}

/* Mobile Breakpoint - General responsive adjustments */
@media screen and (max-width: 768px) {
  header {
    height: 60vh;
  }

  header::after {
    height: 60vh;
  }

  .navbar-brand img {
    width: 8rem;
    margin-top: 8px;
  }

  .cta-main {
    height: auto;
    padding: 2rem 1rem;
  }

  .content {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .content h1 {
    font-size: 2.5rem;
  }

  .content p {
    font-size: 1rem;
    margin: 1.5rem 0;
  }

  form input {
    font-size: 1rem;
  }

  form button {
    display: block;
    width: 100%;
    height: 50px;
    font-size: 20px;
  }

  .nav-item .languageSelect {
    height: 30px;
    padding: 0 15px;
    background-size: 8px 8px;
  }

  .nav-item .sign-in-btn {
    width: 100%;
    height: 25px;
    padding: 5px;
    font-size: 0.9rem;
  }

  /* Add these new styles for navbar alignment */
  .navbar-nav {
    margin-right: 0 !important;
    width: 100%;
    padding: 10px 20px;
  }

  .nav-item {
    display: flex;
    justify-content: center;
    margin: 5px 0;
    width: 100%;
  }

  .nav-item .languageSelect {
    width: 100%;
    max-width: 200px;
  }

  .nav-item .sign-in-btn {
    width: 100%;
    max-width: 200px;
    margin: 5px auto;
  }

  .navbar-brand {
    margin-left: 20px !important;
  }

  /* Adjust collapsible menu background */
  .navbar-collapse {
    background-color: none;
  }
}

/* media query to adjust the button to stay in block level  */
@media screen and (max-width: 768px) {
  .d-flex.align-items-center {
    flex-direction: column;
    width: 100%;
  }

  .form-floating {
    width: 100% !important;
    margin-bottom: 1rem !important;
  }

  form button {
    display: block;
    width: 100%;
    max-width: 200px;
    height: 50px;
    font-size: 20px;
    margin: 0 auto; /* Center the button */
  }

  form input {
    width: 100% !important;
  }
}

/* Curve Divider - Creates Netflix-style curved section divider */
.curve-container {
  box-sizing: border-box;
  position: relative;
  height: 100px;
  width: 100%;
  top: 0;
  margin-bottom: 10rem;
  margin-top: 7rem !important;
  display: flex;
  align-items: center;
  border: solid 0.25rem transparent;
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
  border-bottom: none;
  background: radial-gradient(
      50% 500% at 50% -420%,
      #4061e766 80%,
      #0000001a 100%
    ),
    black;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.curve-container:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  margin-top: -0.25rem;
  border-radius: inherit;
  background: linear-gradient(
    to right,
    #210d16 16%,
    #6b060b,
    #e50914,
    #470e27,
    #210d16 84%
  );
}

@media screen and (max-width: 780px) {
  .curve-container {
    margin-top: 55px;
    max-width: 100%;
    height: 80px;
  }
}

@media screen and (max-width: 200px) {
  .curve-container {
    display: none;
  }
}

/* styling for the popcorn container */
.popcorn-container {
  width: 100%;
  height: auto;
  position: relative;
  margin-left: 50px;
  padding: 0;
}

.popcorn-container .popcorn-content {
  max-width: 100%;
  width: 900px;
  height: 80px;
  display: flex;
  background: linear-gradient(to right, #261734, #241735, #18193c, #15193e);
  color: white;
  position: absolute;
  left: 150px;
  top: 0;
  padding: 20px;
  margin: 57px 0;
  border-radius: 15px;
}

.popcorn-content button {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-left: 350px;
  background: #80808066;
  height: 40px;
  border-radius: 4px;
  color: white;
}

.popcorn-content h4 {
  text-align: start;
  font-weight: bold;
  font-size: 22px;
}

.popcorn-svg img {
  width: 65px;
  height: auto;
  position: absolute;
  left: 70px;
  top: 65px;
  margin-right: 0px;
}

@media screen and (max-width: 768px) {
  .popcorn-container {
    margin-bottom: 80px;
    padding: 0 15px;
    position: relative;
    z-index: 1;
  }

  .popcorn-container .popcorn-content {
    width: 100%;
    height: auto !important;
    min-height: 150px;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    margin: 40px 0;
  }

  .popcorn-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: auto;
    width: auto;
  }

  .popcorn-content h4 {
    text-align: left;
    font-size: 18px;
    margin: 12px 0;
  }

  .popcorn-content p {
    text-align: left;
    font-size: 14px;
  }

  .popcorn-content button {
    margin: 15px 0 0 0;
    width: auto;
    align-self: flex-start;
  }

  .popcorn-svg {
    position: relative;
    z-index: 2;
  }

  .popcorn-svg img {
    position: absolute;
    width: 65px;
    left: 15px;
    top: 0px;
    transform: none;
  }
}

/* New media query for screen sizes between 770px and 927px to ensure proper height and button alignment */
@media screen and (min-width: 770px) and (max-width: 927px) {
  .popcorn-content {
    min-height: 150px;
  }
  .popcorn-content button {
    margin-left: auto;
  }
}

/* trending Now heading styling only */
.trendingNow-heading {
  margin: 0 10%;
  color: white;
}

.trendingNow-heading h2 {
  font-size: 23.5px;
}

/* trending card ranking from top 10 styling  */
.trendingCard .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.card-img-container {
  position: relative;
  display: inline-block;
}

.card-img-container img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay-text {
  position: absolute;
  top: 46%;
  left: 56%;
  transform: translate(-175%);
  color: #000000cf;
  -webkit-text-stroke: 2px white;
  font-family: sans-serif;
  font-size: 6rem;
  font-weight: 700;
  text-shadow: rgba(0, 0, 0, 0.7) 0px 0px 1.5rem;
  pointer-events: none;
}
/* on hover */

.card-img-container:hover {
  transition: transform 0.3s ease-in-out;
  transform: scale(1.1);
}
/* fixing the top 10 numbers on a smaller screen sizes */
@media screen and (max-width: 590px) {
  .card-img-container {
    display: flex;
    align-items: start;
    width: 100px;
    height: auto;
    position: relative;
  }

  .overlay-text {
    position: absolute;
    top: 46%;
    left: 56%;
    transform: translateY(0%);
    color: #000000cf;
    -webkit-text-stroke: 1px white;
    font-family: sans-serif;
    font-size: 1.7rem;
    font-weight: 400;
    text-shadow: rgba(0, 0, 0, 0.7) 0px 0px 1.5rem;
    pointer-events: none;
    margin-left: 5px;
  }
}

/* 'More reason to join' styling begins here */
.mrj > h2 {
  /* More reason to join title */
  font-size: 25px;
  margin-left: 10px;
}
.mrj .card {
  padding: auto;
  position: relative;
  height: auto;
  width: 255px !important;
  box-sizing: border-box;
  color: lightgray;
  border-radius: 18px;
  background: linear-gradient(
    to bottom right,
    rgba(25, 32, 67, 1),
    rgba(25, 32, 67, 1),
    rgba(33, 0, 0, 5)
  );
}

/* The card title */

.mrj .card-title {
  font-size: 23px;
  color: white;
  margin: 10px;
}

.mrj img {
  width: 60px;
  height: auto;
  margin-top: 20px !important;
  position: absolute;
  right: 15px;
  bottom: 10px;
}

.mrj .card-body {
  /* making the card body longer */
  height: 310px;
}

/* Responsive layout for 'More Reason to Join' section */
/* Stack cards vertically on small screens */
.mrj .row {
  display: flex;
  gap: 5px; /* Adjust the value as needed for spacing */
  flex-wrap: wrap;
  justify-content: center;
}

.mrj .card {
  margin: 0; /* Remove default margin if any */
}
@media (max-width: 767px) {
  .mrj .row {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .mrj .col,
  .mrj .card {
    width: 100% !important;
    max-width: 350px;
    margin: 0 auto;
  }
}



/* Frequently Asked Questions Styling */
.accordion {
  max-width: 100%;
  height: auto;
}

/* accordion on hover */
.accordion:hover{
  cursor: pointer;
}
.accordion .card{
  background:#383838;
}

/* when accordion card is on hover */
.accordion .card:hover{
  background:#9f9e9e6c;
}
.accordion .card-header{
  height: 90px;
  padding: 30px;
  
}

.accordion .card-header p {
font-size: 24px;
font-weight: 400;
line-height: normal;
}

.accordion .card-body p {
  font-size: 24px;
font-weight: 400;
line-height: normal;
padding: 20px;
}

.plus-icon, .times-icon{
  font-size: 45px;
  font-weight: 400;
  line-height: normal;
}

/* FAQ width adjustment on larger screen*/
@media screen and (min-width: 1200px) {
  .faq-container {
    width: 58rem;
  }
}


/* Styling for accordion icons */
.card-header {
    position: relative;
    cursor: pointer;
}

.card-header p {
    padding-right: 30px; /* Make space for the icon */
}

.accordion-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
    .accordion-icon {
        right: 15px;
        font-size: 1.2rem;
    }
}


/* footer email sign up styling */
.footer-container .form-floating{
  margin-left: 10%;
width:600px;
display: flex;
justify-content: center;
align-items: center;
align-content: center;
}

.footer-container form button {
  font-size: 23px;
  width: 210px;
  height: 53px;
  border-radius: 3px !important;
  font-weight: bold;
}

.footer-container form label{
  color:#d3d3d3ba !important;
}

/* footer container responsiveness on smaller screen */
@media screen and (max-width:500px) {
   .footer-container .form-floating{
    display: flex;
    align-items: start;
    
  }
  .footer-container form button{
    margin-right: 47%;
    width:180px !important; 
  }

  .footer-container form label{
 text-align: start !important;
 margin:0 20px;
}

  .footer-container input{
    max-width: 100% !important;
    width:360px !important;
  }
  .footer-container h6{
    text-align: start !important;
    padding: auto;
    margin-left: 20px;
  }
}


/* Main footer styling */
.phoneNum h6{
  color:lightgray;
  margin-left: 6.3%;
}

footer .col h6{
  text-decoration: underline;
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  margin-bottom: 9px;
  color:lightgray
}

footer:hover{
  cursor:pointer;
}

footer {
  padding: 40px;
  width:100%;
  display: flex;
  justify-content: center;
}

/* Main footer media query on smalle screen */
@media (max-width: 500px) {
  .row.row-cols-4 {
    display: block !important;
  }
  
  .col {
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
  }
  
  .phoneNum, footer .container {
    padding-left: 15px;
  }

  /* The last 'Get started button */

  .getStarted button{
    display: block;
    text-align: center;
  }
}

/* the last get started button by itself */
 .getStarted button{
    display: block;
    align-items: center;
    justify-content: center;
    text-align: center !important;
   max-width: 500%;
   margin:auto;
   width: 370px;
   height: 40px;
   padding: auto;
    border-radius: 3px;
  }

  @media (min-width:600px) {
     .getStarted button{
    display: none;
  }
  }