* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: black;
  color: white;
  overflow-x: hidden;
}

/* Header */
.netflix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #111;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo {
  color: red;
  font-size: 28px;
  font-weight: bold;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

@media(max-width:667px)
{
  .navbar{
    display: none;
  }
  .netflix-header
  {
       height: 10px;
  }
  .logo
  {
    display: none;
  }
  .icon{
    display: none;
  }
  .children
  {
    display: none;
  }
  .notification
  {
    display: none;
  }
  .profile-dropdown
  {
    display: none;
  }
}

.navbar a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.navbar a:hover {
  text-decoration: underline;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.icon {
  font-size: 18px;
  cursor: pointer;
}

.children {
  font-size: 14px;
}

.notification {
  position: relative;
  font-size: 20px;
  cursor: pointer;
}

.notification .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: red;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  padding: 3px 6px;
}

.profile-dropdown {
  position: relative;
}

.profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #222;
  border: 1px solid #444;
  min-width: 150px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 10px;
  display: block;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #333;
}

.profile-dropdown:hover .dropdown-content {
  display: block;
}

/* Hero */
.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('https://upload.wikimedia.org/wikipedia/en/7/7a/Sacred_Games_Title.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0.4));
  top: 0;
  left: 0;
}

.hero-content {
  position: absolute;
  bottom: 20%;
  left: 5%;
  max-width: 90%;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-buttons button {
  background-color: white;
  color: black;
  border: none;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.hero-buttons .info-btn {
  background-color: rgba(109, 109, 110, 0.7);
  color: white;
}

.hero-buttons button:hover {
  opacity: 0.85;
}

/* Carousel */
.carousel-container {
  position: relative;
  padding: 20px;
  overflow: hidden;
  margin-top: 100px;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
  padding: 10px 0;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.movie-preview {
  position: relative;
  width: 160px;
  height: 108px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 5px;
  transition: transform 0.3s;
}

.movie-preview img,
.movie-preview video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.movie-preview video {
  display: none;
}

.movie-preview:hover {
  transform: scale(1.4);
  z-index: 2;
}

.movie-preview:hover img {
  display: none;
}

.movie-preview:hover video {
  display: block;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 2;
  border-radius: 5px;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar, .header-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons button {
    width: 100%;
  }

  .carousel-container {
    padding: 10px;
  }

  .movie-preview {
    width: 130px;
    height: 90px;
  }
}
