@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --bg: #0f1216;
  --surface: #151a21;
  --text: #eaeef4;
  --muted: #ffffff;
  --accent: #ffc107; /* amber */
  --accent-2: #00b894; /* teal */
  --border: #222831;
  --radius: 14px;
  --shadow: 0 14px 34px rgba(0,0,0,.28);
}

:root.light {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 14px 34px rgba(17,24,39,.12);
}

html { font-size: 16px; }
html, body { height: 100%; }
body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: 'Tajawal', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container { width: min(1100px, 92%); margin-inline: auto; }
.section { padding: 60px 0; }
.section-alt { padding: 60px 0; background: linear-gradient(180deg, rgba(255,193,7,.07), rgba(0,0,0,0)); }
.section-title { font-size: clamp(22px, 3.2vw, 30px); margin: 0 0 24px; font-weight: 800; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(120%) blur(8px); background: color-mix(in oklab, var(--bg) 88%, transparent); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .2px; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; opacity: .84; border-bottom: 2px solid transparent; padding-bottom: 6px; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { border-color: var(--accent); opacity: 1; }
.theme-toggle { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.theme-toggle:hover { background: color-mix(in oklab, var(--surface) 86%, var(--bg)); }

/* Hero */
.hero { padding: 80px 0; position: relative; }
.hero-dark { background: var(--surface); }
.hero.bg-image { background-size: cover; background-position: center; }
.hero .overlay { position: absolute; inset: 0; background: radial-gradient(1200px circle at 80% -10%, rgba(255,193,7,.22), transparent 40%), linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35)); }
.hero-content { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 38px; align-items: center; }
.hero-text h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; margin: 0 0 10px; }
.hero-text p { font-size: clamp(16px, 2.6vw, 20px); color: var(--muted); margin: 0 0 16px; }
.hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }

.btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 10px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; border: 1px solid var(--border); }
.btn-primary { background: var(--accent); color: #0b0f14; border-color: color-mix(in oklab, var(--accent) 60%, #000); font-weight: 700; }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(255,193,7,.35); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); }
.btn-secondary:hover { background: color-mix(in oklab, var(--surface) 86%, var(--bg)); }

/* Badges & Metrics */
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.badge { background: color-mix(in oklab, var(--accent) 16%, var(--surface)); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-weight: 600; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.metric .value { font-size: clamp(20px, 3.8vw, 28px); font-weight: 800; color: var(--accent); }
.metric .label { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* CTA */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.cta-box { background: color-mix(in oklab, var(--accent) 14%, var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.cta-title { font-weight: 800; margin: 0 0 6px; }
.cta-desc { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 30px; padding: 24px 0; border-top: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 94%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.footer-title { margin: 0 0 6px; font-weight: 800; }
.footer-links { display: flex; gap: 10px; flex-direction: column; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-credit { color: var(--muted); }

/* Reveal animation */
.reveal { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.js-ready .reveal { opacity: 0; transform: translateY(12px); }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .nav { padding: 10px 0; }
  .section, .section-alt, .hero { padding: 40px 0; }
}

/* Creative text gradient */
.text-gradient { background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 30%, var(--accent-2))); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav underline accent */
.nav-links a { background-image: linear-gradient(90deg, var(--accent), transparent); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
.nav-links a:hover { background-size: 100% 2px; }

/* Animated overlay & blobs */
.overlay.animated { opacity: .92; animation: overlayPulse 12s ease-in-out infinite; }
@keyframes overlayPulse { 0% { opacity: .88 } 50% { opacity: .96 } 100% { opacity: .88 } }
.hero .decor.blobs { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero .decor.blobs::before,
.hero .decor.blobs::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(48px); opacity: .28; }
.hero .decor.blobs::before { background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%); top: 10%; right: 8%; animation: floatBlob 18s ease-in-out infinite; }
.hero .decor.blobs::after { background: radial-gradient(circle at 70% 70%, var(--accent-2), transparent 60%); bottom: 10%; left: 8%; animation: floatBlob 22s ease-in-out infinite reverse; }
@keyframes floatBlob { 0% { transform: translateY(0) translateX(0) } 50% { transform: translateY(-18px) translateX(12px) } 100% { transform: translateY(0) translateX(0) } }

/* Parallax hint */
.hero.bg-image { background-position: center center; }

/* Button shimmer */
.btn.btn-shimmer { position: relative; overflow: hidden; }
.btn.btn-shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); transform: translateX(-100%); }
.btn.btn-shimmer:hover::after { transform: translateX(100%); transition: transform .8s ease; }

/* Card micro-interactions */
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(0,0,0,.32); border-color: color-mix(in oklab, var(--accent) 40%, var(--border)); }

/* Metric emphasis */
.metric .value { letter-spacing: .5px; }

/* Metrics blobs */
.metrics { position: relative; z-index: 2; }
.metrics .decor.blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.metrics .decor.blobs::before,
.metrics .decor.blobs::after { content: ""; position: absolute; border-radius: 50%; filter: blur(32px); opacity: .20; }
.metrics .decor.blobs::before { width: 180px; height: 180px; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%); top: -10px; right: 6%; animation: floatBlob 14s ease-in-out infinite; }
.metrics .decor.blobs::after { width: 140px; height: 140px; background: radial-gradient(circle at 70% 70%, var(--accent-2), transparent 60%); bottom: -10px; left: 8%; animation: floatBlob 18s ease-in-out infinite reverse; }
.metrics .metric { position: relative; z-index: 1; }

@media (max-width: 960px) {
  .metrics .decor.blobs::before, .metrics .decor.blobs::after { width: 120px; height: 120px; filter: blur(24px); }
}

/* Responsive adjustments for blobs */
@media (max-width: 960px) {
  .hero .decor.blobs::before, .hero .decor.blobs::after { width: 240px; height: 240px; filter: blur(36px); }
}

/* SEO content */
.seo-content p { color: var(--muted); }
.seo-content .seo-points { margin: 12px 0 18px; padding-inline-start: 18px; }
.seo-content .seo-points li { margin: 6px 0; }
.seo-content .internal-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.seo-content h3 { margin: 14px 0 8px; font-weight: 700; }