/* ============================
   BASIC RESET
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #000;
  color: #fff;
}

hr {
  border: none;
  border-top: 5px solid #222;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================
   HEADER
   ============================ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 18px 40px;
  background-color: #141414;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.logo {
  color: #e50914;
  font-size: 26px;
  letter-spacing: 1px;
}

.nav-links a {
  color: #e5e5e5;
  text-decoration: none;
  margin-right: 18px;
  font-size: 14px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* hover effect: links turn white and get a red underline */
.nav-links a:hover {
  color: #ffffff;
  border-bottom: 2px solid #e50914;
}

.nav-links a.active {
  font-weight: bold;
  color: #ffffff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  background-color: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px solid #737373;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 13px;
}

.signin-btn {
  background-color: #e50914;
  color: white;
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

/* hover effect: button gets brighter and grows slightly */
.signin-btn:hover {
  background-color: #f6121d;
  transform: scale(1.05);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative;
  padding: 90px 20px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8)),
              url("https://picsum.photos/seed/heronetflix/1600/800") center / cover no-repeat;
  background-color: #200000; /* fallback color if the image can't load */
}

.hero-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 42px;
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 8px;
}

.email-box {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.email-box input {
  padding: 14px;
  width: 280px;
  border: 1px solid gray;
  background-color: rgba(0,0,0,0.6);
  color: white;
  font-size: 16px;
  border-radius: 3px;
}

.get-started-btn {
  background-color: #e50914;
  color: white;
  padding: 14px 22px;
  border: none;
  font-size: 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.get-started-btn:hover {
  background-color: #f6121d;
  transform: scale(1.03);
}

/* on small screens, stack the email box */
@media (max-width: 600px) {
  .email-box input,
  .get-started-btn {
    width: 100%;
  }
}

/* ============================
   TRENDING ROW (poster cards)
   ============================ */
.trending {
  padding: 50px 40px;
}

.trending-title {
  font-size: 26px;
  margin-bottom: 20px;
}

.poster-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;   /* lets you scroll sideways like real Netflix rows */
  padding-bottom: 10px;
}

.poster-card {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background-color: #222; /* fallback color if the image can't load */
}

/* text that appears over the poster on hover */
.poster-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-title {
  font-size: 15px;
  font-weight: bold;
}

.poster-tag {
  font-size: 12px;
  color: #cccccc;
}

/* hover effect: card zooms up, gets a shadow, and shows the overlay text */
.poster-card:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.poster-card:hover .poster-overlay {
  opacity: 1;
}

/* ============================
   FEATURE SECTIONS
   ============================ */
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  padding: 60px 40px;
}

/* reversed row: media on the left, text on the right */
.feature.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  max-width: 420px;
}

.feature-text h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.feature-text p {
  font-size: 18px;
  color: #dddddd;
}

.feature-media {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.feature-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background-color: #222; /* fallback color if the image can't load */
  transition: transform 0.4s ease;
}

/* hover effect: image slowly zooms in */
.feature-media:hover img {
  transform: scale(1.08);
}

@media (max-width: 700px) {
  .feature,
  .feature.reverse {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================
   FAQ SECTION
   ============================ */
.faq {
  padding: 60px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.faq h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 25px;
}

.faq-item {
  background-color: #2d2d2d;
  margin-bottom: 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

/* hover effect: FAQ box gets slightly lighter */
.faq-item:hover {
  background-color: #3a3a3a;
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 20px 18px;
  color: #dddddd;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  padding: 40px;
  color: gray;
}

.footer p {
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  margin-bottom: 15px;
}

.footer-links li {
  display: inline-block;
  width: 45%;
  margin-bottom: 10px;
}

.footer-links a {
  color: gray;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* hover effect: footer links turn white and underline */
.footer-links a:hover {
  color: white;
  text-decoration: underline;
}