:root {
  --bg: #060a14;
  --bg2: #0b1020;
  --card: rgba(9, 14, 28, 0.72);
  --line: rgba(255,255,255,0.09);
  --text: #eef4ff;
  --muted: #a0acc5;
  --accent: #d4af37;
  --accent2: #f5d97b;
  --gold-soft: rgba(212,175,55,.15);
  --shadow: 0 24px 60px rgba(0,0,0,0.34);
  --font: "Cairo", "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(circle at top right, rgba(212,175,55,.16), transparent 26%),
    radial-gradient(circle at left center, rgba(34,211,238,.10), transparent 25%),
    linear-gradient(180deg, var(--bg2), #02050b 82%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection {
  background: rgba(212,175,55,.35);
  color: #fff;
}

.bg-grid, .noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 100%);
  opacity: .35;
}
.noise {
  opacity: .04;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.5) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,.5) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,.5) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,.5) 25%, transparent 25%);
  background-position: 8px 0, 8px 0, 0 0, 0 0;
  background-size: 16px 16px;
  mix-blend-mode: soft-light;
}

.bg-orb {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: .35;
  pointer-events: none;
}
.orb-1 { top: -140px; right: -120px; background: radial-gradient(circle, rgba(212,175,55,.65), transparent 68%); }
.orb-2 { bottom: -180px; left: -120px; background: radial-gradient(circle, rgba(34,211,238,.35), transparent 68%); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 3vw, 32px);
  backdrop-filter: blur(18px);
  background: rgba(3,7,18,.62);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(212,175,55,.26), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; letter-spacing: .02em; }
.brand-text small { color: var(--muted); }

.nav { display: flex; gap: 10px; align-items: center; }
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: .2s ease;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.08); color: var(--text); }
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  width: 46px; height: 46px;
  border-radius: 16px;
  font-size: 1.2rem;
}

main { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 26px;
  padding: 48px 0 28px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 26% 36% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.16), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}
.hero-copy, .hero-panel, .section, .footer, .reveal {
  position: relative;
}
.hero-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.2rem, 6vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}
.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag, .section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: #dbeafe;
  font-size: .92rem;
}
.tag-gold {
  background: var(--gold-soft);
  border-color: rgba(212,175,55,.22);
  color: #ffe8a3;
}
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
  max-width: 640px;
}
.typing-wrap {
  margin: 22px 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.typing-prefix { color: var(--muted); }
.typing-text {
  font-weight: 700;
  color: #fff;
  position: relative;
  min-height: 1.4em;
}
.typing-text::after {
  content: '|';
  margin-right: 4px;
  color: var(--accent2);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .15s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #111;
  box-shadow: 0 18px 36px rgba(212,175,55,.20);
}
.btn-ghost {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: var(--text);
}
.btn-soft {
  background: rgba(212,175,55,.10);
  border-color: rgba(212,175,55,.18);
  color: #ffe8a3;
}

.quote-card {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #e8eefb;
  max-width: 650px;
}
.quote-card p { margin: 0; line-height: 1.8; color: #dde6f7; }

.visitor-counter {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(255,255,255,.05));
  border: 1px solid rgba(212,175,55,.16);
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  width: fit-content;
}
.visitor-number {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 900;
  letter-spacing: .02em;
  color: #ffe8a3;
  line-height: 1;
}
.visitor-counter p {
  margin: 0;
  color: #dbeafe;
  font-size: .98rem;
}

.mini-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.stat-card, .card, .profile-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.stat-card {
  border-radius: 18px;
  padding: 16px;
}
.stat-card strong, .service-card h3, .highlight-card h3, .statement-card strong { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.stat-card span, .service-card p, .highlight-card p, .contact-text, .footer p, .statement-card p { color: var(--muted); line-height: 1.8; }

.hero-panel { display: flex; justify-content: center; }
.profile-card {
  width: min(100%, 480px);
  border-radius: 32px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10,15,29,.9), rgba(10,15,29,.7));
}
.profile-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(34,211,238,.10), transparent 60%);
  pointer-events: none;
}
.hero-watermark {
  position: absolute;
  inset: 42px 18px auto auto;
  width: 260px;
  height: 260px;
  opacity: .1;
  background: url('./logo.png') center/contain no-repeat;
  transform: rotate(-6deg);
  pointer-events: none;
}
.profile-top, .contact-strip, .showcase-box { position: relative; z-index: 1; }
.profile-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.avatar {
  width: 82px; height: 82px;
  display: grid; place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(255,255,255,.04));
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-top h2 { margin: 0 0 6px; font-size: 1.5rem; }
.profile-top p { margin: 0; color: var(--muted); }
.showcase-box {
  border-radius: 24px;
  padding: 18px;
  background: rgba(2,6,23,.45);
  border: 1px solid rgba(255,255,255,.08);
}
.showcase-line {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #dbeafe;
}
.showcase-line:last-child { border-bottom: none; }
.showcase-line span { color: #ffe8a3; margin-left: 8px; }
.contact-strip {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.contact-strip a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #f8fafc;
}
.contact-strip a:hover { background: rgba(255,255,255,.1); }

.section { padding: 28px 0 8px; }
.section.alt { padding-top: 44px; }
.section-head {
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
}
.grid {
  display: grid;
  gap: 16px;
}
.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border-radius: 24px;
  padding: 22px;
}
.service-card .icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  margin-bottom: 14px;
  font-size: 1.4rem;
}
.highlight-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.statement-card {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(212,175,55,.11), rgba(255,255,255,.04));
}
.statement-card p { margin: 0; max-width: 680px; }

.contact-card {
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10,15,29,.94), rgba(10,15,29,.72));
}
.contact-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  color: #dbeafe;
  border: 1px solid rgba(255,255,255,.08);
}
.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 24px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer p { margin: 8px 0; }
.footer a { color: #ffe8a3; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero, .services-grid, .work-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .statement-card { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 30px; }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border-radius: 22px;
    background: rgba(3,7,18,.94);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav-link { width: 100%; padding: 14px 16px; }
  main { width: min(100% - 20px, 1160px); }
  .profile-card, .contact-card { padding: 20px; }
  .topbar { padding-left: 10px; padding-right: 10px; }
  .brand-text small { font-size: .8rem; }
  .hero-watermark { inset: 54px 6px auto auto; width: 210px; height: 210px; }
}
