/* Shared styles for sohanmaheshwar.com — extracted from per-page CSS. */

:root {
      --bg: #0c0c10;
      --surface: #141419;
      --surface-2: #1c1c23;
      --border: #252530;
      --border-hover: #3a3a4a;
      --text: #e4ddd0;
      --text-2: #8e8aa0;
      --text-3: #4e4a60;
      --amber: #f5a623;
      --amber-dim: rgba(245, 166, 35, 0.1);
      --amber-glow: rgba(245, 166, 35, 0.05);
      --font-display: 'Fraunces', Georgia, serif;
      --font-body: 'DM Sans', system-ui, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --r: 6px;
      --ease: cubic-bezier(0.4, 0, 0.2, 1);
    }

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

html { scroll-behavior: smooth; }

body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--text);
      line-height: 1.65;
      overflow-x: hidden;
    }

body::after {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 9999;
    }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 500;
      padding: 1.1rem 0;
      background: rgba(12, 12, 16, 0.88);
      backdrop-filter: blur(24px);
      border-bottom: 1px solid var(--border);
    }

.nav-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

.nav-logo {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text);
      text-decoration: none;
      letter-spacing: -0.02em;
    }

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

.nav-links {
      display: flex;
      list-style: none;
      gap: 0.2rem;
      align-items: center;
    }

.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-links a.active {
      color: var(--amber);
      background: var(--amber-dim);
    }

.nav-links a.active::before { content: '> '; }

.nav-mobile-btn {
      display: none;
      background: none;
      border: 1px solid var(--border);
      color: var(--text-2);
      padding: 0.35rem 0.75rem;
      border-radius: var(--r);
      font-family: var(--font-mono);
      font-size: 0.75rem;
      cursor: pointer;
    }

.footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 3rem;
      margin-bottom: 3rem;
    }

.footer-brand {
      font-family: var(--font-display);
      font-size: 1.375rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text);
      margin-bottom: 0.75rem;
    }

.footer-tagline {
      font-size: 0.875rem;
      color: var(--text-2);
      line-height: 1.7;
      margin-bottom: 1.5rem;
      max-width: 300px;
    }

.footer-social {
      display: flex;
      gap: 0.5rem;
    }

.footer-social a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border: 1px solid var(--border);
      border-radius: var(--r);
      color: var(--text-2);
      text-decoration: none;
      transition: all 0.2s var(--ease);
    }

.footer-social a:hover {
      border-color: var(--amber);
      color: var(--amber);
      background: var(--amber-dim);
    }

.footer-col h4 {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--amber);
      margin-bottom: 1.25rem;
    }

.footer-col a {
      display: block;
      font-size: 0.875rem;
      color: var(--text-2);
      text-decoration: none;
      margin-bottom: 0.5rem;
      transition: color 0.2s var(--ease);
    }

.footer-col a:hover { color: var(--text); }

.footer-col p {
      font-size: 0.875rem;
      color: var(--text-3);
      line-height: 1.65;
    }

.footer-bottom {
      border-top: 1px solid var(--border);
      padding-top: 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

.footer-copy {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--text-3);
    }

.nav-links a {
      font-family: var(--font-mono);
      font-size: 0.8rem;
      color: var(--text-2);
      text-decoration: none;
      padding: 0.4rem 0.85rem;
      border-radius: 20px;
      transition: color 0.2s var(--ease), background 0.2s var(--ease);
    }

.page-hero {
      padding: 8rem 0 4rem;
      position: relative;
      overflow: hidden;
    }

.page-hero::before {
      content: '';
      position: absolute;
      top: 0; right: 0;
      width: 500px;
      height: 400px;
      background: radial-gradient(ellipse at top right, rgba(245, 166, 35, 0.08) 0%, transparent 65%);
      pointer-events: none;
    }

.page-hero-inner { position: relative; z-index: 2; }

.page-hero-label {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--amber);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

.page-hero-label::before {
      content: '';
      display: block;
      width: 2rem;
      height: 1px;
      background: var(--amber);
    }

.page-hero h1 {
      font-family: var(--font-display);
      font-size: clamp(2.5rem, 5vw, 4rem);
      font-weight: 900;
      letter-spacing: -0.03em;
      color: var(--text);
      margin-bottom: 1rem;
    }

.page-hero p {
      font-size: 1.05rem;
      color: var(--text-2);
      max-width: 540px;
      line-height: 1.75;
    }

.filter-btn {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      letter-spacing: 0.06em;
      padding: 0.4rem 1rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      color: var(--text-2);
      cursor: pointer;
      transition: all 0.2s var(--ease);
    }

.filter-btn:hover { color: var(--text); border-color: var(--border-hover); }

.filter-btn.active {
      background: var(--amber-dim);
      border-color: var(--amber);
      color: var(--amber);
    }

.content { padding: 0 0 6rem; }

.content-border { border-top: 1px solid var(--border); padding-top: 3rem; }

.footer {
      border-top: 1px solid var(--border);
      padding: 4rem 0 2rem;
    }

@media (max-width: 600px) {
      .nav-links { display: none; }
      .nav-mobile-btn { display: block; }
      .footer-grid { grid-template-columns: 1fr; }
    }

.featured-label {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--amber);
      margin-bottom: 0.875rem;
    }

.featured-link {
      font-family: var(--font-mono);
      font-size: 0.78rem;
      color: var(--amber);
      letter-spacing: 0.06em;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: gap 0.2s var(--ease);
    }

.filter-bar {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-bottom: 2rem;
    }

.card-brand {
      position: absolute;
      top: 1.5rem; right: 1.5rem;
      display: flex; align-items: center; justify-content: center;
      color: var(--text-3);
      transition: color 0.2s var(--ease);
      pointer-events: none;
      z-index: 2;
    }

.card-brand svg { width: 30px; height: 26px; display: block; fill: currentColor; }

.card-brand .mono-tile {
      width: 30px; height: 30px;
      border: 1px solid var(--border);
      border-radius: var(--r);
      background: var(--surface-2);
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-mono);
      font-size: 0.72rem; font-weight: 500; letter-spacing: 0.01em;
      color: var(--text-2);
      transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
    }

.card-brand--lg { top: 2.25rem; right: 2.25rem; }

.card-brand--lg svg { width: 42px; height: 34px; }

.featured-label { padding-right: 4rem; }

.project-card::after {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 3px;
      background: var(--amber);
      transform: scaleY(0);
      transform-origin: bottom;
      transition: transform 0.25s var(--ease);
    }

.project-card:hover::after { transform: scaleY(1); }

.project-card:hover .project-link { gap: 0.7rem; }

/* ---- Mobile navigation (menu button now functional) ---- */
@media (max-width: 600px) {
  .nav-mobile-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 2rem 1.25rem;
    background: rgba(12, 12, 16, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a { width: 100%; padding: 0.75rem 0; font-size: 0.95rem; border-radius: 0; }
}

/* ---- Respect reduced-motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
