/* ============================================================
   MOHIT MISHRA — PORTFOLIO
   Dark editorial engineering aesthetic
   Inspired by the Sawad (Framer) structure
   ============================================================ */

:root {
  --bg: #151312;
  --bg-2: #1a1715;
  --surface: #1c1917;
  --text: #faf7f3;
  --text-dim: #998f8f;
  --text-mute: #6a6b6e;
  --accent: #f46c38;
  --accent-soft: rgba(244, 108, 56, 0.12);
  --green: #c5ff41;
  --line: rgba(250, 247, 243, 0.1);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --gutter: clamp(20px, 6vw, 80px);
  --max-w: 1439px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Custom cursor (desktop only) ---------- */
.cursor {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(250, 247, 243, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    mix-blend-mode: difference;
  }
  .cursor.is-active {
    width: 56px;
    height: 56px;
    border-color: var(--accent);
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(21, 19, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle.open span:nth-child(1) { top: 14px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { top: 14px; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--gutter) 80px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(244, 108, 56, 0.06), transparent 60%),
    radial-gradient(900px 500px at 10% 100%, rgba(197, 255, 65, 0.03), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-tag {
  font-family: var(--font-head);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}
.hero-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(56px, 17vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-name:nth-of-type(2) {
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
}
.hero-title {
  margin-top: 48px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-dim);
}
.hero-bottom {
  margin-top: 56px;
  max-width: 640px;
}
.hero-desc {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
  color: var(--text-dim);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-meta span {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 8vw, 120px) var(--gutter);
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: none;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 130px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat-label {
  font-family: var(--font-head);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================================================
   STATEMENT
   ============================================================ */
.statement {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.statement-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.statement-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(24px, 4.2vw, 56px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 1100px;
  color: var(--text);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-content {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  padding-right: 48px;
}
.marquee-content span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 48px);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-dim);
  text-transform: uppercase;
}
.marquee-content span:nth-child(odd) {
  color: var(--text);
  -webkit-text-stroke: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(44px, 9vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
}
.projects-head {
  max-width: var(--max-w);
  margin: 0 auto 80px;
}
.projects-head .section-title span {
  color: var(--text-dim);
}

.project {
  max-width: var(--max-w);
  margin: 0 auto 140px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.project-feature {
  grid-template-columns: 1.3fr 1fr;
}
.project-num {
  grid-column: 1 / -1;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 90px);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-mute);
  margin-bottom: 12px;
}
.project-media {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  position: sticky;
  top: 120px;
}
.project-img {
  aspect-ratio: 4 / 3;
  background: var(--img), var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.project-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 30% 20%, rgba(244, 108, 56, 0.10), transparent 60%);
  transition: opacity 0.5s ease;
}
.project-media:hover .project-img {
  transform: scale(1.03);
}
.project-media:hover .project-img::after {
  opacity: 0;
}
.img-monogram {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(70px, 10vw, 150px);
  color: var(--text);
  opacity: 0.9;
  position: relative;
  z-index: 1;
}
.img-confid {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(244, 108, 56, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(21, 19, 18, 0.6);
  backdrop-filter: blur(6px);
}
.project-body {
  padding-top: 8px;
}
.project-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
}
.project-sub {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-status {
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.project-desc {
  margin-top: 28px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 520px;
}
.project-points {
  margin-top: 24px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.project-points li {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.project-points li:hover {
  color: var(--text);
  border-color: var(--accent);
}
.project-confid {
  margin-top: 28px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(244, 108, 56, 0.3);
  background: var(--accent-soft);
  padding: 14px 18px;
  border-radius: 4px;
  max-width: 520px;
}
.project-flow {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.project-flow span {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.project-flow i {
  color: var(--accent);
  font-style: normal;
  font-size: 18px;
}

/* ============================================================
   JOURNEY
   ============================================================ */
.journey {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  border-top: 1px solid var(--line);
}
.journey .section-title {
  max-width: var(--max-w);
  margin: 0 auto 80px;
}
.timeline {
  max-width: var(--max-w);
  margin: 0 auto;
}
.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}
.timeline-year {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--accent);
}
.timeline-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.timeline-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 620px;
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achievements {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.achievements-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.achievements .section-title {
  margin-bottom: 64px;
}
.achievements-list {
  list-style: none;
}
.achievement {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.achievement:last-child {
  border-bottom: 1px solid var(--line);
}
.ach-medal {
  font-size: 28px;
  line-height: 1;
}
.ach-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  color: var(--text);
}
.ach-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}

/* ============================================================
   TOOLS
   ============================================================ */
.tools {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
}
.tools .section-title {
  max-width: var(--max-w);
  margin: 0 auto 64px;
}
.tools-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 28px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.tool-card:hover {
  border-color: rgba(244, 108, 56, 0.5);
  transform: translateY(-4px);
  background: #201d1b;
}
.tool-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  color: var(--text);
}
.tool-desc {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ============================================================
   THOUGHTS
   ============================================================ */
.thoughts {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.thoughts .section-title {
  max-width: var(--max-w);
  margin: 0 auto 64px;
}
.thoughts-list {
  max-width: var(--max-w);
  margin: 0 auto;
}
.thought {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}
.thought:last-child {
  border-bottom: 1px solid var(--line);
}
.thought:hover {
  padding-left: 20px;
}
.thought-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 32px);
  color: var(--text-mute);
}
.thought-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 36px);
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.3s ease;
}
.thought:hover .thought-title {
  color: var(--accent);
}
.thought-status {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(80px, 12vw, 180px) var(--gutter);
  border-top: 1px solid var(--line);
  position: relative;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 500px at 50% 100%, rgba(244, 108, 56, 0.07), transparent 60%);
  pointer-events: none;
}
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.contact-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(56px, 15vw, 190px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text);
}
.contact-desc {
  margin: 40px auto 0;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 560px;
}
.contact-links {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 16px 40px;
  border-radius: 999px;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.contact-links a:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px var(--gutter);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-meta span {
  font-size: 14px;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-copy {
  font-size: 14px;
  color: var(--text-mute);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .project,
  .project-feature {
    grid-template-columns: 1fr;
  }
  .project-num {
    grid-column: 1 / -1;
  }
  .project-media {
    position: static;
  }
  .timeline-item {
    grid-template-columns: 120px 1fr;
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 32px;
    padding-right: 0;
  }
  .stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--bg-2);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    border-left: 1px solid var(--line);
    z-index: 400;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 22px;
  }
  .nav-toggle {
    display: block;
    z-index: 500;
  }
  .hero {
    padding-top: 120px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .thought {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "num status"
      "title title";
    row-gap: 12px;
  }
  .thought-num { grid-area: num; }
  .thought-title { grid-area: title; }
  .thought-status { grid-area: status; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
