@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


body{
    background-color: #f5f5f5;
    color: #333;
}


nav{
    background: linear-gradient(135deg, #111111, #232f3e);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}


/* Navbar styling */
.nabar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}


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


.logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}


.peak {
    background: linear-gradient(to right, #f5c518, #ffdd45);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.cinema {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.search-container {
    position: relative;
    width: auto;
}


.search-container form {
    display: flex;
    align-items: center;
}


.search-container input,
.search-container button {
    border: none;
    font-size: 16px;
    transition: all 0.3s ease;
}


.search-container input {
    padding: 12px 20px;
    width: 300px;
    border-radius: 50px 0 0 50px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-right: none;
}


.search-container input:focus {
    outline: none;
    background: #fff;
    width: 350px;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.3);
}


.search-container input::placeholder {
    color: #777;
    font-weight: 300;
    transition: opacity 0.3s;
}


.search-container input:focus::placeholder {
    opacity: 0.7;
}


.searchBtn {
    height: 100%;
    padding: 12px 25px;
    border-radius: 0 50px 50px 0;
    background: linear-gradient(to right, #f5c518, #ffdd45);
    cursor: pointer;
    font-weight: 600;
    color: #232f3e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}


.searchBtn:hover {
    background: linear-gradient(to right, #ffdd45, #f5c518);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.searchBtn i {
    font-size: 18px;
}


/* main movie section styling */
main {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}


main section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}


.movie-container {
    display: flex;
    justify-content: center;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.movie-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}


.movie-poster img {
    height: 450px;
    margin-right: 30px;
    transition: all 0.3s ease;
}


.movie-poster img:hover {
    transform: scale(1.02);
}


.movie-details {
    padding-inline: 25px;
}


.movie-details h2 {
    text-align: center;
    font-size: 32px;
    margin: 20px 0 12px;
    background: linear-gradient(to right, #232f3e, #121212);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.movie-details h2+p {
    text-align: center;
}


.movie-details .movie-genre {
    display: flex;
    justify-content: center;
    margin-block: 12px;
    flex-wrap: wrap;
}


.movie-details p {
    font-size: 18px;
    margin-block: 16px;
    line-height: 1.6;
    overflow-x: auto;
}


.movie-details .movie-genre p {
    background: linear-gradient(to right, #232f3e, #121212);
    color: #fff;
    padding: 8px 18px;
    margin: 5px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}


.movie-details .movie-genre p:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.noBackground {
    background: none !important;
    box-shadow: none !important;
    align-items: center;
}


.movie-container.noBackground h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #232f3e, #121212);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 15px;
}


.movie-container.noBackground h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #f5c518, #ffdd45);
    border-radius: 2px;
}


/* footer styling */
footer {
    text-align: center;
    background: linear-gradient(135deg, #111111, #232f3e);
    color: #fff;
    padding: 25px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}


footer p {
    opacity: 0.9;
    letter-spacing: 1px;
    font-weight: 300;
    font-size: 16px;
}


/* Responsive Functionality */
@media screen and (max-width: 950px) {
    .movie-container {
        flex-direction: column;
        align-items: center;
        width: 95%;
    }
    .movie-container.noBackground h2 {
        font-size: 32px;
    }
    .search-container input {
        width: 200px;
    }
    .search-container input:focus {
        width: 250px;
    }
}


@media screen and (max-width: 768px) {
    .nabar {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }
    .search-container {
        width: 100%;
    }
    .search-container form {
        width: 100%;
    }
    .search-container input {
        width: 100%;
    }
    .search-container input:focus {
        width: 100%;
    }
    .logo h1 {
        font-size: 28px;
    }
    .movie-container.noBackground h2 {
        font-size: 28px;
    }
}


@media screen and (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }
    .searchBtn {
        padding: 12px 15px;
    }
    .movie-container.noBackground h2 {
        font-size: 24px;
    }
    .movie-container.noBackground h2::after {
        width: 80px;
    }
}


/* Movie details page styling - similar to the image */
.movie-details-page {
  position: relative;
  width: 100%;
  min-height: 85vh;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.4) 100%);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
}


.movie-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  object-position: center right;
}


.movie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.movie-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}


.movie-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 16px;
  color: #ddd;
}


.movie-meta span {
  display: flex;
  align-items: center;
}


.imdb-rating {
  display: flex;
  align-items: center;
  background-color: rgba(245, 197, 24, 0.8);
  color: black;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}


.info-section {
  margin-bottom: 20px;
}


.info-section h3 {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
}


.genres-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.genre-tag {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 14px;
}


.directors-list, .cast-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}


.summary-text {
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
}


.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}


.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}


.action-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}


.action-btn i {
  font-size: 16px;
}
