* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased; /* لزيادة نعومة الخط */
}
.container {
  margin: 20px 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
body {
  height: 100vb;
  background-image: url("/imgs/backgroundImage.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow-x:hidden;
}
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
.header {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
.close-menu {
  display: none;
}
.header nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(224, 213, 213, 0.15);
  padding: 10px 20px;
  border-radius: 68px;
  border: 1px solid rgba(224, 213, 213, 0.2);
}
.header nav ul li a {
  text-decoration: none;
  color: white;
  padding: 10px;
  font-size: 14px;
  position: relative;
  display: inline-block;
}
.header nav ul li a::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transition: all 0.4s ease-in-out;
  transform: translateX(-50%);
}
.header nav ul li a:hover::before {
  width: 80%;
}
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  /* width: 150px; */
}
.login img {
  padding-left: 10px;
  cursor: pointer;
}
.login a {
  text-decoration: none;
  background-color: #f84565;
  color: white;
  padding: 10px 20px;
  border-radius: 32px;
  transition: 0.3s ease;
  font-weight: 500;
}
.login a:hover {
  background-color: #ae354b;
}
.hamborger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  display: none;
}
.hamborger span {
  background-color: white;
  width: 20px;
  height: 2px;
}
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
    z-index: 1000;
  }
  nav.active {
    left: 0;
  }
  .header nav ul {
    flex-direction: column;
    background: transparent;
    gap: 20px;
    border: none;
  }
  nav ul li a {
    font-size: 24px;
    font-weight: 600;
  }
  .close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
  }
  .hamborger {
    display: flex;
  }
  #nav,
  .close-menu {
    display: flex;
  }
  #searchIcon {
    display: none;
  }
  .container {
    margin: 20px 0;
  }
  .login {
    width: fit-content;
    padding-left: 200px;
    gap: 30px;
  }
}
@media (max-width: 768px) {
    .login {
        width: auto;
        padding-left: 0;
        gap: 15px;
    }
}
/* end header */
/* start hero  */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}
.hero-container {
  flex-direction: column;
  align-items: flex-start !important;
  text-align: left;
  margin-left: 160px;
}
.hero-content {
  max-width: 500px;
}
.marvel-img img {
  margin-bottom: 15px;
}
.hero-section .container h1 {
  font-size: 64px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}
.movie-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #d1d5dc;
  font-size: 14px;
  margin-bottom: 20px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.description {
  color: #ebf3ff;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 30px;
  line-height: 1.6;
}
.explore-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f84565;
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 32px;
  font-weight: 500;
  transition: 0.3s ease;
  width: fit-content;
  font-size: 14px;
}
.explore-btn:hover {
  transform: scale(1.05);
  background-color: #ae354b;
}
@media (max-width: 768px) {
  .hero-container {
    margin-left: 20px;
    margin-right: 20px;
  }
  .hero-section .container h1 {
    font-size: 40px;
  }
}
/* end hero  */
/* start moviesSection */
/* end moviesSection */
.movies-section {
  background-color: #0d1117;
  padding: 80px 0;
  color: white;
  position: relative;
}
.movie-container {
  margin: 20px 50px;
}
.movies-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(248, 69, 101, 0.25),
    transparent 70%
  );
  pointer-events: none;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 0 10px;
}
.section-header h2 {
  font-size: 20px;
  font-weight: 500;
  color: #d1d5dc;
}
.view-all {
  color: #99a1af;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}
.view-all:hover {
  color: white;
}
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 10px;
}
.movie-card {
  background-color: #12161c;
  border-radius: 20px;
  padding: 12px;
  transition: transform 0.3s ease;
}
.movie-card:hover {
  transform: translateY(-10px);
}
.card-img img {
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}
.card-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}
.card-info p {
  font-size: 13px;
  color: #8892b0;
  margin-bottom: 20px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.buy-btn {
  background-color: #f84565;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}
.buy-btn:hover {
  background-color: #d13a55;
}
.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8892b0;
  font-size: 15px;
}
.show-more-container {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}
.show-more-btn {
  background-color: #f84565;
  color: white;
  border: none;
  padding: 12px 45px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}
.show-more-btn:hover {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  .movies-section {
    width: 100%;
  }
}
/* start trailers */
.trailers-section {
  background-color: #0d1117;
  padding: 60px 0;
  color: white;
  position: relative;
}
.trailers-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(248, 69, 101, 0.25),
    transparent 70%
  );
  pointer-events: none;
}
.trailers-container {
  margin: 20px 80px;
}
.section-title {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 500;
}
.main-video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 30px;
  aspect-ratio: 16 / 9; /* أهم خاصية عشان الفيديو ما يتمطش */
  z-index: 1000;
}
.main-video-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.thumbnails-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.thumbnail {
  position: relative;
  width: 180px;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.6;
  transition: 0.3s;
  border: 2px solid transparent;
}
.thumbnail.active {
  opacity: 1;
  border-color: #f84565; /* برواز أحمر للصورة المختارة */
}
.thumbnail:hover {
  opacity: 1;
  transform: scale(1.08);
}
.thumbnail img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f84565;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
/* end trailers */
/* start footer  */
.footer {
  background-color: #0d1117;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start !important; /* تأكيد البدء من الأعلى */
  gap: 50px;
  flex-wrap: wrap;
  margin: 0 50px;
}
.footer-info {
  flex: 2; /* تأخذ مساحة أكبر */
  max-width: 400px;
}
.footer-info p {
  color: #ffffffcc;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
}
.app-buttons {
  display: flex;
  gap: 15px;
}
.app-buttons img {
  height: 40px;
  cursor: pointer;
}
.footer-links,
.footer-contact {
  flex: 1;
}
.footer h3 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-links ul {
  list-style: none;
}
.footer-links ul li {
  margin-bottom: 12px;
}
.footer-links ul li a {
  color: #ffffffcc;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}
.footer-links ul li a:hover {
  color: #f84565;
}
.footer-contact p {
  color: #ffffffcc;
  font-size: 14px;
  margin-bottom: 12px;
}
.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding-top: 20px;
  color: #777;
  font-size: 13px;
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: left;
  }
}
/* end footer  */
