/* ===============================
   ALGHAITH — Complete Redesign
   Dark Premium Theme · 360° Change
   =============================== */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --accent: #ff6b35;
  --accent-soft: rgba(255, 107, 53, 0.15);
  --accent-glow: rgba(255, 107, 53, 0.3);
  --accent-gradient: linear-gradient(135deg, #ff6b35, #f7c948);
  --accent-gradient-2: linear-gradient(135deg, #ff6b35, #e63946);

  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --whatsapp-glow: rgba(37, 211, 102, 0.25);
  --facebook: #1877f2;
  --facebook-dark: #0d65d9;
  --facebook-glow: rgba(24, 119, 242, 0.22);

  --text: #f0efe7;
  --text-soft: #a8a6a0;
  --text-muted: #6b6a65;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px var(--accent-glow);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Space Grotesk', sans-serif;
  color: var(--text);
  background: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* ── Particle Canvas ── */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Ambient Floating Orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.25), transparent 70%);
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -150px;
  background: radial-gradient(circle, rgba(247, 201, 72, 0.15), transparent 70%);
}

.orb-3 {
  width: 350px;
  height: 350px;
  bottom: -100px;
  right: 20%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12), transparent 70%);
}

/* ── Page Shell ── */
.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px) saturate(1.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
  transition: all 0.25s ease;
  position: relative;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  background: var(--bg-card);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px var(--accent-glow);
}

.btn-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 24px var(--accent-glow); }
  50% { box-shadow: 0 8px 48px var(--accent-glow), 0 0 60px rgba(255, 107, 53, 0.15); }
}

.btn-whatsapp {
  color: #fff;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  box-shadow: 0 8px 24px var(--whatsapp-glow);
}

.btn-whatsapp:hover {
  box-shadow: 0 12px 36px var(--whatsapp-glow);
}

.btn-small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 13px;
}

.btn-large {
  min-height: 56px;
  padding: 0 28px;
  font-size: 16px;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 100px);
  justify-content: center;
  padding: 40px 0 20px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 107, 53, 0.15);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.hero-title-line {
  font-size: clamp(44px, 8vw, 90px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-title-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  max-width: 640px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 22px;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── Marquee ── */
.marquee-section {
  padding: 40px 0;
  overflow: hidden;
  position: relative;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.marquee-item span {
  font-size: 22px;
}

.marquee-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Section ── */
.section {
  padding: 40px 0 20px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 107, 53, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.text-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
  animation: card-fade-in 0.6s ease backwards;
  animation-delay: calc(var(--order) * 0.08s);
}

@keyframes card-fade-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.service-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.service-arrow {
  position: absolute;
  bottom: 20px;
  left: 24px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  padding: 28px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* ── CTA Card ── */
.cta-card {
  position: relative;
  padding: 56px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(247, 201, 72, 0.04));
  border: 1px solid rgba(255, 107, 53, 0.1);
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 107, 53, 0.06), transparent 50%);
  animation: cta-rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes cta-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-content h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cta-content p {
  max-width: 560px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.cta-note {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

/* ── Support Grid ── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 14px;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.support-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.support-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.support-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.support-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.support-card-whatsapp .support-icon {
  background: rgba(37, 211, 102, 0.1);
  color: var(--whatsapp);
}

.support-card-facebook .support-icon {
  background: rgba(24, 119, 242, 0.1);
  color: var(--facebook);
}

.btn-facebook {
  color: #fff;
  background: linear-gradient(135deg, var(--facebook), var(--facebook-dark));
  box-shadow: 0 8px 24px var(--facebook-glow);
}

.btn-facebook:hover {
  box-shadow: 0 12px 36px var(--facebook-glow);
}

/* ── Footer ── */
.footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.25s ease;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(24px);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hamburger {
    display: flex;
  }

  .navbar .btn {
    display: none;
  }

  .hero-stats {
    gap: 16px;
    padding: 14px 20px;
  }

  .stat-num {
    font-size: 18px;
  }

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

  .btn-large {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 20px);
    padding: 12px 0 24px;
  }

  .navbar {
    top: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-title-line {
    font-size: clamp(32px, 10vw, 48px);
  }

  .hero-text {
    font-size: 15px;
  }

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

  .cta-card {
    padding: 36px 20px;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .support-card {
    padding: 22px 20px;
  }

  .feature-card,
  .service-card {
    padding: 22px 20px;
  }
}

/* ── Hero Small (for inner pages) ── */
.hero-small {
  min-height: auto;
  padding: 80px 0 40px;
}

/* ── Support Card Description ── */
.support-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.support-card-whatsapp .support-desc {
  color: rgba(37, 211, 102, 0.7);
}

/* ── FAQ Grid ── */
.faq-grid {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.faq-question {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.9;
}

.nav a.active {
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 107, 53, 0.15);
}

.policy-page {
  width: min(960px, 100%);
  margin: 48px auto 0;
  display: grid;
  gap: 20px;
}

.policy-hero,
.policy-card {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(17, 17, 24, 0.82);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.policy-hero {
  padding: 36px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.policy-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 53, 0.2), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
}

.policy-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  margin: 10px 0 16px;
}

.policy-hero p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.9;
}

.policy-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.policy-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

.policy-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.policy-card h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.policy-card p,
.policy-card li {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.95;
}

.policy-card a {
  color: #ffd08c;
}

.policy-list {
  list-style: disc;
  padding-right: 22px;
}

.policy-highlight {
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.12);
}

@media (max-width: 720px) {
  .policy-page {
    margin-top: 28px;
    gap: 16px;
  }

  .policy-hero,
  .policy-card {
    padding: 22px;
  }

  .policy-card p,
  .policy-card li,
  .policy-hero p {
    font-size: 15px;
  }
}
