/*
Theme Name: Nestor IPTV
Description: A modern streaming service WordPress theme
Version: 1.0.0
Author: Your Name
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0a0a0a;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand .logo {
  height: 40px;
  width: auto;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav a:hover {
  color: #ff4757;
}

.navbar-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff3742, #ff2837);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: #ff4757;
  border: 2px solid #ff4757;
}

.btn-outline:hover {
  background: #ff4757;
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 800px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* Account for fixed header */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  min-width: 160px;
}

/* Partners Section */
.partners-section {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.02);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-logo {
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-height: 60px;
  max-width: 120px;
  width: auto;
  height: auto;
  filter: grayscale(100%) brightness(0.8);
  transition: all 0.3s ease;
}

.partner-logo:hover {
  opacity: 1;
}

.partner-logo:hover img {
  filter: grayscale(0%) brightness(1);
}

/* Features Section */
.features-section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.feature-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 71, 87, 0.3);
}

.feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #ff4757, #ff3742);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.feature-item h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.feature-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Content Section */
.content-section {
  padding: 8rem 0;
  background: rgba(255, 255, 255, 0.02);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.content-text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.content-text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.content-features {
  list-style: none;
  margin-bottom: 3rem;
}

.content-features li {
  padding: 1rem 0;
  position: relative;
  padding-left: 2.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.content-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff4757;
  font-weight: bold;
  font-size: 1.2rem;
}

.content-image {
  position: relative;
}

.content-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Movies Section */
.movies-section {
  padding: 8rem 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.movie-item {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-item:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 25px 50px rgba(255, 71, 87, 0.3);
}

.movie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-item:hover img {
  transform: scale(1.1);
}

/* Pricing Section */
.pricing-section {
  padding: 8rem 0;
  background: rgba(255, 255, 255, 0.02);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: #ff4757;
  transform: scale(1.05);
  background: rgba(255, 71, 87, 0.1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: #ff4757;
  box-shadow: 0 20px 40px rgba(255, 71, 87, 0.2);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.price {
  margin-bottom: 2.5rem;
}

.price .amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ff4757;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.pricing-features li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #ff4757, #ff3742);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ff4757;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: #ff4757;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--animation-duration, 600ms) ease;
}

.animate-fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--animation-duration, 600ms) ease;
}

.animate-slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.animate-scale-up {
  opacity: 0;
  transform: scale(0.9);
  transition: all var(--animation-duration, 600ms) ease;
}

.animate-scale-up.animate {
  opacity: 1;
  transform: scale(1);
}

/* Loading Screen */
.nestor-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.loading-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #ff4757, #ff3742);
  border-radius: 2px;
  transition: width 0.3s ease;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Enhanced Header Styles */
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Enhanced Mobile Menu */
.navbar-menu.active {
  animation: slideInDown 0.3s ease;
}

.navbar-menu.active li {
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Enhanced Hover Effects */
.movie-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 71, 87, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.movie-item:hover::before {
  transform: translateX(100%);
}

/* Enhanced Button Animations */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

/* Staggered Animations */
.features-grid .feature-item:nth-child(1) {
  animation-delay: 0.1s;
}
.features-grid .feature-item:nth-child(2) {
  animation-delay: 0.2s;
}
.features-grid .feature-item:nth-child(3) {
  animation-delay: 0.3s;
}

.movies-grid .movie-item:nth-child(1) {
  animation-delay: 0.1s;
}
.movies-grid .movie-item:nth-child(2) {
  animation-delay: 0.2s;
}
.movies-grid .movie-item:nth-child(3) {
  animation-delay: 0.3s;
}
.movies-grid .movie-item:nth-child(4) {
  animation-delay: 0.4s;
}
.movies-grid .movie-item:nth-child(5) {
  animation-delay: 0.5s;
}
.movies-grid .movie-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Lazy Loading Styles */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.lazy.loaded {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .movies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-header h2,
  .section-title {
    font-size: 2.2rem;
  }

  .content-text h2 {
    font-size: 2.5rem;
  }

  .navbar-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .movies-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

/* Placeholder Styles */
.partner-placeholder {
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.partner-placeholder:hover {
  background: rgba(255, 71, 87, 0.1);
  border-color: #ff4757;
  color: #ff4757;
}

.movie-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 55, 66, 0.1));
  border: 2px dashed rgba(255, 71, 87, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
}

.movie-placeholder:hover {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 55, 66, 0.2));
  border-color: #ff4757;
}

.movie-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.movie-placeholder-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
