/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Tajawal', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  color: #0f172a; /* slate-900 */
  background: linear-gradient(180deg, #ea1470 0%, #ffffff 20%);
  overflow-x: hidden;
}

:root {
  --accent: #f22d89; /* emerald */
  --accent-2: #f22d89; /* blue */
  --logo-size: clamp(48px, 6vw, 64px);
  --bg-card: rgba(255, 255, 255, 0.08);
  --text: #e5e7eb; /* slate-200 */
  --muted: #94a3b8; /* slate-400 */
  --glass-border: rgba(255, 255, 255, 0.25);
}

/* Animated background */
.animated-bg { position: fixed; inset: 0; z-index: -1; display: none; }
.blob {
  position: absolute; filter: blur(50px); opacity: 0.35; mix-blend-mode: screen;
  animation: float 18s ease-in-out infinite;
}
.blob.b1 { background: #f22d89; width: 500px; height: 500px; left: -120px; top: -80px; }
.blob.b2 { background: #f22d89; width: 420px; height: 420px; right: -140px; top: 60px; animation: float 18s ease-in-out infinite, blobPulse 6s ease-in-out infinite; animation-delay: 6s, 0s; }
.blob.b3 { background: #ebebec; width: 380px; height: 380px; left: 20%; bottom: -120px; animation-delay: 10s; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(246, 241, 241, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 32px 32px; }

@keyframes float { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-20px,0) scale(1.03); } }

@keyframes blobPulse {
  0%, 100% { opacity: 0.30; transform: scale(1); }
  50% { opacity: 0.50; transform: scale(1.06); }
}

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; padding: clamp(12px, 2.2vw, 18px) 24px; position: relative; top: 0; backdrop-filter: saturate(120%) blur(8px); background: rgba(255, 255, 255, 0.7); border-bottom: 1px solid rgba(0,0,0,0.06); z-index: 10; }
.logo { display: flex; align-items: center; }
.logo img { height: var(--logo-size); width: 200px;height: 200px;; display: block; }
.nav a { color: var(--muted); text-decoration: none; margin-inline-start: 18px; transition: color .2s ease; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { min-height: 86vh; display: grid; place-items: center; padding: 48px 24px; position: relative; }
.hero-card { max-width: 880px; width: 100%; padding: 40px 32px; border-radius: 20px; border: 1px solid var(--glass-border); background: var(--bg-card); backdrop-filter: blur(20px) saturate(130%); text-align: center; color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,0.25); animation: cardIn .9s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.98); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
.brand { font-size: clamp(42px, 7vw, 86px); margin: 0; line-height: 1.1; background: linear-gradient(90deg, #e2e8f0 0%, #60a5fa 50%, #10b981 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.lead { margin: 12px 0 0; font-size: clamp(16px, 2.5vw, 24px); color: var(--text); opacity: .92; }
.typed { margin: 14px 0 26px; min-height: 28px; color: var(--accent); font-weight: 500; }

/* Accent text utility */
.accent-text { color: var(--accent); }
.brand.accent-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); }

.text-green { color: #10b981; }

.cta { display: inline-flex; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: transform .15s ease, box-shadow .2s ease; }
.btn-primary { background: linear-gradient(135deg, #ff72ab, #f22d89); color: #0b1220; box-shadow: 0 10px 20px rgba(242,45,137,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 28px rgba(242,45,137,.35); animation: pulseAccent 1.8s ease-out; }

@keyframes pulseAccent {
  0% { box-shadow: 0 0 0 0 rgba(242,45,137,.45); }
  70% { box-shadow: 0 0 0 12px rgba(242,45,137,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,45,137,0); }
}
.btn-ghost { color: var(--text); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
.btn-ghost:hover { transform: translateY(-1px); }

.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); opacity: .2; animation: orbit 16s linear infinite; }
.shape.s1 { width: 160px; height: 160px; right: 12%; top: 10%; }
.shape.s2 { width: 120px; height: 120px; left: 8%; bottom: 14%; animation-duration: 20s; }
.shape.s3 { width: 220px; height: 220px; left: 45%; top: 8%; animation-duration: 24s; }
@keyframes orbit { from { transform: rotate(0deg) translateX(12px) rotate(0deg); } to { transform: rotate(360deg) translateX(12px) rotate(-360deg); } }

/* Sections */
.section-title { text-align: center; color: #0b1220; font-size: clamp(22px, 3vw, 32px); margin: 16px auto 24px; }
.features { padding: 24px; max-width: 1200px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; }
.card { padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07); color: var(--text); backdrop-filter: blur(16px); transform: translate3d(0, 12px, 0); opacity: 0; }
.card .icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent); margin-inline-start: auto; margin-inline-end: 0; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.about, .contact { padding: 32px 24px; max-width: 1000px; margin: 0 auto; color: var(--text); }
.about-inner, .contact-inner { border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.06); backdrop-filter: blur(14px); padding: 24px; transform: translate3d(0, 12px, 0); opacity: 0; }
.about h2, .contact h2 { margin: 0 0 10px; }
.social { display: inline-flex; gap: 12px; margin-top: 8px; }
.social-link { color: var(--text); opacity: .8; border: 1px solid rgba(255,255,255,.15); padding: 8px; border-radius: 12px; background: rgba(255,255,255,.04); transition: opacity .2s ease, transform .15s ease; }
.social-link:hover { opacity: 1; transform: translateY(-1px); }

/* Footer */
.site-footer { text-align: center; color: var(--muted); padding: 26px 18px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translate3d(0, 16px, 0); }
.reveal.revealed, .card.revealed, .about-inner.revealed, .contact-inner.revealed { opacity: 1; transform: translate3d(0, 0, 0); transition: opacity .6s ease, transform .6s ease; }

/* Responsive */
@media (min-width: 680px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-card { padding: 48px 48px; }
}
