* {
  box-sizing: border-box;
}

body {
  background-color: #131720;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Roboto', sans-serif;
  color: white;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}






::-webkit-scrollbar {
  width: 2px; /* Reduced width */
}

::-webkit-scrollbar-track {
  background: #1a1a1a; /* Dark background for track */
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #0698cd, #afc9d0); /* Gradient color for thumb */
  border-radius: 5px; /* Rounded edges for a cool look */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #fbfbfb, #c61010); /* Hover effect */
}




/* Navigation bar */
.topnav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(19, 23, 32, 0.9);
  padding: 10px 20px;
  position: fixed;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-radius: 50px;
}

/* Logo */
.logo {
  justify-self: center;
  margin: auto;
  top: 0;
  height: 55px;
  width: auto;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  filter: drop-shadow(0 0 8px #1e90ff); /* Subtle glow */
}

/* Hover effect */
.logo:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px #4682b4); /* Intensified glow */
}

/* Animation for a subtle pulsing effect */
@keyframes logoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px #1e8fff00);
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px #4683b400);
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px #1e8fff00);
  }
}

/* Optional pulsing effect on load */
.logo {
  animation: logoPulse 8s infinite ease-in-out;
}

/* Search container */
.search-container {
  display: flex;
  align-items: center;
}

/* Search box */
.searchBox {
  display: flex;
  max-width: 260px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #1a1a2e;
  border-radius: 50px;
  position: relative;
  border: 1px solid #0f3460;
  box-shadow: inset 0 0 10px #0f3460;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.searchBox:hover {
  box-shadow: 0 0 15px #1e90ff, inset 0 0 10px #1e90ff;
}

/* Search input */
.searchInput {
  border: none;
  background: none;
  outline: none;
  color: #d1d1e9;
  font-size: 15px;
  padding: 12px 46px 12px 26px;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.searchInput:focus {
  color: #fff;
}

/* Search button */
.searchButton {
  color: white;
  position: absolute;
  right: 0px;
  width: 60px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(90deg, #1e90ff 0%, #4682b4 100%);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 0.2s;
}

.searchButton:hover {
  color: #fff;
  background-color: #1b2a49;
  box-shadow: 0 8px 15px rgba(30, 144, 255, 0.6);
  transform: translateY(-4px);
}

.searchButton:active {
  box-shadow: none;
  transform: translateY(0);
}

/* Genres section */
.genres {
  margin-left: 20px;
  display: flex;
  align-items: center;
}


.genres button {
  margin: 20px;
  width: 100px;
  padding: 10px 5px;
  margin-right: 10px;
  border-radius: 30px;
  border: none;
  background-color: #0f3460;
  color: white;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 139, 0.4);
  cursor: pointer;
}

.genres select{
  margin: 20px;
  width: 100px;
  padding: 10px 5px;
  margin-right: 10px;
  border-radius: 30px;
  border: none;
  background-color: #0f3460;
  color: white;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 139, 0.4);
  cursor: pointer;
}


.genres select:hover,
.genres button:hover {
  background-color: #000000;
  box-shadow: 0 5px 15px rgba(30, 144, 255, 0.6);
  
}



.genres button:hover {
  background-color: #3b5998;
}

/* Animations */
@keyframes glow {
  0% { box-shadow: 0 0 5px #1e90ff; }
  100% { box-shadow: 0 0 20px #1e90ff; }
}

.searchButton:hover {
  animation: glow 0.6s infinite alternate;
}

@keyframes inputGlow {
  0% { box-shadow: inset 0 0 5px #1e90ff; }
  100% { box-shadow: inset 0 0 15px #1e90ff; }
}

.searchInput:focus {
  animation: inputGlow 1s infinite alternate;
}




@media (max-width: 768px) {

  .topnav {
    border-radius: 20px;
  }

  .logo {
    justify-self: center;
    margin: 0 auto;
    top: 0;
    height: 30px;
    width: auto;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    filter: drop-shadow(0 0 8px #1e90ff); /* Subtle glow */
    margin-left: 75%;
  }

  .search-container {
    display: flex;
    align-items: center;
    flex-direction: column; /* Align vertically for better mobile layout */
    width: 100%; /* Ensure full width for small screens */
  }

  .searchBox {
    width: 100%; /* Full width for better usability on mobile */
  }

  .genres {
    width: 100%; /* Full width for genre selection */
    display: flex;
    justify-content: space-between;
  }


  .popular-movie-info {
 
    top: 60% !important; /* Position it in the middle vertically */
     }

     .popular-movie-info h3 {
      font-size: 24px !important;
      font-weight: 700;
      margin: 10px 0;
    }
    
    .popular-movie-info p {
      font-size: 15px !important;
      margin: 10px 0;
    }

    .other-movie-card {
     
      width: 100px !important;
      height: 150px !important; /* Adjust as needed */
     
    }

    .genres select,
.genres button {
  margin-top: 20px;
  margin-left: 0;
  width: 100px;
  padding: 10px 5px;
  margin-right: 10px;
  border-radius: 30px;
  border: none;
  background-color: #0f3460;
  color: white;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 139, 0.4);
  cursor: pointer;
}
}













.main-content {
  width: 100%;
  padding-top: 100px; /* Adjust for fixed top nav */
  box-sizing: border-box;
  position: relative;
  z-index: 2; /* Ensure main content is above the popular movies */
}







.popular-background {
  position: fixed; /* Fix the popular section in place */
  top: 0;
  width: 99%;
  height: 100vh; /* Make the height fill the viewport */
  overflow: hidden;
  z-index: 1; /* Ensure it is below the main content */
  border-radius: 50px; /* Add rounded corners */
  margin-left: 1%;
}

.popular-movies {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.popular-movie-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background-size: cover;
  background-position: top; /* Display from the top part of the images */
  background-repeat: no-repeat;
  height: 100%;
  transition: transform 0.3s ease;
  position: relative; /* Ensure it's the reference point for absolute positioning */
  overflow: hidden; /* Ensure content stays within the bounds of the card */
  border-radius: 20px; /* Add rounded corners */
}









/* Base styling for the movie info container */
.popular-movie-info {
  background-color: rgba(0, 0, 0, 0.75); /* Subtle dark overlay */
  width: 90%; /* Adjusted width for a clean look */
  padding: 40px 20px; /* Additional padding for better spacing */
  text-align: center;
  position: absolute;
  top: 70%; /* Positioned lower for a balanced look */
  left: 50%;
  transform: translateX(-50%) translateY(-50%); /* Center it precisely */
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  border-radius: 50px; /* Full rounded pill shape */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); /* Soft shadow for depth */
  backdrop-filter: blur(5px); /* Slight background blur for a modern touch */
  display: flex; /* Flex layout for neat alignment */
  flex-direction: column; /* Stack content vertically */
  align-items: center; /* Center align items */
  justify-content: space-between; /* Evenly distribute space between items */
  height: auto; /* Adjust height dynamically based on content */
}

/* Title styling */
.popular-movie-info h3 {
  font-size: 22px; /* Smaller text for elegance */
  font-family: 'Helvetica Neue', sans-serif; /* Clean, modern font */
  font-weight: 600; /* Slightly bolder for the title */
  color: #fff;
  margin-bottom: 10px; /* Space between the title and description */
  text-transform: uppercase; /* All caps for a premium feel */
  letter-spacing: 1px; /* Small spacing for readability */
}

/* Description styling */
.popular-movie-info p {
  font-size: 14px; /* Small text for a premium feel */
  font-family: 'Arial', sans-serif; /* Clean, sans-serif font */
  color: #d1d1d1;
  margin: 10px 0 20px; /* Spacing above and below the description */
  line-height: 1.6;
  font-weight: 400;
  max-height: 150px; /* Limit height of description */
  text-overflow: ellipsis; /* Show ellipsis if text overflows */
  text-align: center; /* Center the text */
  overflow: auto; /* Ensure text doesn't exceed the container */
}

/* Button Styling (Circular, Premium Look) */
.popular-movie-info .watch-now-button {
  text-decoration: none;
  background-color: #e50914; /* Premium red color */
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px; /* Circular button */
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Space between icon and text */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); /* Subtle shadow */
}

/* Hover Effect for the button */
.popular-movie-info .watch-now-button:hover {
  background-color: #f40612; /* Slightly darker on hover */
  transform: scale(1.05); /* Smooth scaling effect */
}

/* Icon inside button */
.popular-movie-info button i {
  font-size: 18px; /* Adjust icon size */
  transition: transform 0.3s ease;
}

/* Hover effect for icon inside button */
.popular-movie-info button:hover i {
  transform: translateX(5px); /* Subtle movement */
}

/* Active Button Effect */
.popular-movie-info button:active {
  transform: scale(0.98); /* Slight shrink on click */
}

/* Focus Style for Button */
.popular-movie-info button:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); /* Glow effect on focus */
}





.movie-rating-badge {
  position: absolute;
  top: 20px;
  right: 10px;
  background: #0e9eb7af; /* Netflix red */
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 3px;
  transform: rotate(45deg); /* Slanted styling */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
  pointer-events: none; /* Prevent interaction */
  display: flex;
  align-items: center;
  gap: 5px; /* Space between icon and text */
}

/* Icon inside movie rating badge */
.movie-rating-badge i {
  font-size: 14px;
  color: #ffffff; /* Gold color for the star icon */
}







.swipeup {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 30px; /* Enhance the rounding for a button-like appearance */
  width: auto;
  margin: 0;
  position: absolute;
  bottom: -30px; /* Position at the bottom */
  left: 50%;
  transform: translateX(-50%); /* Center it horizontally */
  cursor: pointer;
  animation: bounce 1s infinite; /* Add bounce animation */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Soft shadow for cool effect */
  z-index: 10;
}

.swipeup:hover {
  color: #e50914;
  text-decoration: underline;
  background-color: rgba(0, 0, 0, 0.8); /* Darker background on hover */
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}








.other-section {
  position: relative;
  background-color: rgba(19, 23, 32, 0.273);
  padding: 20px;
  margin-top: 100vh; /* Start below the popular movies section */
  z-index: 3; /* Ensure it is above the popular movies section */
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.751); /* Soft shadow for cool effect */
}

.other-movies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}





.other-movie-card {
  position: relative;
  border-radius: 10px;
  margin: 10px;
  padding: 0; /* Remove padding */
  width: 150px;
  height: 200px; /* Adjust as needed */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 0 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.829);
}

.other-movie-card img {
  width: 100%;
  height: 100%; /* Full card height */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.other-movie-card .movie-title-container {
  position: absolute;
  top: 3px;
  width: 100%;
  background: rgba(0, 0, 0, 0.724); /* Dark background */
  color: white;
  text-align: center;
  padding: 5px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-radius: 100px;
}

.other-movie-card:hover img {
  transform: scale(1.3);
}

.movie-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.vote-average-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #09c4e5c8; /* Netflix red */
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 100px;
  transform: rotate(-20deg); /* Slanted styling */
  box-shadow: 0 3px 10px rgb(0, 0, 0);
  z-index: 2;
  pointer-events: none; /* Prevent interaction with the badge */
}

.vote-average-badge i {
  font-size: 12px;
  color: #ffffff; /* Gold for the star icon */
}















footer {
  background-color: rgba(19, 23, 32, 0.16);
  color: white;
  padding: 10px;
  text-align: center;
  width: 100%;
  position: relative;
  backdrop-filter: blur(10px);
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}



.pagination-btn {
  text-decoration: none;
  position: relative;
  border: none;
  font-size: 18px;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  width: 70px;
  height: 50px;
  line-height: 2em;
  text-align: center;
  background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
  background-size: 100%;
  border-radius: 30px;
  z-index: 1;
  padding: 1px;
  margin-inline: 20px;
}

.pagination-btn:hover {
  animation: ani 8s linear infinite;
  border: none;
}

@keyframes ani {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 400%;
  }
}

.pagination-btn:before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  z-index: -1;
  background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
  background-size: 400%;
  border-radius: 35px;
  transition: 1s;
}

.pagination-btn:hover::before {
  filter: blur(20px);
}

.pagination-btn:active {
  background: linear-gradient(32deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
}

.popular-arrow {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 12px;
  color: white;
  font-weight: bold;
  font-size: 28px; /* Increase the size for better visibility */
  transition: 0.3s ease;
  user-select: none;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.781); /* Slight transparent background */
  border-radius: 50%; /* Circular background for the arrow */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgb(0, 0, 0); /* Add shadow for a cool effect */
  width: 50px; /* Set a fixed width and height for a circular look */
  height: 50px;
  opacity: 0.8; /* Slight transparency for a soft look */
}

.popular-arrow:hover {
  background-color: rgba(255, 255, 255, 0.8); /* Darker background on hover */
  opacity: 1; /* Full opacity on hover */
  transform: scale(1.3); /* Slight grow on hover */
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

/* Responsive design */
@media (max-width: 1080px) {
  .topnav {
    flex-direction: column;
    align-items: flex-start;
  }
}

