@font-face {
  font-family: 'Netflix Sans';
  src: url('fonts/NetflixSans-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
   font-family: Netflix Sans;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {

    background-color: #000;
    color: #fff;
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
  }
  
  .logo {
    color: #e50914;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
  }
  
  .header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .language-selector {
    display: flex;
    align-items: center;
    background-color: #000;
    color: white;
    padding: 8px 18px;
    gap: 8px;
    border-radius: 20px;
  }
  
  .language-selector .lang-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }
  
  .language {
    background: transparent;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    outline: none;
  }
  
  .language option {
    background-color: #000;
    color: white;
  }
  
  .sign-in {
    background-color: white;
    color: #000;
    padding: 8px 18px;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
  }
  
  .sign-in:hover {
    background-color: #ddd;
  }
  
  @media (max-width: 768px) {
    .header {
      flex-direction: column;
      gap: 10px;
    }
  }
  
  
 /*  */
 .hero {
    position: relative;
    height: 100vh;
    background: url('./images/cover.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7); /* dark overlay */
    z-index: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
  }

  .hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
  }

  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .email-form {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .email-form input[type="email"] {
    padding: 15px 20px;
    font-size: 1rem;
    border: 1px solid beige;
    border-radius: 51px;
    width: 300px;
    max-width: 90%;
    outline: none;
    background: transparent;
    color: white;
  }

  .email-form button {
    padding: 15px 25px;
    background-color: #e50914;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
    font-weight: 600;
  }

  .email-form button:hover {
    background-color: #f6121d;
  }

  @media (max-width: 768px) {
    .hero-content h1 {
      font-size: 2rem;
    }

    .hero-content p {
      font-size: 1rem;
    }

    .email-form {
      flex-direction: column;
      align-items: center;
    }

    .email-form input,
    .email-form button {
      width: 90%;
    }
  }

  
  /*  */

  .reasons {
    background-color: #222;
    padding: 40px;
  }
  
  .reasons h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .reason-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
  
  .reason {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
  }

  /* slider */
  

  .trending {
    padding: 30px 40px;
  }
  
  .trending h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .cards-container {
    overflow: hidden;
    width: calc(175px * 7); /* Adjust based on your cardWidth and visibleCards */
    margin: auto;
    position: relative;
  }
  
  #slider-cards {
    display: flex;
    transition: transform 0.5s ease;
  }
  
  .cards {
    display: flex;
    gap: 18px;
    transition: transform 0.3s ease;
  }
  
  .cards-container {
    overflow: hidden;
    width: calc(175px * 7); /* visibleCards * cardWidth */
    margin: auto;
    position: relative;
  }
  
  .card {
    width: 175px;
    height: fit-content !important;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
  }
  .card {
    position: relative;
   
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
  }
  
  .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
  }
  
  .card:hover img {
    transform: scale(1.05);
  }

  
  .card span {
    position: absolute;
    top: 1px;
    left: -7px;
    color: white;
    font-weight: bold;
    font-size: 5.2rem;
    padding: 2px 8px;
    border-radius: 50%;
    z-index: 1;
    text-shadow: 1px 2px 2px black;
  }
  
  .slider-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease;
    border-radius: 6px;
  }
  
  .slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .prev {
    margin-right: 10px;
  }
  
  .next {
    margin-left: 10px;
  }
  



  