* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Source Sans Pro", Arial, sans-serif;
}



#container {
    background: url('https://image.tmdb.org/t/p/w500/pNjh59JSxChQktamG3LMp9ZoQzp.jpg');
    background-size:cover;
    background-repeat: no-repeat;
}

.cards-wrapper {
 background: #2d465b94 ;
 height: 50vh;
 
}


.cards-list {
    height: 333px;
     display: flex;
    padding: 10px 20px 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;

}

.cards-list .card-item {
    list-style: none;
    display: inline-block;
    height: 90%;
}
.cards-list .card-item:hover {
   scale: 1.05;
   transition: 0.5s;
}

.cards-list .card-item .card-link {
    width: 400px;
    user-select: none;
    display: block;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    color: #fff;
    border: 2px solid transparent;
    transition: 0.2s ease
}

.cards-list .card-link .card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;

}

.cards-list .card-link .card-title {
    font-size: 1.2rem;
    font-weight: 600;
}
.cards-list .card-link .card-description {
    font-size: 1rem;
    color: #fff;
    font-weight: 400;
}

.section1 {

    padding-left: 40px;
    padding-right: 40px;
    overflow-x: auto;
    display: flex;
    gap: 20px;
    scrollbar-width: thick;
    scrollbar-color: #f5efef transparent;

}

.card {

    position: relative;
    min-width: 150px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.card .box-image {
    height: 250px;
    width: 150px;
}

.card .box-image img {
    border-radius: 10px;
    height: 100%;
    width: 100%;
    object-fit:cover;
}

.card .rate {
    position: absolute;
    top: 225px;
    left: 10px;
    background: conic-gradient(
        black 0% 70%,
        black 70% 100%
        );
    width :40px;
    height: 40px;
    padding-left: 4px;
    border-radius: 50%;
    color: white;
    line-height: 2.7;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.profile-details {
    padding-left: 20px;
    margin-top: 16px;

}

.profile-details .date {

    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
}

.profile-details .name {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: black;
    opacity: 1;
}

    body {
      font-family: 'Segoe UI', 'Arial', sans-serif;
      background: white;
      color: #f5f5f5;
      line-height: 1.6;
    }

    header {
      background: #032541;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      padding: 0.5rem 0;
      position:sticky;
      top: 0;
      z-index: 1000;
    }

    .header-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1rem;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .logo h1 {
      color: #21d07a;
      font-size: 1.5rem;
      font-weight: 700;
      margin: 0;
      letter-spacing: 0.5px;
    }

    .logo .logo-icon {
      font-size: 1.8rem;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }

     .nav-menu {
      display: flex;
      gap: 2rem;
      list-style: none;
      margin: 0;
      padding: 0;
      
    }

    .nav-menu > li {
      position: relative;
    }

    .nav-menu > li > a {
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      transition: background 0.2s;
    }

    .nav-menu > li > a:hover {
      background: #205375;
    }

    .nav-menu ul {
      display: none;
      position: absolute;
      background: #205375;
      top: 2.5rem;
      left: 0;
      min-width: 180px;
      border-radius: 0 0 8px 8px;
      box-shadow: 0 4px 16px #0004;
      z-index: 1000;
      padding: 0.5rem 0;
      list-style: none;
    }

    .nav-menu li:hover > ul {
      display: block;
     }

    .nav-menu ul li a {
      color: #fff;
      padding: 0.5rem 1.5rem;
      display: block;
      text-decoration: none;
      transition: background 0.2s;
    }

    .nav-menu ul li a:hover {
      background: #14405a;
      
    }

    .primary-nav {
      display: flex;
      align-items: center;
      gap: 1rem;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .primary-nav li a {
      color: #fff;
      text-decoration: none;
      font-weight: 500;
      padding: 0.4rem 0.8rem;
      border-radius: 4px;
      transition: background 0.2s;
    }

    .primary-nav li a:hover {
      background: #205375;
    }

    .search-bar {
       background: #205375;
       background-size: cover;
       background-position: center;
       background-repeat: no-repeat;
       padding: 4rem 0;
       height: 100vh;
       display: flex;
       align-items: center;
       position: relative;
       transition: all 0.8s ease-in-out;
       opacity: 1;
     }

    .search-bar::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.4);
      z-index: 1;
    }

    .search-container {
      position: relative;
      z-index: 2;
    }

    .search-container {
      max-width: 1200px;
      
      margin: 0 auto;
      padding: 0 1rem;
    }

    .search-form {
      display: flex;
      gap: 0.5rem;
      align-items: center;
    }

 
   
    

     .footer {
      background: #032541;
      color: #fff;
      padding: 3rem 0 1rem 0;
      margin-top: auto;
    }

    .footer-logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .footer-logo h2 {
      color: #21d07a;
      font-size: 1.5rem;
      font-weight: 700;
      margin: 0;
      letter-spacing: 0.5px;
    }

    .logo-icon {
      font-size: 1.8rem;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      padding: 0 1rem;
    }

    .footer-section h3 {
      color: #21d07a;
      margin-bottom: 1rem;
      font-size: 1.2rem;
      font-weight: 600;
    }

    .footer-section p {
      color: #ccc;
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .footer-section ul {
      list-style: none;
      padding: 0;
    }

    .footer-section ul li {
      margin-bottom: 0.5rem;
    }

    .footer-section ul li a {
      color: #ccc;
      text-decoration: none;
      transition: color 0.2s;
    }

    .footer-section ul li a:hover {
      color: #21d07a;
    }

    .social-links {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .social-link {
      color: #ccc;
      text-decoration: none;
      padding: 0.5rem 1rem;
      border: 1px solid #444;
      border-radius: 4px;
      transition: all 0.2s;
    }

    .social-link:hover {
      color: #21d07a;
      border-color: #21d07a;
      background: rgba(33, 208, 122, 0.1);
    }

    .footer-bottom {
      border-top: 1px solid #444;
      margin-top: 2rem;
      padding-top: 1rem;
      text-align: center;
    }

    .footer-bottom p {
      color: #999;
      font-size: 0.9rem;
    }

    @media (max-width: 900px) {
      .nav-menu {
        gap: 1rem;
      }
    }

    @media (max-width: 600px) {
      .header-content {
        flex-direction: column;
        gap: 1rem;
      }
      
      .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
      }
      
      .search-form {
        flex-direction: column;
      }
      
      
    }