*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

body{
  background:#141414;
  color:white;
  overflow-x:hidden;
}

/* WEBSITE HIDDEN */

/* WEBSITE HIDDEN */
.navbar,
.hero,
.section{
  opacity:0;
  pointer-events:none;
  transition:1s;
}

body.loaded .navbar,
body.loaded .hero{
  opacity:1;
  pointer-events:auto;
}

/* SECTION JANGAN LANGSUNG MUNCUL */
body.loaded .section{
  opacity:1;
  pointer-events:auto;
}

/* INTRO */

#intro-screen{
  position:fixed;
  inset:0;

  background:black;

  display:flex;
  justify-content:center;
  align-items:center;

  z-index:99999;
}

.intro-content{
  text-align:center;
  cursor:pointer;
}

.netflix-logo{
  font-size:140px;
  font-weight:700;

  color:#e50914;

  transform:scale(1);

  text-shadow:
  0 0 10px rgba(229,9,20,.6),
  0 0 30px rgba(229,9,20,.4);

  transition:.3s;
}

.intro-content:hover .netflix-logo{
  transform:scale(1.08);
}

.intro-text{
  margin-top:20px;
  color:#d4d4d4;
  font-size:18px;
  letter-spacing:1px;
}

/* PLAY EFFECT */

#intro-screen.playing .netflix-logo{

  animation:
  netflixZoom 2.5s ease forwards;

}

@keyframes netflixZoom{

  0%{
    transform:scale(1);
    opacity:1;
  }

  40%{
    transform:scale(1.2);
    opacity:1;
  }

  100%{
    transform:scale(6);
    opacity:0;
  }

}

#intro-screen.playing{

  animation:
  introFade 3s forwards;

}

@keyframes introFade{

  0%,80%{
    opacity:1;
  }

  100%{
    opacity:0;
    visibility:hidden;
  }

}

/* PROFILE SCREEN */

#profile-screen{
  position:fixed;
  inset:0;

  background:#141414;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  z-index:9999;

  opacity:0;

  animation:showProfiles 1s forwards;
  animation-delay:3s;
}

@keyframes showProfiles{

  to{
    opacity:1;
  }

}

#profile-screen h1{
  font-size:55px;
  margin-bottom:50px;
}

.profile-box{
  cursor:pointer;
  text-align:center;
  transition:.3s;
}

.profile-box:hover{
  transform:scale(1.08);
}

.profile-box img{
  width:170px;
  height:170px;

  object-fit:cover;

  border-radius:10px;

  border:4px solid transparent;

  transition:.3s;
}

.profile-box:hover img{
  border-color:white;
}

.profile-box p{
  margin-top:15px;
  color:#d1d1d1;
  font-size:22px;
}

/* NAVBAR */

.navbar{
  width:100%;
  padding:20px 50px;

  position:fixed;
  top:0;
  left:0;

  z-index:100;

  display:flex;
  justify-content:space-between;
  align-items:center;

  background:linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
}

.logo{
  color:#e50914;
  font-size:32px;
  font-weight:700;
}

.profile{
  width:42px;
  height:42px;

  border-radius:8px;

  object-fit:cover;
}

/* HERO */

.hero{
  height:100vh;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  padding:0 60px;
}

/* BACKGROUND */
.bg-image,
.bg-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:opacity 1s ease;
}

/* FOTO DEFAULT */
.bg-image{
  opacity:1;
  z-index:-2;
}

/* VIDEO DEFAULT */
.bg-video{
  opacity:0;
  z-index:-1;
}

/* STATE PLAYING */
.hero.playing .bg-image{
  opacity:0;
}

.hero.playing .bg-video{
  opacity:1;
}

/* overlay biar teks kebaca */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.35);
  z-index:-1;
}

/* CONTENT */
.hero-content{
  max-width:600px;
  position:relative;
  z-index:2;
}

.hero-title{
  font-size:70px;
  margin-bottom:20px;
}

.hero-desc{
  line-height:1.8;
  color:#d8d8d8;
  margin-bottom:30px;
}

.buttons{
  display:flex;
  gap:15px;
}

.btn{
  padding:14px 28px;
  border:none;
  border-radius:6px;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:.3s;
}

.play{
  background:white;
}

.info{
  background:rgba(109,109,110,.7);
  color:white;
}

.btn:hover{
  opacity:.8;
}

/* RESPONSIVE */
@media(max-width:768px){

  .hero{
    padding:0 20px;
  }

  .hero-title{
    font-size:45px;
  }

  .hero-desc{
    font-size:14px;
  }

  .btn{
    padding:12px 20px;
    font-size:14px;
  }
}
/* SECTION */

.section{
  padding:40px 50px;
}

.favorite{
  margin-top:10px;
}

.oldgold{
  margin-top:20px;
}

.section h2{
  margin-bottom:20px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:15px;

  justify-content:center;
}

.cards::-webkit-scrollbar{
  display:none;
}

.card{
  width:100%;
  height:180px;
  border-radius:10px;
  overflow:hidden;
  position:relative;
  cursor:pointer;
  transition:.3s;
}

@media(max-width:768px){
  .cards{
    grid-template-columns:repeat(2, 1fr);
  }

  .card{
    height:140px;
  }
}

.card:hover{
  transform:scale(1.08);
  z-index:5;
}

.card img,
.card video{
  width:100%;
  height:100%;

  object-fit:cover;
}

.overlay{
  position:absolute;
  inset:0;

  background:
  linear-gradient(to top, rgba(0,0,0,.9), transparent);

  display:flex;
  flex-direction:column;
  justify-content:flex-end;

  padding:15px;
}

.overlay h3{
  font-size:16px;
}

.overlay p{
  font-size:12px;
  color:#d4d4d4;
}
.card video{
  position:relative;
  z-index:2;
}

.overlay{
  pointer-events:none;
}

/* FOTO POPUP */

.popup{
  position:fixed;
  inset:0;

  background:rgba(0,0,0,.9);

  display:none;
  justify-content:center;
  align-items:center;

  z-index:99999;
}

.popup img{
  width:80%;
  max-width:900px;

  border-radius:12px;
}

.close{
  position:absolute;
  top:30px;
  right:40px;

  font-size:45px;

  cursor:pointer;
}

/* INFO POPUP */

.info-popup{
  position:fixed;
  inset:0;

  background:rgba(0,0,0,.9);

  display:none;
  justify-content:center;
  align-items:center;

  z-index:99999;
}

.info-content{
  width:90%;
  max-width:700px;

  background:#181818;

  padding:40px;

  border-radius:14px;

  line-height:1.8;
}

.info-content h1{
  margin-bottom:20px;
}

.info-content p{
  color:#d4d4d4;
}

/* RESPONSIVE */

@media(max-width:768px){

  .netflix-logo{
    font-size:90px;
  }

  .intro-text{
    font-size:15px;
  }

  #profile-screen h1{
    font-size:35px;
  }

  .profile-box img{
    width:120px;
    height:120px;
  }

  .hero{
    padding:0 20px;
  }

  .hero-title{
    font-size:45px;
  }

  .section{
    padding:20px;
  }

  .card{
    min-width:200px;
    height:120px;
  }

}

.bg-video{
  position:absolute;
  top:0;
  left:0;

  width:100%;
  height:100%;

  object-fit:cover;

  z-index:-1;
}

.netflix-popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.95);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:99999;
}

.netflix-box{
  width:90%;
  max-width:800px;
}

.netflix-box video{
  width:100%;
  border-radius:10px;
}

.netflix-info{
  margin-top:15px;
}

.netflix-info h2{
  font-size:28px;
  margin-bottom:10px;
}

.netflix-info p{
  color:#ccc;
  line-height:1.6;
}

.close{
  position:absolute;
  top:20px;
  right:30px;
  font-size:40px;
  cursor:pointer;
}
.netflix-popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.95);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:99999;

  overflow-y:auto;   /* 🔥 penting biar bisa scroll */
  padding:40px 0;
}
.netflix-box{
  width:90%;
  max-width:800px;
  margin:auto;
}
.netflix-info{
  margin-top:15px;
  max-height:200px;
  overflow-y:auto;

  padding-right:10px;
}

.footer-love{
  text-align:center;
  padding:30px 0;
  color:#aaa;
  font-size:18px;
  letter-spacing:1px;
  text-shadow:0 0 10px rgba(255,255,255,0.1);
}