/* declare css variables To use later */
:root {
  --bg: #07090d;
  --card: #11151c;
  --soft: #1a2029;
  --text: #e8ecf1;
  --muted: #a9b3bf;
  --accent: #ff365f;
  --accent-2: #8b5cf6;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Roboto, Inter, sans-serif;
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  background: rgba(0,0,0,.9);
  border-bottom: 1px solid var(--bg);
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}


/* Night Scream Title */
.brand {
  font-weight: 700;
  font-size: 1.5rem;
}
.brand span {
  color: var(--accent);
}

/* navigating, Home, About and contact */
nav ul {
  list-style: none;
  text-align: center;
  margin-top: .5rem;
}

nav li {
  display: inline-block;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: .5rem .9rem;
}

/* La sombre al hacer click para navegar por Home, About, Contact */
nav a:hover,
nav a.active {
  background: var(--soft);
}


.introduction {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

/* Introduction title is the Pink title */
.introduction-title {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  font-size: 2.3rem;
  margin: .4rem 0;
}

/* The paragraph belong pink Title */
.introduction-paragraph {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

section {
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: auto;
}

/* Title and description background color */
.card {
  background: var(--card);
  border: 1px solid #20283a;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Size of the poster images */
.card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.pad {
  padding: 1rem;
}

/* Year and Rating colors */
.badge {
  display: inline-block;
  background: var(--soft);
  border-radius: 12px;
  padding: 4px 10px;
  margin-right: 6px;
  font-size: .8rem;
}

.rating {
  color: var(--accent);
  font-weight: bold;
}

/* Contact Box */

.form-container {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 700px;
  margin: 2rem auto;
  box-shadow: var(--shadow);
}

.form-container label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: var(--accent);
}

.form-container input[type="text"],
.form-container select,
.form-container textarea {
  width: 100%;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--soft);
  background-color: var(--soft);
  color: var(--text);
  margin: 6px 0 16px 0;
  font-size: 16px;
  resize: vertical;
}

.form-container input[type="submit"] {
  background: var(--bg);
  color: var(--text);
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 1rem;
}

/* Bottom of the page */
footer {
  text-align: center;
  color: var(--muted);
  border-top: 1px solid #1f2530;
  padding: 1rem;
  margin-top: 3rem;
}


/* Posters outline and view */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

/*  TABLET  */
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* DESKTOP  */
@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 6rem 1rem 3rem;
  }
}