/* Fonts loaded via HTML <link> for performance */
@import url('animations.css');

:root {
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-dark: #7c3aed;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --bg: #080810;
  --bg-2: #0d0d1a;
  --bg-3: #111128;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(168,85,247,0.2);
  --glass: rgba(255,255,255,0.04);
  --radius: 16px;
  --shadow: 0 25px 60px rgba(0,0,0,0.5);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}
body.ltr {
  font-family: 'Inter', 'Cairo', sans-serif;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple-dark); border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: var(--purple-dark); color: #fff; }

/* ── PARTICLES ── */
#particles { position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--purple-light);
  border-radius: 50%;
  opacity: 0;
  animation: particle-rise linear infinite;
}

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
}
#navbar.scrolled {
  background: rgba(8,8,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 5%;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
}
.nav-logo .logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.nav-logo .logo-text { font-size: 1.1rem; font-weight: 800; line-height: 1.1; }
.nav-logo .logo-text span { color: var(--purple-light); display: block; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.3s; position: relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px; background: var(--purple); border-radius:1px; transition: width 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff; padding: 0.6rem 1.4rem; border-radius: 30px;
  font-size: 0.88rem; font-weight: 600;
  transition: all 0.3s; box-shadow: 0 4px 20px rgba(168,85,247,0.35);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(168,85,247,0.55); }
.nav-actions { display:flex; align-items:center; gap:0.75rem; }
.lang-btn {
  background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.4);
  color: var(--purple-light); padding: 0.4rem 0.85rem; border-radius: 20px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: all 0.3s; letter-spacing: 0.05em; font-family: inherit;
}
.lang-btn:hover { background: rgba(168,85,247,0.25); border-color: var(--purple); }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; }
.hamburger span { width:25px; height:2px; background: var(--text); border-radius:2px; transition: all 0.3s; }
.mobile-menu {
  display:none; position:fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(8,8,16,0.97); backdrop-filter:blur(20px);
  flex-direction:column; align-items:center; justify-content:center;
  gap:2rem; z-index:999;
}
.mobile-menu.open { display:flex; }
.mobile-menu a { font-size:1.5rem; font-weight:700; }
.mobile-close { position:absolute; top:1.5rem; right:1.5rem; font-size:1.8rem; cursor:pointer; color:var(--text-muted); }

/* ── HERO ── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.png') center/cover no-repeat;
  animation: hero-pan 20s ease-in-out infinite;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,8,16,0.88) 40%, rgba(124,58,237,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 5%; max-width: 800px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.4);
  padding: 0.4rem 1rem; border-radius: 30px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--purple-light); text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-badge::before { content:'⚡'; }
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.95; letter-spacing: 0.02em; margin-bottom: 1.5rem;
}
.hero-title .highlight { color: var(--purple-light); }
.hero-title .gold { color: var(--gold-light); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted);
  max-width: 500px; margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff; padding: 0.9rem 2.2rem; border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  transition: all 0.3s; box-shadow: 0 8px 30px rgba(168,85,247,0.45);
  display: inline-flex; align-items: center; gap: 0.5rem;
  animation: pulse-glow 3s ease-in-out infinite;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(168,85,247,0.65); }
.btn-secondary {
  border: 2px solid rgba(168,85,247,0.5); color: var(--text);
  padding: 0.9rem 2.2rem; border-radius: 50px;
  font-weight: 600; font-size: 1rem;
  transition: all 0.3s; backdrop-filter: blur(5px);
  background: rgba(168,85,247,0.08);
}
.btn-secondary:hover { border-color: var(--purple); background: rgba(168,85,247,0.2); transform: translateY(-3px); }
.hero-stats {
  position: absolute; bottom: 3rem; left: 5%;
  display: flex; gap: 3rem; z-index: 2;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-family:'Bebas Neue',sans-serif; font-size:2.8rem; color:var(--purple-light); line-height:1; }
.hero-stat .lbl { font-size:0.75rem; color:var(--text-muted); letter-spacing:0.1em; text-transform:uppercase; }
.hero-scroll {
  position:absolute; bottom:3rem; right:5%; z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:0.5rem;
  color:var(--text-muted); font-size:0.75rem; letter-spacing:0.1em;
  animation: float 3s ease-in-out infinite;
}
.scroll-line { width:1px; height:50px; background:linear-gradient(to bottom,var(--purple),transparent); }

/* ── SECTION BASE ── */
section { position:relative; z-index:1; }
.section-header { text-align:center; margin-bottom:4rem; }
.section-tag {
  display:inline-block; color:var(--purple-light);
  font-size:0.78rem; font-weight:700; letter-spacing:0.2em;
  text-transform:uppercase; margin-bottom:0.75rem;
}
.section-title {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(2.5rem,6vw,4.5rem);
  line-height:1; margin-bottom:1rem;
}
.section-line {
  width:70px; height:3px; margin:0 auto;
  background:linear-gradient(90deg,var(--purple),var(--gold));
  border-radius:2px; animation: line-grow 1s ease both;
}

.container { max-width:1200px; margin:0 auto; padding:0 5%; }

/* ── ABOUT ── */
#about { padding:8rem 0; background:var(--bg-2); }
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; }
.about-img-wrap { position:relative; }
.about-img-wrap img { border-radius:20px; width:100%; object-fit:cover; height:500px; }
.about-img-badge {
  position:absolute; bottom:-20px; right:-20px;
  background:linear-gradient(135deg,var(--purple-dark),var(--purple));
  padding:1.2rem 1.6rem; border-radius:16px;
  text-align:center; box-shadow:0 15px 40px rgba(168,85,247,0.4);
}
.about-img-badge .badge-num { font-family:'Bebas Neue',sans-serif; font-size:2.5rem; line-height:1; }
.about-img-badge .badge-lbl { font-size:0.75rem; color:rgba(255,255,255,0.8); }
.about-content .section-header { text-align:left; }
.about-content .section-line { margin:0; }
.about-text { color:var(--text-muted); line-height:1.8; margin:1.5rem 0 2rem; }
.about-features { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.feature-item {
  display:flex; align-items:center; gap:0.75rem;
  background:var(--glass); border:1px solid var(--border);
  padding:0.8rem 1rem; border-radius:12px;
  font-size:0.88rem; font-weight:500;
  transition:all 0.3s;
}
.feature-item:hover { border-color:var(--purple); background:rgba(168,85,247,0.1); }
.feature-item .icon { font-size:1.2rem; }

/* ── SERVICES ── */
#services { padding:8rem 0; }
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.service-card {
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--radius); padding:2rem;
  transition:all 0.4s; cursor:default; position:relative; overflow:hidden;
}
.service-card::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(168,85,247,0.1),transparent);
  opacity:0; transition:opacity 0.4s;
}
.service-card:hover { transform:translateY(-8px); border-color:rgba(168,85,247,0.6); box-shadow:0 25px 60px rgba(168,85,247,0.2); }
.service-card:hover::before { opacity:1; }
.service-icon {
  width:60px; height:60px; border-radius:14px;
  background:linear-gradient(135deg,var(--purple-dark),var(--purple));
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; margin-bottom:1.2rem;
  box-shadow:0 8px 25px rgba(168,85,247,0.35);
}
.service-title { font-size:1.1rem; font-weight:700; margin-bottom:0.6rem; }
.service-desc { font-size:0.88rem; color:var(--text-muted); line-height:1.7; }

/* ── STATS ── */
#stats {
  padding:6rem 0;
  background:linear-gradient(135deg,var(--bg-3),var(--bg-2));
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; text-align:center; }
.stat-item { padding:2rem; }
.stat-num {
  font-family:'Bebas Neue',sans-serif; font-size:4rem;
  line-height:1; color:var(--purple-light);
  animation:counter-pulse 3s ease-in-out infinite;
}
.stat-label { font-size:0.85rem; color:var(--text-muted); margin-top:0.4rem; letter-spacing:0.05em; }

/* ── SCHEDULE ── */
#schedule { padding:8rem 0; background:var(--bg-2); }
.schedule-wrap { max-width:700px; margin:0 auto; }
.schedule-card {
  background:var(--glass); border:1px solid var(--border);
  border-radius:20px; overflow:hidden; box-shadow:var(--shadow);
}
.schedule-header {
  background:linear-gradient(135deg,var(--purple-dark),var(--purple));
  padding:1.5rem 2rem; display:flex; align-items:center; gap:1rem;
}
.schedule-header h3 { font-family:'Bebas Neue',sans-serif; font-size:1.6rem; letter-spacing:0.05em; }
.schedule-list { padding:1rem 0; }
.schedule-item {
  display:flex; align-items:center; justify-content:space-between;
  padding:1rem 2rem; border-bottom:1px solid rgba(255,255,255,0.05);
  transition:background 0.3s;
}
.schedule-item:last-child { border-bottom:none; }
.schedule-item:hover { background:rgba(168,85,247,0.06); }
.day-name { font-weight:600; font-size:0.95rem; display:flex; align-items:center; gap:0.5rem; }
.day-dot { width:8px; height:8px; border-radius:50%; background:var(--purple); }
.day-dot.closed { background:#ef4444; }
.hours-badge {
  padding:0.3rem 0.9rem; border-radius:20px; font-size:0.8rem; font-weight:600;
  background:rgba(168,85,247,0.15); border:1px solid rgba(168,85,247,0.35); color:var(--purple-light);
}
.hours-badge.closed { background:rgba(239,68,68,0.15); border-color:rgba(239,68,68,0.35); color:#f87171; }
.hours-badge.limited { background:rgba(245,158,11,0.15); border-color:rgba(245,158,11,0.35); color:var(--gold-light); }

/* ── CONTACT ── */
#contact { padding:8rem 0; }
.contact-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:4rem; align-items:start; }
.contact-info h2 { font-family:'Bebas Neue',sans-serif; font-size:3rem; margin-bottom:1rem; }
.contact-info p { color:var(--text-muted); line-height:1.8; margin-bottom:2rem; }
.contact-items { display:flex; flex-direction:column; gap:1.2rem; }
.contact-item {
  display:flex; align-items:center; gap:1rem;
  background:var(--glass); border:1px solid var(--border);
  padding:1rem 1.4rem; border-radius:14px; transition:all 0.3s;
}
.contact-item:hover { border-color:var(--purple); transform:translateX(6px); }
.contact-item .c-icon {
  width:44px; height:44px; border-radius:10px;
  background:linear-gradient(135deg,var(--purple-dark),var(--purple));
  display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0;
}
.contact-item .c-text { font-size:0.88rem; color:var(--text-muted); }
.contact-item .c-val { font-weight:600; font-size:0.95rem; }
.contact-form {
  background:var(--glass); border:1px solid var(--border);
  border-radius:20px; padding:2.5rem;
}
.form-group { margin-bottom:1.2rem; }
.form-group label { display:block; font-size:0.85rem; font-weight:600; margin-bottom:0.5rem; color:var(--text-muted); }
.form-group input,
.form-group textarea {
  width:100%; background:rgba(255,255,255,0.04); border:1px solid var(--border);
  border-radius:12px; padding:0.85rem 1.1rem; color:var(--text);
  font-family:'Inter',sans-serif; font-size:0.95rem; transition:all 0.3s; resize:none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline:none; border-color:var(--purple);
  box-shadow:0 0 0 3px rgba(168,85,247,0.15);
}
.form-group textarea { height:120px; }
.form-submit {
  width:100%; background:linear-gradient(135deg,var(--purple-dark),var(--purple));
  color:#fff; border:none; padding:1rem; border-radius:12px;
  font-size:1rem; font-weight:700; cursor:pointer; transition:all 0.3s;
  box-shadow:0 8px 25px rgba(168,85,247,0.4);
}
.form-submit:hover { transform:translateY(-2px); box-shadow:0 15px 35px rgba(168,85,247,0.55); }

/* ── MAP ── */
#map-section { padding:0 0 6rem; }
.map-wrap {
  border-radius:20px; overflow:hidden;
  border:1px solid var(--border); box-shadow:var(--shadow); height:380px;
}
.map-wrap iframe { width:100%; height:100%; border:none; filter:invert(90%) hue-rotate(180deg); }

/* ── FOOTER ── */
footer {
  background:var(--bg-2); border-top:1px solid var(--border);
  padding:3rem 5%; text-align:center;
}
.footer-logo { font-family:'Bebas Neue',sans-serif; font-size:2rem; color:var(--purple-light); margin-bottom:0.5rem; }
.footer-tagline { color:var(--text-muted); font-size:0.85rem; margin-bottom:1.5rem; }
.footer-links { display:flex; justify-content:center; gap:2rem; margin-bottom:2rem; flex-wrap:wrap; position:static; }
.footer-links a { color:var(--text-muted); font-size:0.88rem; transition:color 0.3s; }
.footer-links a:hover { color:var(--purple-light); }
.footer-copy { color:var(--text-muted); font-size:0.8rem; }
.footer-copy span { color:var(--purple-light); }

/* ── FLOATING CTA ── */
.whatsapp-float {
  position:fixed; bottom:2rem; right:2rem; z-index:900;
  width:56px; height:56px; border-radius:50%;
  background:linear-gradient(135deg,#25d366,#128c7e);
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; box-shadow:0 8px 30px rgba(37,211,102,0.45);
  transition:all 0.3s; animation:float 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform:scale(1.1) translateY(-4px); box-shadow:0 15px 40px rgba(37,211,102,0.6); }

/* ── RESPONSIVE ── */
@media(max-width:1024px) {
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .about-grid, .contact-grid { grid-template-columns:1fr; gap:3rem; }
  .about-img-wrap img { height:350px; }
}
@media(max-width:768px) {
  .nav-links, .nav-cta { display:none; }
  .hamburger { display:flex; }
  .hero-stats { gap:1.5rem; }
  .hero-stat .num { font-size:2rem; }
  .services-grid { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:480px) {
  .stats-grid { grid-template-columns:1fr 1fr; }
  .about-features { grid-template-columns:1fr; }
}

/* ═══════════════════════════════════
   RTL — Arabic Direction Support
   ═══════════════════════════════════ */
[dir="rtl"] .hero-content { padding: 0 5%; }
[dir="rtl"] .hero-stats { left: auto; right: 5%; }
[dir="rtl"] .hero-scroll { right: auto; left: 5%; }
[dir="rtl"] .about-content .section-header { text-align: right; }
[dir="rtl"] .about-content .section-line { margin: 0; }
[dir="rtl"] .contact-item:hover { transform: translateX(-6px); }
[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
[dir="rtl"] .section-line { margin: 0 auto; }
[dir="rtl"] .about-img-badge { right: auto; left: -20px; }

/* Arabic typography enhancements */
[dir="rtl"] body {
  letter-spacing: 0;
  word-spacing: 0.05em;
}
[dir="rtl"] .hero-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}
[dir="rtl"] .section-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}
[dir="rtl"] .schedule-header h3 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
}
[dir="rtl"] .footer-logo {
  letter-spacing: 0;
}

/* RTL hero badge arrow flip */
[dir="rtl"] .hero-badge::before { content: '⚡'; }

/* Flip reveal animations for RTL */
[dir="rtl"] .reveal-left {
  opacity: 0;
  transform: translateX(50px);
}
[dir="rtl"] .reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
[dir="rtl"] .reveal-right {
  opacity: 0;
  transform: translateX(-50px);
}
[dir="rtl"] .reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
