*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    background-color: black;
    color: white;
}

/* HEADER / HERO SECTION */
header{
    height: 100vh;

    /* BACKGROUND IMAGE */
    background-image:
    linear-gradient(rgba(0,0,0,0.7),
    rgba(0,0,0,0.7)),
    url("./Images/netflix\ background\ image.jpg");

    background-size: cover;
    background-position: center;

    padding: 20px 80px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.navbar{
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar img{
    width: 150px;
}

.sign-in-btn{
    background-color: red;
    color: white;

    border: none;
    padding: 10px 18px;

    border-radius: 5px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
}


header h2{
    font-size: 4rem;
    text-align: center;

    max-width: 700px;

    margin-top: 180px;
}

header h3{
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 400;
}

header p{
    margin-top: 25px;
    font-size: 1.1rem;
}


.cta-section{
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 760px;
}


.cta-section input{
    flex: 1;
    min-width: 240px;
    padding: 18px;

    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.4);

    color: white;
    border-radius: 5px;
    font-size: 16px;
}

/* GET STARTED BUTTON */
.get-started-btn{
    background-color: red;
    color: white;

    border: none;

    padding: 15px 30px;

    font-size: 1.5rem;
    font-weight: bold;

    border-radius: 5px;

    cursor: pointer;
}

/* TRENDING SECTION */
main{
    background-color: black;
    padding: 40px 80px;
}

main h2{
    font-size: 2rem;
}

.trending-section {
    padding: 40px 0;
}

.trending-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.trending-section .carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 0;
    -webkit-overflow-scrolling: touch;
}

.trending-section .carousel-track {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.trending-section .carousel-item {
    position: relative;
    flex: 0 0 auto;
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-section .card-img-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 14px;
}

.trending-section .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trending-section .rank-number {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 12px rgba(0,0,0,0.8);
    pointer-events: none;
}

section h3 {
    color: white;
}

div span {
    -webkit-text-stroke: 1px white;
    font-weight: 500;
    font-size: 20px;
}

div.card {
    width: 100px;
    height: 100px;
}

  /* HERO SECTION WITH CURVE DIVIDER */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1); /* Subtle zoom inward mimicking screenshot perspective */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 90%),
              linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.9) 100%);
  z-index: -1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3.5rem;
}

.navbar .logo {
  height: 2.5rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content .subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* CARD CONTAINER */

.reasons-container{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* CARD */

.reason-card{
    flex: 1;

    min-height: 320px;

    padding: 25px;

    border-radius: 20px;

    background: linear-gradient(
        to bottom,
        #1d1b4f,
        #1a1024
    );
}

/* FAQ Section Container styling */
.faq-section {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Title */
.faq-heading {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: left;
}

/* Main wrapper for list elements */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Precise gap between separate question blocks */
}

/* Individual list item wrapper */
.faq-item {
  width: 100%;
}

/* Hide the native checkbox element completely */
.faq-toggle {
  display: none;
}

/* Styling for the interactive question banner */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2d2d2d;
  color: #ffffff;
  padding: 24px 32px;
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.25s ease;
}

/* Subtle hover brightness change like the native UI */
.faq-question:hover {
  background-color: #414141;
}

/* Plus/Cross Icon via CSS code drawings */
.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  transition: transform 0.25s ease;
}

/* Horizontal line of the icon */
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: #ffffff;
  transition: transform 0.25s ease;
}

/* Horizontal segment placement */
.faq-icon::before {
  top: 11px;
  left: 0;
  width: 24px;
  height: 2px;
}

/* Vertical segment placement */
.faq-icon::after {
  top: 0;
  left: 11px;
  width: 2px;
  height: 24px;
}

/* Answer panel initialization (Hidden State) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #2d2d2d;
  transition: max-height 0.25s cubic-bezier(0.5, 0, 0.1, 1);
  /* Creates a separation visual line between header and content when opened */
  border-top: 1px solid #000000; 
}


.faq-answer-content {
  padding: 32px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}


.faq-answer-content p:not(:last-child) {
  margin-bottom: 24px;
}




.faq-toggle:checked ~ .faq-answer {
  max-height: 600px; /* Large enough limit safe for the text density */
}


.faq-toggle:checked ~ .faq-question .faq-icon {
  transform: rotate(45deg);
}

/* Base styles */
.footer-cta-section, .netflix-footer {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Email CTA Section */
.footer-cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.cta-text {
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 16px;
}

.cta-form-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 600px;
  gap: 8px;
}

.input-wrapper {
  position: relative;
  flex-grow: 1;
}

.cta-input {
  width: 100%;
  height: 56px;
  background-color: rgba(22, 22, 22, 0.7);
  border: 1px solid rgba(128, 128, 128, 0.7);
  border-radius: 4px;
  color: #ffffff;
  padding: 24px 16px 8px 16px;
  font-size: 16px;
  box-sizing: border-box;
}

.cta-input:focus {
  outline: 2px solid #ffffff;
  border-color: transparent;
}

.cta-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  transition: transform 0.15s ease, font-size 0.15s ease, top 0.15s ease;
  pointer-events: none;
}

.cta-input:focus + .cta-label,
.cta-input:not(:placeholder-shown) + .cta-label {
  top: 14px;
  font-size: 12px;
  transform: translateY(0);
}

.cta-button {
  background-color: #e50914;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 24px;
  font-weight: 500;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.cta-button:hover {
  background-color: #c11119;
}

.cta-arrow {
  width: 20px;
  height: 20px;
}

/* Footer Section */
.netflix-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 40px;
}

.footer-top {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin-bottom: 30px;
}

.footer-link-phone {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-col a:hover {
  color: #ffffff;
}

.footer-language-wrapper {
  margin-bottom: 25px;
}

.language-picker {
  background-color: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(128, 128, 128, 0.7);
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.translate-icon {
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0 4px;
  border-radius: 2px;
}

.dropdown-arrow {
  font-size: 9px;
  margin-left: 4px;
}

.footer-country {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

@media (max-width: 740px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-form-container {
    flex-direction: column;
    gap: 16px;
  }
}