/* ========================================
   DOOM VIP IPTV - Main Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --doom-red: #E83415;
  --doom-red-dark: #C42A10;
  --doom-red-glow: #FF4422;
  --doom-orange: #F04A2A;
  --doom-black: #0A0A0A;
  --doom-dark: #111111;
  --doom-dark-2: #1A1A1A;
  --doom-dark-3: #222222;
  --doom-gray: #2A2A2A;
  --doom-light-gray: #888888;
  --doom-white: #F5F5F5;
  --doom-gold: #FFB800;
  --gradient-fire: linear-gradient(135deg, var(--doom-red) 0%, var(--doom-orange) 50%, var(--doom-gold) 100%);
  --gradient-dark: linear-gradient(180deg, var(--doom-black) 0%, var(--doom-dark-2) 100%);
  --shadow-glow: 0 0 30px rgba(232, 52, 21, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background-color: var(--doom-black);
  color: var(--doom-white);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--doom-light-gray);
  font-size: 1.05rem;
  margin-bottom: 48px;
  font-weight: 400;
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(232, 52, 21, 0.25); }
  50% { box-shadow: 0 0 40px rgba(232, 52, 21, 0.5); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-in {
  animation: fadeInUp 0.7s ease-out forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 52, 21, 0.15);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(232, 52, 21, 0.4));
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--doom-red);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--doom-white);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--doom-red);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--doom-red);
}

.nav-cta {
  background: var(--doom-red) !important;
  color: var(--doom-white) !important;
  padding: 8px 22px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: var(--doom-red-dark) !important;
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.nav-cta::after {
  display: none !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--doom-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 52, 21, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--doom-black) 100%);
  pointer-events: none;
}

/* Decorative orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--doom-red);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--doom-orange);
  bottom: -50px;
  left: -80px;
  animation: float 10s ease-in-out infinite 2s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-logo {
  width: 220px;
  margin: 0 auto 32px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(232, 52, 21, 0.5));
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--doom-white);
}

.hero h1 .highlight {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--doom-light-gray);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--doom-red);
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  animation: pulse-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
  background: var(--doom-red-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(232, 52, 21, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--doom-white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  border: 2px solid rgba(232, 52, 21, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--doom-red);
  background: rgba(232, 52, 21, 0.1);
  transform: translateY(-3px);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
  padding: 100px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--doom-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-fire);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 52, 21, 0.2);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--doom-white);
}

.feature-card p {
  color: var(--doom-light-gray);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
  padding: 100px 0;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--doom-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--doom-red);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  padding: 2px;
  background: var(--gradient-fire);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gradient-fire);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--doom-white);
  margin-bottom: 8px;
}

.pricing-duration {
  color: var(--doom-light-gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.pricing-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--doom-light-gray);
  margin-bottom: 28px;
}

.pricing-features {
  text-align: right;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.8);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--doom-red);
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

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

/* ========================================
   PAYMENT METHODS
   ======================================== */
.payment {
  padding: 80px 0;
}

.payment-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.payment-item {
  background: var(--doom-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 28px 36px;
  text-align: center;
  min-width: 180px;
  transition: var(--transition);
}

.payment-item:hover {
  border-color: rgba(232, 52, 21, 0.3);
  transform: translateY(-4px);
}

.payment-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.payment-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--doom-white);
  margin-bottom: 4px;
}

.payment-item p {
  font-size: 0.8rem;
  color: var(--doom-light-gray);
}

/* ========================================
   DISTRIBUTORS SECTION
   ======================================== */
.distributors {
  padding: 100px 0;
  position: relative;
}

.distributors-box {
  background: var(--doom-dark-2);
  border: 1px solid rgba(232, 52, 21, 0.15);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.distributors-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(232, 52, 21, 0.03), transparent, rgba(232, 52, 21, 0.03));
  animation: rotate-slow 20s linear infinite;
  pointer-events: none;
}

.distributors-box > * {
  position: relative;
  z-index: 1;
}

.distributors-box h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 16px;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.distributors-box p {
  color: var(--doom-light-gray);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 32px;
}

/* ========================================
   CTA / CONTACT SECTION
   ======================================== */
.cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 52, 21, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta h2 .highlight {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta p {
  color: var(--doom-light-gray);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  padding: 18px 44px;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
  background: #1DA851;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--doom-dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px 0 24px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--doom-light-gray);
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--doom-red);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--doom-light-gray);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--doom-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  text-align: center;
  color: var(--doom-light-gray);
  font-size: 0.85rem;
}

/* ========================================
   FLOATING WHATSAPP
   ======================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-glow 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-item p {
  color: var(--doom-light-gray);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--doom-dark);
    flex-direction: column;
    padding: 80px 32px 40px;
    gap: 20px;
    border-left: 1px solid rgba(232, 52, 21, 0.15);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 16px 60px;
    min-height: 90vh;
  }

  .hero-logo {
    width: 160px;
  }

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

  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

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

  .payment-grid {
    flex-direction: column;
    align-items: center;
  }

  .payment-item {
    width: 100%;
    max-width: 300px;
  }

  .distributors-box {
    padding: 40px 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }

  .floating-whatsapp {
    bottom: 20px;
    left: 20px;
    width: 54px;
    height: 54px;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--doom-black);
}

::-webkit-scrollbar-thumb {
  background: var(--doom-red-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--doom-red);
}

/* --- Selection --- */
::selection {
  background: var(--doom-red);
  color: #fff;
}
