/* Nidhika Loomba — Data & Analytics Consultant
   Plain CSS, no build step required. */

:root {
  --background: #fafafb;
  --foreground: #1b2033;
  --card: #ffffff;
  --primary: #23304f;
  --primary-foreground: #fafafb;
  --muted-foreground: #6b7280;
  --accent: #eef0f5;
  --border: #e4e6ec;
  --radius: 0.375rem;
  --font-display: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 72rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 600; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-foreground);
}
.muted { color: var(--muted-foreground); }
.section { border-bottom: 1px solid var(--border); }
.section-pad { padding-top: 6rem; padding-bottom: 6rem; }
.icon { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 0.875rem; height: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 251, 0.85);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  height: 2.25rem; width: 2.25rem; border-radius: var(--radius);
  background: var(--primary); color: var(--primary-foreground);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-role { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.site-nav { display: none; align-items: center; gap: 2rem; font-size: 0.875rem; color: var(--muted-foreground); }
.site-nav a:hover { color: var(--foreground); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: var(--radius); padding: 0.75rem 1.25rem;
  font-size: 0.875rem; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s, opacity 0.15s, color 0.15s;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { border-color: var(--border); background: var(--card); }
.btn-outline:hover { background: var(--accent); }
.btn-ghost { color: var(--muted-foreground); padding: 0.75rem 0.5rem; }
.btn-ghost:hover { color: var(--foreground); }
.btn-sm { padding: 0.5rem 0.875rem; }

/* ---------- Hero ---------- */
.hero { padding-top: 5rem; padding-bottom: 5rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; padding: 0.375rem 0.75rem;
  font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 2.5rem;
}
.dot { height: 0.375rem; width: 0.375rem; border-radius: 999px; background: #10b981; }
.hero h1 { max-width: 60rem; font-size: 2.25rem; line-height: 1.08; }
.hero-lead { margin-top: 2rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Metrics ---------- */
.metrics { background: var(--card); border-bottom: 1px solid var(--border); }
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.metric { padding: 2.5rem 1.5rem; border-left: 1px solid var(--border); transition: background 0.15s; }
.metric:first-child { border-left: 0; }
.metric:nth-child(3) { border-left: 0; }
.metric:hover { background: var(--background); }
.metric-value { font-family: var(--font-display); font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; color: var(--muted-foreground); }
.metric:hover .metric-value { color: var(--primary); }
.metric-label { margin-top: 0.5rem; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 4rem; }
.about-copy p { color: var(--muted-foreground); line-height: 1.75; }
.about-copy p + p { margin-top: 1.25rem; }
.portrait {
  display: none; margin-top: 2.5rem; aspect-ratio: 4 / 5; max-width: 24rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(to bottom right, var(--accent), var(--card));
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.portrait-mark {
  display: flex; align-items: center; justify-content: center;
  height: 5rem; width: 5rem; border-radius: var(--radius);
  background: var(--primary); color: var(--primary-foreground);
  font-size: 1.125rem; font-weight: 600; letter-spacing: 0.1em;
}

h2.section-title { margin-top: 0.75rem; font-size: 1.875rem; }

/* ---------- Services ---------- */
.services { background: var(--card); }
.services-head {
  display: flex; flex-direction: column; gap: 2rem;
  border-bottom: 1px solid var(--border); padding-bottom: 2rem; margin-bottom: 4rem;
}
.services-head p { margin-top: 1.25rem; max-width: 42rem; color: var(--muted-foreground); line-height: 1.7; }
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.service { background: var(--card); padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem; transition: background 0.15s; }
.service:hover { background: var(--background); }
.service-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 0.75rem; }
.service:hover .service-top .icon { color: var(--primary); }
.service h3 { font-size: 1.125rem; margin-top: 0.5rem; }
.service p { font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }

/* ---------- Tools ---------- */
.tools-grid { display: grid; gap: 4rem; }
.tools-intro p { margin-top: 1.25rem; color: var(--muted-foreground); line-height: 1.7; }
.tool-list { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tool-row { display: grid; grid-template-columns: 1fr; gap: 0.75rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.tool-row:last-child { border-bottom: 0; }
.tool-row dt { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.tool-row dd { font-size: 0.875rem; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact { background: var(--primary); color: var(--primary-foreground); }
.contact-grid { display: grid; gap: 4rem; }
.contact h2 { margin-top: 1rem; font-size: 1.875rem; }
.contact-lead { margin-top: 1.5rem; max-width: 36rem; line-height: 1.7; opacity: 0.8; }
.contact .eyebrow { color: inherit; opacity: 0.6; }
.contact-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-on-dark { border-color: rgba(250, 250, 251, 0.3); background: transparent; color: inherit; }
.btn-on-dark:hover { background: rgba(250, 250, 251, 0.1); }
.contact-form {
  border: 1px solid rgba(250, 250, 251, 0.15);
  background: rgba(250, 250, 251, 0.05);
  border-radius: var(--radius); padding: 2rem;
}
.contact-form h3 { font-size: 1.125rem; }
.contact-form > p { margin-top: 0.5rem; font-size: 0.875rem; opacity: 0.7; }
.field { margin-top: 1rem; }
.field label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.field input, .field textarea {
  margin-top: 0.375rem; width: 100%; font: inherit; font-size: 0.875rem; color: inherit;
  background: transparent; border: 1px solid rgba(250, 250, 251, 0.2);
  border-radius: var(--radius); padding: 0.625rem 0.875rem; resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(250, 250, 251, 0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(250, 250, 251, 0.6); }
.btn-submit {
  margin-top: 1.5rem; width: 100%; justify-content: center;
  background: var(--primary-foreground); color: var(--primary);
}
.btn-submit:hover { opacity: 0.9; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--background); }
.footer-inner {
  display: flex; flex-direction: column; gap: 1rem;
  padding-top: 2.5rem; padding-bottom: 2.5rem;
  font-size: 0.75rem; color: var(--muted-foreground);
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .metric:nth-child(3) { border-left: 1px solid var(--border); }
  .site-nav { display: flex; }
  .section-pad { padding-top: 8rem; padding-bottom: 8rem; }
  .hero { padding-top: 8rem; padding-bottom: 8rem; }
  .hero h1 { font-size: 3.75rem; }
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid, .tools-grid, .contact-grid { grid-template-columns: repeat(12, 1fr); }
  .about-left, .tools-intro { grid-column: span 5; }
  .about-copy, .tools-body { grid-column: span 7; }
  .contact-left, .contact-right { grid-column: span 6; }
  .portrait { display: block; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .tool-row { grid-template-columns: 200px 1fr; gap: 2rem; }
  h2.section-title { font-size: 2.25rem; }
  .contact h2 { font-size: 3rem; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .metric-value { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4.25rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
