/* =========================================================================
   Vadodariya Nilesh Jayantibhai — Freelance Software Developer
   Dark workbench theme: fixed left rail, slate surfaces, amber accent.
   ========================================================================= */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  --bg:        #0b0d11;
  --surface:   #12151b;
  --surface-2: #181c24;
  --surface-3: #1f242d;
  --line:      #242a34;
  --line-2:    #323a46;

  --text:      #e9ecf1;
  --text-2:    #aeb6c2;
  --text-3:    #7b8491;

  --amber:     #f5a524;
  --amber-2:   #ffbe55;
  --amber-dim: rgba(245, 165, 36, .14);
  --mint:      #5fd3b0;

  --radius:    16px;
  --radius-sm: 10px;

  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail:   296px;
  --pad:    clamp(22px, 4.2vw, 68px);
  --block:  clamp(68px, 8vw, 118px);
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-2); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 5px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -64px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--amber);
  color: #0b0d11;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: top .18s ease;
}
.skip-link:focus { top: 14px; color: #0b0d11; }

/* Small mono label used throughout */
.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ----- Shell: rail + content ------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}

/* ----- Left rail -------------------------------------------------------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 34px 28px 28px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
}
.rail-brand:hover { color: var(--text); }

.mono-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--amber);
  color: #0b0d11;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rail-name {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.rail-role {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}

.rail-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 38px;
}

.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  transition: background .18s ease, color .18s ease;
}
.rail-nav a:hover { background: var(--surface-2); color: var(--text); }
.rail-nav i {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.rail-nav a:hover i { color: var(--amber); }

.rail-cta { margin-top: 26px; }
.rail-cta .btn { width: 100%; }

.rail-foot {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.rail-foot .tag { display: block; margin-bottom: 7px; }
.rail-foot a,
.rail-foot p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  word-break: break-word;
}
.rail-foot a { display: block; color: var(--amber); }
.rail-foot > *:last-child { margin-bottom: 0; }

/* On desktop this is just the brand row; on mobile it becomes the top bar. */
.rail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.burger { display: none; }

/* ----- Content column --------------------------------------------------- */
.content { min-width: 0; }

.wrap { padding: 0 var(--pad); }

.block { padding: var(--block) 0; border-bottom: 1px solid var(--line); }

.block-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2.6vw, 34px);
  margin-bottom: clamp(34px, 4.6vw, 54px);
}
.block-no {
  flex: none;
  padding-top: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.block-title { font-size: clamp(28px, 4vw, 42px); }
.block-sub {
  margin: 14px 0 0;
  font-size: 16.5px;
  color: var(--text-2);
  max-width: 44rem;
}

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .14s ease;
}
.btn:active { transform: translateY(1px); }

.btn-amber { background: var(--amber); color: #0b0d11; }
.btn-amber:hover { background: var(--amber-2); color: #0b0d11; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-outline:hover { color: var(--text); border-color: var(--text-3); background: var(--surface-2); }

.btn-block { width: 100%; padding: 15px 24px; }

/* ----- Hero ------------------------------------------------------------- */
.hero { padding: clamp(56px, 7vw, 104px) 0 var(--block); border-bottom: 1px solid var(--line); }

.live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 11px;
  background: var(--amber-dim);
  border: 1px solid rgba(245, 165, 36, .3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-2);
}
.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, .2);
}

.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(36px, 6.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 17ch;
}
.hero h1 span {
  color: var(--amber);
  /* A hand-drawn underline reads better than a solid highlight here. */
  background: linear-gradient(transparent 76%, rgba(245, 165, 36, .26) 76%);
}

.hero-lead {
  margin: 28px 0 0;
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: var(--text-2);
  max-width: 46ch;
}
.hero-lead strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Bento stat grid */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: clamp(44px, 5.5vw, 68px);
}

.cell {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, background .2s ease;
}
.cell:hover { border-color: var(--line-2); background: var(--surface-2); }
.cell .tag { display: block; margin-bottom: 12px; }
.cell b {
  display: block;
  font-family: var(--sans);
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.cell small {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--text-3);
}
.cell-amber { background: var(--amber-dim); border-color: rgba(245, 165, 36, .26); }
.cell-amber:hover { background: rgba(245, 165, 36, .18); border-color: rgba(245, 165, 36, .4); }
.cell-amber b { color: var(--amber-2); }

/* Stack strip */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.strip span {
  padding: 6px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}

/* ----- About ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.copy p { margin: 0 0 20px; color: var(--text-2); font-size: 16.5px; }
.copy p:last-child { margin-bottom: 0; }
.copy strong { color: var(--text); font-weight: 600; }
.copy .first {
  font-family: var(--sans);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 26px;
}

.steps {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps h3 { font-size: 18px; margin-bottom: 20px; }
.steps li {
  position: relative;
  padding: 0 0 18px 34px;
  font-size: 14.8px;
  color: var(--text-2);
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: attr(data-n);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
}
/* Connector line between the step numbers */
.steps li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }

/* ----- Services --------------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.svc:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-3px); }
.svc:hover::before { transform: scaleX(1); }

.svc-no {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 16px;
}
.svc h3 { font-size: 20px; margin-bottom: 12px; }
.svc p { margin: 0; font-size: 15px; color: var(--text-2); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.chips span {
  padding: 4px 11px;
  background: var(--surface-3);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

/* Wide first card on roomy screens */
@media (min-width: 900px) {
  .svc-grid { grid-template-columns: repeat(6, 1fr); }
  .svc { grid-column: span 2; }
  .svc:nth-child(1) { grid-column: span 3; }
  .svc:nth-child(2) { grid-column: span 3; }
}

/* ----- Skills — dotted-leader rows ------------------------------------- */
.skill-rows { border-top: 1px solid var(--line); }

.skill-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 36px);
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.skill-row:hover { background: var(--surface); }

.skill-k {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.skill-k svg { color: var(--amber); flex: none; }

.skill-v { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-v span {
  padding: 5px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ----- Contact ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.mail-cta {
  display: block;
  padding: 26px;
  background: var(--amber-dim);
  border: 1px solid rgba(245, 165, 36, .3);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: background .2s ease, border-color .2s ease;
}
.mail-cta:hover { background: rgba(245, 165, 36, .19); border-color: rgba(245, 165, 36, .48); }
.mail-cta .tag { display: block; margin-bottom: 10px; color: var(--amber-2); }
.mail-cta b {
  display: block;
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  word-break: break-word;
}

.info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 24px;
}
.info-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .tag { display: block; margin-bottom: 8px; }
.info-row p,
.info-row address {
  margin: 0;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}
.info-row .mono { font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; }

/* Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.2vw, 36px);
}
.form-card h3 { font-size: 21px; margin-bottom: 7px; }
.form-card > .form-sub {
  margin: 0 0 26px;
  font-size: 14.5px;
  color: var(--text-3);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.6;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { min-height: 134px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface-2);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, .14);
}

.note {
  margin: 0 0 18px;
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--text-3);
}
.status {
  margin: 14px 0 0;
  font-size: 13.8px;
  font-weight: 500;
  color: var(--mint);
}
.status:empty { margin: 0; }

/* ----- Footer ----------------------------------------------------------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 30px 0 36px;
  font-size: 13.5px;
  color: var(--text-3);
}
.foot p { margin: 0; }
.foot ul { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: var(--text-3); }
.foot a:hover { color: var(--text); }

/* ----- Legal pages ------------------------------------------------------ */
.legal { padding: clamp(40px, 5vw, 70px) 0 clamp(56px, 7vw, 90px); }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.back:hover { color: var(--amber); }

.legal-head {
  max-width: 44rem;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.legal-head h1 { font-size: clamp(30px, 5vw, 48px); }
.legal-head .tag { display: block; margin-top: 16px; }

.legal-body { max-width: 44rem; }
.legal-body h2 {
  margin: 44px 0 14px;
  font-size: clamp(20px, 2.4vw, 25px);
}
.legal-body > h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 16px; color: var(--text-2); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body ul {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal-body ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .78em;
  width: 8px;
  height: 1.5px;
  background: var(--amber);
}
.legal-body address {
  margin: 22px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
}

/* ----- Reveal ----------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
}
.js .reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
  .about-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 920px) {
  :root { --rail: 0px; }

  .layout { grid-template-columns: minmax(0, 1fr); }

  /* The rail folds up into a sticky top bar with a drop-down panel. */
  .rail {
    height: auto;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(18, 21, 27, .94);
    backdrop-filter: blur(12px);
  }

  .rail-bar { padding: 14px var(--pad); }

  .mono-badge { width: 40px; height: 40px; border-radius: 11px; font-size: 15px; }
  .rail-name { font-size: 14px; }

  .burger {
    display: block;
    flex: none;
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    cursor: pointer;
  }
  .burger span {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 1.6px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { top: 20px; }
  .burger span:nth-child(3) { top: 26px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .rail-body {
    display: none;
    margin-top: 0;
    padding: 6px var(--pad) 24px;
    border-top: 1px solid var(--line);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .rail.open .rail-body { display: flex; }

  .rail-nav { margin-top: 12px; }
  .rail-foot { margin-top: 24px; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .block-head { flex-direction: column; gap: 10px; }
  .block-no { padding-top: 0; }
  .skill-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .foot { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1 1 auto; }
}
