/* === General Body Styling === */
body {
  background-image: url(''images/background.jpg'')
  background-color: black;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  margin: 0;
  height: 100vh;
  font-family: Arial, sans-serif;
  position: relative;
}

/* === Dark Overlay with Gradient on 4 Sides === */
.overlay-wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 30%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 30%),
    linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent 30%),
    linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent 30%),
    rgba(0, 0, 0, 0.6); /* base dark overlay */
  z-index: -1;
}
/* === Header === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: transparent;
}

img.logo {
  max-width: 300px;
  height: auto;
}

.search-bar {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* === Categories === */
h1 {
  text-align: center;
  color: #fff;
}

.category-nav {
  text-align: center;
  margin-bottom: 20px;
}

.category-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.movie {
  text-align: center;
  color: white;
}

.movie img {
  width: 150px;
  border-radius: 8px;
}

/* === Banner Section === */
.banner {
  width: 600px;
  height: 300px;
  margin: 40px auto; /* Center horizontally with some top margin */
  background-image: url("6101094.jpg.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 30px; /* Bevel-like effect */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); /* Floating shadow effect */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: floating hover animation */
.banner:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}


/* === Movie Rows === */
.row {
  margin: 20px;
}

.list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
}

.list img {
  width: 150px;
  border-radius: 8px;
  cursor: pointer;
}

/* === Modal === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-body img,
.modal-body iframe,
.modal-body video {
  width: 100%;
  max-height: 500px;
  border-radius: 10px;
  border: none;
}

.modal-text {
  flex: 1;
}

/* === Search Modal === */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999;
}

#search-input {
  padding: 10px;
  width: 80%;
  font-size: 1rem;
  border-radius: 8px;
}

.results {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px;
}

.results img {
  width: 120px;
  border-radius: 8px;
  cursor: pointer;
}

/* === Footer === */
.footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-links a {
  margin: 0 10px;
  color: #8F00FF;
  text-decoration: none;
}

/* === Grid Layout === */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  padding: 20px;
}
/*Trending Names Text*/
.row h2 {
  color: white;
}
/* === Mobile Responsive Styles === */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  img.logo {
    max-width: 200px;
  }

  .search-bar {
    width: 100%;
    margin-top: 10px;
  }

  .banner {
    width: 90%;
    height: 200px;
    border-radius: 20px;
  }

  .category-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .movie img,
  .list img {
    width: 100px;
  }

  .row {
    margin: 10px;
  }

  .list {
    gap: 8px;
    padding: 8px;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  #search-input {
    width: 90%;
    font-size: 0.9rem;
  }

  .results img {
    width: 100px;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    padding: 10px;
  }

  .footer {
    padding: 15px 10px;
  }

  .footer-links a {
    display: inline-block;
    margin: 5px 5px;
  }
}
.scroll-trigger {
  height: 1px;
}


/* Add to your css/home.css file or inside <style> in <head> */
@media screen and (max-width: 768px) {
  header, .category-nav, .row, footer, .modal-content {
    flex-direction: column;
    padding: 1em;
    font-size: 1em;
  }

  .search-bar {
    width: 100%;
    margin-top: 10px;
  }

  .list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .list > * {
    flex: 1 1 100%;
    max-width: 100%;
  }

  iframe {
    height: 200px;
  }
}

