/* Custom CSS Design System - Elite IPTV */

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

/* Variables */
:root {
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(59, 130, 246, 0.2);
  
  /* Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Fonts */
  --font-ar: 'Cairo', sans-serif;
  --font-fr: 'Inter', sans-serif;
  
  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-fr);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Language Specific Styles */
html[lang="ar"] body {
  font-family: var(--font-ar);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

/* Glow Elements */
.glow-text-cyan { text-shadow: 0 0 15px rgba(6, 182, 212, 0.4); }
.glow-text-blue { text-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.glow-text-purple { text-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }
.glow-text-gold { text-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  font-weight: 400;
  color: var(--text-secondary);
  -webkit-text-fill-color: initial;
}

/* Language Toggle Switcher */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  padding: 3px;
  cursor: pointer;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-normal);
}

html[lang="ar"] .lang-btn {
  font-family: var(--font-ar);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem 0;
  position: relative;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-cyan);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[lang="ar"] .hero h1 {
  font-size: 3.8rem;
  line-height: 1.3;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  color: var(--text-secondary);
}

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

/* General Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(37, 211, 102, 0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, #0088cc, #0077b5);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 136, 204, 0.2);
  border: none;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 136, 204, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
  transform: translateY(-3px);
}

/* Sections General */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[lang="ar"] .section-header h2 {
  font-size: 2.8rem;
  line-height: 1.3;
}

/* Cards Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Subscription Card */
.sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-blue));
  opacity: 0;
  transition: var(--transition-normal);
}

.sub-card.featured::before {
  opacity: 1;
}

.sub-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(8, 12, 20, 0.5), 
              0 0 30px rgba(59, 130, 246, 0.1);
}

.card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  text-transform: uppercase;
}

html[lang="ar"] .card-badge {
  right: auto;
  left: 1.5rem;
}

.card-logo-container {
  height: 80px;
  display: flex;
  align-items: center;
  margin-bottom: 1.8rem;
}

.card-logo-img {
  max-height: 70px;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.card-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-logo-text i {
  color: var(--accent-cyan);
}

.sub-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.sub-card .desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  min-height: 3.5rem;
}

.features-list {
  list-style: none;
  margin-bottom: 2.2rem;
  flex-grow: 1;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.features-list li i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.card-buttons .btn {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: 12px;
}

/* Features Area */
.features-section {
  background: rgba(15, 23, 42, 0.3);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.feature-box {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.05);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  font-size: 1.8rem;
}

.feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.feature-box p {
  font-size: 0.95rem;
}

/* Steps / Guide Section */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  position: relative;
  margin-top: 2rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
}

.step-card:hover {
  border-color: var(--border-glow);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.step-card p {
  font-size: 0.95rem;
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

html[lang="ar"] .faq-question {
  text-align: right;
}

.faq-question span {
  transition: var(--transition-normal);
}

.faq-question i {
  color: var(--accent-cyan);
  transition: var(--transition-normal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item.active {
  border-color: rgba(59, 130, 246, 0.2);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
  max-height: 300px; /* arbitrary height to slide down */
}

/* CTA Contact Section */
.cta {
  background: linear-gradient(135deg, rgba(8, 12, 20, 0.95), rgba(15, 23, 42, 0.8)), 
              url('assets/quality_8k.png') no-repeat center center / cover;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  padding: 8rem 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

html[lang="ar"] .cta h2 {
  font-size: 3.2rem;
  line-height: 1.3;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

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

.cta-buttons .btn {
  padding: 1rem 2.5rem;
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 999;
}

html[lang="ar"] .floating-actions {
  right: auto;
  left: 2rem;
}

.floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition-normal);
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.05);
}

.floating-wa {
  background-color: #25d366;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.floating-tg {
  background-color: #0088cc;
  box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
}

/* Footer */
footer {
  background-color: #04060b;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-card);
  text-align: center;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

.footer-divider {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background-color: var(--border-card);
  margin: 0 auto 2rem auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Animations Keyframes */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  html[lang="ar"] .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  html[lang="ar"] .section-header h2 {
    font-size: 2.2rem;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
