/* ============================================================
   AVANI SHITOLE — NEO-BRUTALIST PORTFOLIO STYLES
   ============================================================ */

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

:root {
  --bg: #e8edf5;
  --blue: #4361ee;
  --blue-dark: #2f4dd4;
  --black: #0d0d0d;
  --text: #1a1a2e;
  --text-muted: #555577;
  --card-bg: #ffffff;
  --border: #0d0d0d;        /* hard black borders — brutalist */
  --border-light: #d0d8f0;
  --shadow: 4px 4px 0px #0d0d0d;
  --shadow-lg: 6px 6px 0px #0d0d0d;
  --stripe: rgba(100, 120, 200, 0.06);
  --font-sans: ui-sans-serif, system-ui, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Fira Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    var(--stripe) 28px,
    var(--stripe) 29px
  );
  color: var(--text);
  min-height: 100vh;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: var(--bg);
  border-bottom: 2px solid var(--black);
}

.nav-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.1s;
}

.nav-links a:hover { color: var(--blue); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 48px 60px;
  max-width: 760px;
  margin: 0 auto;
  gap: 0;
}

.hero-text { width: 100%; }

/* Hero image — double square brutalist effect */
.hero-image-wrap {
  flex-shrink: 0;
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 36px;
}

.hero-image-shadow {
  position: absolute;
  inset: 0;
  background: var(--blue);
  border: 2.5px solid var(--blue);
  border-radius: 0;
  transform: translate(8px, 8px);
  z-index: 0;
}

.hero-face-tracker {
  position: relative;
  z-index: 1;
  width: 160px;
  height: 160px;
  border-radius: 0;
  overflow: hidden;
  border: 2.5px solid var(--black);
}

/* Override FaceTracker.css */
.hero-face-tracker.face-tracker {
  min-height: unset;
  background: #dde2ef;
  border-radius: 0;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* NEO-BRUTALIST NAME — thick offset text-shadow stack */
.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--text);
  text-shadow:
    2px 2px 0 var(--blue),
    4px 4px 0 var(--black);
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-intro {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

/* NEO-BRUTALIST BUTTONS */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  border: 2.5px solid var(--black);
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
  width: 100%;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--black);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-outline {
  background: var(--bg);
  color: var(--text);
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px;
}

.section-heading {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  text-shadow: 2px 2px 0 var(--black);
  margin-bottom: 4px;
}

.section-subheading {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.keyboard-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
  opacity: 0.7;
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 7px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--black);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--black);
  transition: transform 0.1s, box-shadow 0.1s;
}

.filter-tab:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--black);
}

.filter-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

.card {
  background: var(--card-bg);
  border: 2px solid var(--black);
  border-radius: 0;
  padding: 28px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.card.selected {
  background: #f0f3ff;
  border-color: var(--blue);
  box-shadow: 4px 4px 0 var(--blue);
}

.card:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 4px 4px 0 var(--blue);
}

.card-thumb {
  width: calc(100% + 56px);
  margin: -28px -28px 16px;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--black);
  background: var(--blue);
  flex-shrink: 0;
}

.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-title-row .card-title {
  margin-bottom: 0;
}

.card-arrow {
  font-size: 18px;
  font-weight: 900;
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1.2;
}

.card-clickable { cursor: pointer; }

.card-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 8px;
}

.card-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 0;
  border: 1.5px solid var(--black);
  color: var(--text);
  background: var(--bg);
}

/* ============================================================
   WRITING SECTION
   ============================================================ */
.writing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.writing-card {
  background: var(--card-bg);
  border: 2px solid var(--black);
  border-radius: 0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
  color: inherit;
}

.writing-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.writing-card-left { flex: 1; }

.writing-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.writing-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 6px;
}

.writing-excerpt {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.writing-arrow {
  font-size: 20px;
  font-weight: 900;
  color: var(--black);
  flex-shrink: 0;
}

/* ============================================================
   CONNECT SECTION
   ============================================================ */
.connect-section {
  text-align: center;
  padding: 80px 48px 100px;
  max-width: 760px;
  margin: 0 auto;
}

.connect-section .section-subheading { margin-bottom: 36px; }

.connect-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.connect-buttons .btn {
  width: auto;
  min-width: 160px;
}

/* ============================================================
   RESPONSIVE — DESKTOP (≥ 769px)
   ============================================================ */
@media (min-width: 769px) {
  .hero {
    flex-direction: row-reverse;
    align-items: center;
    text-align: left;
    max-width: 1100px;
    gap: 64px;
    padding: 120px 48px 80px;
  }
  .hero-image-wrap { margin: 0; flex-shrink: 0; }
  .hero-text { flex: 1; }
  .hero-intro { margin: 0 0 40px; }
  .hero-buttons { margin: 0; max-width: fit-content; flex-direction: row; }
  .hero-buttons .btn { width: auto; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 10px; }

  .hero { padding: 90px 24px 60px; }

  section { padding: 60px 24px; }
  .connect-section { padding: 60px 24px 80px; }

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

  .hero-image-wrap { width: 140px; height: 140px; }
  .hero-face-tracker { width: 140px; height: 140px; }

  .hero-buttons { max-width: 100%; }

  .connect-buttons .btn { min-width: 0; flex: 1; }
}
