/* Jitendra Chandarana — personal site */

:root {
  --ink: #0e2a4a;
  --navy: #1a4f8c;
  --steel: #4d6a8a;
  --mist: #c5d8ec;
  --paper: #f5f9fc;
  --white: #ffffff;
  --gold: #b0892e;
  --gold-soft: #d4b45a;
  --accent: #1e7ab8;
  --line: rgba(26, 79, 140, 0.14);
  --shadow: 0 24px 60px rgba(14, 42, 74, 0.16);
  --radius: 2px;
  --font-display: "Newsreader", "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Atmosphere */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(30, 122, 184, 0.16), transparent 58%),
    radial-gradient(900px 520px at 100% 30%, rgba(176, 137, 46, 0.1), transparent 55%),
    linear-gradient(180deg, #e7f1f9 0%, var(--paper) 40%, #eef6fb 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(245, 249, 252, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(30, 122, 184, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin: 0.28rem auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero — first viewport as one composition */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  animation: rise 0.9s ease both;
}

.hero-brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-title {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: var(--navy);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 34ch;
  color: var(--steel);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 55% at 45% 78%, rgba(30, 122, 184, 0.2), transparent 70%),
    linear-gradient(180deg, transparent 30%, rgba(26, 79, 140, 0.07) 100%);
  animation: fade 1.1s ease 0.15s both;
}

.hero-visual img {
  width: min(100%, 520px);
  height: auto;
  max-height: calc(100svh - var(--header-h));
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 40px rgba(14, 42, 74, 0.22));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(26, 79, 140, 0.3);
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(30, 122, 184, 0.08);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.section-lead {
  margin: 0 0 2.5rem;
  max-width: 52ch;
  color: var(--steel);
}

.section-head {
  margin-bottom: 2.25rem;
}

/* Ventures */
.ventures {
  background: linear-gradient(180deg, transparent, rgba(30, 122, 184, 0.05));
  border-top: 1px solid var(--line);
}

.venture-list {
  display: grid;
  gap: 1rem;
}

.venture {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.venture:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 122, 184, 0.4);
  box-shadow: var(--shadow);
}

.venture-logo {
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 50%;
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}

.venture-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.venture-copy h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.venture-copy p {
  margin: 0;
  color: var(--steel);
  font-size: 0.98rem;
}

.venture-arrow {
  color: var(--gold);
  font-size: 1.35rem;
  transition: transform 0.3s ease;
}

.venture:hover .venture-arrow {
  transform: translateX(4px);
}

/* Highlights strip */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.5rem;
}

.highlight {
  padding: 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.78);
}

.highlight strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.highlight span {
  color: var(--steel);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
  animation: rise 0.75s ease both;
}

.page-hero h1 {
  margin: 0.4rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
}

.page-hero p {
  margin: 0;
  max-width: 48ch;
  color: var(--steel);
}

/* About layout */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}

.about-portrait figure {
  margin: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.about-portrait img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 32px rgba(14, 42, 74, 0.18));
  transform: scale(1.01);
  transition: transform 1.2s ease;
}

.about-portrait:hover img {
  transform: scale(1.03);
}

.about-portrait figcaption {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--steel);
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
  color: #243b55;
}

.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: #243b55;
}

.prose li {
  margin-bottom: 0.45rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 1.35rem 1.35rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(154, 123, 60, 0.18);
}

.timeline strong {
  display: block;
  font-weight: 650;
  color: var(--ink);
}

.timeline span {
  color: var(--steel);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-meta {
  display: grid;
  gap: 1.25rem;
}

.meta-block h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.meta-block p,
.meta-block a {
  margin: 0;
  color: var(--steel);
}

.meta-block a:hover {
  color: var(--navy);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.social-row a {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.social-row a:hover {
  border-color: var(--accent);
  background: var(--white);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(30, 122, 184, 0.5);
  box-shadow: 0 0 0 3px rgba(30, 122, 184, 0.12);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--steel);
}

.form-status {
  display: none;
  margin: 0;
  padding: 0.85rem 1rem;
  background: rgba(30, 122, 184, 0.08);
  border-left: 3px solid var(--accent);
  color: var(--navy);
}

.form-status.is-visible {
  display: block;
  animation: rise 0.4s ease both;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(26, 79, 140, 0.06));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.footer-copy {
  margin: 0;
  color: var(--steel);
  max-width: 34ch;
  font-size: 0.95rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col a {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--steel);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--navy);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0;
  padding: 0.3rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-social a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(14, 42, 74, 0.12);
}

.footer-social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--steel);
  font-size: 0.88rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 52vh;
  }

  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    position: static;
    max-width: 360px;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .venture {
    grid-template-columns: auto 1fr;
  }

  .venture-arrow {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(245, 249, 252, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
