/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #E50914;
  --red-hover: #f40612;
  --dark: #141414;
  --bg: #000;
  --text: #fff;
  --gray: #aaa;
  --card-h: 160px;
  --surface: #1a1a1a;
  --surface-2: #2d2d2d;
  --border: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.55) 80%,
    #141414 100%
  ),
  url('./fon.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 56px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
  /* Transform + background + shadow transition */
  transition: transform 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Pastga scrollda yashirish — JS orqali transform: translateY(-100%) qo'shiladi */

.netflix-logo {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}
.netflix-logo:hover { transform: scale(1.04); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
}
.lang-select:hover {
  border-color: white;
  background: rgba(255,255,255,0.06);
}

.lang-select select {
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
}
.lang-select select option { background: #1a1a1a; color: white; }

.signin-btn {
  background-color: var(--red);
  color: white;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(229,9,20,0.35);
  letter-spacing: 0.2px;
}
.signin-btn:hover {
  background-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(229,9,20,0.55);
}

/* ===== HERO CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 100px 20px 120px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 14px rgba(0,0,0,0.95);
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
}

.hero-desc {
  font-size: 17px;
  color: #e0e0e0;
  margin-bottom: 28px;
  max-width: 560px;
  line-height: 1.5;
}

.email-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 600px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}

.email-form input {
  flex: 1;
  padding: 18px 20px;
  font-size: 16px;
  background: rgba(18,18,18,0.9);
  border: 1.5px solid #666;
  border-right: none;
  color: white;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.email-form input::placeholder { color: #999; }
.email-form input:focus {
  border-color: #aaa;
  background: rgba(28,28,28,0.98);
}

.get-started-btn {
  padding: 18px 30px;
  background: var(--red);
  color: white;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
}
.get-started-btn span { font-size: 22px; line-height: 1; }
.get-started-btn:hover { background: var(--red-hover); }
.get-started-btn:active { transform: scale(0.98); }

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 8px;
  background: #1a1a1a;
}

/* ===== TRENDING NOW ===== */
.trending {
  padding: 50px 0 50px;
  background: var(--bg);
  overflow: hidden;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  padding: 0 60px;
  letter-spacing: 0.3px;
  color: #e5e5e5;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track-outer {
  overflow: hidden;
  width: 100%;
  padding: 20px 60px 40px;
}

.carousel-track {
  display: flex;
  gap: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  user-select: none;
}

.tr-card {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  cursor: pointer;
  margin-right: 14px;
}

.tr-poster {
  width: 220px;
  height: 315px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: #1a1a1a;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tr-card:hover .tr-poster {
  transform: scale(1.07) translateY(-8px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.95);
  z-index: 10;
}

.tr-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.tr-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 18px;
  font-weight: 900;
  color: #E50914;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
  z-index: 3;
  background: rgba(0,0,0,0.45);
  padding: 2px 7px;
  border-radius: 3px;
}

.tr-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px 14px;
  z-index: 4;
}

.tr-card:hover .tr-hover { opacity: 1; }

.tr-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: white;
  text-transform: uppercase;
}

/* Carousel arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(18,18,18,0.9);
  border: none;
  color: white;
  font-size: 44px;
  width: 58px;
  height: 120px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.3s;
  border-radius: 4px;
  line-height: 1;
}
.carousel-btn:hover { background: rgba(60,60,60,0.98); }
.carousel-btn--left  { left: 0; border-radius: 0 6px 6px 0; }
.carousel-btn--right { right: 0; border-radius: 6px 0 0 6px; }

/* ===== MORE REASONS ===== */
.reasons {
  padding: 60px 56px 80px;
  background: var(--bg);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.reason-card {
  background: linear-gradient(145deg, #1c1c40 0%, #0e0e2e 100%);
  border-radius: 14px;
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}
.reason-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.65);
  border-color: rgba(255,255,255,0.14);
}

.reason-text h4 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: white;
}

.reason-text p {
  font-size: 14px;
  line-height: 1.65;
  color: #bbb;
}

.reason-icon {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.reason-icon svg {
  width: 70px;
  height: 70px;
}

/* ===== FAQ ===== */
.faq {
  padding: 70px 200px;
  background: var(--bg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 54px;
}

.faq-item {
  background: #2d2d2d;
  border-radius: 2px;
  overflow: hidden;
  transition: background 0.2s;
}

.faq-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  font-weight: 400;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.faq-btn:hover { background: #3a3a3a; }

.faq-icon {
  font-size: 30px;
  font-weight: 300;
  color: white;
  flex-shrink: 0;
  margin-left: 16px;
  line-height: 1;
  transition: transform 0.3s ease;
  display: inline-block;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border-top: 2px solid #444;
}

.faq-answer p {
  padding: 22px 26px;
  font-size: 18px;
  line-height: 1.65;
  color: #fff;
}

.faq-email {
  text-align: center;
  padding-top: 10px;
}

.faq-email p {
  font-size: 17px;
  color: #fff;
  margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 50px 200px;
  background: var(--bg);
  border-top: 1px solid #222;
}

.footer-contact {
  display: inline-block;
  color: #aaa;
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.footer-contact:hover { color: white; text-decoration: underline; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 18px;
  margin-bottom: 30px;
}

.footer-links a {
  color: #757575;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #aaa; text-decoration: underline; }

.footer-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #555;
  padding: 8px 16px;
  width: fit-content;
  margin-bottom: 22px;
  border-radius: 3px;
  transition: border-color 0.2s;
}
.footer-lang:hover { border-color: #aaa; }

.footer-lang select {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
}
.footer-lang select option { background: #1a1a1a; }

.footer-copy {
  font-size: 13px;
  color: #757575;
  margin-bottom: 10px;
}

.footer-recaptcha {
  font-size: 12px;
  color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .faq { padding: 60px 80px; }
  .footer { padding: 50px 80px; }
}

@media (max-width: 900px) {
  .navbar { padding: 16px 24px; }
  .trending { padding: 30px 0; }
  .reasons { padding: 40px 24px; }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .faq { padding: 50px 30px; }
  .footer { padding: 40px 30px; }
}

@media (max-width: 600px) {
  .reasons-grid { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; border-radius: 6px; }
  .email-form input {
    border-right: 1.5px solid #666;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
  }
  .get-started-btn {
    border-radius: 0 0 6px 6px;
    width: 100%;
    justify-content: center;
  }
  .section-title { padding: 0 24px; }
  .carousel-track-outer { padding: 20px 24px 30px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .faq .section-title { font-size: 20px; }
  .faq-btn { font-size: 16px; }
}