/* ── Olfa Movement — Cosmic Theme ── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Tajawal:wght@300;400;500;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  --deep: #0a0e1a;
  --cosmos: #0f1528;
  --nebula: #141c35;
  --light: #f0e8d8;
  --gold: #c9a84c;
  --gold-soft: rgba(201,168,76,0.15);
  --teal-glow: #4ecdc4;
  --spirit: #7b68ee;
  --white: #ffffff;
  --white-soft: rgba(255,255,255,0.7);
  --white-dim: rgba(255,255,255,0.4);
  --error: #e74c3c;
  --success: #2ecc71;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --max-w: 900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-en);
  color: var(--white-soft);
  background: var(--deep);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); }

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

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ── Stars background ── */
.stars {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none;
}
.stars canvas { width: 100%; height: 100%; }

.light-beam {
  position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 800px;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,0.08) 0%, rgba(126,104,238,0.04) 40%, transparent 70%);
  pointer-events: none; z-index: 1;
}

.glow-spot {
  position: fixed; border-radius: 50%; pointer-events: none;
  filter: blur(80px); opacity: 0.4; z-index: 0;
}
.glow-1 { width: 300px; height: 300px; background: rgba(126,104,238,0.15); top: 20%; left: -5%; }
.glow-2 { width: 400px; height: 400px; background: rgba(201,168,76,0.08); top: 50%; right: -10%; }
.glow-3 { width: 250px; height: 250px; background: rgba(78,205,196,0.08); top: 75%; left: 10%; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--gold); color: var(--deep);
  padding: 0.5rem 1rem; z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10,14,26,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img { height: 40px; width: auto; border-radius: 6px; opacity: 0.9; }
.logo-text {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
  color: var(--gold); letter-spacing: 0.1em;
}
.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-nav a {
  color: var(--white-dim); text-decoration: none; font-size: 0.85rem;
  font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s;
}
.header-nav a:hover { color: var(--gold); text-decoration: none; }

.lang-toggle { display: flex; border: 1px solid rgba(201,168,76,0.2); border-radius: 4px; overflow: hidden; }
.lang-btn {
  border: none; background: transparent; padding: 0.35rem 0.75rem;
  font-size: 0.8rem; font-weight: 400; cursor: pointer; color: var(--white-dim);
  transition: all 0.3s; font-family: inherit; letter-spacing: 0.05em;
}
.lang-btn:hover { color: var(--gold); }
.lang-btn.active { background: rgba(201,168,76,0.15); color: var(--gold); }
.lang-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* ── Sections ── */
section { position: relative; z-index: 2; padding: 4rem 1.25rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; color: var(--white); letter-spacing: 0.08em;
  margin-bottom: 1.5rem; line-height: 1.3;
}
h1 span { color: inherit; }
h1 .gold { color: var(--gold); }
h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300; color: var(--white); margin-bottom: 1rem; letter-spacing: 0.06em;
}
h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 400;
  margin-bottom: 0.75rem; color: var(--gold);
}
p { margin-bottom: 1rem; font-weight: 300; line-height: 1.9; }

/* ── Cosmic Divider ── */
.cosmic-divider { text-align: center; padding: 3rem 0; position: relative; z-index: 2; }
.cosmic-divider span {
  display: inline-block; width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem; position: relative;
}
.hero::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to top, var(--deep), transparent);
}
.hero-content { position: relative; z-index: 2; }
.hero-logo {
  max-width: 280px; margin: 0 auto 3rem; border-radius: 16px;
  box-shadow: 0 0 60px rgba(201,168,76,0.15), 0 0 120px rgba(126,104,238,0.08);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero p {
  font-size: 1.05rem; max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.9;
}
.btn-glow {
  display: inline-block; padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(126,104,238,0.2));
  border: 1px solid rgba(201,168,76,0.3); border-radius: 50px;
  color: var(--gold); font-size: 0.9rem; font-weight: 400; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none; transition: all 0.4s;
  font-family: inherit; cursor: pointer;
}
.btn-glow:hover {
  background: linear-gradient(135deg, rgba(201,168,76,0.35), rgba(126,104,238,0.3));
  box-shadow: 0 0 30px rgba(201,168,76,0.2); transform: translateY(-2px);
  text-decoration: none;
}

/* ── Who We Are ── */
.who-section { padding: 6rem 1.25rem; }
.who-section .section-inner { max-width: 780px; }

/* ── The Message ── */
.message-section { padding: 6rem 1.25rem; }
.message-section .section-inner { max-width: 780px; }
.olfa-quote {
  margin: 2rem 0; padding: 2rem 2.5rem;
  border-inline-start: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(201,168,76,0.05), rgba(126,104,238,0.03));
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display); font-size: 1.2rem; line-height: 2;
  font-style: italic; color: var(--light);
}
html[dir="rtl"] .olfa-quote { border-radius: 12px 0 0 12px; }
.olfa-quote p { margin-bottom: 0; font-weight: 400; }

/* ── Vision grid ── */
.vision-section { padding: 6rem 1.25rem; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.vision-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(126,104,238,0.04));
  border: 1px solid rgba(201,168,76,0.1); border-radius: 16px;
  padding: 2.5rem; transition: all 0.4s;
}
.vision-card:hover {
  border-color: rgba(201,168,76,0.25);
  box-shadow: 0 0 40px rgba(201,168,76,0.06);
}
.vision-card h2 { color: var(--gold); font-size: 1.5rem; }
.vision-card p { font-size: 0.95rem; }

/* ── Signup form ── */
.signup-section { padding: 6rem 1.25rem; text-align: center; }
.signup-section .section-inner { max-width: 550px; }
.signup-section > .section-inner > p { font-size: 0.9rem; color: var(--white-dim); margin-bottom: 2rem; }
.signup-form { text-align: start; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; margin-bottom: 0.4rem; font-size: 0.85rem;
  font-weight: 300; color: var(--white-dim); letter-spacing: 0.05em;
}
.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%; padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px; font-size: 1rem; font-family: inherit; color: var(--white);
  transition: border-color 0.3s;
}
.form-group input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.1);
}
.form-group input::placeholder { color: var(--white-dim); }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.5rem; }
.checkbox-group input[type="checkbox"] { margin-top: 0.3rem; accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }
.checkbox-group label { font-size: 0.85rem; color: var(--white-dim); margin-bottom: 0; }
.form-submit { text-align: center; margin-top: 2rem; }
.form-msg {
  margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; text-align: center;
}
.form-msg.success { background: rgba(46,204,113,0.15); color: var(--success); }
.form-msg.error { background: rgba(231,76,60,0.15); color: var(--error); }
.form-msg[hidden] { display: none !important; }

/* ── Legal note ── */
.legal-section { padding: 4rem 1.25rem; }
.legal-box {
  max-width: 700px; margin: 0 auto;
  background: rgba(201,168,76,0.04); border: 1px solid rgba(201,168,76,0.1);
  border-radius: 12px; padding: 2rem 2.5rem;
}
.legal-box p { margin-bottom: 0; font-size: 0.9rem; color: var(--white-dim); }

/* ── Contact ── */
.contact-section { padding: 4rem 1.25rem; text-align: center; }
.contact-section .section-inner { max-width: 600px; }
.contact-email {
  font-size: 1rem; font-weight: 300; letter-spacing: 0.05em;
  direction: ltr; unicode-bidi: embed;
}

/* ── Footer ── */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(201,168,76,0.08);
  text-align: center; padding: 2.5rem 2rem; font-size: 0.8rem;
  color: var(--white-dim); font-weight: 300;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: var(--white); }
.footer-sep { margin: 0 0.5rem; }

/* ── RTL adjustments ── */
html[dir="rtl"] .checkbox-group { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .lang-toggle { direction: ltr; }

/* ── Privacy page ── */
.privacy-page { max-width: 700px; margin: 0 auto; padding: 3rem 1.25rem; }
.privacy-page h1 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 500; }

/* ── Music toggle ── */
.music-wrap {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  display: flex; align-items: center; gap: 0.75rem;
  flex-direction: row-reverse;
}
.music-toggle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); cursor: pointer; display: flex; align-items: center;
  justify-content: center; backdrop-filter: blur(10px);
  transition: all 0.3s; box-shadow: 0 0 20px rgba(201,168,76,0.1);
  animation: intro-pulse 2s ease-in-out 3;
}
@keyframes intro-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.1); transform: scale(1); }
  50% { box-shadow: 0 0 40px rgba(201,168,76,0.3); transform: scale(1.1); }
}
.music-toggle:hover {
  background: rgba(201,168,76,0.25);
  box-shadow: 0 0 30px rgba(201,168,76,0.15);
}
.music-toggle.playing {
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.1); }
  50% { box-shadow: 0 0 30px rgba(201,168,76,0.25); }
}
.music-tooltip {
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.2);
  backdrop-filter: blur(10px); border-radius: 20px;
  padding: 0.4rem 1rem; font-size: 0.78rem; font-weight: 300;
  color: var(--gold); letter-spacing: 0.08em; white-space: nowrap;
  opacity: 1; transition: opacity 0.6s;
}
.music-tooltip.fade-out { opacity: 0; pointer-events: none; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .vision-grid { grid-template-columns: 1fr; }
  .hero { padding: 5rem 1.5rem; min-height: auto; }
  .header-nav a { display: none; }
  .hero-logo { max-width: 220px; }
  section { padding: 3rem 1rem; }
  .legal-box { padding: 1.5rem; }
  .vision-card { padding: 1.5rem; }
  .olfa-quote { padding: 1.5rem; }
}

/* ── New homepage content ── */
.eyebrow { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; font-weight: 400; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 0.95rem; }
.hero-eyebrow { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 300; }
html[dir="rtl"] .hero-eyebrow { letter-spacing: 0; font-size: 0.95rem; }
.hero-tag { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-style: italic; color: var(--light, #f0e8d8); margin-bottom: 1.25rem; }
html[dir="rtl"] .hero-tag { font-style: normal; font-family: var(--font-ar); }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.btn-ghost { display: inline-block; padding: 0.9rem 2rem; border-radius: 999px; border: 1px solid rgba(201,168,76,0.4); color: var(--gold); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.08em; transition: all 0.3s; }
.btn-ghost:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }
.name-section { text-align: center; }
.name-big { font-family: var(--font-ar); font-size: clamp(3.5rem, 9vw, 5.5rem); color: var(--gold); line-height: 1.2; margin-bottom: 1rem; text-shadow: 0 0 40px rgba(201,168,76,0.3); }
.sign-saraya { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.2em; color: var(--gold); margin-top: 1.5rem; margin-bottom: 0.25rem; }
.sign-stars { font-size: 0.5rem; color: var(--gold); letter-spacing: 0.15em; opacity: 0.7; margin-bottom: 0; }
.truths-grid, .places-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.truth-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); font-weight: 400; margin-bottom: 0.5rem; }
.truth-num { font-size: 0.75rem; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 0.5rem; text-transform: uppercase; }
html[dir="rtl"] .truth-num { letter-spacing: 0; }
.place-card { display: block; text-decoration: none; color: inherit; }
.place-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); font-weight: 400; margin-bottom: 0.4rem; }
.place-card p:last-child { margin-bottom: 0; font-size: 0.9rem; }
.place-soon { font-style: italic; }
.quote-card { text-align: center; padding: 3rem 2rem; border-radius: 16px; background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(123,104,238,0.05)); border: 1px solid rgba(201,168,76,0.2); }
.quote-card blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 3.2vw, 1.9rem); font-style: italic; color: var(--light, #f0e8d8); line-height: 1.5; margin-bottom: 0.75rem; }
.quote-card-ar { font-family: var(--font-ar); font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--light, #f0e8d8); margin-bottom: 1rem; }
.form-group textarea { width: 100%; min-height: 96px; resize: vertical; font: inherit; font-size: 1rem; padding: 0.8rem 1rem; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.2); color: var(--white); }
.form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 20px rgba(201,168,76,0.1); }
h1 .gold[lang="ar"] { font-family: var(--font-ar); font-weight: 500; }
