/* ================================================================
   PHAROS 8K — Global Stylesheet
   Premium IPTV Service  |  Dark + Gold Theme
   Arabic-first (RTL) with multilingual support
   ================================================================ */

/* ----------------------------------------------------------------
   0. CUSTOM PROPERTIES (Design Tokens)
   ---------------------------------------------------------------- */
:root {
  /* Brand palette */
  --gold:          #f5c842;
  --gold-dark:     #d4a017;
  --gold-glow:     rgba(245, 200, 66, 0.15);
  --gold-glow-strong: rgba(245, 200, 66, 0.35);

  /* Backgrounds */
  --bg-dark:       #090c14;
  --bg-card:       #0f1420;
  --bg-card2:      #141929;
  --bg-card-hover: #1a2035;

  /* Text */
  --text:          #eef2ff;
  --text-muted:    #8892b0;

  /* Accents */
  --green:         #06d6a0;
  --blue:          #4cc9f0;
  --orange:        #ff9f43;
  --purple:        #a855f7;
  --red:           #ef4444;

  /* Borders */
  --border:        rgba(245, 200, 66, 0.15);
  --border-hover:  rgba(245, 200, 66, 0.4);

  /* Radii */
  --radius:        16px;
  --radius-sm:     10px;
  --radius-xs:     6px;

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md:     0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg:     0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-gold:   0 4px 24px rgba(245, 200, 66, 0.18);

  /* Transitions */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ----------------------------------------------------------------
   1. RESET + BASE
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
}

/* Noise texture overlay for premium feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Ensure all body children sit above the noise layer */
body > * {
  position: relative;
  z-index: 1;
}

/* Selection colour */
::selection {
  background: rgba(245, 200, 66, 0.3);
  color: var(--text);
}

::-moz-selection {
  background: rgba(245, 200, 66, 0.3);
  color: var(--text);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}


/* ----------------------------------------------------------------
   2. TYPOGRAPHY
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-muted);
  line-height: 1.75;
}

/* Section — main content container with max-width and centering */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.section .features-grid,
.section .devices-grid,
.section .steps-grid,
.section .pricing-grid,
.section .why-grid,
.section .testimonials-grid,
.section .benefits-grid,
.section .reseller-plans,
.section .panel-features {
  text-align: right;
}

/* Main content container */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* Separator between sections */
.separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 auto;
  max-width: 1200px;
}

/* Section header — centered text block */
.section-tag,
.section-title,
.section-subtitle {
  text-align: center;
}

/* Section tag — small gold badge pill above titles */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

/* Section title — clamp responsive heading */
.section-title {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

/* Section subtitle — lighter description */
.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.8;
}


/* ----------------------------------------------------------------
   3. NAVIGATION — Fixed, Glass-morphism
   ---------------------------------------------------------------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, rgba(9,12,20,0.85), rgba(15,20,32,0.92));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 4px 30px rgba(0,0,0,0.3);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

nav.nav-scrolled {
  background: rgba(9, 12, 20, 0.92);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

/* Logo */
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: transform 0.3s var(--ease);
}

.logo-img:hover {
  transform: scale(1.04);
}

/* Centre navigation links */
.nav-center {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-center a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease);
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.3s var(--ease);
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--gold);
}

.nav-center a:hover::after,
.nav-center a.active::after {
  width: 100%;
}

/* Right side — CTA + lang */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Navigation CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bg-dark);
  background: var(--gold);
  border-radius: 999px;
  transition: background 0.3s var(--ease), transform 0.25s var(--ease-bounce),
              box-shadow 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}


/* ----------------------------------------------------------------
   4. HAMBURGER MENU (Mobile)
   ---------------------------------------------------------------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
  transform-origin: center;
}

/* Active → X shape */
.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Dark overlay behind mobile menu */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}


/* ----------------------------------------------------------------
   5. LANGUAGE SWITCHER (with real flags)
   ---------------------------------------------------------------- */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
              background 0.3s var(--ease);
}

.lang-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.lang-btn .arrow {
  font-size: 0.65rem;
  transition: transform 0.3s var(--ease);
}

.lang-switcher.open .lang-btn .arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 170px;
  background: rgba(15, 20, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s;
  z-index: 120;
}

[dir="rtl"] .lang-dropdown,
body .lang-dropdown {
  left: auto;
  right: 0;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-option:hover,
.lang-option.active {
  background: var(--gold-glow);
  color: var(--gold);
}

.flag-icon {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}


/* ----------------------------------------------------------------
   6. BUTTONS
   ---------------------------------------------------------------- */
.btn-primary,
.btn-outline,
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

/* Primary — Gold (Enhanced 2026) */
.btn-primary {
  color: var(--bg-dark);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  background-size: 200% 200%;
  background-position: 0% 0%;
  border: none;
  box-shadow: 0 2px 12px rgba(245, 200, 66, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), background-position 0.5s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-position: 100% 100%;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(245,200,66,0.35), 0 10px 25px rgba(0,0,0,0.3);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Ripple overlay */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.btn-primary:hover::after { opacity: 1; }

/* Outline */
.btn-outline {
  color: var(--text);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(245, 200, 66, 0.12);
}

.btn-outline:active {
  transform: translateY(0);
}

/* WhatsApp */
.whatsapp-btn {
  color: #fff;
  background: #25D366;
  border: none;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:active {
  transform: translateY(0);
}

/* Button sizes */
.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2.4rem;
  font-size: 1.05rem;
}


/* ----------------------------------------------------------------
   7. PAGE HERO (shared across sub-pages)
   ---------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 10rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .section-tag {
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.8;
}


/* ----------------------------------------------------------------
   8. CARDS (shared base)
   ---------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
  overflow: hidden;
}

/* Top gold gradient line — hidden by default */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-hover);
}

.card:hover::before {
  opacity: 1;
}

/* Card icon container */
.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-glow);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover .card-icon {
  background: rgba(245, 200, 66, 0.2);
  border-color: var(--border-hover);
}


/* ----------------------------------------------------------------
   9. FOOTER
   ---------------------------------------------------------------- */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 400px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

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

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  opacity: 0.7;
}


/* ----------------------------------------------------------------
   10. BREADCRUMBS (sub-pages)
   ---------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6rem 2rem 1rem;
  font-size: 0.88rem;
  max-width: 1200px;
  margin-inline: auto;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .separator {
  color: var(--text-muted);
  opacity: 0.4;
  user-select: none;
}

.breadcrumb .separator::after {
  content: '/';
}

.breadcrumb .current {
  color: var(--gold);
  font-weight: 500;
}


/* ----------------------------------------------------------------
   11. FLOATING WHATSAPP BUTTON
   ---------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  font-size: 1.6rem;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease);
  animation: whatsappPulse 2.5s infinite;
}

[dir="ltr"] .whatsapp-float {
  left: auto;
  right: 1.75rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
  animation: none;
}

.whatsapp-float .tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.4rem 0.85rem;
  background: var(--bg-card2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

[dir="ltr"] .whatsapp-float .tooltip {
  right: auto;
  left: calc(100% + 0.75rem);
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50%      { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.65), 0 0 0 10px rgba(37, 211, 102, 0.08); }
}


/* ----------------------------------------------------------------
   12. SCROLL PROGRESS BAR
   ---------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  z-index: 1000;
  pointer-events: none;
  transition: width 0.1s linear;
  border-radius: 0 0 0 2px;
}

[dir="ltr"] .scroll-progress {
  right: auto;
  left: 0;
  border-radius: 0 0 2px 0;
}


/* ----------------------------------------------------------------
   13. SCROLL REVEAL ANIMATIONS
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }


/* ----------------------------------------------------------------
   14. UTILITY ANIMATIONS (@keyframes)
   ---------------------------------------------------------------- */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.85; }
}

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

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

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px var(--gold-glow); }
  50%      { box-shadow: 0 0 24px var(--gold-glow-strong), 0 0 48px var(--gold-glow); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Utility classes for applying animations */
.anim-pulse    { animation: pulse 2s var(--ease) infinite; }
.anim-shimmer  { animation: shimmer 2.5s linear infinite;
                 background-size: 200% 100%; }
.anim-float    { animation: float 4s var(--ease) infinite; }
.anim-glow     { animation: glow 2.5s var(--ease) infinite; }


/* ----------------------------------------------------------------
   15. BACK TO TOP BUTTON
   ---------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 199;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 1.15rem;
  border-radius: 50%;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), visibility 0.35s,
              transform 0.35s var(--ease-bounce), background 0.3s var(--ease);
}

[dir="ltr"] .back-to-top {
  right: auto;
  left: 1.75rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
}


/* ----------------------------------------------------------------
   16. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------------- */

/* Large desktop */
@media (max-width: 1200px) {
  .nav-center {
    gap: 1.4rem;
  }

  .page-hero {
    padding: 9rem 1.5rem 3.5rem;
  }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  nav {
    padding: 0.65rem 1.5rem;
  }

  .nav-center {
    gap: 1rem;
  }

  .nav-center a {
    font-size: 0.88rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
}

/* Tablet portrait — Hamburger shows, nav centre hides */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-center {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    background: rgba(9, 12, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }

  [dir="ltr"] .nav-center {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
  }

  .nav-center.active {
    transform: translateX(0);
  }

  .nav-center a {
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-center a::after {
    display: none;
  }

  .page-hero {
    padding: 8rem 1.25rem 3rem;
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .breadcrumb {
    padding: 5.5rem 1.25rem 0.75rem;
  }

  .card {
    padding: 1.25rem;
  }

  footer {
    padding: 2.5rem 1.25rem 1.25rem;
  }

  .footer-links {
    gap: 0.75rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  nav {
    padding: 0.5rem 1rem;
  }

  .logo-img {
    height: 38px;
  }

  .nav-cta {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
  }

  .section-tag {
    font-size: 0.76rem;
    padding: 0.3rem 0.75rem;
  }

  .section-title {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-outline,
  .whatsapp-btn {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
  }

  .page-hero {
    padding: 7rem 1rem 2.5rem;
  }

  .card {
    padding: 1rem;
    border-radius: var(--radius-sm);
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 1.25rem;
    left: 1.25rem;
    font-size: 1.4rem;
  }

  [dir="ltr"] .whatsapp-float {
    left: auto;
    right: 1.25rem;
  }

  .whatsapp-float .tooltip {
    display: none;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1.25rem;
    right: 1.25rem;
    font-size: 1rem;
  }

  [dir="ltr"] .back-to-top {
    right: auto;
    left: 1.25rem;
  }

  .breadcrumb {
    padding: 5rem 1rem 0.5rem;
    font-size: 0.82rem;
    gap: 0.35rem;
  }

  .footer-logo-img {
    height: 42px;
  }
}


/* ----------------------------------------------------------------
   17. FOCUS & ACCESSIBILITY
   ---------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip to main content */
.skip-nav {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-dark);
  background: var(--gold);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-md);
  transition: top 0.3s var(--ease);
}

.skip-nav:focus {
  top: 1rem;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ----------------------------------------------------------------
   18. GLASS-MORPHISM UTILITY
   ---------------------------------------------------------------- */
.glass {
  background: rgba(15, 20, 32, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
}

.glass-light {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* ----------------------------------------------------------------
   19. STATS SECTION (shared)
   ---------------------------------------------------------------- */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 0;
}

.stat-item {
  text-align: center;
  min-width: 140px;
}

.stat-num {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .stats-grid {
    gap: 1.5rem;
  }

  .stat-item {
    min-width: 110px;
  }

  .stat-num {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .stat-label {
    font-size: 0.8rem;
  }
}


/* ----------------------------------------------------------------
   20. EXTRA UTILITIES
   ---------------------------------------------------------------- */

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

@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }
}

/* Text alignment helpers */
.text-center  { text-align: center; }
.text-start   { text-align: start; }
.text-end     { text-align: end; }

/* Flex helpers */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1         { gap: 0.5rem; }
.gap-2         { gap: 1rem; }
.gap-3         { gap: 1.5rem; }
.gap-4         { gap: 2rem; }

/* Grid helpers */
.grid          { display: grid; }
.grid-2        { grid-template-columns: repeat(2, 1fr); }
.grid-3        { grid-template-columns: repeat(3, 1fr); }
.grid-4        { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Spacing helpers */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Gold gradient text */
.text-gold {
  color: var(--gold);
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Divider line */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* Badge variants */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}

.badge-gold   { background: var(--gold-glow); color: var(--gold); border: 1px solid var(--border); }
.badge-green  { background: rgba(6, 214, 160, 0.12); color: var(--green); border: 1px solid rgba(6, 214, 160, 0.2); }
.badge-blue   { background: rgba(76, 201, 240, 0.12); color: var(--blue); border: 1px solid rgba(76, 201, 240, 0.2); }
.badge-red    { background: rgba(239, 68, 68, 0.12); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-purple { background: rgba(168, 85, 247, 0.12); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.2); }
.badge-orange { background: rgba(255, 159, 67, 0.12); color: var(--orange); border: 1px solid rgba(255, 159, 67, 0.2); }

/* Shimmer loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-xs);
}

/* Tooltip base */
.has-tooltip {
  position: relative;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.has-tooltip:hover::after {
  opacity: 1;
}

/* Reduced motion — respect OS preferences (Enhanced 2026) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal, .scroll-reveal {
    opacity: 1;
    transform: none;
  }

  .hero-glow, .hero-glow-2 {
    animation: none;
  }
}


/* ================================================================
   PREMIUM 2026 ENHANCEMENTS
   ================================================================ */


/* ----------------------------------------------------------------
   21. 3D TILT CARDS
   ---------------------------------------------------------------- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
  will-change: transform;
}
.tilt-card:hover {
  box-shadow: 0 25px 50px rgba(0,0,0,0.35), 0 0 40px rgba(245,200,66,0.08);
}
.tilt-card .card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(245,200,66,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.tilt-card:hover .card-shine { opacity: 1; }


/* ----------------------------------------------------------------
   22. SCROLL-DRIVEN ANIMATIONS (Modern Browsers)
   ---------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: scrollFadeIn 1s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  @keyframes scrollFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    animation: scrollScaleIn 0.8s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

  @keyframes scrollScaleIn {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}


/* ----------------------------------------------------------------
   23. SVG ICON ANIMATIONS
   ---------------------------------------------------------------- */
.icon-animate svg {
  transition: transform 0.3s var(--ease-out);
}
.icon-animate:hover svg {
  transform: scale(1.1) rotate(-5deg);
}

/* Stroke draw animation */
.icon-draw svg path,
.icon-draw svg polyline,
.icon-draw svg line,
.icon-draw svg circle,
.icon-draw svg rect {
  transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}
.icon-draw:hover svg path,
.icon-draw:hover svg polyline,
.icon-draw:hover svg line {
  stroke: var(--gold);
}


/* ----------------------------------------------------------------
   24. STAGGERED GRID ANIMATIONS
   ---------------------------------------------------------------- */
[data-stagger] > *:nth-child(1) { animation-delay: 0s; }
[data-stagger] > *:nth-child(2) { animation-delay: 0.08s; }
[data-stagger] > *:nth-child(3) { animation-delay: 0.16s; }
[data-stagger] > *:nth-child(4) { animation-delay: 0.24s; }
[data-stagger] > *:nth-child(5) { animation-delay: 0.32s; }
[data-stagger] > *:nth-child(6) { animation-delay: 0.40s; }
[data-stagger] > *:nth-child(7) { animation-delay: 0.48s; }
[data-stagger] > *:nth-child(8) { animation-delay: 0.56s; }
[data-stagger] > *:nth-child(9) { animation-delay: 0.64s; }


/* ----------------------------------------------------------------
   25. GRADIENT TEXT
   ---------------------------------------------------------------- */
.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold), #fff, var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientTextShift 4s ease-in-out infinite;
}
@keyframes gradientTextShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}


/* ----------------------------------------------------------------
   26. PREMIUM CARD HOVER
   ---------------------------------------------------------------- */
.card-premium {
  position: relative;
  overflow: hidden;
}
.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(245,200,66,0.04), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card-premium:hover::before { opacity: 1; }
.card-premium:hover::after { opacity: 1; }
