/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  line-height: 1.6;
  background: #0f0f0f;
  color: #ffffff;
  padding-top: 60px; /* Add padding to the top to account for the fixed navbar */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: #1a1a1a;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff4d4d;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ff4d4d;
}

.mobile-menu {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-menu span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

.mobile-menu span:nth-child(1) {
  top: 0;
}

.mobile-menu span:nth-child(2) {
  top: 8px;
}

.mobile-menu span:nth-child(3) {
  top: 16px;
}

.mobile-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero {
  padding: 120px 0 60px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('https://source.unsplash.com/1600x900/?movie') center/cover;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.search-box {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
}

.search-box input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 4px 0 0 4px;
}

.search-box button {
  padding: 0.8rem 1.5rem;
  background: #ff4d4d;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
}

/* Movies Grid */
.movies {
  padding: 4rem 0;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.movie-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.movie-card:hover {
  transform: translateY(-5px);
}

.movie-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.movie-info {
  padding: 1rem;
  text-align: center;
  width: 100%;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
}

.movie-info .meta {
  margin-bottom: 0.5rem;
}

.movie-info .meta span {
  display: block;
  margin-bottom: 0.5rem;
}

.movie-info a {
  color: #ffffff;
  text-decoration: none;
}

/* Movie Details Section */
.movie-details {
  padding: 120px 0 60px;
  display: flex;
}

.movie-details .movie-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.movie-details .movie-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.movie-details .movie-info a {
  color: #ffffff;
  text-decoration: none;
}

/* Search Results Section */
.search-results {
  padding: 4rem 0;
}

.search-results .movie-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.search-results .movie-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.search-results .movie-info a {
  color: #ffffff;
  text-decoration: none;
}

/* Buttons Container */
.buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem; /* Add space between buttons */
  margin-top: 1rem; /* Add space above the buttons */
}

/* Back Button */
.back-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #ff4d4d;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.back-btn:hover {
  background: #e03e3e;
  transform: translateY(-3px);
}

/* Next Button */
.next-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #ff4d4d;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.next-btn:hover {
  background: #e03e3e;
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: #1a1a1a;
  padding: 2rem 0;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Contact Form Styles */
.contact {
  padding: 4rem 0;
}

.contact h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  background: #1a1a1a;
  color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: #333333;
}

.send-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #ff4d4d;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.send-btn:hover {
  background: #e03e3e;
  transform: translateY(-3px);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
    gap: 2rem; /* Add more space between nav links in mobile view */
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 100px 0 40px;
  }

  .movie-card {
    max-width: 100%;
  }
}

/* Small Screens */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box input,
  .search-box button {
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }

  .search-box button {
    margin-bottom: 0;
  }
}