/* ─────────────────────────────────────────────────────────────
   LUMA PORTFOLIO — style.css
   Vibe: soft terminal · lo-fi · anime-adjacent · glass
   ───────────────────────────────────────────────────────────── */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:        #0b0c10;
  --bg2:       #0f1117;
  --glass:     rgba(255,255,255,0.035);
  --glass-b:   rgba(255,255,255,0.08);
  --border:    rgba(255,255,255,0.07);
  --border-h:  rgba(180,180,255,0.25);
  --accent:    #c9b8ff;        /* soft lavender */
  --accent2:   #9de5c9;        /* mint */
  --accent3:   #ffb8c6;        /* pink */
  --text:      #e2e4f0;
  --muted:     #5a5d72;
  --dim:       #2e3045;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-h:     60px;
  --player-h:  180px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --radius:    14px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; cursor: none; } /* cursor:none on html stops flash in margin area */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}
/* Force none on every interactive element so browser doesn't override */
a, button, input, select, textarea, label,
[role="button"], [tabindex] { cursor: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 9px; }

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

/* ── CURSOR ─────────────────────────────────────────────────── */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              background 0.25s, border-color 0.25s;
}
#cursor.hovered {
  width: 38px; height: 38px;
  background: rgba(201,184,255,0.1);
  border-color: var(--accent);
}

/* ── GLASS CARD ─────────────────────────────────────────────── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.glass-card:hover { border-color: var(--border-h); }

/* ── NAV ────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  transition: background 0.4s;
}
#nav.scrolled {
  background: rgba(11,12,16,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: none;
  margin-left: auto;
}
.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(11,12,16,0.97);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 16px 32px 24px;
  gap: 14px;
}
.nav-mobile a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile.open { display: flex; }

/* ── HERO ───────────────────────────────────────────────────── */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  padding-top: var(--nav-h);
}
.hero-pre {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  animation: fadeup 0.8s 0.1s both;
}
.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeup 0.8s 0.25s both;
}
.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--accent);
  margin-bottom: 18px;
  min-height: 1.5em;
  animation: fadeup 0.8s 0.4s both;
}
.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 40px;
  animation: fadeup 0.8s 0.55s both;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeup 0.8s 0.7s both;
}
.btn-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 99px;
  background: var(--accent);
  color: #0b0c10;
  font-weight: 700;
  transition: all 0.3s var(--ease);
}
.btn-pill:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(201,184,255,0.3);
}
.btn-ghost-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.3s var(--ease);
}
.btn-ghost-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--dim);
  z-index: 3;
  animation: float 3s ease-in-out infinite, fadeup 1s 1.5s both;
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}

/* ── SECTION LAYOUT ─────────────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.sec-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent2);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.sec-h {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 48px;
}
.body-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.small { font-size: 12px; }
.inline-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(201,184,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(201,184,255,0.15);
}

/* ── BLINK CURSOR ───────────────────────────────────────────── */
.blink-cursor {
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ── STATUS DOT ─────────────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px var(--accent2);
  animation: pulse-s 2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse-s {
  0%,100% { box-shadow: 0 0 4px var(--accent2); }
  50%      { box-shadow: 0 0 12px var(--accent2), 0 0 24px rgba(157,229,201,0.3); }
}

/* ── TAGS ───────────────────────────────────────────────────── */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(201,184,255,0.06);
  border: 1px solid rgba(201,184,255,0.12);
  color: var(--accent);
}

/* ── ABOUT SPLIT ────────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.stat-card { padding: 24px 28px; margin-bottom: 16px; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--muted); }
.stat-val { font-weight: 700; font-size: 14px; }
.vibe-card { padding: 20px 24px; }
.vibe-title { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.vibe-text { font-size: 14px; color: var(--text); margin-bottom: 8px; }

/* ── WORK GRID ──────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.work-card {
  padding: 28px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.work-card:hover { transform: translateY(-4px); }
.work-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.work-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
}
.work-tag.frontend { background: rgba(201,184,255,0.1); color: var(--accent); border: 1px solid rgba(201,184,255,0.2); }
.work-tag.ai       { background: rgba(157,229,201,0.1); color: var(--accent2); border: 1px solid rgba(157,229,201,0.2); }
.work-tag.audio    { background: rgba(255,184,198,0.1); color: var(--accent3); border: 1px solid rgba(255,184,198,0.2); }
.work-tag.devops   { background: rgba(255,220,150,0.1); color: #ffd98a; border: 1px solid rgba(255,220,150,0.2); }
.work-links { display: flex; gap: 14px; }
.work-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.work-links a:hover { color: var(--accent); }
.work-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.work-desc { font-size: 13px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; }
.work-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-tech span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
}

/* ── REPOS GRID ─────────────────────────────────────────────── */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.repo-loading {
  grid-column: 1/-1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  padding: 40px 0;
  text-align: center;
}
.dot-flash { animation: blink 1s step-end infinite; }
.repo-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}
.repo-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
}
.repo-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.repo-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.repo-meta {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.repo-lang, .repo-stars {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ── TERMINAL ───────────────────────────────────────────────── */
.terminal-wrap {
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.t-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.t-red    { background: #ff5f56; }
.t-yellow { background: #ffbd2e; }
.t-green  { background: #27c93f; }
.t-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
}
.terminal-body {
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.terminal-body::-webkit-scrollbar { width: 3px; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--dim); }
.t-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 13px;
}
.t-prompt {
  color: var(--accent2);
  flex-shrink: 0;
}
.t-cmd { color: var(--text); }
.t-output {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 52px;
  white-space: pre-wrap;
  word-break: break-word;
}
.t-output.ai { color: var(--accent); }
.t-output.error { color: var(--accent3); }
.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
}
.terminal-input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  flex: 1;
  caret-color: var(--accent);
}

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-center { text-align: center; }
.contact-sub { max-width: 480px; margin: -24px auto 40px; }
.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  transition: all 0.3s;
}
.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201,184,255,0.05);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 2;
}

/* ── MUSIC PLAYER ───────────────────────────────────────────── */
#music-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  width: 300px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
#music-player.hidden {
  transform: translateY(calc(100% + 30px));
  opacity: 0;
}
#visualizer {
  display: block;
  width: 100%;
  height: 48px;
  background: transparent;
}
.player-inner { padding: 16px 18px 14px; }
.player-track { margin-bottom: 12px; }
.player-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent2);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}
.track-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.player-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}
.player-controls button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: none;
  transition: color 0.2s, transform 0.2s;
}
.player-controls button:hover { color: var(--accent); transform: scale(1.1); }
#btn-play {
  width: 38px; height: 38px;
  border-radius: 50% !important;
  background: var(--accent) !important;
  color: #0b0c10 !important;
  font-size: 14px !important;
  display: flex; align-items: center; justify-content: center;
}
#btn-play:hover { background: #fff !important; transform: scale(1.05) !important; }
.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  min-width: 28px;
}
.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--dim);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  width: 0%;
  transition: width 0.2s;
}
.player-vol-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
#vol-toggle {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: none;
  transition: color 0.2s;
  flex-shrink: 0;
}
#vol-toggle:hover { color: var(--accent); }
.vol-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--dim);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeup {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .repos-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  #music-player {
    width: calc(100vw - 32px);
    bottom: 16px; right: 16px; left: 16px;
    border-radius: 12px;
  }
  .hero-name { font-size: clamp(3.2rem, 16vw, 6rem); }
  .sec-h { font-size: clamp(1.6rem, 7vw, 2.4rem); margin-bottom: 32px; }
  .section { padding: 80px 0; }
  .terminal-body { min-height: 200px; max-height: 280px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .repos-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .btn-pill, .btn-ghost-pill { width: 100%; text-align: center; justify-content: center; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-btn { justify-content: center; }
  .footer { flex-direction: column; text-align: center; }
  .player-inner { padding: 12px 14px 10px; }
  #music-player { bottom: 12px; right: 12px; left: 12px; }
  .work-card { padding: 20px; }
  .terminal-input-row { padding: 12px 16px; }
  .terminal-body { padding: 16px; }
  /* Bigger tap targets on mobile */
  .player-controls button { padding: 8px; }
  #btn-play { width: 44px !important; height: 44px !important; }
  .contact-btn { padding: 14px 20px; font-size: 13px; }
}
