@import url("https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --bg: #050914;
  --bg2: #091525;
  --card: #0c1a32;
  --card2: #0f2040;
  --border: rgba(0, 212, 255, 0.1);
  --border2: rgba(0, 255, 179, 0.25);
  --accent: #00ffb3;
  --accent2: #7b61ff;
  --accent3: #ff4d6d;
  --text: #d0e8ff;
  --sub: #4a6a8a;
  --nav-h: 68px;
  --sidebar-w: 230px;
  --glow: 0 0 30px rgba(0, 255, 179, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Grid bg */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── SCROLL PROGRESS BAR ── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  z-index: 999;
  box-shadow: 0 0 8px var(--accent);
  will-change: transform;
}

/* ── STATUS BAR ── */
.status-bar {
  height: 40px;
  background: rgba(9, 21, 37, 1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}
.s-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--sub);
  letter-spacing: 1px;
}
.s-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px var(--accent);
  }
  50% {
    opacity: 0.4;
    box-shadow: 0 0 3px var(--accent);
  }
}
.s-right {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 12px;
}
.s-btn {
  background: none;
  border: none;
  color: var(--sub);
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-btn:hover {
  color: var(--accent);
}
.s-tag {
  color: var(--accent);
  background: rgba(0, 255, 179, 0.08);
  border: 1px solid rgba(0, 255, 179, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.5px;
}
.s-version {
  color: var(--sub);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.5px;
  font-size: 9px;
}

/* ── APP SHELL ── */
.app {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
  z-index: 1;
}

/* ── SIDEBAR (desktop only) ── */
.sidebar {
  display: none;
  width: var(--sidebar-w);
  flex-shrink: 0;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--border);
  z-index: 10;
}

.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}
.sidebar-logo-name .acc {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(0, 255, 179, 0.4);
}
.sidebar-logo-sub {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Availability pill in sidebar */
.avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(0, 255, 179, 0.08);
  border: 1px solid rgba(0, 255, 179, 0.2);
  color: var(--accent);
  letter-spacing: 0.5px;
}
.avail-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Nav section label */
.snav-section-label {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  color: rgba(74, 106, 138, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 14px 4px;
  margin-top: 4px;
}

.snav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--sub);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  user-select: none;
}
.snav-btn:hover {
  background: rgba(0, 255, 179, 0.04);
  color: var(--text);
}
.snav-btn.active {
  background: rgba(0, 255, 179, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 179, 0.12);
}
.snav-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px var(--accent);
}
.snav-ico {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.snav-lbl {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.snav-badge {
  margin-left: auto;
  background: rgba(0, 255, 179, 0.12);
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 4px;
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.sidebar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.status-dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.sidebar-ver {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  color: rgba(74, 106, 138, 0.5);
  letter-spacing: 1px;
}

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── PAGES ── */
.pages {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 28px 20px calc(var(--nav-h) + 32px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.99);
  transition:
    opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 179, 0.1) transparent;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.page::-webkit-scrollbar {
  width: 4px;
}
.page::-webkit-scrollbar-track {
  background: transparent;
}
.page::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 179, 0.1);
  border-radius: 4px;
}
.page.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* ── BOTTOM NAV (mobile) ── */
.bottom-nav {
  height: var(--nav-h);
  background: rgba(9, 21, 37, 1);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  padding: 0 12px;
  position: relative;
  z-index: 10;
}
.nav-indicator {
  position: absolute;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 0 0 4px 4px;
  transition:
    left 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--accent);
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 0 8px;
  cursor: pointer;
  border-radius: 16px;
  transition: background 0.2s;
  position: relative;
}
.nav-btn.active {
  background: rgba(0, 255, 179, 0.04);
}
.nav-ico {
  font-size: 15px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--sub);
}
.nav-btn.active .nav-ico {
  color: var(--accent);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px var(--accent));
}
.nav-lbl {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  color: var(--sub);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-btn.active .nav-lbl {
  color: var(--accent);
}

/* ══════════════════════
   PROFILE PAGE
══════════════════════ */

/* Stats row */
.home-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    border-color 0.3s,
    transform 0.2s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.stat-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.stat-label {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.stat-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1;
}
.stat-value.green {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 255, 179, 0.3);
}
.stat-value.purple {
  color: var(--accent2);
  text-shadow: 0 0 20px rgba(123, 97, 255, 0.3);
}
.stat-value.sm {
  font-size: 15px;
  letter-spacing: 0;
  padding-top: 4px;
}
.stat-sub {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 0.5px;
}

/* Glow orb */
.hero-glow {
  display: none;
}
.photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
}
.photo-outer {
  position: relative;
  display: inline-block;
}
.photo-ring {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent2),
    var(--accent3)
  );
}
@keyframes ring-rotate {
  0% {
    background: linear-gradient(
      135deg,
      var(--accent),
      var(--accent2),
      var(--accent3)
    );
  }
  33% {
    background: linear-gradient(
      225deg,
      var(--accent),
      var(--accent2),
      var(--accent3)
    );
  }
  66% {
    background: linear-gradient(
      315deg,
      var(--accent),
      var(--accent2),
      var(--accent3)
    );
  }
  100% {
    background: linear-gradient(
      135deg,
      var(--accent),
      var(--accent2),
      var(--accent3)
    );
  }
}
.photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--card);
}
.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 26px;
}
.photo-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: var(--card2);
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  padding: 4px 8px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--glow);
}
.online-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

/* Name */
.name-block {
  text-align: center;
  margin-bottom: 20px;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.name-block h1 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.name-plain {
  color: var(--text);
}
.name-accent {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 255, 179, 0.4);
}
.subtitle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.subtitle-line {
  height: 1px;
  width: 30px;
  background: var(--border2);
}
.subtitle-text {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 2px;
  text-transform: uppercase;
}
/* Typing cursor */
.type-cursor {
  display: inline-block;
  width: 1px;
  height: 11px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink-cur 1s step-end infinite;
}
@keyframes blink-cur {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.badge {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--sub);
  background: var(--card);
  letter-spacing: 0.5px;
  transition: all 0.25s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 179, 0.1),
    rgba(123, 97, 255, 0.1)
  );
  opacity: 0;
  transition: opacity 0.25s;
}
.badge:hover::before {
  opacity: 1;
}
.badge:hover {
  border-color: var(--border2);
  color: var(--accent);
}

/* Section label */
.sec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  margin-bottom: 20px;
}
.sec-label-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.sec-label-text {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--sub);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* About */
.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.about-card:hover {
  border-color: var(--border2);
}
.about-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 3px 0 0 3px;
}
.code-block {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  line-height: 1.8;
  overflow-x: auto;
}
.code-block .ln {
  color: rgba(107, 107, 138, 0.4);
  user-select: none;
  margin-right: 14px;
  font-size: 10px;
}
.c-kw {
  color: #c792ea;
}
.c-var {
  color: #ffcb6b;
}
.c-str {
  color: var(--accent);
}
.c-punc {
  color: #89ddff;
}
.c-prop {
  color: #82aaff;
}

/* Tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 8px;
}
.tech-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: default;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.tech-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.tech-item:hover {
  border-color: var(--border2);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 255, 179, 0.08);
}
.tech-item:hover::before {
  transform: scaleX(1);
}
.tech-icon {
  font-size: 18px;
}

/* ── SKILL BARS ── */
.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.skill-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.skill-name {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--text);
  letter-spacing: 0.5px;
}
.skill-pct {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--accent);
}
.skill-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.skill-fill {
  height: 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.skill-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  filter: blur(2px);
}
.sf-html {
  background: linear-gradient(90deg, #e34f26, #f06529);
}
.sf-css {
  background: linear-gradient(90deg, #264de4, #2965f1);
}
.sf-js {
  background: linear-gradient(90deg, #f0db4f, #e4b600);
}
.sf-react {
  background: linear-gradient(90deg, #61dafb, #21a1c4);
}
.sf-py {
  background: linear-gradient(90deg, #3572a5, #4b8bbf);
}
.sf-ts {
  background: linear-gradient(90deg, #007acc, #0091e6);
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  margin-bottom: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.3;
}
.tl-item {
  display: flex;
  gap: 16px;
  padding-bottom: 18px;
  position: relative;
}
.tl-dot-wrap {
  flex-shrink: 0;
  width: 33px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card2);
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 179, 0.3);
  flex-shrink: 0;
  margin-top: 4px;
}
.tl-dot.purple {
  border-color: var(--accent2);
  box-shadow: 0 0 8px rgba(123, 97, 255, 0.3);
}
.tl-dot.red {
  border-color: var(--accent3);
  box-shadow: 0 0 8px rgba(255, 77, 109, 0.3);
}
.tl-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  flex: 1;
  transition: border-color 0.3s;
}
.tl-content:hover {
  border-color: var(--border2);
}
.tl-period {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.tl-period.purple {
  color: var(--accent2);
}
.tl-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.tl-sub {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 0.5px;
}

/* ══════════════════════
   PROJECTS PAGE
══════════════════════ */
.page-header {
  margin-bottom: 22px;
}
.page-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.page-title span {
  color: var(--accent);
}
.page-caption {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--sub);
  letter-spacing: 1px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-btn {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--sub);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s;
  user-select: none;
}
.filter-btn:hover {
  border-color: var(--border2);
  color: var(--text);
}
.filter-btn.active {
  background: rgba(0, 255, 179, 0.08);
  border-color: rgba(0, 255, 179, 0.2);
  color: var(--accent);
}

.proj-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

a.proj-card,
div.proj-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
a.proj-card::before,
div.proj-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 179, 0.04),
    rgba(123, 97, 255, 0.04)
  );
  opacity: 0;
  transition: opacity 0.3s;
}
a.proj-card:hover {
  border-color: rgba(0, 255, 179, 0.25);
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 255, 179, 0.1);
}
a.proj-card:hover::before {
  opacity: 1;
}
a.proj-card:active {
  transform: scale(0.98) translateY(-1px);
}
div.proj-card:hover {
  border-color: rgba(255, 200, 50, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Featured project */
.proj-card.featured-card {
  border-color: rgba(0, 255, 179, 0.2);
  background: linear-gradient(135deg, rgba(0, 255, 179, 0.03), var(--card));
}
.proj-card.featured-card::after {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: "Space Mono", monospace;
  font-size: 7px;
  color: var(--accent);
  letter-spacing: 1px;
  background: rgba(0, 255, 179, 0.08);
  border: 1px solid rgba(0, 255, 179, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
}

.proj-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.proj-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proj-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ico-a {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 179, 0.15),
    rgba(0, 255, 179, 0.05)
  );
  border: 1px solid rgba(0, 255, 179, 0.2);
}
.ico-b {
  background: linear-gradient(
    135deg,
    rgba(123, 97, 255, 0.15),
    rgba(123, 97, 255, 0.05)
  );
  border: 1px solid rgba(123, 97, 255, 0.2);
}
.ico-c {
  background: linear-gradient(
    135deg,
    rgba(255, 77, 109, 0.15),
    rgba(255, 77, 109, 0.05)
  );
  border: 1px solid rgba(255, 77, 109, 0.2);
}
.ico-d {
  background: linear-gradient(
    135deg,
    rgba(100, 200, 255, 0.15),
    rgba(100, 200, 255, 0.05)
  );
  border: 1px solid rgba(100, 200, 255, 0.2);
}
.ico-e {
  background: linear-gradient(
    135deg,
    rgba(255, 200, 50, 0.15),
    rgba(255, 160, 0, 0.05)
  );
  border: 1px solid rgba(255, 200, 50, 0.25);
}

.proj-name-wrap {
}
.proj-num {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.proj-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.live-pill {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 255, 179, 0.07);
  border: 1px solid rgba(0, 255, 179, 0.2);
  color: var(--accent);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.live-blink {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s infinite;
}

.private-pill {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 200, 50, 0.08);
  border: 1px solid rgba(255, 200, 50, 0.3);
  color: #ffc832;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.proj-desc {
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.65;
  margin-bottom: 14px;
}
.proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.proj-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ptag {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--sub);
  letter-spacing: 0.5px;
}
.proj-arrow {
  font-size: 14px;
  color: var(--sub);
  transition:
    transform 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
a.proj-card:hover .proj-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* ══════════════════════
   TOOLS PAGE
══════════════════════ */
.tools-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.tool-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 255, 179, 0.06);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(0, 255, 179, 0.15);
}
.tool-title {
  flex: 1;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.tool-badge {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--accent);
  background: rgba(0, 255, 179, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Pomodoro */
.pomo-display {
  font-family: "Space Mono", monospace;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin: 10px 0;
  text-shadow: 0 0 20px rgba(0, 255, 179, 0.2);
}
.pomo-ctrls {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.pomo-mode {
  display: flex;
  gap: 6px;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border2);
}
.pomo-mode-btn {
  background: transparent;
  border: none;
  color: var(--sub);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
}
.pomo-mode-btn.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Quick Notes */
.quick-notes-ta {
  width: 100%;
  height: 140px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  resize: none;
  transition: 0.2s;
  outline: none;
}
.quick-notes-ta:focus {
  border-color: var(--accent);
}
.quick-notes-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notes-clear-btn {
  background: transparent;
  border: none;
  color: #ff4a4a;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
  font-size: 14px;
}
.notes-clear-btn:hover {
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 74, 74, 0.4);
}

/* ══════════════════════
   CONTACT PAGE
══════════════════════ */
.contact-intro {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  line-height: 1.8;
  color: var(--sub);
  position: relative;
  overflow: hidden;
}
.contact-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent2),
    var(--accent),
    var(--accent3)
  );
}
.ci-prompt {
  color: var(--accent);
  margin-right: 6px;
}
.ci-text {
  color: var(--text);
}

/* Availability card */
.avail-card {
  background: var(--card);
  border: 1px solid rgba(0, 255, 179, 0.15);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.avail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 179, 0.05), transparent);
  pointer-events: none;
}
.avail-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(0, 255, 179, 0.08);
  border: 1px solid rgba(0, 255, 179, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.avail-info {
  flex: 1;
}
.avail-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.avail-sub {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 0.5px;
}
.avail-badge {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 255, 179, 0.08);
  border: 1px solid rgba(0, 255, 179, 0.2);
  color: var(--accent);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.social-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

a.soc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
a.soc-item::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
a.soc-item:hover {
  border-color: var(--border2);
  transform: translateX(4px);
}
a.soc-item:hover::before {
  opacity: 1;
}
.soc-ig::before {
  background: linear-gradient(
    135deg,
    rgba(240, 148, 51, 0.06),
    rgba(188, 24, 136, 0.06)
  );
}
.soc-tg::before {
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.06), transparent);
}
.soc-dc::before {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.06), transparent);
}
.soc-tt::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent);
}
.soc-em::before {
  background: linear-gradient(
    135deg,
    rgba(66, 133, 244, 0.06),
    rgba(52, 168, 83, 0.06)
  );
}
.soc-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  color: white;
}
.soc-ig .soc-ico {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #bc1888);
}
.soc-tg .soc-ico {
  background: #229ed9;
}
.soc-dc .soc-ico {
  background: #5865f2;
}
.soc-tt .soc-ico {
  background: #111;
  border: 1px solid #333;
}
.soc-em .soc-ico {
  background: linear-gradient(135deg, #4285f4, #34a853);
}
.soc-info {
  flex: 1;
  min-width: 0;
}
.soc-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.2px;
}
.soc-handle {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 0.5px;
}
.soc-arr {
  font-size: 13px;
  color: var(--sub);
  transition:
    transform 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
a.soc-item:hover .soc-arr {
  transform: translateX(4px);
  color: var(--accent);
}

/* Copy button for email */
.copy-btn {
  background: rgba(0, 255, 179, 0.07);
  border: 1px solid rgba(0, 255, 179, 0.15);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--accent);
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
.copy-btn:hover {
  background: rgba(0, 255, 179, 0.12);
}
.soc-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 10px 18px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.5px;
  z-index: 500;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    var(--glow);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── LOGIN MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 20, 0.95);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 255, 179, 0.08);
}
.modal-overlay.show .modal-box {
  transform: translateY(0) scale(1);
}
.modal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 0 0 4px 4px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--sub);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(255, 77, 109, 0.1);
  border-color: rgba(255, 77, 109, 0.3);
  color: var(--accent3);
}
.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 200, 50, 0.15),
    rgba(255, 160, 0, 0.05)
  );
  border: 1px solid rgba(255, 200, 50, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.modal-sub {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--sub);
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}
.inp-wrap {
  position: relative;
  margin-bottom: 14px;
}
.inp-label {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.inp-field {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
}
.inp-field:focus {
  border-color: rgba(0, 255, 179, 0.3);
  box-shadow: 0 0 0 3px rgba(0, 255, 179, 0.06);
}
.inp-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--sub);
}
.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 179, 0.15),
    rgba(123, 97, 255, 0.15)
  );
  border: 1px solid rgba(0, 255, 179, 0.25);
  border-radius: 10px;
  color: var(--accent);
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.login-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 179, 0.22),
    rgba(123, 97, 255, 0.22)
  );
  transform: translateY(-1px);
}
.login-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.login-err {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--accent3);
  text-align: center;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}
.login-err.show {
  opacity: 1;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}
.shake {
  animation: shake 0.4s ease;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page.active .photo-wrap {
  animation: fadeUp 0.4s ease both;
}
.page.active .name-block {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.07s;
}
.page.active .stats-row {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.1s;
}
.page.active .vibe-card {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.12s;
}
.page.active .about-card {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.14s;
}
.page.active .skill-bars {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.18s;
}
.page.active .tech-grid {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.21s;
}
.page.active .timeline {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.24s;
}
.page.active .page-header {
  animation: fadeUp 0.4s ease both;
}
.page.active .filter-bar {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.05s;
}
.page.active .proj-list .proj-card-wrap:nth-child(1) {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.08s;
}
.page.active .proj-list .proj-card-wrap:nth-child(2) {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.13s;
}
.page.active .proj-list .proj-card-wrap:nth-child(3) {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.18s;
}
.page.active .proj-list .proj-card-wrap:nth-child(4) {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.23s;
}
.page.active .proj-list .proj-card-wrap:nth-child(5) {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.28s;
}
.page.active .contact-intro {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.05s;
}
.page.active .avail-card {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.08s;
}
.page.active .soc-item-wrap:nth-child(1) {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.1s;
}
.page.active .soc-item-wrap:nth-child(2) {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.14s;
}
.page.active .soc-item-wrap:nth-child(3) {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.18s;
}
.page.active .soc-item-wrap:nth-child(4) {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.22s;
}
.page.active .soc-item-wrap:nth-child(5) {
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.26s;
}

.proj-card-wrap,
.soc-item-wrap {
  display: contents;
}

/* ══════════════════════════
   DESKTOP (≥ 900px)
══════════════════════════ */
@media (min-width: 900px) {
  .sidebar {
    display: flex;
  }
  .bottom-nav {
    display: none;
  }
  .page {
    padding: 36px 44px 36px;
  }

  .home-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
  }
  .home-left {
    display: flex;
    flex-direction: column;
  }
  .home-right {
    display: flex;
    flex-direction: column;
  }

  .photo-wrap {
    justify-content: flex-start;
  }
  .name-block {
    text-align: left;
  }
  .subtitle-row {
    justify-content: flex-start;
  }
  .badges {
    justify-content: flex-start;
  }
  .name-block h1 {
    font-size: 32px;
  }
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-title {
    font-size: 32px;
  }
  .toast {
    bottom: 24px;
  }
}

/* ── TABLET (600-899px) ── */
@media (min-width: 600px) and (max-width: 899px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Floating action stack */
.fab-stack {
  position: fixed;
  right: 16px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 600;
}
@media (min-width: 900px) {
  .fab-stack {
    bottom: 24px;
  }
}
.fab {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--card2);
  border: 1px solid var(--border2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
  box-shadow: var(--glow);
}
.fab:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px) scale(1.05);
}
.fab.alt {
  color: var(--accent2);
  border-color: rgba(123, 97, 255, 0.4);
}
.fab.alt:hover {
  background: var(--accent2);
  color: #fff;
}

/* Removed utility bar */
#installBtn {
  display: none;
}

/* Weather chip in status bar */
/* Weather in profile */
#weather-widget {
  margin-top: 14px;
  text-align: center;
}
.wx-inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 6px 12px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.wx-inner .wx-loc {
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wx-inner .wx-loc i {
  color: var(--accent2);
}
.wx-inner .wx-div {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
}
.wx-inner .wx-wthr {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sub);
}
.wx-inner .wx-temp {
  font-weight: 700;
  color: var(--accent);
}

/* Command palette */
.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 20, 0.95);
  z-index: 1500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.cmdk-overlay.show {
  display: flex;
  animation: fadeIn 0.15s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.cmdk-box {
  width: min(560px, 92vw);
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    var(--glow);
}
.cmdk-input {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-family: "Outfit", sans-serif;
  outline: 0;
}
.cmdk-list {
  max-height: 50vh;
  overflow: auto;
  padding: 6px;
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  transition: 0.1s;
}
.cmdk-item .ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.cmdk-item .meta {
  flex: 1;
  min-width: 0;
}
.cmdk-item .meta .t {
  font-weight: 600;
}
.cmdk-item .meta .s {
  font-size: 11px;
  color: var(--sub);
  font-family: "Space Mono", monospace;
}
.cmdk-item .kbd {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--sub);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
}
.cmdk-item.sel,
.cmdk-item:hover {
  background: rgba(0, 255, 179, 0.08);
  color: var(--accent);
}
.cmdk-empty {
  padding: 24px;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
}
.cmdk-foot {
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: var(--sub);
  font-family: "Space Mono", monospace;
}

/* Generic centered modal */
.mx-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 20, 0.95);
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mx-overlay.show {
  display: flex;
}
.mx-box {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 24px;
  width: min(440px, 100%);
  position: relative;
  box-shadow: var(--glow);
}
.mx-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.mx-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.mx-sub {
  font-size: 12px;
  color: var(--sub);
  font-family: "Space Mono", monospace;
  margin-bottom: 16px;
}
.mx-field {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 10px;
  outline: 0;
}
.mx-field:focus {
  border-color: var(--accent);
}
textarea.mx-field {
  min-height: 110px;
  resize: vertical;
}
.mx-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg);
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.mx-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Audio player */
.audio-mini {
  position: fixed;
  left: 14px;
  bottom: 90px;
  background: rgba(12, 26, 50, 0.95);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 10px 12px;
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 600;
  box-shadow: var(--glow);
  font-size: 12px;
  max-width: 240px;
}
.audio-mini.show {
  display: flex;
}
@media (min-width: 900px) {
  .audio-mini {
    bottom: 24px;
    left: auto;
    right: 80px;
  }
}
.audio-mini button {
  background: var(--accent);
  color: var(--bg);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}
.audio-mini .at {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text);
}
.audio-mini input[type="range"] {
  width: 60px;
  accent-color: var(--accent);
}

/* QR modal img */
.qr-img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

/* Shortcuts overlay table */
.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sc-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
}
.sc-table td:last-child {
  text-align: right;
  font-family: "Space Mono", monospace;
  color: var(--accent);
}

/* Project search */
.proj-search {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  margin: 0 0 12px;
  outline: 0;
}
.proj-search:focus {
  border-color: var(--accent);
}

/* Konami matrix */
#mx-canvas {
  position: fixed;
  inset: 0;
  z-index: 1900;
  pointer-events: none;
  display: none;
}
#mx-canvas.on {
  display: block;
}

/* Visit counter pill */
#visitPill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--accent2);
  margin-left: 8px;
}

/* Theme accent variants (data-theme on <html>) */
html[data-theme="violet"] {
  --accent: #7b61ff;
  --accent2: #00ffb3;
  --border2: rgba(123, 97, 255, 0.3);
  --glow: 0 0 30px rgba(123, 97, 255, 0.15);
}
html[data-theme="coral"] {
  --accent: #ff4d6d;
  --accent2: #ffc832;
  --border2: rgba(255, 77, 109, 0.3);
  --glow: 0 0 30px rgba(255, 77, 109, 0.15);
}
html[data-theme="cyan"] {
  --accent: #00d4ff;
  --accent2: #00ffb3;
  --border2: rgba(0, 212, 255, 0.35);
  --glow: 0 0 30px rgba(0, 212, 255, 0.18);
}
html[data-theme="amber"] {
  --accent: #ffb84d;
  --accent2: #ff6b6b;
  --border2: rgba(255, 184, 77, 0.3);
  --glow: 0 0 30px rgba(255, 184, 77, 0.15);
}

/* ── iOS STYLE VIBE CARD ── */
.ios-player {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 140px;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.ios-player-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.5);
  transform: translateZ(0);
  will-change: filter;
  z-index: 0;
  transition: background-image 0.5s ease;
}
.ios-player-blur {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.ios-player-content {
  position: relative;
  z-index: 2;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ios-art-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 18px;
  left: 18px;
}
.ios-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ios-info-wrap {
  margin-left: 70px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ios-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 2px;
}
.ios-artist {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ios-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.ios-time {
  font-size: 10px;
  font-family: -apple-system, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.7);
  min-width: 28px;
  text-align: center;
}
.ios-bar-wrap {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  cursor: pointer;
}
.ios-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #fff;
  border-radius: 3px;
  transition: width 0.1s linear;
}
.ios-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 2px;
  margin-bottom: 4px;
}
.ios-ctrl-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.1s;
}
.ios-ctrl-btn:active {
  transform: scale(0.9);
}
.ios-ctrl-btn:hover {
  opacity: 0.8;
}
.ios-play-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}
.ios-play-btn:active {
  transform: scale(0.9);
}
