/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: linear-gradient(90deg, #1f1c2c, #928dab);
}

header .title {
  font-size: 2rem;
  background: linear-gradient(90deg, #f857a6, #ff5858);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  letter-spacing: 2px;
}

header .searchbar input {
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  outline: none;
  width: 300px;
  transition: 0.3s;
}

header .searchbar input:focus {
  width: 400px;
  box-shadow: 0 0 10px #ff5858;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 150px 20px;
  background: url("https://www.teknofilo.com/wp-content/uploads/2021/06/Netflix.jpg")
    center center/cover;
  position: relative;
  overflow: hidden;
}

/* Dark overlay for hero */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero h1,
.hero p,
.hero button {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, #f857a6, #ff5858);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroFade 2s ease-in-out infinite alternate;
}

.hero p {
  max-width: 600px;
  margin: 20px 0;
  font-size: 1.2rem;
}

.hero button {
  padding: 12px 35px;
  background: #ff5858;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.hero button:hover {
  background: #f857a6;
  transform: scale(1.1);
}

/* Keyframes for hero text animation */
@keyframes heroFade {
  0% {
    opacity: 0.8;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Titles */
.Title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #f857a6, #ff5858);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Movies Grid */
.Tollywood-grid,
.Bollywood-grid,
.Hollywood-grid,
.webseries-grid,
.Thriller-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 20px 50px 20px;
}

/* Movie Cards */
.movies-card {
  background: #1c1c1c;
  border-radius: 15px;
  overflow: hidden;
  width: 23%;
  min-width: 250px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.movies-card img {
  width: 100%;
  height: 350px; /* uniform height */
  border-radius: 15px 15px 0 0;
  object-fit: cover;
  transition: transform 0.3s;
}

.movies-card p {
  padding: 10px;
  font-size: 0.9rem;
}

.movies-card button {
  margin: 10px 0 15px 0;
  padding: 8px 25px;
  background: #ff5858;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

/* Hover Effects */
.movies-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(255, 88, 88, 0.5);
}

.movies-card:hover img {
  transform: scale(1.05);
}

.movies-card button:hover {
  background: #f857a6;
}

/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
  .movies-card {
    width: 31%;
  }
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 20px;
  }

  .movies-card {
    width: 45%;
  }

  header .searchbar input:focus {
    width: 300px;
  }
}

@media (max-width: 600px) {
  .movies-card {
    width: 90%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Footer CSS */
footer {
  background: linear-gradient(
    135deg,
    #ff416c,
    #ff4b2b
  ); /* gradient background */
  color: #fff;
  padding: 60px 20px 30px; /* top, sides, bottom */
  font-family: Arial, sans-serif;
  margin-top: 50px; /* space above footer */
}

footer div {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

footer h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

footer p {
  line-height: 1.6;
  max-width: 300px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 8px;
}

footer ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: #ffd700;
}

footer form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
}

footer input,
footer textarea {
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 14px;
}

footer button {
  padding: 12px;
  border-radius: 5px;
  border: none;
  background-color: #ffd700;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

footer button:hover {
  background-color: #fff;
  color: #ff4b2b;
}

footer > div:last-child {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #eee;
}

/* Responsive */
@media screen and (max-width: 768px) {
  footer div {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer p,
  footer form {
    max-width: 100%;
  }

  footer ul li {
    display: inline-block;
    margin: 0 10px 10px 0;
  }
}
