/* =============================================================================
   style.css — G. Aditya Prasad Portfolio
   Warm off-white. Orange accent. Bold editorial typography.
   Inspired by: singhaman.com/aditya
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Design tokens
   ----------------------------------------------------------------------------- */

:root {
  --bg:           #F5F0EB;
  --surface:      #EDE8E2;
  --border:       #DEDAD4;
  --border-faint: #E8E3DC;

  --text:         #1A1A1A;
  --text-muted:   #888888;
  --text-faint:   #C0BAB2;

  --accent:       #E8622A;
  --accent-hover: #D4541E;
  --accent-tint:  #FEF3EE;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Helvetica, Arial, sans-serif;

  --body-size: 1rem;
  --body-lh:   1.75;
  --prose-max: 640px;

  --width:  1040px;
  --gutter: 2rem;
}

/* -----------------------------------------------------------------------------
   Reset
   ----------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background:             var(--bg);
  color:                  var(--text);
  font-family:            var(--font);
  font-size:              var(--body-size);
  line-height:            var(--body-lh);
  -webkit-font-smoothing: antialiased;
}
a      { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
ul, ol { padding-left: 1.25rem; }
li     { margin-bottom: 0.35rem; }

/* -----------------------------------------------------------------------------
   Nav
   ----------------------------------------------------------------------------- */

.nav {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         1rem var(--gutter);
  border-bottom:   1px solid var(--border-faint);
  background:      rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(8px);
  position:        sticky;
  top:             0;
  z-index:         100;
  max-width:       100%;
}

/* A. serif logo */
.nav-logo {
  display:        inline-flex;
  flex-direction: column;
  gap:            0.1rem;
  font-family:    "Times New Roman", Times, Georgia, serif;
  font-size:      2rem;
  font-weight:    400;
  font-style:     normal;
  color:          var(--text);
  letter-spacing: -0.01em;
  line-height:    1;
}
.nav-logo:hover { color: var(--accent); }

.logo-dec {
  display:     flex;
  align-items: center;
  gap:         0.4rem;
}
.logo-dec::before {
  content:    "";
  display:    block;
  width:      1.375rem;
  height:     1.5px;
  background: currentColor;
  flex-shrink: 0;
}
.logo-dec::after {
  content:        "·  ·  ·";
  font-family:    var(--font);
  font-size:      0.5625rem;
  font-style:     normal;
  letter-spacing: 0.3em;
  opacity:        0.5;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size:   0.875rem;
  font-weight: 400;
  color:       var(--text-muted);
}
.nav-links a:hover { color: var(--text); }

/* "Let's Talk" pill button in nav */
.nav-cta {
  display:        inline-block;
  padding:        0.45rem 1.125rem;
  border:         1px solid var(--text);
  border-radius:  100px;
  font-size:      0.875rem;
  font-weight:    500;
  color:          var(--text) !important;
  background:     transparent;
  transition:     background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-cta:hover {
  background:   var(--text);
  color:        var(--bg) !important;
  border-color: var(--text);
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border-faint);
  padding:    2rem var(--gutter);
  font-size:  0.8125rem;
  color:      var(--text-faint);
  text-align: center;
}
.footer a       { color: var(--text-muted); }
.footer a:hover { color: var(--accent); }

/* -----------------------------------------------------------------------------
   Page layout
   ----------------------------------------------------------------------------- */

#root { display: flex; flex-direction: column; }

/* Wide sections — full width, inner content constrained */
.section {
  max-width: var(--width);
  margin:    0 auto;
  padding:   6rem var(--gutter);
  width:     100%;
}

.section + .section { border-top: 1px solid var(--border-faint); }

/* -----------------------------------------------------------------------------
   Section numbering + heading system
   ----------------------------------------------------------------------------- */

.section-meta {
  display:     flex;
  align-items: center;
  gap:         0.625rem;
  margin-bottom: 1.125rem;
}

.section-num {
  font-size:            0.75rem;
  font-weight:          500;
  color:                var(--text-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing:       0.04em;
}

.section-bar {
  display:    block;
  width:      2rem;
  height:     1px;
  background: var(--border);
  flex-shrink: 0;
}

.section-lbl {
  font-size:      0.6875rem;
  font-weight:    600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--text-muted);
}

.section-heading {
  font-size:      clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight:    700;
  letter-spacing: -0.025em;
  line-height:    1.2;
  color:          var(--text);
  margin-bottom:  3rem;
}

/* -----------------------------------------------------------------------------
   HERO
   ----------------------------------------------------------------------------- */

.hero {
  max-width: var(--width);
  margin:    0 auto;
  padding:   6rem var(--gutter) 0;
  width:     100%;
}

.hero-inner {
  display:               grid;
  grid-template-columns: 1fr 400px;
  gap:                   4rem;
  align-items:           center;
  padding-bottom:        4rem;
}

/* Left column */
.hero-left { display: flex; flex-direction: column; }

.hero-eyebrow {
  display:        flex;
  align-items:    center;
  gap:            0.75rem;
  font-size:      0.875rem;
  font-weight:    600;
  color:          var(--accent);
  margin-bottom:  1.5rem;
  letter-spacing: 0.01em;
}

.hero-eyebrow::before {
  content:    "";
  display:    block;
  width:      1.5rem;
  height:     2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-name {
  font-size:      clamp(3rem, 6vw, 5rem);
  font-weight:    800;
  letter-spacing: -0.04em;
  line-height:    1.0;
  color:          var(--text);
  margin-bottom:  1.75rem;
}

.hero-desc {
  font-size:     1rem;
  color:         var(--text-muted);
  line-height:   1.7;
  max-width:     480px;
  margin-bottom: 2.5rem;
}

.hero-desc strong { color: var(--text); font-weight: 600; }

/* Hero actions row */
.hero-actions {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
  flex-wrap:   wrap;
  margin-bottom: 0.75rem;
}

/* Hero contact icons row */
.hero-contacts {
  display:       flex;
  flex-wrap:     wrap;
  gap:           0.25rem 1.5rem;
  margin-bottom: 0;
}

.hero-contact-link {
  display:     inline-flex;
  align-items: center;
  gap:         0.45rem;
  font-size:   0.875rem;
  color:       var(--text-muted);
  transition:  color 0.2s;
}
a.hero-contact-link:hover  { color: var(--accent); }
.hero-contact-plain        { cursor: default; }
.hero-contact-link svg     { flex-shrink: 0; opacity: 0.7; }

/* CTA buttons */
.cta {
  display:         inline-flex;
  align-items:     center;
  gap:             0.45rem;
  padding:         0.7rem 1.375rem;
  background:      var(--text);
  color:           var(--bg);
  font-family:     var(--font);
  font-size:       0.875rem;
  font-weight:     500;
  line-height:     1.5;
  letter-spacing:  0.01em;
  border-radius:   100px;
  border:          1px solid var(--text);
  cursor:          pointer;
  transition:      background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  appearance:      none;
}
.cta:hover { background: #333; border-color: #333; }

.cta--ghost {
  background:  transparent;
  color:       var(--text);
  border-color: var(--border);
}
.cta--ghost:hover {
  background:   var(--surface);
  border-color: var(--text-muted);
  color:        var(--text);
}

/* -----------------------------------------------------------------------------
   Hero — icon grid (right column)
   ----------------------------------------------------------------------------- */

.hero-icon-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   0.625rem;
}

.icon-card {
  aspect-ratio:    1;
  border:          1px solid var(--border);
  border-radius:   14px;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             0.375rem;
  background:      var(--bg);
  color:           var(--text-faint);
  transition:      border-color 0.2s, color 0.2s;
}

.icon-card:hover {
  border-color: var(--border);
  color:        var(--text-muted);
}

.icon-card.active {
  border-color: var(--accent);
  background:   var(--accent-tint);
  color:        var(--accent);
}

.icon-card-label {
  font-size:   0.5625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

/* -----------------------------------------------------------------------------
   Hero — career timeline strip
   ----------------------------------------------------------------------------- */

.hero-timeline {
  border-top:  1px solid var(--border);
  padding:     1.75rem 0 2rem;
  display:     flex;
  align-items: flex-start;
  gap:         0;
  overflow-x:  auto;
}

.tl-node {
  display:     flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.tl-content {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
  gap:            0.3rem;
}

.tl-dot {
  width:         8px;
  height:        8px;
  border-radius: 50%;
  background:    var(--border);
  margin-top:    0.25rem;
  flex-shrink:   0;
}
.tl-dot.current {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.tl-year {
  font-size:            0.75rem;
  font-weight:          600;
  color:                var(--text-muted);
  font-variant-numeric: tabular-nums;
  line-height:          1;
  margin-bottom:        0.2rem;
}
.tl-year.current { color: var(--accent); }

.tl-event {
  font-size:  0.75rem;
  color:      var(--text-faint);
  line-height: 1.3;
  max-width:  90px;
}

.tl-line {
  width:      3.5rem;
  height:     1px;
  background: var(--border);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll {
  text-align:     center;
  font-size:      0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--text-faint);
  padding:        1.25rem 0 2rem;
}

/* -----------------------------------------------------------------------------
   ABOUT — two-column with stats
   ----------------------------------------------------------------------------- */

.about-layout {
  display:               grid;
  grid-template-columns: 1fr 260px;
  gap:                   5rem;
  align-items:           start;
}

.about-body p {
  font-size:     var(--body-size);
  color:         var(--text);
  line-height:   var(--body-lh);
  margin-bottom: 1.125rem;
  max-width:     var(--prose-max);
}
.about-body p:last-child { margin-bottom: 0; }

/* Stats column */
.about-stats { border-top: 1px solid var(--border); }

.about-stat {
  display:         flex;
  justify-content: space-between;
  align-items:     baseline;
  gap:             1rem;
  padding:         1rem 0;
  border-bottom:   1px solid var(--border);
}

.about-stat-value {
  font-size:      1.5rem;
  font-weight:    700;
  letter-spacing: -0.02em;
  color:          var(--text);
}

.about-stat-label {
  font-size:  0.8125rem;
  color:      var(--text-muted);
  text-align: right;
}

/* -----------------------------------------------------------------------------
   CASE STUDIES — numbered rows with metric
   ----------------------------------------------------------------------------- */

.cs-list { display: flex; flex-direction: column; }

.cs-card {
  display:       grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap:           1.25rem;
  align-items:   center;
  padding:       1.375rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color:         inherit;
  transition:    background 0.2s;
  margin:        0 calc(-1 * var(--gutter));
  padding-left:  var(--gutter);
  padding-right: var(--gutter);
}
.cs-list .cs-card:first-child { border-top: 1px solid var(--border); }
.cs-card:hover                { background: var(--surface); }

.cs-num {
  font-size:      0.75rem;
  font-weight:    600;
  color:          var(--text-faint);
  letter-spacing: 0.04em;
  padding-top:    0.2rem;
  user-select:    none;
}

.cs-card-body {
  display:        flex;
  flex-direction: column;
  gap:            0.2rem;
}

.cs-card-title {
  font-size:   var(--body-size);
  font-weight: 500;
  color:       var(--text);
  line-height: 1.4;
}
.cs-card:hover .cs-card-title { color: var(--accent); transition: color 0.2s; }

.cs-card-tag {
  font-size: 0.875rem;
  color:     var(--text-muted);
}

/* Metric on right */
.cs-card-metric {
  display:        flex;
  flex-direction: column;
  align-items:    flex-end;
  gap:            0.1rem;
  flex-shrink:    0;
}

.cs-metric-value {
  font-size:      1rem;
  font-weight:    700;
  color:          var(--accent);
  letter-spacing: -0.01em;
  line-height:    1.2;
}

.cs-metric-label {
  font-size:  0.6875rem;
  color:      var(--text-muted);
  white-space: nowrap;
}

/* -----------------------------------------------------------------------------
   MY SPACE
   ----------------------------------------------------------------------------- */

.myspace-list { display: flex; flex-direction: column; }

.myspace-card {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             2rem;
  padding:         1.375rem 0;
  border-bottom:   1px solid var(--border);
  text-decoration: none;
  color:           inherit;
  transition:      background 0.2s;
  margin:          0 calc(-1 * var(--gutter));
  padding-left:    var(--gutter);
  padding-right:   var(--gutter);
}
.myspace-list .myspace-card:first-child { border-top: 1px solid var(--border); }
.myspace-card:hover { background: var(--surface); }

.myspace-card-body {
  display:        flex;
  flex-direction: column;
  gap:            0.3rem;
  flex:           1;
}

.myspace-title {
  font-size:   var(--body-size);
  font-weight: 500;
  color:       var(--text);
  line-height: 1.4;
}
.myspace-card:hover .myspace-title { color: var(--accent); transition: color 0.2s; }

.myspace-desc {
  font-size:   0.875rem;
  color:       var(--text-muted);
  line-height: 1.55;
  max-width:   520px;
}

.myspace-link {
  display:     inline-flex;
  align-items: center;
  gap:         0.3rem;
  font-size:   0.8125rem;
  font-weight: 500;
  color:       var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   EXPERIENCE
   ----------------------------------------------------------------------------- */

.timeline {
  display:        flex;
  flex-direction: column;
  gap:            2.25rem;
  max-width:      var(--prose-max);
}

.timeline-item {
  display:               grid;
  grid-template-columns: 172px 1fr;
  gap:                   1rem;
}

.timeline-meta {
  display:        flex;
  flex-direction: column;
  gap:            0.15rem;
  padding-top:    0.15rem;
}

.timeline-period {
  font-size:            0.8125rem;
  color:                var(--text-muted);
  font-variant-numeric: tabular-nums;
  line-height:          1.4;
}

.timeline-location { font-size: 0.75rem; color: var(--text-faint); }

.timeline-role {
  font-size:     0.9375rem;
  font-weight:   600;
  color:         var(--text);
  margin-bottom: 0.3rem;
  line-height:   1.4;
}
.timeline-company { font-weight: 400; color: var(--text-muted); }

.timeline-desc {
  font-size:   0.9rem;
  color:       var(--text-muted);
  line-height: var(--body-lh);
}

/* -----------------------------------------------------------------------------
   AI USAGE — horizontal card grid
   ----------------------------------------------------------------------------- */

.ai-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1px;
  background:            var(--border);
  border:                1px solid var(--border);
  border-radius:         8px;
  overflow:              hidden;
}

.ai-card {
  display:        flex;
  flex-direction: column;
  gap:            0.625rem;
  padding:        1.375rem 1.25rem;
  background:     var(--bg);
}
.ai-card:nth-child(n+4) { background: var(--surface); }

.ai-area {
  font-size:      0.6875rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--accent);
}

.ai-desc {
  font-size:   0.875rem;
  color:       var(--text-muted);
  line-height: 1.65;
}

/* -----------------------------------------------------------------------------
   TOOLKIT — 2×2 category grid with icons
   ----------------------------------------------------------------------------- */

.toolkit-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   2.5rem 4rem;
}

.toolkit-cat-header {
  display:       flex;
  align-items:   center;
  gap:           0.625rem;
  margin-bottom: 1rem;
}

.toolkit-cat-icon {
  width:         32px;
  height:        32px;
  border-radius: 8px;
  border:        1px solid var(--border);
  background:    var(--bg);
  display:       flex;
  align-items:   center;
  justify-content: center;
  color:         var(--text-muted);
  flex-shrink:   0;
}

.toolkit-cat-name {
  font-size:   1rem;
  font-weight: 600;
  color:       var(--text);
}

.toolkit-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.pill {
  display:       inline-block;
  padding:       0.3rem 0.875rem;
  border:        1px solid var(--border);
  border-radius: 100px;
  font-size:     0.8125rem;
  color:         var(--text-muted);
  background:    var(--bg);
  white-space:   nowrap;
  transition:    border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--text-muted); color: var(--text); }

/* -----------------------------------------------------------------------------
   CONTACT
   ----------------------------------------------------------------------------- */

.contact-links {
  display:        flex;
  flex-direction: column;
  gap:            0.625rem;
}

.contact-link {
  font-size:      var(--body-size);
  color:          var(--accent);
  display:        inline-block;
  width:          fit-content;
  border-bottom:  1px solid transparent;
  transition:     border-color 0.2s;
}
.contact-link:hover { border-color: var(--accent); }

.contact-meta {
  font-size:  0.9rem;
  color:      var(--text-muted);
  margin-top: 0.5rem;
}

/* -----------------------------------------------------------------------------
   CASE STUDY DETAIL PAGE
   ----------------------------------------------------------------------------- */

.cs-detail {
  max-width: var(--width);
  margin:    0 auto;
  padding:   4.5rem var(--gutter) 3rem;
  width:     100%;
}

.cs-detail-header {
  padding-bottom: 2.75rem;
  margin-bottom:  3rem;
  border-bottom:  1px solid var(--border);
  max-width:      var(--prose-max);
}

.cs-detail-tag {
  display:        block;
  font-size:      0.6875rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  1rem;
}

.cs-detail-title {
  font-size:      clamp(1.5rem, 3vw, 2.25rem);
  font-weight:    700;
  letter-spacing: -0.025em;
  line-height:    1.2;
  color:          var(--text);
}

.cs-sections {
  display:        flex;
  flex-direction: column;
  gap:            2.75rem;
  margin-bottom:  4rem;
  max-width:      var(--prose-max);
}

.cs-section-heading {
  font-size:      0.6875rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  0.875rem;
}

.cs-section-body {
  font-size:   var(--body-size);
  color:       var(--text);
  line-height: var(--body-lh);
}
.cs-section-body p            { margin-bottom: 1rem; }
.cs-section-body p:last-child { margin-bottom: 0; }
.cs-section-body ul           { margin-bottom: 1rem; }

/* Prev / next */
.cs-nav {
  display:         flex;
  justify-content: space-between;
  align-items:     flex-start;
  padding-top:     2.5rem;
  border-top:      1px solid var(--border);
  gap:             2rem;
  max-width:       var(--prose-max);
}

.cs-nav-link {
  font-size:   0.875rem;
  color:       var(--text-muted);
  line-height: 1.5;
  max-width:   260px;
}
.cs-nav-link:hover { color: var(--accent); }

.cs-nav-link--next { text-align: right; margin-left: auto; }

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */

@media (max-width: 860px) {
  :root { --gutter: 1.5rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap:                   3rem;
  }

  .hero-icon-grid { grid-template-columns: repeat(4, 1fr); }

  .about-layout {
    grid-template-columns: 1fr;
    gap:                   2.5rem;
  }

  .toolkit-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  :root { --gutter: 1.25rem; }

  .nav-links { gap: 1.25rem; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding-top: 3.5rem; }

  .hero-name { font-size: clamp(2.5rem, 10vw, 4rem); }

  /* Icon grid: hide on small screens to keep hero clean */
  .hero-right { display: none; }

  /* Case study cards */
  .cs-card {
    grid-template-columns: 2rem 1fr;
    gap:                   0.75rem;
    padding:               1.125rem var(--gutter);
    margin:                0 calc(-1 * var(--gutter));
  }
  .cs-card-metric { display: none; }

  /* Timeline: single column */
  .timeline-item { grid-template-columns: 1fr; gap: 0.25rem; }

  /* AI grid: single column */
  .ai-grid { grid-template-columns: 1fr; }
  .ai-card:nth-child(n+4)    { background: var(--bg); }
  .ai-card:nth-child(even)   { background: var(--surface); }

  .section { padding: 4rem var(--gutter); }

  /* Case study detail */
  .cs-nav { flex-direction: column; gap: 1rem; }
  .cs-nav-link--next { text-align: left; margin-left: 0; }
}
