/* Reset and Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    padding: 40px 20px;
    line-height: 1.6;
  }
  
  /* Navigation Bar */
  nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #222;
    padding: 10px 20px;
    border-radius: 8px;
    justify-content: center;
  }
  
  nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
  }
  
  nav a:hover,
  nav a.active {
    background-color: #ffcc00;
    color: #000;
  }

  /* Navbar */
.navbar {
  background: #222;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: #333;
  border-radius: 0.5rem;
  transition: background 0.3s;
}

.navbar a:hover {
  background: #ff5733;
}
  
  /* Carousel Sections */
  .carousel {
    display: none; /* Hidden by default, JS shows active */
    max-width: 1100px;
    margin: 0 auto 50px auto;
    background: rgba(0,0,0,0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    animation: fadeIn 0.6s ease-in-out;
  }
  
  .carousel h2 {
    font-size: 2em;
    color: #ffcc00;
    margin-bottom: 20px;
    text-align: center;
  }
  
  /* Movie Grid inside carousel */
  .movie-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  
  /* Individual Movie Card */
  .filter-card {
    background: #1f2a36;
    border-radius: 12px;
    overflow: hidden;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .filter-card:hover,
  .filter-card:focus-visible {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.7);
    outline: none;
  }
  
  .filter-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #ffcc00;
  }
  
  .filter-card p {
    padding: 10px 8px;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    text-align: center;
  }
  
  /* Message when no movies found */
  .movie-grid p {
    font-size: 1.2em;
    color: #bbb;
    text-align: center;
    width: 100%;
    padding: 40px 0;
  }
  
  /* Fade-in animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Responsive Adjustments */
  
  /* Mobile first (<600px) */
  @media (max-width: 599px) {
    .movie-grid {
      flex-direction: column;
      gap: 1rem;
    }
    .filter-card {
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
    }
  }
  
  /* Tablet / small desktop (600px–1023px) */
  @media (min-width: 600px) and (max-width: 1023px) {
    .filter-card {
      width: 180px;
    }
  }
  
  /* Desktop (1024px and up) */
  @media (min-width: 1024px) {
    .filter-card {
      width: 200px;
    }
  }
  