/* ============================================================
   Tariq Bakkali — UGC Creator Portfolio
   ============================================================ */

:root {
  --bg:        #0a0a0c;
  --bg-soft:   #111116;
  --surface:   #16161d;
  --surface-2: #1d1d26;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);
  --text:      #f5f5f7;
  --muted:     #a0a0ab;
  --muted-2:   #6f6f7a;
  --accent:    #ff6a3d;
  --accent-2:  #ff9a3d;
  --accent-soft: rgba(255,106,61,0.14);
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1140px;
  --shadow:    0 24px 60px -20px rgba(0,0,0,0.6);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display:   'Space Grotesk', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
section { padding: 110px 0; position: relative; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 5vw, 46px); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #190b04; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(255,106,61,0.6); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }

/* ---------- nav ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(10,10,12,0.72);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { padding: 11px 22px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: 168px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.6vw, 74px); margin: 22px 0 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat strong { font-family: var(--display); font-size: 30px; display: block; line-height: 1; }
.hero-stats .stat span { font-size: 13.5px; color: var(--muted); }

.hero-media { position: relative; }
.hero-photo {
  border-radius: 26px; overflow: hidden; aspect-ratio: 4/5;
  background: var(--surface); box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 13px;
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 4px rgba(46,204,113,0.18); }
.hero-badge b { font-size: 14px; } .hero-badge small { display: block; color: var(--muted); font-size: 12.5px; }

.marquee { margin-top: 30px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; }
.marquee-track { display: flex; gap: 56px; color: var(--muted-2); font-family: var(--display); font-weight: 600; font-size: 17px; flex-wrap: wrap; justify-content: center; }
.marquee-track span { white-space: nowrap; }

/* ---------- work / video grid ---------- */
.work-cat { margin-bottom: 52px; }
.work-cat:last-child { margin-bottom: 0; }
.work-cat-title {
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px;
}
.work-cat-title span {
  font-family: var(--font); font-size: 12px; letter-spacing: 0; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; line-height: 1.4;
}
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vcard {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 9/16; background: var(--surface); cursor: pointer;
  border: 1px solid var(--border); transition: transform 0.25s, border-color 0.25s;
}
.vcard:hover { transform: translateY(-4px); border-color: var(--border-2); }
.vcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.vcard:hover img { transform: scale(1.04); }
.vcard .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.05) 55%);
}
.vcard .play svg { width: 56px; height: 56px; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5)); transition: transform 0.2s; }
.vcard:hover .play svg { transform: scale(1.1); }
.vcard .meta { position: absolute; left: 16px; right: 16px; bottom: 15px; }
.vcard .meta .tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.vcard .meta h3 { font-size: 17px; margin-top: 3px; }

/* aspect override for landscape demos */
.vcard.landscape { aspect-ratio: 4/5; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox video { max-height: 88vh; max-width: 100%; border-radius: 14px; box-shadow: var(--shadow); background: #000; }
.lightbox .close { position: absolute; top: 22px; right: 26px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-photos { position: relative; }
.about-photos img { border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; width: 100%; }
.about-photos .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-photos .stack img:first-child { aspect-ratio: 3/4; grid-row: span 2; }
.about-photos .stack img { aspect-ratio: 4/3; height: 100%; }
.about-body h2 { font-size: clamp(30px, 5vw, 44px); margin: 14px 0 20px; }
.about-body p { color: var(--muted); font-size: 17.5px; margin-bottom: 18px; }
.about-body p strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--muted); }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: border-color 0.25s, transform 0.25s; }
.scard:hover { border-color: var(--border-2); transform: translateY(-3px); }
.scard .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.scard .ico svg { width: 23px; height: 23px; stroke: var(--accent); }
.scard h3 { font-size: 19px; margin-bottom: 9px; }
.scard p { color: var(--muted); font-size: 15px; }

/* ---------- contact ---------- */
.contact { background: var(--bg-soft); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.contact-grid h2 { font-size: clamp(30px, 5vw, 46px); margin: 16px 0 16px; }
.contact-grid .lead { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.contact-points { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-points li { display: flex; gap: 13px; align-items: flex-start; color: var(--muted); font-size: 15.5px; }
.contact-points svg { width: 21px; height: 21px; stroke: var(--accent); flex-shrink: 0; margin-top: 2px; }

form.req { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 18px; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
input, select, textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border-2); color: var(--text);
  font-family: var(--font); font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0ab' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
form.req .btn-primary { width: 100%; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 14px; text-align: center; }
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14.5px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.35); color: #6ee7a8; }
.form-status.err { background: rgba(255,90,90,0.1); border: 1px solid rgba(255,90,90,0.32); color: #ff9c9c; }

/* ---------- footer ---------- */
footer.foot { padding: 44px 0; border-top: 1px solid var(--border); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.foot-inner .muted { color: var(--muted-2); font-size: 14px; }
.foot-social { display: flex; gap: 18px; }
.foot-social a { color: var(--muted); font-size: 14.5px; transition: color 0.2s; }
.foot-social a:hover { color: var(--accent); }

/* ---------- reveal anim ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- glow bg ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; pointer-events: none; z-index: 0; }
.glow.a { width: 480px; height: 480px; background: rgba(255,106,61,0.25); top: -120px; right: -80px; }
.glow.b { width: 420px; height: 420px; background: rgba(99,102,241,0.18); bottom: 0; left: -140px; }
.hero, section { z-index: 1; }
.wrap { position: relative; z-index: 2; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .hero { padding: 130px 0 70px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 420px; margin: 0 auto; }
  .work-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 22px 24px; gap: 18px;
  }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .work-grid, .services-grid { grid-template-columns: 1fr; }
  .field.row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
