@import url("https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&family=Martel+Sans:wght@200;300;400;600;700;800;900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  font-family: Poppins;
  transition: all 0.3s ease;
}
body {
  background-color: black;
  background: linear-gradient(to bottom, #000000, #141414);
  position: relative;
  min-height: 100vh;
}
.main {
  background-image: url(bg.jpg);
  background-position: center center;
  background-size: max(1200px, 100vw);
  background-repeat: no-repeat;
  height: 70vh;
  position: relative;
  z-index: 1;
}
.movies, .recommendations {
  padding: 40px;
  color: white;
  background: #141414;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movies {
  margin-top: 0;
  padding-top: 20px;
  padding-bottom: 0;
}

.recommendations {
  margin-top: 0;
  padding-top: 0;
  border-radius: 0;
  box-shadow: none;
}
.trending {
  padding: 50px 0;
  background: linear-gradient(45deg, #000000, #1a1a1a);
  color: white;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

.trending::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,0,0,0.1) 0%, rgba(0,0,0,0) 70%);
  animation: rotate3d 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate3d {
  0% {
    transform: rotate3d(1, 1, 1, 0deg);
  }
  100% {
    transform: rotate3d(1, 1, 1, 360deg);
  }
}

.trending h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  padding: 0 20px;
}

.trending-swiper {
  padding: 20px;
  height: 500px;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.trending-swiper .swiper-slide {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.5s ease;
  height: 450px;
  width: 300px !important;
  transform-style: preserve-3d;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.trending-swiper .swiper-slide:hover {
  transform: translateY(-20px) rotateY(10deg);
  box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
}

.trending-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  transition: all 0.5s ease;
}

.trending-swiper .swiper-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.trending-swiper .swiper-button-next,
.trending-swiper .swiper-button-prev {
  color: white;
  background: rgba(255, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.trending-swiper .swiper-button-next:hover,
.trending-swiper .swiper-button-prev:hover {
  background: rgba(255, 0, 0, 0.5);
  transform: scale(1.1);
}

.trending-swiper .swiper-button-next::after,
.trending-swiper .swiper-button-prev::after {
  font-size: 24px;
  font-weight: bold;
}

.trending-swiper .swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.trending-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: red;
  transform: scale(1.2);
}

/* Add floating animation to the entire slider */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Add glowing effect on hover */
.trending-swiper .swiper-slide:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.movies:hover, .recommendations:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.1);
}

.movies h2, .recommendations h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  transition: color 0.3s ease;
}

.movies:hover h2, .recommendations:hover h2 {
  color: #ff4d4d;
}

.movies h2::after, .recommendations h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff0000, #ff4d4d);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.movies:hover h2::after, .recommendations:hover h2::after {
  width: 150px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px;
}

.movie-card {
  background: linear-gradient(145deg, #222, #333);
  padding: 25px;
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.movie-poster {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster {
  transform: scale(1.05);
}

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #ffd700;
  font-size: 16px;
}

.rating-value {
  color: #aaa;
  font-size: 14px;
}

.genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-tag {
  background: rgba(255, 77, 77, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #ff4d4d;
  transition: all 0.3s ease;
}

.movie-card:hover .genre-tag {
  background: rgba(255, 77, 77, 0.2);
  transform: scale(1.05);
}

.movie-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.movie-card:hover .movie-actions {
  opacity: 1;
  transform: translateY(0);
}

.watch-trailer, .more-like-this {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.watch-trailer {
  background: #ff4d4d;
  color: white;
}

.more-like-this {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.watch-trailer:hover {
  background: #ff3333;
  transform: translateY(-2px);
}

.more-like-this:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.movie-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
  transition: color 0.3s ease;
}

.movie-card:hover .movie-title {
  color: #ff4d4d;
}

.movie-year {
  color: #aaa;
  font-size: 14px;
}

.recommendations {
  background: #1a1a1a;
  margin-top: 40px;
}

.recommendations h2 {
  color: #ff4d4d;
}

.no-recommendations {
  text-align: center;
  color: #aaa;
  font-size: 18px;
  padding: 40px;
  font-style: italic;
}

.main .box {
  height: 70vh;
  width: 100%;
  opacity: 0.69;
  position: absolute;
  top: 0;
  background-color: black;
  z-index: 1;
}
nav {
  display: flex;
  max-width: 80vw;
  margin: auto;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  position: relative;
  z-index: 2;
}
.flex {
  position: relative;
  z-index: 10;
}
nav button {
  position: relative;
  z-index: 10;
}
.hero {
  color: white;
  height: calc(100%-100px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  font-family: "Martel Sans", sans-serif;
  padding: 50px 30px;
  z-index: 2;
}
.hero > :nth-child(1) {
  font-weight: bolder;
  font-size: 48px;
  text-align: center;
}
.hero > :nth-child(2) {
  font-weight: 400;
  font-size: 24px;
  text-align: center;
}
.hero > :nth-child(3) {
  font-weight: 400;
  font-size: 20px;
  text-align: center;
}
.seperation {
  height: 11px;
  background-color: black;
  position: relative;
  z-index: 2;
}
.btn {
  padding: 3px 8px;
  font-weight: 400;
  color: white;
  background-color: rgba(223, 198, 198, 0.127);
  border-radius: 4px;
  border: 1px solid white;
  cursor: pointer;
}
.btn-red {
  background-color: red;
  font-weight: 400;
  color: white;
  padding: 3px 24px;
  border-radius: 4px;
  box-shadow: 0 0 20px red;
  font-size: 20px;
}
.btn-red:hover {
  box-shadow: 0 0 30px red;
}
.btn-red-sm {
  background-color: red;
  color: white;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.main input {
  padding: 7px 101px 8px 14px;
  color: white;
  font-weight: 900;
  border-radius: 4px;
  font-size: 12px;
  background-color: rgba(23, 23, 23, 0.7);
  border: 1px solid rgba(246, 238, 238, 0.5);
}
.first {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  width: 100%;
  color: white;
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background-color: transparent;
  padding: 60px 10%;
  box-sizing: border-box;
  z-index: 1;
  gap: 40px;
}

.first::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.first > div {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  width: 45%;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0;
}

.first > div span {
  display: block;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.first > div :nth-child(1) {
  font-size: 48px;
  font-weight: bolder;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #ff0000, #ff6b6b);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: textGlow 2s ease-in-out infinite;
}

.first > div :nth-child(2) {
  font-size: 24px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.first.second {
  flex-direction: row;
}

.first.second .secimg {
  order: -1;
}

.secimg {
  position: relative;
  z-index: 2;
  width: 45%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.secimg:hover {
  transform: scale(1.05);
}

.secimg img {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 2;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  transition: transform 0.3s ease;
}

.faq h2 {
  text-align: center;
  font-size: 48px;
}
.faq {
  background-color: black;
  color: white;
  padding: 40px;
  position: relative;
  z-index: 2;
}
.faqbox:hover {
  background-color: #414141;
  color: white;
}
.faqbox {
  background: #222;
  color: white;
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer
}
footer {
  color: white;
  width: 100%;
  padding: 14px 0;
  background-color: black;
  position: relative;
  z-index: 2;
}
footer hr {
  width: 100%;
  border: 0.5px solid gray;
  opacity: 0.5;
  margin: 0 0;
}
footer .questions {
  padding: 34px 0;
  text-align: center;
  max-width: 60vw;
  margin: 0 0;
}
.footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  color: white;
  background-color: black;
  max-width: 60vw;
  margin: 0 auto;
  padding: 0 14px;
}
@media screen and (max-width: 1300px) {
  nav
  {
    max-width: 90vw;
  }
  .first {
    flex-direction: column;
    padding: 40px 5%;
    text-align: center;
    gap: 30px;
  }
  .first.second {
    flex-direction: column;
  }
  .first.second .secimg {
    order: 0;
  }
  .first > div {
    width: 100%;
    margin: 0;
    padding: 30px;
  }
  .secimg {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .secimg img {
    max-width: 400px;
  }
  .hero > :nth-child(1) {
    font-size: 36px;
  }
  .hero > :nth-child(2) {
    font-size: 20px;
  }
  .hero > :nth-child(3) {
    font-size: 18px;
  }
  .hero-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }
  .faq h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
  }
  footer {
    max-width: 90vw;
  }
  .footer-item {
    align-items: center;
  }
  .footer {
    max-width: 90vw;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background-color: black;
    padding: 40px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  
  footer .questions {
    max-width: 90vw;
  }
}
.footer a {
  color: gray;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
}
.footer a:hover {
  text-decoration: underline;
  color: white;
}
.footer-item {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.language-select {
  display: flex;
  justify-content: flex-start; 
  margin-top: 20px;
  font-family: "Martel Sans", sans-serif;
}
.language-select select {
  padding: 8px 36px 8px 12px;
  font-size: 14px;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  color: #ff4d4d;
  border: 1px solid #ff4d4d;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ff4d4d" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(255, 77, 77, 0.2);
}

.language-select select:hover {
  background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
  border-color: #ff6666;
  box-shadow: 0 4px 8px rgba(255, 77, 77, 0.3);
  transform: translateY(-1px);
}

.language-select select:focus {
  outline: none;
  border-color: #ff6666;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
}

.language-select select option {
  background-color: #1a1a1a;
  color: white;
  padding: 10px;
}

.language-select select option:hover {
  background-color: #ff4d4d;
  color: white;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question span {
  flex-grow: 1; 
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 0; 
  white-space: nowrap;
  animation: typing 1.5s steps(40, end) 1;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
.faq-question svg {
  flex-shrink: 0; 
  margin-left: 20px; 
  width: 24px;
  height: 24px;
}
.faqbox.active {
  background: linear-gradient(135deg, #1f1f1f, #333333);
}
.faqbox.active .faq-answer {
  max-height: 500px; 
  padding: 20px 0 0 0; 
}
.faqbox.active .faq-question svg {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.arrow {
  transition: transform 0.3s ease;
}
.faqbox.active .arrow {
  transform: rotate(45deg); 
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 0;
  max-width: 60vw;
  margin: 0 auto;
}
.language-select {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
}
.language-select select {
  padding: 8px 36px 8px 12px;
  font-size: 14px;
  background-color: black;
  color: gray;
  border: 1px solid gray;
  appearance: none;
  background-image: url('https://cdn-icons-png.flaticon.com/512/271/271210.png');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  border-radius: 4px;
}
.netflix-text {
  color: gray;
  font-size: 14px;
  margin: 0 10px;
  margin-top: 10px;
}
.copyright-text {
  color: gray;
  font-size: 12px;
  margin: 0 300px;
  margin-top: 10px;
}
@media screen and (max-width: 1300px) {
  .footer-bottom {
    max-width: 90vw;
  }
}
@media screen and (max-width: 768px) {
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .movies, .recommendations {
    padding: 20px;
  }

  .movie-poster {
    height: 150px;
  }
  
  .movie-actions {
    opacity: 1;
    transform: translateY(0);
  }
  
  .watch-trailer, .more-like-this {
    padding: 6px 12px;
    font-size: 12px;
  }

  .movie-title {
    font-size: 18px;
  }

  .movie-info, .movie-genres {
    font-size: 12px;
  }

  .movie-card:hover {
    transform: translateY(-5px);
  }
  
  .movie-card::after {
    transform: none;
  }

  .trending-swiper {
    height: 400px;
  }
  
  .trending-swiper .swiper-slide {
    height: 350px;
    width: 250px !important;
  }
}

@media screen and (max-width: 480px) {
  .trending-swiper {
    height: 350px;
  }
  
  .trending-swiper .swiper-slide {
    height: 300px;
    width: 200px !important;
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
  }
}

.movie-filters {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(229, 9, 20, 0.08);
  padding: 18px 28px;
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1.5px solid rgba(229, 9, 20, 0.15);
}

#movieSearch {
  background: rgba(30, 30, 30, 0.85);
  color: #fff;
  border: 1.5px solid rgba(229, 9, 20, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1.1rem;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.05);
  position: relative;
  line-height: 1.5;
  height: 48px;
  width: 220px;
}

#movieSearch:focus {
  border: 1.5px solid #E50914;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.15);
}

#movieSearch::placeholder {
  color: #aaa;
  font-size: 1rem;
}

#genreFilter {
  background: rgba(30, 30, 30, 0.85);
  color: #fff;
  border: 1.5px solid rgba(229, 9, 20, 0.25);
  border-radius: 8px;
  padding: 12px 40px 12px 16px;
  font-size: 1.1rem;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.05);
  appearance: none;
  cursor: pointer;
  min-width: 160px;
}
#genreFilter:focus {
  border: 1.5px solid #E50914;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.15);
}

/* Custom dropdown arrow */
#genreFilter {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23E50914" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

@media (max-width: 600px) {
  .movie-filters {
    flex-direction: column;
    gap: 14px;
    padding: 14px 10px;
  }
  #movieSearch, #genreFilter {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 10px 16px;
    height: 44px;
  }
}