/* ═══════════════════════════════════════════════════════════════
   SHAURYA — PORTFOLIO STYLES
   "A quiet offline computer archive."
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
canvas { display: block; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── VARIABLES ──────────────────────────────────────────────────── */
:root {
  --bg:       #f4f4f2;
  --bg-dark:  #0f0f0e;
  --card:     #ffffff;
  --card-dark:#181817;
  --text:     #111111;
  --text-inv: #eeeeec;
  --muted:    #888888;
  --border:   #dcdcda;
  --border-dark: #2a2a28;
  --hover:    #eaeae8;
  --accent:   #4a4a4a;

  --font-mono: 'Space Mono', 'IBM Plex Mono', monospace;
  --font-sans: 'IBM Plex Sans', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* ── BASE ───────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* ── CUSTOM CURSOR ──────────────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease), width 0.2s var(--ease), height 0.2s var(--ease);
  mix-blend-mode: difference;
}
.cursor-trail {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1px solid rgba(17,17,17,0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease);
}
body.cursor-hover .cursor {
  width: 16px; height: 16px;
}
body.cursor-hover .cursor-trail {
  width: 44px; height: 44px;
  border-color: rgba(17,17,17,0.15);
}
@media (hover: none) {
  .cursor, .cursor-trail { display: none; }
  body { cursor: auto; }
}

/* ── NOISE OVERLAY ──────────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── SCANLINES ──────────────────────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 8999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.012) 2px,
    rgba(0,0,0,0.012) 4px
  );
}

/* ── LOADER ─────────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease);
}
.loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.loader-dino {
  color: var(--text-inv);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.7;
}
.dino-char { display: block; }
.dino-legs { display: block; transition: letter-spacing 0.3s; }
.loader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.loader-label {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  position: relative;
}
.loader-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--text-inv);
  transition: width 0.1s linear;
}
.loader-percent {
  color: var(--text-inv);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

/* ── NAVIGATION ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 14px 40px;
  transition: background 0.3s, border-bottom 0.3s;
}
.nav.scrolled {
  background: rgba(244,244,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.nav-logo-bracket { color: var(--muted); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: attr(data-label);
  position: absolute;
  top: -12px;
  left: 0;
  font-size: 0.45rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { opacity: 1; }
.nav-terminal-btn {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  transition: all 0.2s;
}
.nav-terminal-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav { padding: 16px 20px; }
}

/* ── TERMINAL OVERLAY ───────────────────────────────────────────── */
.terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.terminal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.terminal-window {
  background: #0d0d0c;
  border: 1px solid #2a2a28;
  width: min(640px, 92vw);
  max-height: 420px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.terminal-overlay.open .terminal-window { transform: translateY(0); }
.terminal-header {
  background: #1a1a18;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2a28;
}
.terminal-title {
  color: #666664;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}
.terminal-close {
  color: #666664;
  font-size: 1rem;
  transition: color 0.2s;
}
.terminal-close:hover { color: #fff; }
.terminal-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.terminal-output { display: flex; flex-direction: column; gap: 4px; }
.terminal-line {
  color: #ccccca;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.terminal-line.muted { color: #555552; }
.terminal-line .cmd { color: #88bb88; }
.terminal-line.success { color: #88bb88; }
.terminal-line.error { color: #cc7766; }
.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.terminal-prompt {
  color: #88bb88;
  font-size: 0.7rem;
  white-space: nowrap;
}
.terminal-input {
  background: none;
  border: none;
  outline: none;
  color: #ccccca;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex: 1;
  caret-color: #88bb88;
}

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--muted);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3a3a3a;
  animation: pulse 2s infinite;
}
.status-dot--sm { width: 5px; height: 5px; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-dino {
  opacity: 0.12;
  user-select: none;
}
.dino-art {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  line-height: 1.2;
  color: var(--text);
  white-space: pre;
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--text);
}
.hero-subtitle {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.08em;
  color: var(--accent);
}
.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--text);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-desc {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-desc p {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.hero-prompt { margin-top: 8px; }
.hero-enter {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 20px;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.hero-enter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateX(-101%);
  transition: transform 0.25s var(--ease);
}
.hero-enter:hover::before { transform: translateX(0); }
.hero-enter:hover { color: var(--bg); }
.hero-enter:hover .enter-text,
.hero-enter:hover .enter-arrow { position: relative; z-index: 1; }
.enter-arrow { font-size: 1rem; transition: transform 0.2s; }
.hero-enter:hover .enter-arrow { transform: translateY(3px); }
.hero-coords {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  opacity: 0.6;
}
.coord-sep { color: var(--border); }
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 100%;
  background: var(--accent);
  animation: scrollDown 1.5s ease infinite;
}
@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}
.scroll-label {
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  color: var(--muted);
}

/* ── FADE-IN ANIMATIONS ─────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s var(--ease) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL REVEAL ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }

/* ── SECTIONS ───────────────────────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
}
.section-dark {
  background: var(--bg-dark);
  color: var(--text-inv);
}
.section-dark .muted-text { color: #555552; }
.section-dark .section-num { color: #3a3a38; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-header {
  margin-bottom: 60px;
}
.section-header--center { text-align: center; }
.section-num {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.section-desc {
  margin-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.muted-text { color: var(--muted); }

/* ── ABOUT ──────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-lead {
  font-size: 1.32rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text);
}
.about-text p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--accent);
}
.about-meta {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 4px;
}
.meta-block {}

.meta-label {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meta-list li {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--accent);
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}


/* ── ABOUT IMAGE ───────────────────────────────────────── */

.about-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}


.about-image-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;

  transform: translateY(-40px);
}


.about-photo {
  width: 100%;
  display: block;
  object-fit: cover;

  filter:
    grayscale(100%)
    contrast(1.05)
    brightness(0.92);

  transition:
    transform 0.6s var(--ease),
    filter 0.6s var(--ease);
}

/* subtle noise overlay */
.about-image-overlay {
  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 3px
    );

  mix-blend-mode: soft-light;
  pointer-events: none;
  opacity: 0.4;
}

/* bottom status strip */
.about-image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 16px;

  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(6px);

  color: #d8d8d8;

  font-size: 0.65rem;
  letter-spacing: 0.18em;

  border-top: 1px solid rgba(255,255,255,0.08);
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #888;

  animation: pulse 2s infinite;
}

/* hover effect */
.about-image-wrap:hover .about-photo {
  transform: scale(1.03);

  filter:
    grayscale(100%)
    contrast(1.12)
    brightness(0.98);
}

/* mobile */
@media (max-width: 768px) {
  .about-image {
    justify-content: flex-start;
  }

  .about-image-wrap {
    max-width: 100%;
  }
}


/* ── PROJECTS ───────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
}

.project-card {
  background: #161615;

  position: relative;
  overflow: hidden;
  min-height: 470px;

  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);

  border: 1px solid transparent;
}


.project-link-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card {
  min-height: 470px;
}


.card-arrow {
  text-decoration: none;
}


.project-card--wide {
  grid-column: span 1;
}
.project-card:hover { background: #1e1e1c; }
.card-inner {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.project-num {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: #3a3a38;
  font-weight: 700;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.tag {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: #555552;
  border: 1px solid #2a2a28;
  padding: 2px 7px;
}

.project-card:hover {
  background: #20201f;

  transform: translateY(-6px);

  border-color: rgba(255,255,255,0.08);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.03);
}



.project-name {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}


.project-desc {
  font-family: var(--font-sans);

  font-size: 0.84rem;

  color: #a1a19d;

  line-height: 1.8;

  flex: 1;
}


.project-card:hover .project-desc { color: #d4d4cf; }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #2a2a28;
}
.project-type {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #3a3a38;
}
.project-card:hover .project-type { color: #666664; }
.card-arrow {
  font-size: 1rem;
  color: #3a3a38;
  transform: rotate(0deg);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.project-card:hover .card-arrow {
  transform: rotate(0deg) translateY(-2px);
  color: var(--text-inv);
}


.project-card::before {
  content: '';

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );

  opacity: 0;

  transition: opacity 0.35s ease;
}

.project-card:hover::before {
  opacity: 1;
}



/* Wireframe Previews */
.card-wireframe {
  padding: 20px 28px;
  border-top: 1px solid #1a1a18;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.project-card:hover .card-wireframe { opacity: 0.7; }
.wf-screen {
  border: 1px solid #2a2a28;
  border-radius: 2px;
  overflow: hidden;
  height: 80px;
}
.wf-header {
  height: 12px;
  background: #1e1e1c;
  border-bottom: 1px solid #2a2a28;
}
.wf-content {
  padding: 8px;
  display: flex;
  gap: 8px;
}
.wf-img {
  width: 36px; height: 44px;
  background: #2a2a28;
  flex-shrink: 0;
}
.wf-bars { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.wf-bar {
  height: 4px;
  background: #2a2a28;
  border-radius: 1px;
}
.wf-chat { padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.wf-msg { height: 10px; background: #2a2a28; border-radius: 1px; }
.wf-msg-in { width: 65%; align-self: flex-start; }
.wf-msg-out { width: 55%; align-self: flex-end; background: #333330; }
.wf-table { padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.wf-row {
  height: 10px;
  background: #1e1e1c;
  border-bottom: 1px solid #2a2a28;
}
.wf-graph {
  position: relative;
  height: 100%;
  background: #0d0d0c;
}
.wf-node {
  position: absolute;
  width: 10px; height: 10px;
  background: #2a2a28;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.wf-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 6px;
  height: 56px;
}
.wf-bar-v {
  flex: 1;
  background: #2a2a28;
  border-radius: 1px 1px 0 0;
}
.wf-canvas { width: 100%; height: 80px; }

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
}





/* ── STACK / TERMINAL ───────────────────────────────────────────── */
.stack-terminal {
  background: #0d0d0c;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.st-header {
  background: #1a1a18;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #2a2a28;
}
.st-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3a3a38;
}
.st-title {
  color: #555552;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  margin-left: 4px;
}
.st-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
}
.st-prompt { color: #88bb88; }
.st-cmd { color: var(--text-inv); }
.st-output {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.stack-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-group-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: #444442;
}
.stack-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stack-item {
  display: grid;
  grid-template-columns: 160px 1fr 32px;
  align-items: center;
  gap: 16px;
}
.si-name {
  font-size: 0.7rem;
  color: var(--text-inv);
  letter-spacing: 0.05em;
}
.si-bar {
  height: 2px;
  background: #2a2a28;
  overflow: hidden;
}
.si-fill {
  height: 100%;
  width: 0%;
  background: #666664;
  transition: width 1.2s var(--ease);
}
.stack-item.animated .si-fill {
  width: calc(var(--level, 50) * 1%);
}
.si-level {
  font-size: 0.55rem;
  color: #444442;
  text-align: right;
}
.st-line--cursor { margin-top: 16px; }
@media (max-width: 480px) {
  .stack-item { grid-template-columns: 120px 1fr 28px; }
}


/* ── TIMELINE ───────────────────────────────────────────────────── */

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;

  width: 1px;

  background: rgba(255,255,255,0.08);
}

.timeline-item {
  position: relative;
  padding: 0 0 56px 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.tl-marker {
  position: absolute;

  left: -31px;
  top: 10px;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: #8d8d88;

  border: 2px solid #161615;

  box-shadow:
    0 0 0 4px rgba(255,255,255,0.03);
}

.tl-marker--pending {
  background: transparent;
  border: 1px dashed #666664;

  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%,100% {
    border-color: #3a3a38;
  }

  50% {
    border-color: #888884;
  }
}

.tl-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tl-date {
  font-size: 0.65rem;

  letter-spacing: 0.18em;

  color: #8d8d88;

  font-weight: 500;
}

.tl-badge {
  font-size: 0.52rem;

  letter-spacing: 0.15em;

  padding: 4px 9px;

  border: 1px solid #2f4d2f;

  color: #9ed49e;

  background: rgba(60,120,60,0.08);
}

.tl-badge--done {
  color: #a0a09c;

  border-color: #3a3a38;

  background: rgba(255,255,255,0.03);
}

.tl-badge--pending {
  color: #777774;

  border-color: #3a3a38;

  border-style: dashed;

  background: transparent;
}

.tl-role {
  font-family: var(--font-mono);

  font-size: 1.1rem;

  line-height: 1.2;

  color: #ffffff;

  font-weight: 700;

  letter-spacing: -0.02em;
}

.tl-org {
  font-size: 0.7rem;

  color: #7a7a76;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.tl-desc {
  display: flex;
  flex-direction: column;

  gap: 6px;

  margin-top: 4px;
}

.tl-desc li {
  font-family: var(--font-sans);

  font-size: 0.8rem;

  color: #b8b8b3;

  line-height: 1.6;

  padding-left: 18px;

  position: relative;

  max-width: 760px;
}

.tl-desc li::before {
  content: '→';

  position: absolute;

  left: 0;

  color: #666664;

  font-size: 0.78rem;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;


  gap: 8px;

  margin-top: 10px;
}

.section-dark .tag {
  border-color: #353533;

  color: #8a8a86;

  background: rgba(255,255,255,0.02);
  font-size: 0.7rem;

  padding: 4px 9px;
}



/* ── PLAYGROUND ─────────────────────────────────────────────────── */
.playground-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.play-window--wide { grid-column: span 2; }
.play-window {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.play-window:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.play-titlebar {
  background: var(--hover);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.play-dots {
  display: flex;
  gap: 5px;
}
.play-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.play-title {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.play-body {
  padding: 0;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.play-body--dark {
  background: #0d0d0c;
}
.play-body canvas {
  width: 100%;
  height: 180px;
  display: block;
}
.play-caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  text-align: center;
  padding: 6px;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: linear-gradient(transparent, rgba(244,244,242,0.8));
}
.play-body--dark .play-caption {
  color: #444442;
  background: linear-gradient(transparent, rgba(13,13,12,0.8));
}
/* Thought stream */
.type-display {
  padding: 20px;
  min-height: 180px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #888886;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
/* Binary clock */
.binary-clock {
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.bc-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bc-label {
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: #333330;
  width: 16px;
}
.bc-bits { display: flex; gap: 6px; }
.bc-bit {
  width: 12px; height: 12px;
  border: 1px solid #2a2a28;
  border-radius: 1px;
  transition: background 0.2s, border-color 0.2s;
}
.bc-bit.on {
  background: #666664;
  border-color: #888886;
}
@media (max-width: 900px) {
  .playground-grid { grid-template-columns: repeat(2, 1fr); }
  .play-window--wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .playground-grid { grid-template-columns: 1fr; }
  .play-window--wide { grid-column: span 1; }
}


/* ── CONTACT ────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1px;

  background: var(--border-dark);

  border: 1px solid var(--border-dark);

  margin-bottom: 52px;
}

.contact-card {
  background: #161615;

  padding: 34px 30px;

  display: flex;
  flex-direction: column;

  gap: 14px;

  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease);

  position: relative;

  border: 1px solid transparent;

  overflow: hidden;
}

.contact-card:hover {
  background: #1f1f1d;

  transform: translateY(-4px);

  border-color: rgba(255,255,255,0.06);
}

.contact-card::before {
  content: '';

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );

  opacity: 0;

  transition: opacity 0.3s ease;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-icon {
  width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0.82;
}

.contact-icon img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  filter:
    grayscale(100%)
    brightness(1.2);

  opacity: 0.9;
}

.contact-label {
  font-size: 0.62rem;

  letter-spacing: 0.24em;

  color: #7b7b76;

  font-weight: 600;
}

.contact-value {
  font-size: 0.92rem;

  color: #f2f2ee;

  line-height: 1.5;

  transition: color 0.2s;
}

.contact-card:hover .contact-value {
  color: #ffffff;
}

.contact-arrow {
  position: absolute;

  top: 30px;
  right: 30px;

  font-size: 1rem;

  color: #555552;

  transition:
    transform 0.25s var(--ease),
    color 0.25s var(--ease);
}

.contact-card:hover .contact-arrow {
  transform: translate(4px, -4px);

  color: #b8b8b3;
}

.contact-terminal {
  text-align: center;

  padding: 26px;

  border: 1px solid #2a2a28;

  background: rgba(255,255,255,0.015);

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  flex-wrap: wrap;
}

.ct-prompt {
  color: #9ed49e;

  font-size: 0.78rem;
}

.ct-text {
  color: #8a8a86;

  font-size: 0.78rem;
}

.ct-input {
  color: #d0d0cb;

  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}


.contact-icon {
  width: 20px;
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0.75;

  margin-bottom: 2px;
}

.contact-icon img {
  width: 20px;
  height: 20px;

  object-fit: contain;

  display: block;

  filter:
    grayscale(100%)
    brightness(1.4)
    contrast(1.1);
}



.contact-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}


.copy-btn {
  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.08);

  color: #c8c8c3;

  width: 32px;
  height: 32px;

  border-radius: 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.78rem;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;

  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.08);

  border-color: rgba(255,255,255,0.14);

  color: #ffffff;

  transform: translateY(-1px);
}

.copy-btn.copied {
  color: #9ed49e;

  border-color: rgba(120,255,120,0.18);

  background: rgba(120,255,120,0.06);
}





/* ── FOOTER ─────────────────────────────────────────────────────── */

.footer {
  background: #0b0b0a;

  border-top: 1px solid rgba(255,255,255,0.06);

  padding: 30px 36px;

  position: relative;

  overflow: hidden;
}

.footer::before {
  content: '';

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.14),
    transparent
  );
}

.footer-inner {
  max-width: 1280px;

  margin: 0 auto;

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 18px;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;

  align-items: center;

  gap: 12px;
}

.footer-logo {
  font-family: var(--font-mono);

  font-size: 1rem;

  color: #ffffff;

  font-weight: 700;

  letter-spacing: 0.04em;
}

.footer-built,
.footer-status,
.footer-year,
.footer-tagline {
  font-size: 0.62rem;

  letter-spacing: 0.18em;

  color: #7c7c77;

  text-transform: uppercase;
}

.footer-status {
  color: #9ed49e;
}

.footer-tagline {
  color: #8e8e89;
}

.footer-year {
  color: #a0a09a;
}

.status-dot--sm {
  width: 6px;
  height: 6px;

  background: #9ed49e;

  box-shadow:
    0 0 8px rgba(158,212,158,0.4);
}

.footer-left,
.footer-center,
.footer-right {
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.footer-left:hover,
.footer-center:hover,
.footer-right:hover {
  transform: translateY(-1px);
}

@media (max-width: 700px) {

  .footer {
    padding: 28px 22px;
  }

  .footer-inner {
    flex-direction: column;

    align-items: flex-start;

    gap: 14px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
  }
}





/* ── ADDITIONAL CHANGES BY SHAURYA ─────────────────────────────────────────────────────── */


.terminal-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.terminal-pulse {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: #88bb88;
  animation: terminalPulse 1.5s infinite;
}

@keyframes terminalPulse {
  0%, 100% {
    opacity: 3;
  }
  50% {
    opacity: 1;
  }
}

.nav-terminal-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-terminal-hint {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  animation: terminalHintPulse 2s infinite;
}

@keyframes terminalHintPulse {
  0%, 100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .nav-terminal-hint {
    display: none;
  }
}



/* Blinking effect for terminal button */
.nav-terminal-btn {
  animation: terminalBlink 1.5s infinite;
}

@keyframes terminalBlink {
  0%, 100% {
    color: var(--muted);
    border-color: var(--border);
    background: transparent;
  }

  50% {
    color: var(--text);
    border-color: var(--text);
    background: rgba(0, 0, 0, 0.03);
  }
}


