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

body {
  background-color: #121212;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(45deg, #ff6a00, #ee0979);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.logo {
  height: 40px;
}

.search-container {
  position: relative;
  width: 300px;
}

.search-container input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 25px;
  border: none;
  outline: none;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
}

/* Hamburger Menu */
.menu-container {
  position: relative;
}

.hamburger-menu {
  font-size: 24px;
  cursor: pointer;
  color: white;
}

.menu {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.menu.open {
  display: block;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu ul li {
  padding: 10px;
  text-align: center;
}

.menu ul li a {
  color: white;
  text-decoration: none;
  display: block;
  font-size: 16px;
  transition: background 0.3s ease-in-out;
}

.menu ul li:hover {
  background-color: #333;
}

/* Movie Grid */
.movie-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 100px; /* Adjusted for fixed header */
  padding: 20px;
}

.movie {
  text-align: center;
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.movie:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.movie img {
  width: 100%;
  height: auto;
}

.movie h3 {
  margin: 10px 0;
  font-size: 18px;
}

.rating {
  font-size: 16px;
  color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-container {
    width: 100%;
  }

  .movie {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .movie {
    width: 48%;
  }
}

@media (min-width: 1025px) {
  .movie {
    width: 30%;
  }
}
