/* Designed and developed by Hassan Raziki | Veloris LLC. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&family=Noto+Kufi+Arabic:wght@400;700;800&display=swap');

:root {
  --red: #c41e3a;
  --red-light: #e8364f;
  --red-dark: #8b1528;
  --green: #2d8c3c;
  --green-light: #3aad4c;
  --green-dark: #1a6328;
  --navy: #1a2744;
  --navy-light: #2a3d66;
  --navy-dark: #0d1626;
  --gold: #f0a500;
  --gold-light: #ffc233;
  --bg-primary: #08090e;
  --bg-secondary: #0e1019;
  --bg-card: #12141f;
  --bg-card-hover: #1a1d2e;
  --text-primary: #f0f0f5;
  --text-secondary: #9a9ab0;
  --text-muted: #5a5a72;
  --glass-bg: rgba(18, 20, 31, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-body: 'Inter', 'Noto Sans Arabic', sans-serif;
  --font-heading: 'Playfair Display', 'Noto Kufi Arabic', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-light) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  font-family: 'Noto Kufi Arabic', 'Playfair Display', serif;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 3px;
}

/* ===== PRELOADER (disabled) ===== */
#preloader {
  display: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 40px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
}

.nav-logo img {
  height: 58px;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
  height: 38px;
}

.nav-logo span {
  font-family: var(--font-heading);
  font-size: 1.56rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #4a4a5a;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  position: relative;
  transition: var(--transition);
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: var(--transition);
}

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

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

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 4px;
  padding: 4px 6px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-voting.png') center calc(50% + 80px)/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(8, 9, 14, 0.7) 0%,
      rgba(8, 9, 14, 0.5) 40%,
      rgba(8, 9, 14, 0.85) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(240, 165, 0, 0.1);
  border: 1px solid rgba(240, 165, 0, 0.25);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: -40px;
  margin-bottom: 64px;
  letter-spacing: 1px;
  animation: fadeInUp 0.8s ease-out both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--red-light), var(--gold), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 180px auto 40px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  margin-top: 140px;
}

.btn-primary {
  padding: 16px 36px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--red-light));
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(196, 30, 58, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  padding: 16px 36px;
  border-radius: 50px;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  font-family: var(--font-body);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240, 165, 0, 0.05);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ===== SECTIONS COMMON ===== */
section {
  padding: 120px 40px;
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

[dir="rtl"] .section-label::before {
  background: linear-gradient(270deg, var(--gold), transparent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ===== STATS BAR ===== */
.stats-bar {
  padding: 60px 40px;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--glass-border);
}

.stat-item:last-child::after {
  display: none;
}

[dir="rtl"] .stat-item::after {
  right: auto;
  left: 0;
}

[dir="rtl"] .stat-item:last-child::after {
  display: none;
}

[dir="rtl"] .stat-item:first-child::after {
  display: none;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 500;
}

/* ===== WHY VOTE ===== */
.why-vote {
  background: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 165, 0, 0.15);
  background: var(--bg-card-hover);
}

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

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.15), rgba(196, 30, 58, 0.05));
  border: 1px solid rgba(196, 30, 58, 0.2);
}

.why-card:nth-child(2) .why-icon {
  background: linear-gradient(135deg, rgba(240, 165, 0, 0.15), rgba(240, 165, 0, 0.05));
  border-color: rgba(240, 165, 0, 0.2);
}

.why-card:nth-child(3) .why-icon {
  background: linear-gradient(135deg, rgba(45, 140, 60, 0.15), rgba(45, 140, 60, 0.05));
  border-color: rgba(45, 140, 60, 0.2);
}

.why-card:nth-child(4) .why-icon {
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.4), rgba(26, 39, 68, 0.15));
  border-color: rgba(42, 61, 102, 0.4);
}

.why-card:nth-child(5) .why-icon {
  background: linear-gradient(135deg, rgba(240, 165, 0, 0.15), rgba(240, 165, 0, 0.05));
  border-color: rgba(240, 165, 0, 0.2);
}

.why-card:nth-child(6) .why-icon {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.15), rgba(196, 30, 58, 0.05));
  border-color: rgba(196, 30, 58, 0.2);
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== IMPACT SECTION ===== */
.impact {
  overflow: hidden;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.impact-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.impact-image:hover {
  transform: scale(1.02);
}

.impact-image img {
  width: 100%;
  display: block;
}

.impact-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.impact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.impact-item:hover {
  border-color: rgba(240, 165, 0, 0.2);
  background: var(--bg-card-hover);
}

.impact-number {
  font-size: 1.8rem;
  font-weight: 900;
  min-width: 50px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.impact-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.impact-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== COMMUNITY SECTION ===== */
.community {
  background: var(--bg-secondary);
  overflow: hidden;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}

.community-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.community-image img {
  width: 100%;
  display: block;
}

.community-text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.community-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== QUOTE / CTA SECTION ===== */
.quote-section {
  padding: 140px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(196, 30, 58, 0.08), transparent 70%);
}

.quote-icon {
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 24px;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.4;
}

.quote-author {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 140px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196, 30, 58, 0.06), transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(45, 140, 60, 0.06), transparent 50%);
}

.final-cta .section-container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 20px;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px 40px 40px;
  background: #ffffff;
  border-top: none;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand img {
  width: 160px;
  margin-bottom: 24px;
}

.footer-brand p {
  color: #5a5a6a;
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: #5a5a6a;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0f0f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a5a6a;
  transition: var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #9a9aaa;
  font-size: 0.8rem;
  text-align: center;
}

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

  .impact-grid,
  .community-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  section {
    padding: 80px 20px;
  }

  .navbar {
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 9, 14, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
  }

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

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

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

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

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

  .nav-links a {
    font-size: 1.3rem;
  }

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

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

  .stat-item::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .lang-selector {
    gap: 2px;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
  }
}