/* ============================================
   MUHAMMAD HAROON — PORTFOLIO
   Shared stylesheet
   ============================================ */

:root{
  --bg: #ffffff;
  --bg-dark: #0d0d0d;
  --bg-soft: #f5f5f2;
  --ink: #0d0d0d;
  --ink-soft: #434343;
  --ink-muted: #8a8a8a;
  --line: #e5e5e2;
  --accent: #c3f67f;       /* lime green */
  --accent-deep: #9ed446;
  --accent-ink: #0d0d0d;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1400px;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-weight: 400;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; }
::selection{ background: var(--accent); color: var(--ink); }

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
@media (max-width: 720px){ .wrap{ padding: 0 1.25rem; } }

/* ============ NAV ============ */
.nav{
  position: sticky;
  top: 1rem;
  z-index: 50;
  margin: 1rem auto 0;
  max-width: calc(var(--max) - 1rem);
  padding: 0 1rem;
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  background: var(--ink);
  color: white;
  border-radius: 100px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.logo{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: white;
}
.logo-img{
  height: 32px;
  width: auto;
}
.logo-mark{
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.05em;
}
.nav-links{
  display: flex;
  gap: 0.3rem;
  align-items: center;
  background: rgba(255,255,255,0.06);
  padding: 0.3rem;
  border-radius: 100px;
}
.nav-links a{
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  border-radius: 100px;
  transition: all 0.2s;
  font-weight: 500;
}
.nav-links a:hover{ color: white; background: rgba(255,255,255,0.08); }
.nav-links a.active{ color: var(--ink); background: var(--accent); }
.nav-cta{
  padding: 0.75rem 1.3rem;
  background: var(--accent);
  color: var(--ink) !important;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-cta:hover{ background: white; transform: translateY(-1px); }
.nav-cta .arr{ transition: transform 0.2s; }
.nav-cta:hover .arr{ transform: translate(2px, -2px); }
.nav-menu-btn{ display: none; color: white; font-size: 1.3rem; padding: 0.5rem; }

@media (max-width: 980px){
  .nav-links{ display: none; }
  .nav-menu-btn{ display: block; }
  .nav-links.open{
    display: flex;
    position: absolute;
    top: calc(100% + 0.5rem); left: 0; right: 0;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--ink);
    border-radius: 24px;
    align-items: stretch;
  }
  .nav-links.open a{ padding: 0.75rem 1.1rem; }
}

/* ============ BUTTONS ============ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-primary{ background: var(--ink); color: white; }
.btn-primary:hover{ background: var(--accent); color: var(--ink); transform: translateY(-2px); }
.btn-accent{ background: var(--accent); color: var(--ink); }
.btn-accent:hover{ background: var(--ink); color: white; transform: translateY(-2px); }
.btn-outline{ background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover{ background: var(--ink); color: white; }
.btn .arr{ transition: transform 0.25s; }
.btn:hover .arr{ transform: translate(3px, -3px); }

/* ============ SECTION BASICS ============ */
section{ padding: 6rem 0; position: relative; }
@media (max-width: 720px){ section{ padding: 4rem 0; } }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.eyebrow-dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
}
.eyebrow.dark{ background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }

h1.display, h2.display{
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7.5vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}
h1.display .accent, h2.display .accent{
  background: var(--accent);
  color: var(--ink);
  padding: 0 0.2em;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-1deg);
  margin: 0 0.1em;
}
h1.display .italic, h2.display .italic{
  font-style: italic;
  font-weight: 700;
  font-family: 'Fraunces', serif;
}

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.section-head h2{
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.section-head h2 .accent{
  background: var(--accent);
  padding: 0 0.2em;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-1deg);
}
.section-head h2 .italic{ font-style: italic; font-family: 'Fraunces', serif; font-weight: 700; }
.section-aside{ max-width: 32ch; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }

/* ============ MARQUEE ============ */
.marquee{
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.marquee-track{
  display: flex;
  gap: 3rem;
  animation: scroll 38s linear infinite;
  width: max-content;
}
.marquee-item{
  display: flex; align-items: center; gap: 3rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.marquee-item::after{
  content: "✦";
  color: var(--accent-deep);
}
@keyframes scroll{
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ FOOTER ============ */
.footer{
  background: var(--ink);
  color: white;
  padding: 5rem 0 2rem;
}
.foot-top{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.foot-brand{ max-width: 36ch; }
.foot-brand .logo{ margin-bottom: 1.25rem; font-size: 1.2rem; }
.foot-brand p{ color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.5rem; }
.foot-brand .btn{ font-size: 0.85rem; padding: 0.8rem 1.4rem; }
.foot-col h4{
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.foot-col ul{ list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.foot-col a{ color: rgba(255,255,255,0.7); font-size: 0.93rem; transition: color 0.2s; }
.foot-col a:hover{ color: var(--accent); }

.foot-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot-bottom p, .foot-bottom a{
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.foot-bottom a:hover{ color: var(--accent); }
@media (max-width: 860px){
  .foot-top{ grid-template-columns: 1fr 1fr; gap: 2rem; }
  .foot-brand{ grid-column: 1 / -1; }
}
@media (max-width: 520px){
  .foot-top{ grid-template-columns: 1fr; }
}

/* ============ PAGE HEADERS (inner pages) ============ */
.page-header{
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}
.page-header .eyebrow{ margin: 0 auto 1.5rem; }
.page-header h1{
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.page-header h1 .accent{
  background: var(--accent);
  padding: 0 0.15em;
  border-radius: 12px;
  display: inline-block;
  transform: rotate(-1deg);
}
.page-header h1 .italic{ font-style: italic; font-family: 'Fraunces', serif; font-weight: 700; }
.page-header p{ max-width: 55ch; margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; }

/* ============ REVEAL ============ */
.reveal{ opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ============ CARDS / GRIDS — shared ============ */

/* big black CTA card used everywhere */
.cta-card{
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before{
  content: "";
  position: absolute;
  top: -50%; left: -10%;
  width: 40%; height: 200%;
  background: var(--accent);
  opacity: 0.08;
  transform: rotate(-15deg);
}
.cta-card::after{
  content: "";
  position: absolute;
  bottom: -50%; right: -10%;
  width: 40%; height: 200%;
  background: var(--accent);
  opacity: 0.08;
  transform: rotate(-15deg);
}
.cta-card > *{ position: relative; z-index: 1; }
.cta-card .eyebrow{ background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.cta-card h2{
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: white;
  margin-bottom: 2rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-card h2 .accent{
  background: var(--accent);
  color: var(--ink);
  padding: 0 0.2em;
  border-radius: 10px;
  display: inline-block;
  transform: rotate(-1deg);
}
.cta-card h2 .italic{ font-style: italic; font-family: 'Fraunces', serif; font-weight: 700; }
.cta-card p{ color: rgba(255,255,255,0.7); max-width: 50ch; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.cta-card .btn-group{ display: inline-flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

@media (max-width: 720px){
  .cta-card{ padding: 3rem 1.5rem; }
}
