/* ==========================================================
   shinuharidass.com — portfolio styles
   Theme tokens live in :root. Change --accent to re-theme.
   ========================================================== */

:root {
  --bg: #0E141B;
  --surface: #151D26;
  --surface-2: #1C2631;
  --stat-bg: #121A23;
  --border: #26313D;
  --border-strong: #3A4757;
  --tag-border: #2E3A47;

  --text: #E9EEF2;
  --text-2: #D3DAE1;
  --text-muted: #B7C2CD;
  --text-faint: #9AA7B4;

  --accent: #F2A541;
  --on-accent: #1A1205;

  --live: #6EE7A0;
  --live-bg: rgba(74, 222, 128, 0.12);
  --beta: #93C5FD;
  --beta-bg: rgba(96, 165, 250, 0.14);
  --wip: #F6BE72;
  --wip-bg: rgba(242, 165, 65, 0.14);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 14px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

img { max-width: 100%; display: block; }

a { color: var(--text); }
a:hover { color: #fff; }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mono { font-family: var(--font-mono); font-size: 14px; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent) !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 20, 27, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--text-muted); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 44px; padding: 0 16px; }
.btn-block { width: 100%; justify-content: flex-start; min-height: 52px; padding: 0 18px; border-radius: 10px; }
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { background: #F6B65F; color: var(--on-accent); }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(242, 165, 65, 0.1); color: var(--accent); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-faint); }

/* ---------- Sections ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-num { font-family: var(--font-mono); font-size: 14px; color: var(--accent); margin-bottom: 8px; }
.section h2 {
  font-family: var(--font-display); font-size: 40px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 40px;
}
.section-intro { color: var(--text-muted); max-width: 640px; margin: -28px 0 40px; }

/* ---------- Hero ---------- */
.hero-band {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(242,165,65,0.10), transparent 70%),
    radial-gradient(700px 380px at 5% 90%, rgba(94,234,212,0.05), transparent 70%),
    linear-gradient(180deg, #111A23 0%, var(--bg) 100%);
}
.hero-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(233,238,242,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,238,242,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero-band > .hero { position: relative; }
.hero { padding-top: 96px; padding-bottom: 80px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 999 1 560px; min-width: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 14px; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 20px; }
.hero-title {
  font-family: var(--font-display); font-weight: 600; font-size: 64px;
  line-height: 1.08; letter-spacing: -0.02em; max-width: 900px;
}
.lead { margin-top: 28px; max-width: 680px; font-size: 19px; color: var(--text-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.availability { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 15px; color: var(--text-faint); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; flex: none; }

.headshot {
  flex: 1 1 240px; max-width: 300px; aspect-ratio: 1 / 1;
  border-radius: 20px; object-fit: cover;
  height: auto; border: 1px solid var(--border-strong);
}
.placeholder {
  background: var(--surface-2); border: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); text-align: center;
}

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin-top: 72px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.stat { background: var(--stat-bg); padding: 24px; }
.stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1.3; }
.stat-label { font-size: 14px; color: var(--text-faint); }

/* ---------- Project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s;
}
.card:hover { border-color: var(--border-strong); }
.card-img { height: 168px; width: 100%; border-radius: 10px; object-fit: cover; object-position: top center; border: 1px solid var(--border); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.card > p { color: var(--text-muted); font-size: 16px; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.badge-live { background: var(--live-bg); color: var(--live); }
.badge-beta { background: var(--beta-bg); color: var(--beta); }
.badge-wip { background: var(--wip-bg); color: var(--wip); }
.tags {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
}
.tags li { padding: 4px 8px; border: 1px solid var(--tag-border); border-radius: 6px; }
.card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; color: var(--accent); font-weight: 500; text-decoration: none;
}
.card-link:hover { color: #F6B65F; }
.card-note { margin-top: auto !important; min-height: 44px; display: flex; align-items: center; font-size: 15px; color: var(--text-faint) !important; }

/* ---------- Experience ---------- */
.job {
  display: flex; flex-wrap: wrap; gap: 32px; padding: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.job-meta { flex: 1 1 260px; min-width: 0; }
.job-meta h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 8px 0 4px; line-height: 1.3; }
.job-points {
  flex: 999 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 14px; color: var(--text-2); font-size: 16px;
}
.job-points li { position: relative; padding-left: 18px; }
.job-points li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}
.earlier { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.earlier-item { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.earlier-item h3 { font-size: 18px; font-weight: 600; margin: 6px 0 2px; }
.earlier-item .muted { font-size: 15px; margin-bottom: 10px; }
.earlier-item > p:last-child { color: var(--text-muted); font-size: 15px; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.skill-head { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--text-faint); margin-bottom: 12px; }
.skills p { color: var(--text-2); }

/* ---------- Contact ---------- */
#contact { padding-bottom: 96px; }
.contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
}
.contact-text { flex: 1 1 420px; min-width: 0; }
.contact-text h2 { margin-bottom: 12px; }
.contact-actions { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.social { display: flex; gap: 12px; }
.social .btn { flex: 1; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--text-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-title { font-size: 48px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 56px; }
  .hero-title { font-size: 38px; }
  .lead { font-size: 17px; }
  .section h2 { font-size: 32px; }
  .headshot { max-width: 200px; }
  .stat-num { font-size: 28px; }
  .job, .contact { padding: 24px; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================
   Hover & interaction polish
   ========================================================== */

/* Nav links: animated amber underline */
.nav-links a:not(.btn) {
  position: relative; padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { transform: scaleX(1); }
.nav-links a:not(.btn).active { color: var(--text); }

/* Brand mark: slight tilt */
.brand-mark { transition: transform .25s ease; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }

/* Buttons: lift + glow */
.btn {
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease,
              border-color .2s ease, color .2s ease;
}
.btn svg { transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { box-shadow: 0 8px 24px -8px rgba(242,165,65,0.55); }
.btn-outline:hover { box-shadow: 0 8px 24px -10px rgba(242,165,65,0.45); }
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(242,165,65,0.06);
}
a[download]:hover svg { transform: translateY(2px); }

/* Project cards: lift, glow, image zoom */
.card {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(242,165,65,0.45);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(242,165,65,0.08);
}
.card .card-img { transition: transform .4s ease; }
.card:hover .card-img { transform: scale(1.02); }
.card-link svg { transition: transform .2s ease; }
.card-link:hover svg { transform: translate(3px, -3px); }
.tags li { transition: border-color .2s ease, color .2s ease; }
.card:hover .tags li { border-color: #3A4757; color: var(--text-2); }

/* Experience & stat tiles */
.job, .earlier-item, .stat { transition: border-color .25s ease, background .25s ease; }
.earlier-item:hover { border-color: rgba(242,165,65,0.35); background: rgba(21,29,38,0.6); }
.stat:hover { background: #16202A; }

/* Headshot */
img.headshot { transition: transform .3s ease, box-shadow .3s ease; }
img.headshot:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -18px rgba(242,165,65,0.35); }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .card:hover, .card:hover .card-img, img.headshot:hover { transform: none; }
}
