/* netflix.css */

/* 1. Base styles */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  background-color: #141414;
  color: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: bold;
}

p {
  line-height: 1.5;
  margin-bottom: 1em;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.mainNetflixContainer { /* This is a <main> element in HTML */
  min-height: 100vh;
  /* background: #111; -- Handled by body */
  color: #fff;
  display: flex; /* Added to manage fixed background and scrollable content */
  flex-direction: column; /* Ensures nav/sections flow vertically */
}

.backgroundContainer {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh; /* Changed to 100vh for hero */
  z-index: -1; /* Behind actual content */
  background: url('background.jpg') center/cover no-repeat;
}

.pinkOverlay { /* Renamed to darkOverlay if preferred, but class is from HTML */
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Darker overlay */
  /* background: linear-gradient(to top, rgba(0,0,0,0.9) 0, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.9) 100%); */
  z-index: 1; /* Above background image, below content */
}

/* .contentContainer styles are now distributed or handled by mainNetflixContainer and sections */

.navContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 4%; /* Use percentage for responsive padding */
  position: absolute; /* To overlay on banner */
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(20,20,20,0.7) 0%, rgba(20,20,20,0) 100%);
}

.upperNavbarSection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 16px 0; -- Handled by navContainer padding */
}

.upperNavbarLeftSection img.netflixLogo {
  width: 148px; /* Netflix typical size */
  height: auto;
}

.navBarButtonContainer {
  display: flex;
  gap: 12px;
  align-items: center;
}

.languageButton,
.signinButton {
  border: none;
  border-radius: 3px; /* Netflix style */
  cursor: pointer;
  font-weight: normal; /* Netflix buttons are not typically bold */
  line-height: normal;
}

.signinButton {
  background: #e50914; /* Netflix red */
  color: #fff;
  padding: 7px 17px;
  font-size: 1rem;
}

.languageButton {
  background: rgba(0,0,0,0.4);
  border: 1px solid #aaa;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 17px; /* Consistent padding */
  font-size: 0.9rem;
}
.languageButton svg{
  fill: white;
}


.menuList {
  display: flex;
  gap: 20px; /* Slightly reduced gap */
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 10px; /* Space from upper nav */
}

.menuListItems a {
  color: #e5e5e5; /* Lighter gray for menu items */
  text-decoration: none;
  font-weight: normal; /* Removed bold */
  font-size: 0.9rem;
}
.menuListItems a:hover {
  color: #b3b3b3; /* Hover effect */
}

/* .sectionsContainer is removed from HTML, sections are direct children of main */

.bannerSection {
  text-align: center;
  padding: 200px 4% 70px 4%; /* Adjusted padding, more top for nav */
  /* background: rgba(0,0,0,0.5); -- This is now handled by .pinkOverlay on .backgroundContainer */
  /* border-radius: 12px; -- Not typical for full hero */
  margin-bottom: 30px;
  min-height: 80vh; /* Ensure it takes significant height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative; /* For z-index stacking if needed, content on top of overlay */
  z-index: 2; /* Above .pinkOverlay */
}

.bannerSection h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5em;
  max-width: 650px; /* Constrain width for readability */
}

.bannerSection h4 {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 1em;
}

.bannerSection p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
}


.inputContainer {
  display: flex;
  justify-content: center;
  align-items: stretch; /* To make input and button same height */
  gap: 0; /* Remove gap, Netflix joins them */
  margin-top: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  max-width: 600px;
  width: 100%;
}

.emailInputBox {
  background: rgba(20,20,20,0.7); /* Darker background for input */
  border: 1px solid #555;
  color: #fff;
  padding: 15px 10px; /* Netflix like padding */
  border-radius: 2px 0 0 2px; /* Rounded left, sharp right */
  font-size: 1rem;
  flex-grow: 1; /* Takes available space */
  min-width: 200px; /* Minimum width before wrapping */
}
.emailInputBox::placeholder {
    color: #8c8c8c;
}

.getStartedButton {
  background: #e50914;
  color: #fff;
  padding: 15px 25px; /* Adjusted padding */
  font-size: 1.25rem; /* Larger text */
  font-weight: bold;
  border: none;
  border-radius: 0 2px 2px 0; /* Rounded right, sharp left */
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping */
}

/* Generic Section Styling */
.carouselSection,
.planSection,
.reasonToJoinSection,
.faqSection,
.getStartedSection {
  padding: 40px 4%; /* Consistent horizontal padding */
  margin-bottom: 30px; /* Space between sections */
  position: relative; /* For content to be above fixed background */
  z-index: 2;
  background-color: #141414; /* Ensure sections have bg if fixed bg is used */
}

.carouselSection h2,
.planSection h2,
.reasonToJoinSection h2,
.faqSection h2,
.getStartedSection h2 { /* Assuming getStartedSection might have a title */
  font-size: 1.75rem;
  margin-bottom: 20px;
  text-align: left;
}


.carouselCardConatiner {
  display: flex;
  gap: 10px; /* Reduced gap for tighter carousel */
  overflow-x: auto;
  padding-bottom: 10px; /* For scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #333 #141414;
}
.carouselCardConatiner::-webkit-scrollbar {
    height: 8px;
}
.carouselCardConatiner::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 4px;
}
.carouselCardConatiner::-webkit-scrollbar-track {
    background-color: #181818;
}


.carouselCard {
  min-width: 180px;
  background: #181818; /* Darker card background */
  border-radius: 4px; /* Softer radius */
  overflow: hidden;
  flex-shrink: 0;
  /* display: flex; -- Already set */
  /* flex-direction: column; -- Already set */
  /* align-items: center; -- Already set */
  transition: transform 0.3s ease;
  position: relative; /* For number container */
}
.carouselCard:hover {
  transform: scale(1.05);
  z-index: 5; /* Bring hovered card to front */
}
.carouselNumberContainer {
    position: absolute;
    left: -15px; /* Adjust for style */
    bottom: -30px; /* Adjust for style */
    z-index: -1; /* Behind image if needed, or adjust img z-index */
}
.carouselNumberContainer span {
    font-size: 6rem; /* Large number */
    font-weight: bold;
    color: #141414;
    -webkit-text-stroke: 2px #555; /* Stroke effect */
    text-stroke: 2px #555;
}


.carouselImageContainer img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers the container */
  display: block;
  border-radius: 4px; /* Match card radius */
}

/* Plans */
.planSection {
  text-align: center; /* Keep plans section title centered if desired */
}
.planSection h2 {
    text-align: center; /* Override generic section title alignment */
}

.plansConatiner {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.planCard {
  background: #181818;
  border-radius: 4px;
  padding: 22px 18px;
  flex: 1 1 220px; /* Adjusted flex basis */
  max-width: 280px;
  margin: 10px;
  text-align: left;
  border: 1px solid #222; /* Subtle border */
}

.planCardUpperContent h2 {
  margin-bottom: 8px;
  font-size: 1.5rem; /* Plan title size */
  color: #e50914; /* Red accent for plan names */
}
.planCard p {
    font-size: 0.9rem;
    color: #ccc;
}
.planCardLowerContent h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
}


/* Reasons */
.reasonToJoinSection h2 {
    text-align: center; /* Override generic section title alignment */
}
.reasonsConatiner {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.reasonCard {
  background: #181818;
  border-radius: 4px;
  padding: 20px;
  flex: 1 1 220px; /* Adjusted */
  max-width: 280px;
  margin: 10px;
  text-align: left;
  border: 1px solid #222;
}
.reasonCard h2 { /* This is for the h2 inside .reasonCardUpperContent */
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.reasonCard p {
    font-size: 0.9rem;
    color: #ccc;
}
.reasonCardLowerContent svg {
    width: 50px; /* As previously */
    height: 50px; /* As previously */
    margin-top: 15px;
    /* Add fill/stroke if needed */
}


/* FAQ */
.faqSection h2 {
    text-align: center; /* Override generic section title alignment */
}
.faqCardsContainer {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Reduced gap */
  max-width: 750px; /* Slightly wider */
  margin: 0 auto;
}

.faqCard {
  background: #303030; /* Netflix FAQ color */
  border-radius: 0; /* Netflix FAQ has sharp edges */
  padding: 0; /* Padding will be on question/answer */
  text-align: left;
}
.faqQuestion {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #141414; /* Separator */
}
.faqQuestion p {
    font-size: 1.25rem;
    margin: 0;
}
.faqQuestion span { /* The '+' sign */
    font-size: 2rem;
    font-weight: 300; /* Lighter plus sign */
}
.faqAnswer {
    padding: 20px 30px;
    line-height: 1.6;
    /* display: none; by default, handled by JS */
    background-color: #303030; /* Ensure it has same bg */
}


/* Get Started Section (often similar to banner input) */
.getStartedSection {
  text-align: center;
  padding: 60px 4%;
  background-color: #000; /* Can be a very dark section */
}
.getStartedSection p {
  font-size: 1.2rem; /* Match banner p */
  margin-bottom: 1.5em;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
/* Uses .inputContainer, .emailInputBox, .getStartedButton styles from banner */


/* Footer */
footer {
  padding: 50px 4%;
  color: #757575; /* Netflix footer text color */
  font-size: 0.9rem;
  text-align: center; /* Or left if there's more content */
  border-top: 1px solid #333; /* Separator */
  position: relative;
  z-index: 2;
  background-color: #141414;
}

/* 2. Responsive Styles */
@media (max-width: 1000px) {
  /* .contentContainer related paddings are now on .navContainer and sections */
  .navContainer {
    padding: 20px 2%;
  }
  .bannerSection,
  .carouselSection,
  .planSection,
  .reasonToJoinSection,
  .faqSection,
  .getStartedSection,
  footer {
    padding-left: 2%;
    padding-right: 2%;
  }

  .bannerSection h2 {
    font-size: 2.5rem;
  }
  .bannerSection h4 {
    font-size: 1.25rem;
  }
  .bannerSection p {
    font-size: 1rem;
  }

  .plansConatiner,
  .reasonsConatiner {
    flex-direction: column;
    align-items: center;
  }
  .planCard,
  .reasonCard {
    max-width: 450px; /* Allow cards to be a bit wider on tablet */
    width: 90%;
  }
}

@media (max-width: 800px) {
  .upperNavbarSection {
    /* flex-direction: column; -- Netflix usually tries to keep this row */
    /* gap: 16px; */
    /* align-items: flex-start; */
  }
  .upperNavbarLeftSection img.netflixLogo {
    width: 100px; /* Smaller logo */
  }
  .signinButton, .languageButton {
    padding: 5px 10px;
    font-size: 0.9rem;
  }
  .menuList {
    /* flex-direction: column; -- Consider a burger menu instead */
    gap: 15px;
    font-size: 0.8rem;
  }
  .carouselCardConatiner {
    gap: 10px;
  }
  .bannerSection h2 {
    font-size: 2rem;
  }
  .emailInputBox {
    min-width: 150px; /* Adjust for tablet */
  }
  .getStartedButton {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

@media (max-width: 600px) {
  .navContainer {
    padding-top: 15px;
  }
  .upperNavbarSection {
    /* For very small screens, column might be okay if burger not implemented */
     flex-wrap: wrap; /* Allow buttons to wrap if needed */
     justify-content: space-around;
  }
   .upperNavbarLeftSection img.netflixLogo {
    width: 80px; /* Even smaller */
  }
  .menuList {
      display: none; /* Typically hidden in burger on mobile */
  }

  .bannerSection {
    padding-top: 120px; /* Less padding if nav is smaller */
    padding-bottom: 50px;
    min-height: 70vh;
  }
  .bannerSection h2 {
    font-size: 1.5rem; /* Mobile hero title */
  }
   .bannerSection h4 {
    font-size: 1rem;
  }
  .bannerSection p {
    font-size: 0.9rem;
  }

  .inputContainer {
    flex-direction: column;
    align-items: stretch; /* Full width for input and button */
    gap: 10px; /* Add gap when stacked */
  }
  .emailInputBox, .getStartedButton {
    border-radius: 2px; /* Consistent radius when stacked */
    width: 100%;
  }
  .emailInputBox {
    padding: 12px 10px;
  }
  .getStartedButton {
    padding: 12px 15px;
    font-size: 1rem;
  }


  .carouselSection h2,
  .planSection h2,
  .reasonToJoinSection h2,
  .faqSection h2,
  .getStartedSection h2 {
    font-size: 1.25rem;
  }
  .planCard, .reasonCard {
    padding: 15px;
    width: 95%;
  }
  .carouselCard {
    min-width: 140px; /* Smaller carousel cards */
  }
  .carouselNumberContainer span {
    font-size: 4rem; /* Smaller font for carousel numbers */
    -webkit-text-stroke: 1px #555; /* Thinner stroke */
    text-stroke: 1px #555;
    /* Consider adjusting left/bottom position if needed too */
  }
  .faqQuestion p {
      font-size: 1rem;
  }
  .faqQuestion span {
      font-size: 1.5rem;
  }
  .faqQuestion, .faqAnswer {
      padding: 15px 20px;
  }
}

@media (max-width: 400px) {
  .upperNavbarLeftSection img.netflixLogo {
    width: 70px;
  }
  .signinButton, .languageButton {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  .languageButton svg {
      width: 12px; height: 12px;
  }

  .bannerSection, .planSection, .reasonToJoinSection, .faqSection, .getStartedSection {
    padding-left: 1%; /* Minimal padding */
    padding-right: 1%;
  }
  .bannerSection h2 {
    font-size: 1.3rem;
  }
   .getStartedButton, .emailInputBox { /* Already handled by stacking */
    font-size: 0.9rem;
  }
  .carouselCard {
    min-width: 120px;
  }
  .carouselNumberContainer span {
    font-size: 3rem; /* Even smaller font for tiny screens */
    /* Stroke already 1px from 600px media query, should be fine */
     left: -10px; /* Adjust position slightly */
     bottom: -20px;
  }
}
