@charset "UTF-8";

/* =========================================================================
   PRERAK PATEL — PORTFOLIO 
   Editorial Brutalism + Chimdibam Signature Loader
========================================================================= */

:root {
  --bg-color: #e3e1df;
  --text-color: #121212;
  --border-color: rgba(18, 18, 18, 0.15);
  --ff-sans: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  --ff-mono: 'Space Mono', 'Courier New', monospace;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; cursor: none; }
body {
  background-color: var(--bg-color); color: var(--text-color);
  font-family: var(--ff-sans); line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  height: 100vh; overflow-y: hidden;
}
a { color: inherit; text-decoration: none; cursor: none; }
ul, ol { list-style: none; }

/* =========================================================================
   CUSTOM CURSOR
========================================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 15px; height: 15px;
  background-color: var(--text-color); border-radius: 50%;
  pointer-events: none; z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s, opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.cursor-text {
  color: var(--bg-color); font-family: var(--ff-mono);
  font-size: 0.75rem; opacity: 0; transition: opacity 0.2s;
}
.cursor.is-hover { width: 40px; height: 40px; background-color: transparent; border: 1px solid var(--text-color); }
.cursor.is-view { width: 80px; height: 80px; }
.cursor.is-view .cursor-text { opacity: 1; }
.cursor.hidden { opacity: 0; }

/* =========================================================================
   CHIMDIBAM SIGNATURE LOADER
========================================================================= */
.loader {
  position: fixed; inset: 0;
  background-color: #000;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: transform 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.loader.loaded {
  transform: translateY(-100%);
}

.signature-svg {
  width: min(85vw, 550px);
  height: auto;
  overflow: visible;
}

/* SVG Text Signature Style */
.sig-text {
  font-family: 'Great Vibes', cursive;
  font-size: 72px;
  fill: transparent;
  stroke: #fff;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: drawText 2.5s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards,
             fillText 0.8s ease 2.4s forwards;
}

/* Underline flourish */
.sig-underline {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawStroke 0.6s ease 2.2s forwards;
}

@keyframes drawText {
  to { stroke-dashoffset: 0; }
}

@keyframes fillText {
  to { fill: #fff; stroke: transparent; }
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

/* Smooth scroll wrapper state */
.smooth-scroll-wrapper { opacity: 0; transition: opacity 0.5s ease; }
body.content-ready .smooth-scroll-wrapper { opacity: 1; }

/* =========================================================================
   LAYOUT & GRID
========================================================================= */
.section { padding: 8vw 4vw; }
.grid-section { display: grid; grid-template-columns: 2fr 10fr; gap: 40px; }
.border-top { border-top: 1px solid var(--border-color); }
@media (max-width: 900px) { .grid-section { grid-template-columns: 1fr; gap: 24px; } }

/* =========================================================================
   NAVIGATION
========================================================================= */
.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  display: flex; justify-content: space-between;
  padding: 1.5rem 4vw; z-index: 1000;
  font-family: var(--ff-mono); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.05em; mix-blend-mode: difference; color: #fff;
}
.nav-link { position: relative; padding: 5px; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background-color: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s ease; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 600px) { .hidden-mobile { display: none; } }

/* =========================================================================
   HERO
========================================================================= */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 10vh 4vw 4vw; }

.pill-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  width: fit-content;
  padding: 8px 16px; border-radius: 50px;
  background-color: var(--text-color); color: var(--bg-color);
  font-family: var(--ff-mono); font-size: 0.8rem; margin-bottom: 2rem;
}
.pulse { display: block; width: 6px; height: 6px; background-color: #55ff55; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(85, 255, 85, 0.6); } 70% { box-shadow: 0 0 0 6px rgba(85, 255, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(85, 255, 85, 0); } }

.hero-title { font-size: clamp(3rem, 12vw, 13rem); font-weight: 700; line-height: 0.85; letter-spacing: -0.04em; margin-bottom: 3rem; }
.block { display: block; }
.indent { margin-left: 15vw; }

.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.hero-desc { max-width: 500px; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; }
.scroll-prompt { font-family: var(--ff-mono); font-size: 0.75rem; display: flex; align-items: center; gap: 12px; }
.scroll-line { width: 40px; height: 1px; background-color: var(--text-color); }
@media (max-width: 900px) { .hero-bottom { flex-direction: column; align-items: flex-start; gap: 2rem; } }

/* =========================================================================
   SECTIONS / EXPERIENCE
========================================================================= */
.section-label { font-family: var(--ff-mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.sticky { position: sticky; top: 6rem; }

.exp-row { display: grid; grid-template-columns: 2fr 5fr; gap: 40px; padding: 2.5vw 0; border-bottom: 1px solid var(--border-color); }
.exp-row:last-child { border-bottom: none; padding-bottom: 0; }
.exp-meta { font-family: var(--ff-mono); font-size: 0.8rem; }
.exp-title { font-size: 2rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 6px; }
.exp-company { font-family: var(--ff-mono); font-size: 0.85rem; margin-bottom: 12px; color: #555; text-transform: uppercase; }
.exp-desc { font-size: 1.1rem; color: #333; max-width: 600px; }
@media (max-width: 900px) { .exp-row { grid-template-columns: 1fr; gap: 12px; } .exp-title { font-size: 1.5rem; } }

/* =========================================================================
   PROJECTS
========================================================================= */
.project-list { display: flex; flex-direction: column; }
.project-item { padding: 4vw 0; border-bottom: 1px solid var(--border-color); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; transition: opacity 0.3s; }
.project-item:first-child { padding-top: 0; }
.project-item:last-child { border-bottom: none; padding-bottom: 0; }

.project-name { font-size: clamp(2rem, 4.5vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 10px; line-height: 1; }
.project-cat { font-family: var(--ff-mono); font-size: 0.8rem; }

.project-impact { margin-bottom: 15px; }
.impact-metric { font-size: 3rem; font-weight: 700; letter-spacing: -0.05em; }
.impact-label { font-family: var(--ff-mono); font-size: 0.75rem; text-transform: uppercase; max-width: 200px; border-top: 1px solid var(--text-color); padding-top: 8px; }

.project-desc { font-size: 1.15rem; color: #333; align-self: end; }

.project-list:hover .project-item { opacity: 0.2; }
.project-list .project-item:hover { opacity: 1; }
@media (max-width: 900px) { .project-item { grid-template-columns: 1fr; gap: 20px; } }

/* =========================================================================
   FOOTER
========================================================================= */
.footer { padding-bottom: 4vw; }
.mega-contact { font-size: clamp(2rem, 5vw, 6rem); line-height: 1; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4rem; word-break: break-all; }
.mega-contact a { position: relative; display: inline-block; }
.hover-underline::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: max(2px, 0.4vw); background-color: var(--text-color); transform: scaleX(1); transform-origin: right; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.hover-underline:hover::after { transform: scaleX(0); transform-origin: left; }

.footer-links { display: flex; gap: 40px; font-family: var(--ff-mono); font-size: 0.85rem; }
@media (max-width: 900px) { .footer-links { flex-direction: column; gap: 16px; } }

/* =========================================================================
   ANIMATIONS
========================================================================= */
.load-reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
body.content-ready .load-reveal { opacity: 1; transform: translateY(0); }
body.content-ready .load-reveal:nth-child(1) { transition-delay: 0.1s; }
body.content-ready .load-reveal:nth-child(2) { transition-delay: 0.25s; }
body.content-ready .load-reveal:nth-child(3) { transition-delay: 0.4s; }

.rev { opacity: 0; transform: translateY(40px); transition: opacity 0.8s, transform 0.8s; }
.rev.is-visible { opacity: 1; transform: translateY(0); }