/* ===========================
   ZAKHAM — ContentFlow page
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080C18;
  --bg2:      #0B1022;
  --card:     rgba(255,255,255,0.04);
  --gold:     #C9A055;
  --gold-lt:  #E8C870;
  --gold-dk:  #A07830;
  --blue-lt:  #0E2040;
  --brand:    #2D5CAE;
  --white:    #FFFFFF;
  --grey:     #9CA3AF;
  --grey-lt:  #D1D5DB;
  --border:   rgba(201,160,85,0.22);
  --radius:   14px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  font-family: 'Tajawal', sans-serif;
}
[lang="en"] body, [lang="en"] { font-family: 'Montserrat', sans-serif; }

/* --- Utilities --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.grad {
  background: linear-gradient(135deg, #E8C07A 0%, #C9A055 40%, #2D5CAE 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
a { text-decoration: none; color: inherit; }

/* --- Buttons --- */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #0A0F1E; font-weight: 700; padding: 12px 28px; border-radius: 50px;
  border: none; cursor: pointer; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201,160,85,0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(201,160,85,0.5); }
.btn-gold.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-gold.btn-full { width: 100%; justify-content: center; font-size: 1rem; padding: 15px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white); font-weight: 600; padding: 12px 28px;
  border-radius: 50px; border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer; font-size: 0.95rem; transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline.btn-lg { padding: 15px 36px; font-size: 1.05rem; }

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(45,92,174,0.12), rgba(201,160,85,0.08));
  color: var(--gold); border: 1px solid rgba(45,92,174,0.3); border-radius: 50px;
  padding: 6px 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 18px; letter-spacing: 0.03em;
}
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.3; }
.section-sub { color: var(--grey-lt); font-size: 0.95rem; max-width: 560px; margin: 14px auto 0; }

/* --- Generic Cards Grid --- */
.cards-grid { display: grid; gap: 24px; }
.cards-grid.four { grid-template-columns: repeat(4, 1fr); }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); border-color: var(--gold); }
.card-icon {
  width: 52px; height: 52px; background: rgba(201,160,85,0.12); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--gold);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--grey-lt); font-size: 0.92rem; line-height: 1.65; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0;
  background: rgba(8,12,24,0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,160,85,0.1); transition: padding 0.3s;
}
.navbar.scrolled { padding: 12px 0; }
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo img { height: 62px; width: auto; display: block; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  background: var(--card); border: 1px solid var(--border); color: var(--gold); font-weight: 700;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 0.9rem;
  transition: background 0.2s; display: flex; align-items: center; justify-content: center;
}
.lang-toggle:hover { background: rgba(201,160,85,0.15); }
.lang-en { display: none; } .lang-ar { display: block; }
[lang="en"] .lang-en { display: block; } [lang="en"] .lang-ar { display: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes badgeDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(201,160,85,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(201,160,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,160,85,0); }
}
.anim-fade-up { opacity: 0; animation: fadeInUp 0.75s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-d1 { animation-delay: 0.12s; } .anim-d2 { animation-delay: 0.26s; }
.anim-d3 { animation-delay: 0.42s; } .anim-d4 { animation-delay: 0.58s; }

/* ===== HERO (video-centered) ===== */
.hero {
  position: relative; overflow: hidden; background: var(--bg);
  padding: 150px 0 90px;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; }
.hero-glow-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(201,160,85,0.11), transparent 70%); top: -200px; right: -150px; }
.hero-glow-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(45,92,174,0.14) 0%, rgba(45,92,174,0.05) 50%, transparent 70%); bottom: -100px; left: -150px; }

.hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(201,160,85,0.08);
  border: 1px solid var(--border); color: var(--gold-lt); border-radius: 50px;
  padding: 8px 20px 8px 14px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: badgeDot 2s ease-in-out infinite; flex-shrink: 0; }

.hero-title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 900; line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero-sub { font-size: clamp(0.95rem, 1.8vw, 1.15rem); color: var(--grey-lt); max-width: 620px; margin: 0 auto 36px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 56px; }
.btn-pulse { animation: pulse-ring 2.4s ease-out infinite; }

/* Video frame — browser-chrome mockup */
.video-frame {
  width: 100%; max-width: 880px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: #0A0E1A;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,160,85,0.08);
}
.video-frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0A0E1A; border-bottom: 1px solid rgba(255,255,255,0.06); }
.bar-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-r { background: #FF5F57; } .dot-y { background: #FEBC2E; } .dot-g { background: #28C840; }
.bar-url { font-size: 0.72rem; color: var(--grey); margin-inline-start: 8px; font-family: 'Montserrat', monospace; letter-spacing: 0.02em; }
.video-frame video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; object-fit: cover; }
.video-caption { margin-top: 16px; font-size: 0.85rem; color: var(--grey); }

/* ===== MARQUEE ===== */
.marquee-section { padding: 18px 0; background: #0A1628; border-top: 1px solid rgba(201,160,85,0.15); border-bottom: 1px solid rgba(201,160,85,0.15); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 28s linear infinite; }
[dir="ltr"] .marquee-track { animation-direction: reverse; }
@keyframes marqueeScroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.marquee-item { display: flex; align-items: center; gap: 10px; padding: 0 32px; white-space: nowrap; font-size: 0.85rem; font-weight: 600; color: rgba(201,160,85,0.75); letter-spacing: 0.04em; }
.marquee-item i { color: var(--gold); font-size: 0.75rem; }
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0.5; }

/* ===== SECTION BACKGROUNDS ===== */
.about, .roles, .features, .contact { padding: 100px 0; position: relative; isolation: isolate; }
.about, .features { background-color: var(--bg2); background-image: radial-gradient(circle, rgba(201,160,85,0.055) 1px, transparent 1px); background-size: 32px 32px; }
.roles, .workflow { background: var(--bg); }
.workflow { padding: 100px 0; }

.about-lead { max-width: 720px; margin: 0 auto 48px; text-align: center; color: var(--grey-lt); font-size: 1.02rem; line-height: 1.9; }

/* ===== WORKFLOW TIMELINE ===== */
.timeline { position: relative; max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.timeline::before { content: ''; position: absolute; top: 24px; bottom: 24px; right: 19px; width: 2px; background: linear-gradient(to bottom, var(--gold), rgba(201,160,85,0.1)); }
[dir="ltr"] .timeline::before { right: auto; left: 19px; }
.timeline-item { display: flex; gap: 28px; align-items: flex-start; padding: 0 0 48px 0; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-node {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #0A0F1E; font-size: 1rem; font-weight: 900; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1; box-shadow: 0 0 0 4px rgba(201,160,85,0.15), 0 0 20px rgba(201,160,85,0.2);
}
.timeline-body { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; flex: 1; transition: border-color 0.25s; }
.timeline-body:hover { border-color: var(--gold); }
.timeline-icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 12px; }
.timeline-body h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.timeline-body p { color: var(--grey-lt); font-size: 0.9rem; line-height: 1.7; }

/* ===== CONTACT ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-text .section-tag { margin-bottom: 16px; }
.contact-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.3; margin-bottom: 18px; }
.contact-text p { color: var(--grey-lt); font-size: 0.95rem; margin-bottom: 32px; }
.contact-icons { display: flex; flex-direction: column; gap: 14px; }
.contact-icon-link { display: flex; align-items: center; gap: 14px; color: var(--grey-lt); font-size: 0.9rem; transition: color 0.2s; }
.contact-icon-link:hover { color: var(--gold); }
.contact-icon-link i { width: 40px; height: 40px; background: rgba(201,160,85,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gold); flex-shrink: 0; }

.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--grey-lt); }
.form-group input {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  padding: 13px 16px; color: var(--white); font-size: 0.95rem; font-family: inherit; outline: none;
  transition: border-color 0.2s; width: 100%;
}
.form-group input:focus { border-color: var(--gold); }
.form-group input::placeholder { color: var(--grey); }
.form-group input.error { border-color: #EF4444; }
.form-note { font-size: 0.8rem; color: var(--grey); text-align: center; }
.form-success {
  display: flex; align-items: center; gap: 10px; justify-content: center; color: #4ADE80; font-size: 0.9rem;
  background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.2); border-radius: 10px; padding: 14px;
}
.form-success i { font-size: 1.2rem; }
.form-success[hidden] { display: none; }

.urgency-bar { display: inline-flex; align-items: center; gap: 10px; background: rgba(45,92,174,0.1); border: 1px solid rgba(45,92,174,0.28); border-radius: 50px; padding: 7px 18px; font-size: 0.82rem; font-weight: 600; color: var(--gold-lt); margin-bottom: 20px; }
.urgency-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: badgeDot 1.5s ease-in-out infinite; }

/* ===== FOOTER ===== */
.footer { background: #060A14; padding: 52px 0 0; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brand) 30%, var(--gold) 70%, transparent); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 40px; }
.footer-logo img { height: 120px; width: auto; display: block; margin-bottom: 10px; }
.footer-logo p { color: var(--grey); font-size: 0.88rem; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--grey); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 40px; height: 40px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--grey); transition: all 0.2s; }
.footer-social a:hover { color: var(--gold); border-color: var(--gold); background: rgba(201,160,85,0.08); }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0; text-align: center; }
.footer-copy p { color: var(--grey); font-size: 0.82rem; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; width: 58px; height: 58px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4); z-index: 200; transition: transform 0.2s, box-shadow 0.2s;
}
[dir="rtl"] .wa-float { right: auto; left: 28px; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.55); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.delay-1 { transition-delay: 0.1s; } .reveal.delay-2 { transition-delay: 0.22s; }
.reveal.delay-3 { transition-delay: 0.34s; } .reveal.delay-4 { transition-delay: 0.46s; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== BACKGROUND GLOW ORBS ===== */
.about .container, .workflow .container, .roles .container, .features .container, .contact .container { position: relative; z-index: 2; }
.about::before { content: ''; position: absolute; pointer-events: none; z-index: 0; width: 600px; height: 500px; border-radius: 50%; top: -80px; right: -120px; background: radial-gradient(ellipse, rgba(201,160,85,0.09) 0%, transparent 65%); filter: blur(40px); }
.roles::before { content: ''; position: absolute; pointer-events: none; z-index: 0; width: 700px; height: 600px; border-radius: 50%; top: -50px; left: -200px; background: radial-gradient(ellipse, rgba(45,92,174,0.07) 0%, transparent 60%); filter: blur(60px); }
.features::before { content: ''; position: absolute; pointer-events: none; z-index: 0; width: 600px; height: 500px; border-radius: 50%; bottom: -80px; right: -100px; background: radial-gradient(ellipse, rgba(201,160,85,0.07) 0%, transparent 60%); filter: blur(40px); }
.contact::before { content: ''; position: absolute; pointer-events: none; z-index: 0; width: 500px; height: 600px; border-radius: 50%; top: 80px; right: -80px; background: radial-gradient(ellipse, rgba(201,160,85,0.09) 0%, transparent 65%); filter: blur(60px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cards-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cards-grid.three { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { right: 19px; }
  [dir="ltr"] .timeline::before { left: 19px; right: auto; }
  .about, .roles, .features, .workflow, .contact { padding: 80px 0; }
  .hero { padding: 130px 0 70px; }
}
@media (max-width: 640px) {
  .cards-grid.four, .cards-grid.three { grid-template-columns: 1fr; }
  .nav-inner .btn-gold { display: none; }
  .contact-form { padding: 24px 18px; }
  .footer-inner { flex-direction: column; }
  .about, .roles, .features, .workflow, .contact { padding: 64px 0; }
  .timeline-item { gap: 16px; }
  .timeline-body { padding: 18px 20px; }
  .hero-ctas { justify-content: center; }
  .section-header { margin-bottom: 36px; }
  .video-frame-bar .bar-url { display: none; }
}
