/* @import url('./animations/loading-animation.css'); */

/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease; /* Smooth transitions f */
}

body {
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar  */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background: #e50914;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f40612;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 50px;
  height: 70px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.netflix-logo {
  height: 28px;
  animation: slideDown 0.8s ease;
}
.netflix-logo:hover {
  transform: scale(1.1) rotate(1deg);
  filter: brightness(1.2);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}
.nav-links li {
  animation: slideDown 0.8s ease;
  animation-delay: calc(var(--i) * 0.1s);
  opacity: 0;
  animation-fill-mode: forwards;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  padding: 8px 0;
}
.nav-links a:hover {
  color: #e5e5e5;
  transform: translateY(-2px);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e50914, transparent);
  transform: translateX(-50%);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideDown 0.8s ease;
  animation-delay: 0.6s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.btn {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-red-sm {
  background: #e50914;
  border-color: #e50914;
  font-weight: 600;
}
.btn-red-sm:hover {
  background: #f40612;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.btn-red {
  background: #e50914;
  border-color: #e50914;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.btn-red:hover {
  background: #f40612;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.5);
}

.main {
  position: relative;
}
.box {
  /* Background overlay */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://assets.nflxext.com/ffe/siteui/vlv3/9d3533b2-0e2b-40b2-95e0-ecd7979cc88b/a3873901-5b7c-46eb-b9fa-12fea5197bd3/IN-en-20240311-popsignuptwoweeks-perspective_alpha_website_large.jpg");
  background-size: cover;
  background-position: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 120px 20px 80px;
  animation: fadeInUp 1.2s ease;
  position: relative;
  z-index: 10;
}
.hero span {
  display: block;
  margin-bottom: 25px;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: calc(var(--i) * 0.3s);
  opacity: 0;
  animation-fill-mode: forwards;
}
.hero span:nth-child(1) {
  --i: 1;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 800px;
  background: linear-gradient(135deg, #fff 0%, #e5e5e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Poppins", sans-serif;
}
.hero span:nth-child(2) {
  --i: 2;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: #e5e5e5;
}
.hero span:nth-child(3) {
  --i: 3;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  margin-bottom: 40px;
  max-width: 600px;
  color: #d0d0d0;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin: 30px auto 0;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: 1s;
  opacity: 0;
  animation-fill-mode: forwards;
}
.hero-buttons input[type="email"] {
  flex: 2;
  min-width: 200px;
  padding: 16px 20px;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  backdrop-filter: blur(10px);
}
.hero-buttons input[type="email"]:focus {
  outline: none;
  border-color: #e50914;
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}
.hero-buttons input[type="email"]::placeholder {
  color: #999;
}
.hero-buttons button {
  flex: 1;
  min-width: 120px;
  padding: 16px 20px;
  font-size: 15px;
  border: none;
}

.separation {
  height: 8px;
  background: linear-gradient(90deg, #222, #333, #222);
  position: relative;
  overflow: hidden;
}
.separation::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.3), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

/* Feature Sections - Engaging & Animated! */
.first {
  padding: 100px 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.first.second {
  direction: rtl; /* Reverse order for alternating sections */
}
.first.second > * {
  direction: ltr; /* Keep content direction normal */
}
.first span:first-child {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #e5e5e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.first span:last-child {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #b3b3b3;
  line-height: 1.4;
}

/* For 1st TV and vedio */
.secImg {
  position: relative;
}
.secImg img {
  position:relative;
    z-index: 10;
    width:490px
}
.secImg:hover {
  transform: scale(1.05) rotate(0.05deg);
}
.secImg video {
  position: absolute;
    max-width: 360px;
    top: 75px;
    left: 65px;
}
/*For 2nd TV and vedio */
.imgno3{
    position: relative;
}
.imgno3 img{
    position: relative;
    padding-top: 50px;
    height:408px;
    width: 544px;
    z-index: 10;
}
.imgno3:hover {
  transform: scale(1.05) rotate(0.05deg);
}
.imgno3 video{
    position: absolute;
    height: 280px;
    width: 350px;
    top:65px;
    left: 100px;
}

/*Frequent ask question  */

.faq {
  padding: 100px 50px;
  max-width: 900px;
  margin: 0 auto;
}
.faq h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 60px;
  animation: fadeInUp 1s ease;
  background: linear-gradient(135deg, #fff 0%, #e5e5e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Poppins", sans-serif;
}

.faqbox {
  margin-bottom: 10px;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: calc(var(--i) * 0.1s);
  opacity: 0;
  animation-fill-mode: forwards;
  border-radius: 8px;
  overflow: hidden;
  position: relative; /* For the subtle border effect */
  border: 1px solid transparent; /* Initial transparent border */
}
.faqbox:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(229, 9, 20, 0.3); /* Subtle red border on hover */
}

.faq-header {
  background: #303030;
  padding: 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.faq-header:hover {
  background: #404040;
  transform: translateY(-1px);
}
.faq-header:hover .question {
  color: #e5e5e5; /* Text color change on hover */
}
.faq-header:hover .icon {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); /* Subtle glow on icon */
  transform: rotate(45deg) scale(1.1); /* Slight rotation and scale on hover */
}

.question {
  font-size: 1.3rem;
  font-family: "Poppins", sans-serif;
}
.icon {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}
.faqbox.open .icon {
  transform: rotate(45deg) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.5));
}

.answer {
  background: #303030;
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #d0d0d0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s 0.1s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: max-height, opacity, transform;
}
.faqbox.open .answer {
  padding: 30px;
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s, 0.05s, 0.05s;
}

.faq-cta {
  text-align: center;
  margin-top: 50px;
  animation: fadeInUp 1s ease;
  animation-delay: 0.8s;
  opacity: 0;
  animation-fill-mode: forwards;
}
.faq-cta p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Back to Top Button (Circular Progress) - A visual journey! */
.back-to-top-progress {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px; 
  height: 60px;
  border-radius: 50%;
  background: transparent; 
  border: none;
  cursor: pointer;
  display: none; 
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: visible; 
}
.back-to-top-progress:hover {
  background: linear-gradient(135deg, #f40612, #ff1e2d); /* Hover background for the button itself */
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.5);
}
.back-to-top-progress .fas {
  /* Arrow icon */
  color: #fff;
  font-size: 1.2rem;
  position: absolute;
  z-index: 2;
}

.circular-progress {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Start from top */
}
.circular-progress .circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1); /* Light background for the circle */
  stroke-width: 2; /* Thinner background line */
}
.circular-progress .circle-progress {
  fill: none;
  stroke: #e50914; /* Red progress color */
  stroke-width: 3; /* Thinner red progress line */
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s linear, stroke-dashoffset 0.3s linear; /* Smooth progress fill */
}

/* Enhanced Footer - Elegant & Interactive! */
footer {
  padding: 80px 50px 30px;
  background: linear-gradient(135deg, #000 0%, #111 100%);
  position: relative;
  overflow: hidden;
}
footer::before {
  /* Top border shimmer */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.3), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-contact {
  margin-bottom: 40px;
  animation: fadeInUp 1s ease;
  transform: translateY(20px);
  opacity: 0;
  animation-fill-mode: forwards;
}
.footer-contact p {
  color: #b3b3b3;
  font-family: "Roboto", sans-serif;
}
.footer-contact a {
  color: #e50914;
  text-decoration: none;
  position: relative;
  font-weight: 600;
}
.footer-contact a:hover {
  color: #f40612;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-column {
  animation: fadeInUp 1s ease;
  animation-delay: calc(var(--i) * 0.15s);
  opacity: 0;
  animation-fill-mode: forwards;
  transform: translateY(30px);
  padding: 20px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01); /* Very subtle initial background */
}
.footer-column:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.03); /* Subtle background on hover */
}
.footer-column h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: "Roboto", sans-serif;
  position: relative;
}
.footer-column:hover h4 {
  color: #e50914;
  transform: translateX(5px);
}
.footer-column ul {
  list-style: none;
}
.footer-column li {
  margin-bottom: 12px;
}
.footer-column li:hover {
  transform: translateX(3px); /* Reduced transform distance */
}
.footer-column a {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: "Poppins", sans-serif;
  position: relative;
  display: inline-block;
}
.footer-column a::after {
  /* Red underline effect */
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e50914, #f40612);
}
.footer-column a:hover::after {
  width: 100%;
}
.footer-column a:hover {
  color: #fff;
  transform: translateX(5px); 
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 1s ease;
  animation-delay: 0.8s;
  opacity: 0;
  animation-fill-mode: forwards;
  position: relative;
  margin-bottom: 80px; 
}
.footer-bottom p {
  color: #b3b3b3;
  font-size: 0.9rem;
  font-family: "Roboto", sans-serif;
}

.social-links {
  display: flex;
  gap: 20px;
}
.social-links a {
  color: #b3b3b3;
  font-size: 1.8rem;
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
.social-links a:hover {
  color: #e50914;
  transform: translateY(-5px) scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.3);
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}


/* Mobile Responsiveness - Adapting to all screens! */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
    height: 60px;
  }
  .netflix-logo {
    height: 24px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 100px;
  }
  .hero span:nth-child(1) {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-top: 10px;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons input[type="email"],
  .hero-buttons .btn-red {
    width: 100%;
    max-width: 350px;
  }
  .first {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-bottom: 100px; /* More margin for mobile */
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
