/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #111;
  color: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #000;
}

.logo {
  height: 40px;
}

.navbar ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #e50914;
}

/* Hero Section */
.hero {
  background-image: url("images/hero-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background-blend-mode: darken;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.hero button {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border: none;
  background-color: #e50914;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero button:hover {
  background-color: #f40612;
}

/* Movie Rows */
.row {
  padding: 1rem;
}

.row h2 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.row-posters {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.poster {
  max-height: 150px;
  transition: transform 0.3s;
  cursor: pointer;
}

.poster:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #000;
  font-size: 0.9rem;
}

/* Responsive Design */

@media (max-width: 768px) {
     .navbar {
      /* flex-direction: column; */
      /* align-items: flex-start; */
    }
  
    .navbar ul {
      flex-direction: column;
      gap: 0.5rem;
      /* margin-top: 1rem; */
    }
  
    .hero {
      height: 70vh;
      padding: 1rem;
    }
  
    .hero h1 {
      font-size: 2rem;
    }
  
    .hero p {
      font-size: 1rem;
    }
  
    .hero button {
      padding: 0.6rem 1.5rem;
      font-size: 0.9rem;
    }
  
    .row-posters {
      gap: 0.5rem;
    }
  
    .poster {
      max-height: 120px;
    }
  }
  
  @media (max-width: 480px) {
    .navbar {
      padding: 1rem;
    }
  
    .logo {
      height: 30px;
    }
  
    .hero h1 {
      font-size: 1.5rem;
    }
  
    .hero p {
      font-size: 0.9rem;
    }
  
    .row h2 {
      font-size: 1.2rem;
    }
  
    .poster {
      max-height: 100px;
    }
  }
  
