/* ═══════════════════════════════════════════════════════════
   style.css — Mira Krishnaiah Portfolio
   Shared styles across all pages
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  --bg:        #f5f2ec;
  --bg2:       #edeae2;
  --ink:       #1a1814;
  --ink2:      #3d3a34;
  --ink3:      #7a756a;
  --ink4:      #b0aa9e;
  --rule:      #d4cfc6;
  --metal:     #8a9aaa;
  --metal2:    #c8d4dc;
  --sapphire:  #2455a4;
  --amber:     #c47c1a;
  --emerald:   #1a7a4a;
  --ruby:      #a42424;
  --accept:    #1a7a4a;
  --reject:    #a42424;
  --active:    #2455a4;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:        #141210;
  --bg2:       #1c1a17;
  --ink:       #f0ece4;
  --ink2:      #c8c4bc;
  --ink3:      #7a7570;
  --ink4:      #4a4640;
  --rule:      #2a2720;
  --metal:     #6a7a8a;
  --metal2:    #2a3540;
  --sapphire:  #4a7fd4;
  --amber:     #d4962a;
  --emerald:   #2a9a5a;
  --ruby:      #c43434;
}

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

html { font-size: 16px; }

/* ─────────────────────────────────────────────
   BODY + PAPER TEXTURE
───────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: transparent;
}

.nav-sig {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--ink3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
  cursor: none;
}
.nav-sig:hover { color: var(--sapphire); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--ink3);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .2s;
  cursor: none;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--sapphire);
  transition: width .25s ease;
}
.nav-link:hover { color: var(--sapphire); }
.nav-link:hover::after { width: 100%; }
.nav-link.active {
  color: var(--ink2);
}
.nav-link.active::after {
  width: 100%;
  background: var(--ink4);
}

/* theme toggle */
#theme-btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink3);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.7rem;
  cursor: none;
  transition: all .2s;
}
#theme-btn:hover {
  border-color: var(--ink3);
  color: var(--ink);
}

/* ─────────────────────────────────────────────
   CURSOR
───────────────────────────────────────────── */
#cur-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .15s;
}

#cur-ring {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 1px solid white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  background: white;
  opacity: 0.7;
  transition: width .2s, height .2s, opacity .2s;
}

#cur-dot.hover {
  width: 14px;
  height: 14px;
}

#cur-ring.hover {
  width: 44px;
  height: 44px;
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
