/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url(newbg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* Header Styling */
header {
  background-color: #333; /* Keep the dark background */
  color: #fff; /* White text color */
  padding: 10px 0; /* Add padding for spacing */
  display: flex; /* Use Flexbox for alignment */
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
}

/* Navbar Styling */
nav {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically align items */
  background-color: #333; /* Keep the dark background */
  padding: 5px 10px; /* Add padding for spacing */
}

/* Logo Styling */
.logo-item {
  margin-right: 20px; /* Add spacing between the logo and the navbar items */
}

.logo {
  width: 45px; /* Set the width of the logo */
  height: 45px; /* Set the height of the logo */
  object-fit: contain; /* Ensure the logo scales properly */
}

/* Navbar Links */
nav ul {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically align items */
  list-style: none; /* Remove default list styling */
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 10px; /* Add spacing between links */
}

nav ul li a {
  text-decoration: none; /* Remove underline */
  color: #fff; /* Set link color to white */
  font-size: 21px; /* Adjust font size */
  font-weight: bold; /* Make the text bold */
  transition: color 0.3s; /* Smooth transition for hover effect */
}

nav ul li a:hover {
  color: #f0a500; /* Change color on hover */
}

/* Dropdown Styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Movie List Styling */
.movie-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust grid layout for smaller cards */
  gap: 15px; /* Reduce spacing between cards */
  padding: 15px; /* Reduce padding around the grid */
  justify-content: center;
}

/* Movie Card Styling */
.movie-card {
  width: 100%; /* Allow the card to adjust within the grid column */
  max-width: 1000px; /* Reduce the maximum width for each card */
  height: 450px; /* Reduce the height */
  background-color: #f9f9f9; /* Light background for the card */
  border: 2px solid #ddd; /* Add a subtle border */
  border-radius: 8px; /* Slightly reduce rounded corners */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  text-align: center; /* Center-align text */
  overflow: hidden; /* Ensure content stays within the card */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.movie-card:hover {
  transform: translateY(-4px); /* Slightly lift the card on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
  border-color: #f0a500; /* Highlight border on hover */
}

/* Movie Card Image */
.movie-card img {
  width: 100%; /* Ensure the image fits the card width */
  height: 55%; /* Reduce the height of the image */
  object-fit: cover; /* Ensure the image scales properly */
  border-bottom: 2px solid #f0a500; /* Add a colored border below the image */
}

/* Movie Card Text */
.movie-card h3 {
  font-size: 16px; /* Reduce the font size */
  margin: 8px 0;
  color: #333;
  font-weight: bold; /* Keep the title bold */
}

movie-card p {
  font-size: 12px; /* Reduce the font size */
  margin: 4px 0;
  color: #666;
}

/* Watch Button Styling */
.watch-btn {
  background-color: #f0a500; /* Bright button color */
  color: #fff; /* White text */
  border: none; /* Remove default border */
  padding: 8px 16px; /* Reduce padding for size */
  margin: 10px 0; /* Reduce spacing above and below */
  cursor: pointer; /* Pointer cursor on hover */
  border-radius: 4px; /* Slightly reduce rounded corners */
  font-size: 12px; /* Reduce font size */
  font-weight: bold; /* Bold text */
  text-transform: uppercase; /* Uppercase text */
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

.watch-btn:hover {
  background-color: #d48806; /* Darker shade on hover */
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul li {
    display: block;
    margin: 10px 0;
  }

  .movie-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .movie-card h3 {
    font-size: 18px;
  }

  .movie-card p {
    font-size: 14px;
  }

  .movie-card .rate-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Fancy Watch Button Styling */
.watch-btn {
  background: linear-gradient(90deg, #ff7e5f, #feb47b); /* Gradient background */
  color: #fff;
  border: none;
  padding: 12px 24px;
  margin: 20px 0;
  cursor: pointer;
  border-radius: 25px; /* Rounded corners */
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  transition: all 0.3s ease; /* Smooth transition */
}

.watch-btn:hover {
  background: linear-gradient(90deg, #feb47b, #ff7e5f); /* Reverse gradient on hover */
  transform: scale(1.1); /* Slightly enlarge the button */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

.watch-btn:active {
  transform: scale(1); /* Reset scale on click */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow on click */
}

/* Section Title Styling */
.section-title {
  text-align: center; /* Center-align the text */
  font-size: 1.4em; /* Slightly increase the font size */
  font-weight: bold; /* Keep the text bold */
  color: #ffe018; /* Bright color for visibility */
  margin: 10px auto; /* Add spacing above and below, and center horizontally */
  text-transform: uppercase; /* Keep the text uppercase */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Add a shadow for better contrast */
  letter-spacing: 2px; /* Increase spacing between letters */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent black background */
  padding: 10px 20px; /* Add padding for better readability */
  border-radius: 8px; /* Add rounded corners for a modern look */
  display: block; /* Ensure the element behaves like a block */
  width: fit-content; /* Ensure the background wraps tightly around the text */
}
