/* Footer Social Links Netflix Style */
.footer {
  background: #181818;
  padding: 32px 0 16px 0;
  text-align: center;
  border-top: 2px solid #222;
}
.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 18px;
}
.footer .social-link {
  color: #fff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #222;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.footer .social-link:hover {
  background: #e50914;
  color: #fff;
  transform: scale(1.13) translateY(-4px);
  box-shadow: 0 4px 16px rgba(229,9,20,0.18);
}
.footer p {
  color: #b3b3b3;
  font-size: 1rem;
  margin-top: 10px;
}
/* Contact Form Netflix Style */
.contact-form {
  background: #181818;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  padding: 32px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.contact-form label {
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.contact-form input,
.contact-form textarea {
  background: #222;
  color: #fff;
  border: 1.5px solid #333;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 8px;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #e50914;
  box-shadow: 0 0 0 2px rgba(229,9,20,0.15);
}
.contact-form button[type="submit"] {
  align-self: flex-end;
  min-width: 120px;
  font-size: 1.1rem;
  font-weight: 700;
  background: #e50914;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(229,9,20,0.12);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.contact-form button[type="submit"]:hover {
  background: #b0060f;
  color: #fff;
  box-shadow: 0 4px 16px rgba(229,9,20,0.25);
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}
body {
  background: #141414;
  color: #fff;
}

/* Header */

.netflix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: #141414;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.netflix-header .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e50914;
}
.netflix-header .logo span {
  color: #fff;
}
.netflix-header nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}
.netflix-header nav ul li {
  cursor: pointer;
  color: #fff;
  transition: 0.2s;
}
.netflix-header nav ul li.active,
.netflix-header nav ul li:hover {
  border-bottom: 3px solid #e50914;
}
.netflix-header nav ul li a {
  text-decoration: none;
  color: inherit;
}
.search-box input {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  outline: none;
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .netflix-header {
    flex-direction: row;
    padding: 12px 16px;
  }
  .hamburger {
    display: flex;
  }
  .netflix-header nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    background: #141414;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transform: translateY(-200%);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
    z-index: 1001;
    padding: 0 0 16px 0;
  }
  .netflix-header nav.open {
    transform: translateY(0);
  }
  .netflix-header nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
  }
  .netflix-header nav ul li {
    padding: 16px 0;
    text-align: center;
    border-bottom: 1px solid #222;
  }
  .netflix-header nav ul li:last-child {
    border-bottom: none;
  }
}

/* Hero Banner */
.hero {
  height: 87vh;
  background: linear-gradient(to right, rgba(20,20,20,0.8), transparent),
              url('hero-bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-left: 60px;
}
.hero-content {
  max-width: 500px;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.hero-buttons .btn {
  margin-right: 15px;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
}
.btn-primary {
  background: #e50914;
  color: #fff;
}
.btn-primary:hover {
  background: #b0060f;
}
.btn-secondary {
  background: rgba(109,109,110,0.7);
  color: #fff;
}
.btn-secondary:hover {
  background: rgba(109,109,110,1);
}

/* Categories */

.categories {
  background: #141414;
  padding: 10px 40px;
  border-bottom: 2px solid #222;
  overflow-x: auto;
}
.categories ul {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #e50914 #222;
}
.categories ul::-webkit-scrollbar {
  height: 6px;
}
.categories ul::-webkit-scrollbar-thumb {
  background: #e50914;
  border-radius: 4px;
}
.categories ul::-webkit-scrollbar-track {
  background: #222;
}
.categories li {
  cursor: pointer;
  color: #fff;
  padding-bottom: 5px;
  white-space: nowrap;
  font-size: 1rem;
}
.categories li.active {
  border-bottom: 3px solid #e50914;
}
.categories li a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
    background-position: center top;
  }
  .categories {
    padding: 8px 4px 8px 8px;
    border-bottom: 2px solid #222;
    overflow-x: auto;
  }
  .categories ul {
    gap: 12px;
    padding: 0 0 4px 0;
    font-size: 0.98rem;
  }
  .categories li {
    font-size: 0.98rem;
    padding: 10px 0 6px 0;
  }
}

@media (max-width: 500px) {
  .categories ul {
    gap: 8px;
    font-size: 0.93rem;
  }
  .categories li {
    font-size: 0.93rem;
    padding: 8px 0 4px 0;
  }
}

/* Top Picks */
.top-picks {
  padding: 40px;
}
.top-picks h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #e50914 #222;
}
.carousel::-webkit-scrollbar {
  height: 8px;
}
.carousel::-webkit-scrollbar-thumb {
  background: #e50914;
  border-radius: 4px;
}
.carousel::-webkit-scrollbar-track {
  background: #222;
}
.big-card img {
  width: 250px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.small-cards {
  display: flex;
  gap: 16px;
}
.small-cards img {
  width: 150px;
  border-radius: 6px;
  transition: transform 0.3s;
}
.small-cards img:hover {
  transform: scale(1.05);
}

/* Sections */
.section {
  padding: 40px;
}
.section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}
.section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

/* Cards */
.card {
  min-width: 200px;
  background: #181818;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  font-size: 1rem;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: scale(1.07) translateY(-8px);
  box-shadow: 0 8px 32px rgba(229,9,20,0.2);
  background: #222;
  color: #e50914;
}
.card a {
  color: #00d4ff;
  text-decoration: underline;
}
.card a:hover {
  color: #e50914;
}
.card h3 {
  margin-bottom: 8px;
}

/* Featured project banner */
.featured-project {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.featured-project img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #000; /* prevents transparent gaps on narrow images */
}
.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #e50914;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}
.featured-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
}
.featured-caption h3 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
}


/* Featured YouTube */
.featured-youtube {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16/9;
  margin: 0 auto 22px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0,0,0,0.6);
  background: #000;
}
.featured-youtube img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.03) saturate(1.05);
}
.youtube-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ff0000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}
.youtube-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  color: #fff;
  padding: 14px 16px;
  border-radius: 8px;
}
.youtube-caption h3 { font-size: 1.2rem; margin-bottom:6px; }
.youtube-buttons { display:flex; gap:12px; margin-top:8px; }
.youtube-buttons .btn { padding:10px 16px; border-radius:8px; text-decoration:none; }
.youtube-buttons .btn-primary { background:#ff0000; color:#fff; }
.youtube-buttons .btn-secondary { background:rgba(255,255,255,0.08); color:#fff; border:1px solid rgba(255,255,255,0.06); }
@media (max-width:900px) {
  /* aspect-ratio:16/9 on .featured-youtube keeps correct height; no fixed height needed */
}
@media (max-width:600px) {
  .featured-youtube {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
  }
  .featured-youtube img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .youtube-badge { 
    position: static;
    width: fit-content;
    top: auto;
    left: auto;
    margin: 12px;
  }
  .youtube-caption { 
    position: static;
    background: #222;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 0 12px 12px 12px;
    padding: 16px;
  }
  .youtube-caption h3 { 
    font-size: 1.1rem; 
    margin-bottom: 6px; 
  }
  .youtube-caption p {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
  .featured-badge { top: 12px; left: 12px; padding: 6px 10px; font-size: 0.9rem; }
  .featured-caption { bottom: 12px; left: 12px; right: 12px; padding: 10px; }
}

@media (max-width: 900px) {
  .featured-badge { top: 12px; left: 12px; padding: 6px 10px; font-size: 0.9rem; }
  .featured-caption { bottom: 12px; left: 12px; right: 12px; padding: 10px; }
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: #b3b3b3;
  font-size: 1rem;
  border-top: 2px solid #222;
  background: #141414;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    padding-left: 20px;
    text-align: center;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .carousel {
    gap: 16px;
    padding-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .section {
    padding: 24px 8px;
  }
  .top-picks {
    padding: 24px 8px;
  }
}

@media (max-width: 600px) {
  .netflix-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero {
    height: auto;
    min-height: 320px;
    padding-left: 16px;
    text-align: left;
    justify-content: flex-start;
    background-position: left center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  .carousel {
    gap: 10px;
    padding-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .card {
    min-width: 160px;
    font-size: 0.95rem;
    padding: 10px;
  }
  .big-card img {
    width: 160px;
  }
  .section, .top-picks {
    padding: 12px 2px;
  }
}
