/* =========================================================
   Naheema Savad — Portfolio
   Design tokens
   Color:  #0A0A0B (bg), #131315 (surface), #1B1B1E (surface-2),
           #F5F4F2 (text-primary), #9B9BA0 (text-muted),
           #FF4433 (accent - clay red)
   Type:   "Clash Display" (headline, via Google-hosted alt: "Bricolage Grotesque")
           "Inter" (body / UI)
   Layout: left-aligned generous sections, numbered eyebrow only where content
           is genuinely sequential (process steps), plain labels elsewhere.
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --surface: #131315;
  --surface-2: #1b1b1e;
  --surface-3: #202024;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f4f2;
  --text-muted: #9b9ba0;
  --text-dim: #6f6f75;
  --accent: #ff4433;
  --accent-dim: rgba(255, 68, 51, 0.15);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --maxw: 1280px;
}

@font-face {
  font-family: "Bricolage";
  src: local("Bricolage Grotesque");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.container-wide {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: "Bricolage", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.section-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 780px;
}

.section-pad {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-bright { color: var(--text) !important; }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #0a0a0b;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 12px 12px 24px;
  border-radius: 999px;
  border: none;
  transition: transform .25s ease, background .25s ease;
}
.btn-pill:hover { transform: translateY(-2px); color: #0a0a0b; }
.btn-pill .icon-circle {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: border-color .25s ease, background .25s ease;
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-dim); color: var(--text); }

/* ---------- Navbar ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 26px 0;
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(14px);
  padding: 16px 0;
  border-bottom-color: var(--line);
}
.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  transition: color .2s ease;
}
.nav-links a span.idx { font-size: 11px; color: var(--text-dim); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  padding-top: 140px;
  padding-bottom: 70px;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(10,10,11,0.75) 0%, rgba(10,10,11,0.55) 38%, rgba(10,10,11,0.22) 70%, rgba(10,10,11,0.35) 100%),
    linear-gradient(0deg, rgba(10,10,11,0.6) 0%, rgba(10,10,11,0.05) 45%, rgba(10,10,11,0.2) 100%),
    url('../img/heroimage.png');
  background-size: 100% auto, 100% auto, 100% auto;
  background-position: top center, top center, top center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero .row { justify-content: flex-start; }
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  width: 100%;
}
.hero-content .d-flex.flex-wrap { justify-content: flex-start; }
.hero-role {
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: left;
}
.hero-role .spark { color: var(--accent); margin-right: 8px; }
.hero-name {
  font-size: clamp(4.2rem, 13vw, 10.5rem);
  line-height: 0.9;
  margin-bottom: 0;
}
.hero-tagline {
  max-width: 460px;
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 26px;
}

/* ---------- About / intro blocks ---------- */
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px;
  height: 100%;
}
.info-card h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}
.info-card p { color: var(--text-muted); margin: 0; }

/* ---------- What I do rows ---------- */
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 40px;
  margin-bottom: 18px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.service-row:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateX(4px);
}
.service-row .idx {
  color: var(--text-dim);
  font-size: 13px;
  min-width: 34px;
}
.service-row h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  flex: 1;
  margin-left: 18px;
}
.service-row .arrow {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  color: var(--text);
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.service-row .arrow:hover { background: var(--accent); transform: rotate(45deg); border-color: var(--accent); color: #fff; }

/* ---------- Work / Projects ---------- */
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 46px;
  margin-bottom: 26px;
}
.project-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16/10;
}
.project-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-media img { transform: scale(1.03); }
.project-idx { color: var(--text-dim); font-size: 13px; margin-bottom: 6px; }
.project-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.project-meta {
  display: flex; gap: 14px; align-items: center;
  color: var(--text-dim); font-size: 13px; margin-bottom: 16px;
}
.project-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }
.project-desc { color: var(--text-muted); max-width: 620px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-pill {
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Stats / Experience ---------- */
.stat-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  height: 100%;
}
.stat-num {
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--text);
}
.stat-label {
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 600;
}
.across-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
}
.across-box .label {
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.pill-tag {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  margin: 0 10px 10px 0;
  font-size: 14.5px;
  color: var(--text);
}
.pill-tag.more { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ---------- Process (genuinely sequential) ---------- */
.process-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  height: 100%;
}
.process-num { font-size: 3.2rem; color: var(--accent); font-family: "Bricolage", sans-serif; font-weight: 700; }
.process-card h3 { font-size: 1.7rem; margin: 18px 0 16px; }
.process-card ul { list-style: none; padding: 0; margin: 0; }
.process-card li {
  color: var(--text-muted);
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.process-card li:first-child { border-top: none; }

/* ---------- Tools / Technology ---------- */
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 15px;
  margin: 0 14px 14px 0;
}
.tool-pill .swatch {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  background: #fff;
  padding: 4px;
}
.tool-pill .swatch svg { width: 100%; height: 100%; display: block; }

/* Looping marquee variant — replaces the static wrapped grid everywhere
   (see the rules below) so the tool list scrolls infinitely instead of
   wrapping across lines. */
.tools-grid { display: none; }
.tools-marquee {
  display: block;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tools-track {
  display: flex;
  width: max-content;
  animation: tools-loop 34s linear infinite;
}
.tools-track-group {
  display: flex;
  flex: none;
}
.tools-track .tool-pill { flex: none; margin: 0 14px 0 0; }
.tools-marquee:hover .tools-track,
.tools-marquee:active .tools-track { animation-play-state: paused; }

/* ---------- Testimonials ---------- */
.testi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  height: 100%;
}
.testi-stars { color: var(--accent); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-quote { color: var(--text); font-size: 15.5px; margin-bottom: 22px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testi-name { font-weight: 600; font-size: 14px; }

/* ---------- FAQ ---------- */
.accordion-item {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
}
.accordion-item:last-child { border-bottom: 1px solid var(--line); }
.accordion-button {
  background: transparent !important;
  color: var(--text) !important;
  font-family: "Bricolage", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 26px 0;
  box-shadow: none !important;
}
.accordion-button::after { filter: invert(1); }
.accordion-body { color: var(--text-muted); padding: 0 0 28px; max-width: 720px; }

/* ---------- Contact / CTA ---------- */
.cta-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 70px;
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
}
.cta-title { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 700px; }
.cta-sub { color: var(--text-muted); max-width: 480px; margin-top: 22px; }

.form-control-dark {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
}
.form-control-dark:focus {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-control-dark::placeholder { color: var(--text-dim); }
label.form-label-dark {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 90px 0 30px;
}
.footer-name { font-size: clamp(2.6rem, 7vw, 5rem); }
.footer-loc { color: var(--text-muted); letter-spacing: 0.1em; font-size: 13px; }
.footer-cols h6 {
  color: var(--text-dim);
  letter-spacing: 0.1em;
  font-size: 12px;
  margin-bottom: 18px;
}
.footer-cols a {
  display: block;
  color: var(--text-muted);
  padding: 7px 0;
  font-size: 14.5px;
  transition: color .2s ease;
}
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 26px;
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Scroll-to-top ---------- */
.scroll-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  z-index: 900;
  border: none;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Floating social buttons ---------- */
.floating-social {
  position: fixed;
  right: 26px;
  bottom: 90px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.floating-social a {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.floating-social a:hover { transform: translateY(-3px) scale(1.05); }
.floating-social a svg { width: 24px; height: 24px; }
.floating-social .fab-whatsapp,
.floating-social .fab-instagram {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 575px) {
  .floating-social { right: 18px; bottom: 84px; gap: 12px; }
  .floating-social a { width: 46px; height: 46px; }
  .floating-social a svg { width: 21px; height: 21px; }
  .scroll-top { right: 18px; bottom: 22px; }
}

/* ---------- Custom cursor: red dot + water-trail glow ----------
   Only enabled on fine-pointer (mouse) devices — see main.js, which
   adds .has-custom-cursor to <html> after confirming support. Touch
   devices keep their native cursor untouched. */
html.has-custom-cursor,
html.has-custom-cursor body,
html.has-custom-cursor a,
html.has-custom-cursor button,
html.has-custom-cursor input,
html.has-custom-cursor textarea {
  cursor: none;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,68,51,0.45) 0%, rgba(255,68,51,0.18) 45%, rgba(255,68,51,0) 72%);
  filter: blur(4px);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity .25s ease, width .3s ease, height .3s ease, margin .3s ease;
  will-change: transform;
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(255,68,51,0.6);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s ease, width .2s ease, height .2s ease, margin .2s ease, background .2s ease;
  will-change: transform;
}
html.has-custom-cursor .cursor-dot,
html.has-custom-cursor .cursor-glow {
  opacity: 1;
}
.cursor-dot.is-hovering {
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  background: #fff;
  box-shadow: 0 0 16px 2px rgba(255,68,51,0.55);
}
.cursor-glow.is-hovering {
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
}
.cursor-dot.is-clicking {
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-glow { display: none !important; }
}

/* ---------- reveal-on-scroll ----------
   Content is visible by default (opacity:1). JS adds ".reveal-armed" the
   moment it confirms IntersectionObserver is available, which is the ONLY
   thing that hides an element pre-animation — so if JS fails to load for
   any reason (blocked script, offline, etc.) every section stays fully
   visible instead of getting stuck invisible. */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.reveal-armed.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-armed { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .tools-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { align-items: center; padding-top: 160px; }
  .section-pad { padding: 80px 0; }
  .cta-box { padding: 40px 26px; }
  .service-row { padding: 22px 24px; }
  .service-row h3 { font-size: 1.5rem; margin-left: 10px; }
}

@keyframes tools-loop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 575px) {
  .container-wide { padding: 0 20px; }
  .hero-name { font-size: 4rem; }
  .project-card { padding: 26px; }
  .across-box, .cta-box { padding: 30px 22px; }
}

/* Hero on mobile: background-size:auto let the photo fall far short of
   the 100vh box, leaving a big block of plain --bg color below it (the
   "spacing" after the CTA buttons). Switching the image layer to `cover`
   zooms/crops it to fill the whole box instead, and a shorter min-height
   keeps the section from running longer than it needs to. */
@media (max-width: 767px) {
  .hero {
    min-height: 88vh;
    align-items: flex-end;
    padding-top: 120px;
    padding-bottom: 40px;
    background-size: 100% auto, 100% auto, cover;
    /* The subject's face sits at roughly 70% across the source photo
       (not dead-center, not at the right edge) — "right" cropped past
       her face into the empty hijab/shoulder area beyond it. Text is
       pinned to the bottom (align-items: flex-end above) so it clears
       her face, which otherwise falls in the vertical middle of the box. */
    background-position: top center, top center, 72% top;
  }
}


/* Section headline — "I turn creative design into..." */
.section-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 780px;
}

/* Section vertical rhythm + top divider */
.section-pad {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

/* Text color utilities */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-bright { color: var(--text) !important; }

/* Background / What That Means Day To Day / Experience cards */
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px;
  height: 100%;
}
.info-card h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}
.info-card p { color: var(--text-muted); margin: 0; }
