/* ============================================================
   Hamza Zohaib — VFX Artist & Video Creator
   ============================================================ */

:root {
  --bg: #05060c;
  --bg-soft: #0b0d18;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-brd: rgba(255, 255, 255, 0.09);
  --text: #eef0f7;
  --muted: #9aa0b5;
  --brand-1: #7c5cff; /* violet */
  --brand-2: #22d3ee; /* cyan  */
  --brand-3: #ff5cf0; /* magenta */
  --grad: linear-gradient(120deg, var(--brand-3), var(--brand-1) 45%, var(--brand-2));
  --radius: 18px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name { font-family: "Sora", "Inter", sans-serif; }

a { color: inherit; text-decoration: none; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Animated background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 22s var(--ease) infinite alternate;
}
.orb-1 { width: 46vw; height: 46vw; background: var(--brand-1); top: -12%; left: -8%; }
.orb-2 { width: 40vw; height: 40vw; background: var(--brand-2); bottom: -14%; right: -10%; animation-delay: -6s; }
.orb-3 { width: 34vw; height: 34vw; background: var(--brand-3); top: 34%; left: 42%; opacity: 0.32; animation-delay: -12s; }
@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4%, 6%) scale(1.14); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 78%);
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
  font-weight: 600;
}
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12; font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-family: "Sora", sans-serif;
  background: var(--grad);
  color: #080a14;
  border: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124, 92, 255, 0.5); filter: brightness(1.05); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--panel-brd);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--panel); box-shadow: none; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 24px;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 12, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--panel-brd);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #080a14;
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.4);
}
.brand-name { font-size: 1.02rem; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; color: var(--muted);
  border: 1px solid var(--panel-brd);
  padding: 7px 15px; border-radius: 999px;
  background: var(--panel);
  margin-bottom: 24px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 12px var(--brand-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-title { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.hero-title .grad { display: block; }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin: 22px 0 30px; }
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.stats { list-style: none; display: flex; gap: 34px; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stat-num { font-family: "Sora", sans-serif; font-size: 2.1rem; font-weight: 800; line-height: 1; }
.stat-unit { font-family: "Sora", sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--brand-2); margin-left: 2px; }
.stats li { position: relative; }
.stat-num, .stat-unit { display: inline; }
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }

/* Hero visual */
.hero-visual { display: grid; place-items: center; }
.portrait {
  position: relative;
  width: min(340px, 78vw); aspect-ratio: 4/5;
  border-radius: 26px;
  background:
    radial-gradient(120% 80% at 30% 10%, rgba(124,92,255,0.35), transparent 60%),
    radial-gradient(120% 80% at 80% 90%, rgba(34,211,238,0.30), transparent 60%),
    var(--bg-soft);
  border: 1px solid var(--panel-brd);
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.portrait-glow {
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, var(--brand-1), var(--brand-2), var(--brand-3), var(--brand-1));
  filter: blur(60px); opacity: 0.35;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-mono {
  position: relative;
  font-family: "Sora", sans-serif; font-weight: 800;
  font-size: 6rem; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chip {
  position: absolute;
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  background: rgba(8,10,20,0.72); backdrop-filter: blur(8px);
  border: 1px solid var(--panel-brd);
  animation: bob 5s var(--ease) infinite alternate;
}
.chip-1 { top: 16px; left: 14px; color: var(--brand-3); }
.chip-2 { bottom: 20px; left: 22px; color: var(--brand-2); animation-delay: -1.5s; }
.chip-3 { top: 40%; right: -8px; color: var(--brand-1); animation-delay: -3s; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--panel-brd); border-bottom: 1px solid var(--panel-brd);
  padding: 18px 0; background: rgba(255,255,255,0.015);
}
.marquee-track {
  display: flex; gap: 26px; white-space: nowrap;
  width: max-content;
  animation: scroll 26s linear infinite;
  font-family: "Sora", sans-serif; font-weight: 700;
  font-size: 1.15rem; color: var(--muted);
}
.marquee-track span:nth-child(odd) { color: var(--text); }
.marquee-track span:nth-child(even) { color: var(--brand-2); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 44px; align-items: start; }
.about-copy p { color: var(--muted); margin-bottom: 18px; font-size: 1.04rem; }
.about-copy strong { color: var(--text); }
.about-facts { list-style: none; display: grid; gap: 12px; }
.about-facts li {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--panel-brd);
  font-weight: 500;
}
.about-facts span { font-size: 1.2rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-brd);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(124,92,255,0.5); background: rgba(124,92,255,0.06); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.service {
  position: relative;
  padding: 30px 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--panel-brd);
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service-no { font-family: "Sora", sans-serif; font-weight: 800; color: var(--brand-1); font-size: 0.9rem; opacity: 0.8; }
.service h3 { font-size: 1.22rem; margin: 10px 0 8px; }
.service p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Socials ---------- */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.social {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-brd);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.social:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.5); background: rgba(34,211,238,0.05); }
.social-ico { font-size: 1.6rem; }
.social-body { display: flex; flex-direction: column; margin-right: auto; }
.social-body strong { font-family: "Sora", sans-serif; font-size: 1.02rem; }
.social-body span { color: var(--muted); font-size: 0.86rem; }
.social-arrow { color: var(--muted); transition: transform 0.25s, color 0.25s; }
.social:hover .social-arrow { transform: translate(3px, -3px); color: var(--brand-2); }

/* ---------- CTA ---------- */
.cta { max-width: var(--maxw); margin: 40px auto 0; padding: 0 24px; }
.cta-inner {
  text-align: center;
  padding: 72px 32px; border-radius: 32px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(124,92,255,0.25), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--panel-brd);
}
.cta-inner h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--panel-brd); margin-top: 80px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 30px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.footer-inner p { color: var(--muted); font-size: 0.9rem; margin-right: auto; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-visual { order: -1; }
  .portrait { width: min(280px, 70vw); }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 62px 12px auto 12px;
    flex-direction: column; gap: 6px;
    background: rgba(8,10,20,0.96); backdrop-filter: blur(14px);
    border: 1px solid var(--panel-brd); border-radius: 16px;
    padding: 14px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 8px; }
  .nav-toggle { display: flex; }
  .nav > .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
