/* Nishchay Joshi Portfolio — alignment/spacing pass
   Content is unchanged. This stylesheet is aligned to the classes used by index.html.
*/

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #101828;
  --muted: #667085;
  --line: #dfe3eb;
  --dark: #0c1220;
  --dark-2: #141d2e;
  --accent: #6d5dfc;
  --accent-2: #8b7fff;
  --green: #35c48a;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  --radius: 22px;
  --max: 1180px;
  --section-space: clamp(72px, 8vw, 108px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  padding-left: 1.2rem;
}

li::marker {
  color: var(--accent);
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: var(--section-space) 0;
}

.pale {
  background: var(--surface-2);
}

.dark {
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(109, 93, 252, 0.22), transparent 30%),
    var(--dark);
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: .76rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.dark .eyebrow {
  color: #9d93ff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 252, .90);
  border-bottom: 1px solid rgba(223, 227, 235, .8);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: -.02em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: .9rem;
  font-weight: 650;
}

.nav a {
  color: #475467;
  transition: color .2s ease, transform .2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav .nav-button {
  color: #fff;
  background: var(--dark);
  padding: 10px 16px;
  border-radius: 999px;
}

.nav .nav-button:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 78% 25%, rgba(109, 93, 252, .14), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f4f6fb 100%);
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(48px, 7vw, 86px);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  margin-bottom: 26px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-text {
  max-width: 720px;
  font-size: 1.15rem;
  color: #475467;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0;
}

.chips span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-size: .78rem;
  font-weight: 700;
  color: #475467;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  background: #fff;
  border: 1px solid var(--line);
}

.small-note {
  font-size: .9rem;
}

.small-note strong {
  color: var(--text);
}

.hero-photo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-photo-card {
  width: min(100%, 430px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px;
  background: linear-gradient(145deg, #11192a, #1a253a);
  box-shadow: 0 30px 70px rgba(12, 18, 32, .20);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
}

/* Section headings and two-column layouts */
.section-head {
  max-width: 800px;
  margin-bottom: 48px;
}

.section-title {
  min-width: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 8vw, 92px);
  align-items: start;
}

.copy {
  min-width: 0;
  max-width: 780px;
}

.copy p + p {
  margin-top: 18px;
}

.copy p {
  font-size: 1rem;
}

/* Experience */
.experience-list {
  display: grid;
  gap: 18px;
  max-width: 1080px;
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(150px, .28fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.experience-card.current {
  box-shadow: var(--shadow);
  border-color: rgba(109, 93, 252, .22);
}

.experience-meta {
  padding-top: 2px;
}

.experience-meta strong {
  color: var(--accent);
  font-size: .95rem;
}

.experience-card h3 {
  margin-bottom: 14px;
}

.experience-card ul {
  margin: 0;
}

.experience-card li {
  color: var(--muted);
  margin: 7px 0;
}

/* Skills */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-grid article {
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
}

.skill-grid .num {
  color: #8f85ff;
  font-weight: 800;
  font-size: .8rem;
}

.skill-grid h3 {
  margin: 12px 0 14px;
}

.skill-grid p,
.value-grid p {
  color: #aeb7c8;
  font-size: .91rem;
}

/* AI */
.ai-top {
  margin-bottom: 45px;
}

.ai-top .copy {
  align-self: end;
  font-size: 1.05rem;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ai-grid article {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.ai-grid article > span {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
}

.ai-grid h3 {
  margin: 10px 0;
}

.ai-grid p {
  font-size: .88rem;
}

.workflow {
  margin-top: 30px;
  padding: 18px;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  text-align: center;
}

.workflow span {
  font-weight: 750;
  font-size: .88rem;
}

.workflow b,
.approach-flow b {
  color: var(--accent-2);
}

/* Case studies */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.case {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .04);
}

.case:nth-child(5) {
  grid-column: 1 / -1;
}

.case-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: .7rem;
  line-height: 1.4;
  margin-bottom: 18px;
}

.case h3 {
  font-size: 1.65rem;
  margin-bottom: 16px;
}

.case h4 {
  margin: 22px 0 8px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.case p {
  font-size: .9rem;
  margin: 10px 0;
}

.case ul {
  margin-bottom: 2px;
}

.case li {
  color: var(--muted);
  font-size: .88rem;
  margin: 5px 0;
}

.metric-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  margin: 24px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--dark);
}

.metric-row strong {
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.1;
  white-space: nowrap;
}

.metric-row span {
  color: #aeb7c8;
  font-size: .72rem;
  line-height: 1.35;
}

blockquote {
  margin-top: auto;
  padding: 16px 0 0 16px;
  border-left: 3px solid var(--accent);
  color: #475467;
  font-size: .9rem;
  font-style: italic;
}

/* Results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.results-grid > div {
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.results-grid strong {
  display: block;
  color: var(--accent);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.results-grid span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.approach {
  margin-top: 55px;
  text-align: center;
}

.approach-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 18px;
}

.approach-flow span {
  font-weight: 750;
  font-size: .88rem;
}

.fine-print {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: .78rem;
}

/* What I Bring */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.value-grid article {
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
}

.value-grid h3 {
  margin-bottom: 14px;
}

/* Contact */
.contact {
  background:
    radial-gradient(circle at 80% 20%, rgba(109, 93, 252, .12), transparent 28%),
    var(--bg);
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(40px, 7vw, 70px);
  align-items: center;
  padding: 60px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-box h2 {
  margin-bottom: 18px;
}

.contact-box > div:first-child > p {
  max-width: 680px;
}

.location {
  margin-top: 18px;
  font-size: .88rem;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links > a,
.contact-links > div {
  display: block;
  min-width: 0;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.contact-links small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.contact-links strong {
  display: block;
  margin-top: 2px;
  font-size: .92rem;
  overflow-wrap: anywhere;
}

.contact-links a {
  transition: transform .2s ease, border-color .2s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* Footer */
footer {
  padding: 25px 0;
  background: var(--dark);
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner span,
.footer-inner a {
  color: #98a2b3;
  font-size: .78rem;
}

.footer-inner a:hover {
  color: #fff;
}

/* Tablet */
@media (max-width: 980px) {
  .nav {
    gap: 14px;
  }

  .hero-grid,
  .split,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-photo-wrap {
    justify-content: flex-start;
  }

  .hero-photo-card {
    width: min(100%, 480px);
  }

  .skill-grid,
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-box {
    gap: 35px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .section {
    padding: 72px 0;
  }

  .site-header {
    position: static;
  }

  .nav-wrap {
    align-items: flex-start;
    padding: 15px 0;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    gap: 17px;
    justify-content: flex-start;
  }

  .nav a {
    white-space: nowrap;
  }

  .nav .nav-button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-photo-wrap {
    justify-content: center;
  }

  .chips span {
    font-size: .72rem;
  }

  .split,
  .skill-grid,
  .value-grid,
  .ai-grid,
  .case-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .case:nth-child(5) {
    grid-column: auto;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .experience-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  .experience-meta {
    padding-top: 0;
  }

  .case {
    padding: 24px;
  }

  .case-label {
    flex-direction: column;
    gap: 5px;
  }

  .metric-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contact-box {
    padding: 30px 22px;
  }

  .workflow,
  .approach-flow {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-photo-card {
    padding: 10px;
  }
}
