:root {
  --accent: #c8ff00;
  --accent2: #ff2d78;
  --bg: #060608;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.62);
}

@font-face {
  font-family: 'Angel Wish';
  src: url('../assets/Angel_wish.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  overflow: hidden;
  cursor: none;
}

#cursor {
  position: fixed;
  z-index: 9999;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  mix-blend-mode: difference;
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--accent);
}

#cursor.big {
  width: 36px;
  height: 36px;
}

#cursor.image-cursor {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: url('../assets/custom_cursor.png') center/contain no-repeat;
  mix-blend-mode: normal;
  box-shadow: none;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#bg-video {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

#bg-video.active {
  opacity: 0.6;
  filter: brightness(1.06) contrast(1.04);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 4px
  );
}

#theme-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  mix-blend-mode: screen;
}

#theme-overlay.matrix {
  opacity: 0.12;
  background: repeating-linear-gradient(to bottom, rgba(0,255,120,0.07) 0px, rgba(0,255,120,0.07) 2px, transparent 2px, transparent 18px);
  animation: matrixPulse 2s linear infinite;
}

#theme-overlay.rain {
  opacity: 0.1;
  background: repeating-linear-gradient(105deg, rgba(120,190,255,0.16) 0px, rgba(120,190,255,0.12) 2px, transparent 2px, transparent 18px);
  animation: rainDrift 1.2s linear infinite;
}

#theme-overlay.blood {
  opacity: 0.09;
  background: radial-gradient(circle at 20% 20%, rgba(255,50,50,0.18), transparent 35%),
              radial-gradient(circle at 80% 30%, rgba(255,120,0,0.1), transparent 30%),
              radial-gradient(circle at 50% 80%, rgba(255,30,30,0.07), transparent 35%);
  animation: bloodPulse 2.5s ease-in-out infinite;
}

#theme-overlay.cherry {
  opacity: 0.07;
  background: radial-gradient(circle at 15% 25%, rgba(255,70,140,0.14), transparent 30%),
              radial-gradient(circle at 75% 35%, rgba(255,170,70,0.1), transparent 30%),
              radial-gradient(circle at 55% 75%, rgba(255,70,140,0.07), transparent 35%);
  animation: cherryPulse 3s ease-in-out infinite;
}

#theme-overlay.defaultfx {
  opacity: 0.05;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 25%),
              radial-gradient(circle at 80% 70%, rgba(200,255,0,0.08), transparent 30%);
}

@keyframes matrixPulse {
  0%, 100% { filter: brightness(1); transform: translateY(0); }
  50% { filter: brightness(1.35); transform: translateY(3px); }
}

@keyframes rainDrift {
  from { transform: translate3d(0, -12px, 0); }
  to { transform: translate3d(-8px, 12px, 0); }
}

@keyframes bloodPulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.18; }
}

@keyframes cherryPulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.14; }
}

#start {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  cursor: none;
}

#start .logo {
  /* decorative display font for the landing logo */
  font-family: 'Angel Wish', 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 10vw, 120px);
  letter-spacing: -1px;
  line-height: 1;
  /* pinkish gradient for the logo */
  background: linear-gradient(135deg, #ffd6f0 0%, #ff8ac4 60%, #ff2d78 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse-logo 3s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255,45,120,0.25)); }
  50% { filter: drop-shadow(0 0 60px rgba(255,45,120,0.6)); }
}

#start .click-hint {
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--muted);
  animation: blink 1.4s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

#start .line {
  /* Hidden: grid lines removed per user request */
  display: none !important;
}

#start.hidden {
  display: none;
}

#app {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#app.visible {
  opacity: 1;
}

.profile-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow: hidden;
  opacity: 0;
  box-shadow: 0 10px 50px rgba(0,0,0,0.28);
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,255,0,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.profile-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 35%, transparent 65%, rgba(255,255,255,0.04));
  opacity: 0.7;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
  align-self: flex-start;
  display: block;
  margin-top: 4px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--accent2), var(--accent));
  animation: spin 4s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.avatar-inner {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-inner img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-initials {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes glitch-sh {
  0%, 100% { clip-path: none; transform: none; }
  20% { clip-path: inset(10% 0 80% 0); transform: translateX(-4px); }
  40% { clip-path: inset(60% 0 20% 0); transform: translateX(4px); }
  60% { clip-path: inset(30% 0 50% 0); transform: translateX(-2px); }
  80% { clip-path: none; }
}

.avatar-inner:hover img {
  animation: glitch-sh 0.3s steps(1) forwards;
}

.avatar-wrap.theme-spin .avatar-ring {
  animation-duration: 0.55s !important;
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 6px;
}

.card-name {
  font-family: 'Angel Wish', 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 4.2vw, 40px);
  line-height: 1;
  letter-spacing: -0.6px;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.card-role {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-stats {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.stat {
  font-size: 10px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  text-align: center;
  min-width: 60px;
  display: inline-block;
}

.stat strong {
  color: var(--text);
  font-size: 16px;
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.stat .stat-label {
  display: block;
  margin-top: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

.name-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.badge:hover {
  transform: translateY(-4px) scale(1.15);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(255,255,255,0.12), 0 0 22px var(--accent);
}

.badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.badge .tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.badge:hover .tip {
  opacity: 1;
}

.bio-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 360px;
  margin-top: 8px;
  min-height: 48px;
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--muted);
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

#mini-views {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6,6,8,0.72);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.12s ease;
  font-size: 12px;
  cursor: none;
}

#mini-views:hover {
  transform: translateY(-3px);
}

#mini-views svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--muted);
}

#mini-views .mini-count {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
}

.skills-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  width: 640px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 10px 50px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.skills-card[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.skills-card[data-visible="false"] {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 40px));
}

.skills-header {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.skill-row {
  margin-bottom: 16px;
}

.skill-row:last-child {
  margin-bottom: 0;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 8px;
}

.skill-meta .name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-meta .name img {
  width: 14px;
  height: 14px;
}

.skill-meta .pct {
  color: var(--accent);
  font-size: 12px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

.skill-bar-bg {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0;
  transition: width 1.6s cubic-bezier(0.4,0,0.2,1);
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  animation: slide-up 0.6s ease forwards 1s;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.social-btn img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.social-btn:hover {
  background: rgba(200,255,0,0.08);
  border-color: rgba(200,255,0,0.4);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-btn:hover img {
  opacity: 1;
  filter: none;
}

.controls-bar {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(6,6,8,0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.45);
  white-space: nowrap;
}

.ctrl-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

.theme-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: none;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.theme-dot:hover {
  transform: scale(1.2);
  border-color: rgba(255,255,255,0.4);
}

.theme-dot.active {
  border-color: var(--accent);
}

.vol-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vol-icon {
  font-size: 14px;
  cursor: none;
  color: var(--muted);
  transition: color 0.2s;
}

.vol-icon:hover {
  color: var(--text);
}

input[type=range].ctrl-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 70px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  outline: none;
  cursor: none;
}

input[type=range].ctrl-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: none;
}

#toggle-skills {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 220;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

#toggle-skills:hover {
  transform: translateY(-3px);
}

#toggle-skills.active {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 0 10px var(--accent);
}

body.theme-neon {
  --accent: #00ffaa;
  --accent2: #7c3aed;
}

body.theme-blood {
  --accent: #ff2d2d;
  --accent2: #ff9000;
}

body.theme-ice {
  --accent: #00d4ff;
  --accent2: #0057ff;
}

body.theme-cherry {
  --accent: #ff2d78;
  --accent2: #ff9e2d;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-left {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}

.theme-flash {
  animation: themeFlash 0.35s ease;
}

@keyframes themeFlash {
  0% { filter: brightness(1.55); }
  100% { filter: brightness(1); }
}

@media (max-width: 700px) {
  #app {
    padding: 20px;
    gap: 16px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .controls-bar {
    bottom: 16px;
    padding: 6px 10px;
    gap: 6px;
  }

  input[type=range].ctrl-slider {
    width: 50px;
  }

  .skills-card {
    width: calc(100vw - 32px);
  }

  #toggle-skills {
    right: 58px;
  }
}
