/* Kshitij Patil - portfolio */

:root {
  --paper: #f6f4ef;
  --white: #ffffff;
  --ink: #1b1d22;
  --ink-2: #4a4e57;
  --ink-3: #80848d;
  --line: #e2ded4;
  --orange: #e8590c;
  --orange-soft: #fdebdf;
  --navy: #14213d;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--ink);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0 0 14px;
}

/* ---------- top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
}

.logo span {
  color: var(--orange);
}

nav a {
  margin-left: 26px;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}

nav a:hover {
  color: var(--orange);
}

nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-cta {
  border: 1.5px solid var(--ink);
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--ink) !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.menu-btn {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 5px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 64px;
}

.kicker {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--orange);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 22px;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-main {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.btn-main:hover {
  background: #c94c09;
  border-color: #c94c09;
  color: #fff;
}

.hero-links a {
  margin-right: 20px;
  font-size: 15px;
  color: var(--ink-2);
}

.hero-links a:hover {
  color: var(--orange);
}

/* ground station sketch */

.gcs {
  margin: 0;
  background: var(--navy);
  border-radius: 12px;
  padding: 14px;
  color: #cfd6e4;
  box-shadow: 0 18px 40px -22px rgba(20, 33, 61, 0.6);
}

.gcs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #8f9bb3;
}

.gcs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.gcs-mode {
  margin-left: auto;
  color: #4ade80;
}

#gcs-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #0d1730;
}

.gcs-readouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.gcs-readouts div {
  background: #0d1730;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--mono);
}

.gcs-readouts span {
  display: block;
  font-size: 11px;
  color: #8f9bb3;
}

.gcs-readouts b {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

.gcs-readouts small {
  font-size: 11px;
  margin-left: 2px;
  color: #8f9bb3;
}

.gcs figcaption {
  font-size: 13px;
  color: #8f9bb3;
  margin-top: 10px;
  line-height: 1.5;
}

/* ---------- facts strip ---------- */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.facts-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.facts-inner div {
  padding: 22px 0 22px 20px;
  border-left: 1px solid var(--line);
}

.facts-inner div:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts-inner b {
  display: block;
  font-size: 20px;
}

.facts-inner span {
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- sections ---------- */

.section {
  padding-top: 84px;
  scroll-margin-top: 50px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 34px;
}

.num {
  font-family: var(--mono);
  color: var(--orange);
  font-size: 15px;
}

.section-head h2 {
  font-size: 32px;
  letter-spacing: -0.3px;
}

/* work */

.company {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.company-name h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.company-name p {
  color: var(--ink-3);
  font-size: 15px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline > li {
  position: relative;
  padding: 0 0 30px 28px;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--orange);
}

.timeline > li:first-child::before {
  background: var(--orange);
}

.tl-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}

.tl-body h4 {
  font-size: 19px;
  margin: 2px 0 8px;
}

.tl-body ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
}

.tl-body li {
  margin-bottom: 6px;
}

.note {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 22px 26px;
}

.note h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.note p {
  color: var(--ink-2);
  margin: 0;
}

/* projects */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.35);
}

.card-art {
  height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.art-carpool {
  background: #e7efe9;
}

.art-fitness {
  background: var(--orange-soft);
}

.phone {
  position: relative;
  width: 140px;
  height: 190px;
  background: var(--white);
  border: 6px solid var(--ink);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.map-road {
  position: absolute;
  background: #d5dbe3;
}

.r1 { left: 0; right: 0; top: 60px; height: 10px; }
.r2 { top: 0; bottom: 0; left: 70px; width: 10px; }
.r3 { left: -20px; width: 200px; top: 120px; height: 8px; transform: rotate(-25deg); }

.pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.pin-a { background: #2f9e44; left: 20px; top: 40px; }
.pin-b { background: var(--orange); left: 95px; top: 100px; }
.pin-c { background: #1c7ed6; left: 40px; top: 130px; }

.ring {
  width: 70px;
  height: 70px;
  margin: 22px auto 16px;
  border-radius: 50%;
  border: 9px solid var(--orange-soft);
  border-top-color: var(--orange);
  border-right-color: var(--orange);
}

.bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 60px;
}

.bars span {
  width: 11px;
  background: var(--orange);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

.card-body {
  padding: 22px 24px 24px;
}

.card-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--ink-2);
  font-size: 16px;
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  font-family: var(--mono);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.tags-strong li {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.more {
  margin-top: 26px;
}

.more a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

/* skills */

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.skill-group h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 12px;
}

/* education */

.edu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.edu-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
}

.edu-years {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--orange);
}

.edu-item h3 {
  font-size: 17px;
  margin: 6px 0 6px;
}

.edu-item p {
  font-size: 15px;
  color: var(--ink-3);
  margin: 0;
}

.offfield {
  margin-top: 26px;
  color: var(--ink-2);
}

/* contact */

.contact {
  margin-top: 96px;
  background: var(--ink);
  color: #e9e7e1;
  padding: 72px 0;
  scroll-margin-top: 50px;
}

.contact h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 14px;
}

.contact p {
  color: #b9bcc4;
  max-width: 600px;
}

.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 20px;
}

.contact-email {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  text-decoration-color: var(--orange);
  text-underline-offset: 6px;
  word-break: break-all;
}

.copy-btn {
  background: transparent;
  color: #fff;
  border: 1.5px solid #5b5f69;
  border-radius: 6px;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--orange);
}

.contact-links a {
  color: #fff;
  margin-right: 22px;
}

.contact-links a:hover {
  color: var(--orange);
}

footer {
  padding-top: 24px;
  padding-bottom: 30px;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- tablet ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .company {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .edu {
    grid-template-columns: 1fr;
  }
}

/* ---------- phone ---------- */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .menu-btn {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }

  nav.open {
    display: block;
  }

  nav a {
    display: block;
    margin: 0;
    padding: 10px 0;
  }

  .nav-cta {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 14px;
  }

  .gcs-readouts {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts-inner {
    grid-template-columns: 1fr;
  }

  .facts-inner div {
    padding: 14px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .facts-inner div:first-child {
    border-top: 0;
  }

  .section {
    padding-top: 64px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .cards,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 56px 0;
  }

  .contact h2 {
    font-size: 28px;
  }

  .contact-email {
    font-size: 21px;
  }
}

/* ---------- scroll flight ---------- */

body {
  position: relative;
}

.flight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 10;
  display: none;
}

.flight.on {
  display: block;
}

.flight-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route {
  fill: none;
  stroke: #c9c3b6;
  stroke-width: 2;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
}

.route-flown {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.pad circle {
  fill: none;
  stroke: #4ade80;
  stroke-width: 3;
  stroke-dasharray: 6 5;
}

.pad text {
  fill: #4ade80;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 20px;
}

.drone {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  will-change: transform;
  filter: drop-shadow(0 14px 10px rgba(20, 33, 61, 0.28));
}

.drone svg {
  display: block;
  overflow: visible;
}

.drone-arms line {
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
}

.prop-disc {
  fill: rgba(27, 29, 34, 0.08);
  stroke: rgba(27, 29, 34, 0.25);
  stroke-width: 1;
}

.prop rect {
  fill: rgba(27, 29, 34, 0.55);
}

.prop {
  transform-box: fill-box;
  transform-origin: center;
}

.prop.cw {
  animation: spin 0.18s linear infinite;
}

.prop.ccw {
  animation: spin 0.18s linear infinite reverse;
}

.hub {
  fill: var(--ink);
}

.body {
  fill: var(--orange);
  stroke: var(--ink);
  stroke-width: 3;
}

.body-top {
  fill: #fff;
  opacity: 0.35;
}

.led {
  fill: #4ade80;
}

/* over the dark contact section */
.drone.on-dark .drone-arms line,
.drone.on-dark .hub {
  stroke: #e9e7e1;
  fill: #e9e7e1;
}

.drone.on-dark .prop rect {
  fill: rgba(255, 255, 255, 0.7);
}

.drone.on-dark .prop-disc {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.3);
}

.drone.on-dark .body {
  stroke: #e9e7e1;
}

.pad.landed circle {
  stroke-dasharray: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }
}
