* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body,
html {
    height: 100%;
    background: black;
    color: white;
}

.hero {
    background: url('https://media.jelflix.com/Branding/Splashscreen?format=jpg&foregroundLayer=1') center/cover no-repeat;
    position: relative;
    height: 100vh;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(#00000000, #000000e6);
    background-color: rgba(0, 0, 0, 0.7);
}

.header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 3;
}

.header img {
    height: 40px;
}

.header .buttons a {
    background: #e50914;
    padding: 8px 13px;
    margin-left: 10px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 275px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin-top: 20px;
    width: 100%;
}

form input {
    flex: 1 1 1px;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

form button {
    background-color: #e50914;
    color: white;
    padding: 16px 20px;
    font-size: 22px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Mid section------------------------------------------------------------------ */
.trending-section {
  background-color: #111;
  padding: 60px 5% 50px; /* more top-bottom space */
}

.section-title {
  color: #fff;
  font-size: 28px;
  margin-bottom: 20px;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.scroll-container::-webkit-scrollbar {
  height: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.trending-card {
  min-width: 160px;
  max-width: 160px;
  flex-shrink: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-top: 10px;   /* extra space above */
  margin-bottom: 10px;/* extra space below */
}

.trending-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.trending-card:hover img {
  transform: scale(1.05);
}



/* Footer------------------------------------------------------------------ */
.netflix-footer {
    background-color: #111;
    color: #757575;
    padding: 40px 20px;
    font-size: 13px;
    text-align: center;
}

.footer-call {
    margin-bottom: 20px;
}

.footer-call a {
    color: #757575;
    text-decoration: none;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.footer-links-grid a {
    color: #757575;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-grid a:hover {
    text-decoration: underline;
    color: #fff;
}

.footer-country {
    color: #757575;
    font-size: 13px;
}



@media screen and (max-width: 600px) {
    .header img {
        height: 35px;
    }

    .header {
        position: absolute;
        padding: 30px 20px;
        justify-content: space-between;
    }

    .buttons {
        position: relative;
        right: 5px;
    }

    .hero {
        position: relative;
        height: 78vh;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    form {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }

    form button {
        width: 40%;
        align-self: anchor-center;
    }

    form input {
        flex: 1 1 1px;
        padding: 12px;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        width: 420px;
        align-self: anchor-center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
}