:root {
  --white: #ffffff;
  --white-80: rgba(255,255,255,0.8);
  --white-50: rgba(255,255,255,0.5);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-06: rgba(255,255,255,0.06);
  --white-05: rgba(255,255,255,0.05);
  --glass-bg: rgba(10,10,13,0.6);
  --glass-border: rgba(255,255,255,0.11);
  --card-radius: 20px;
  --status-online: #23d160;
  --status-idle: #f5a623;
  --status-dnd: #e84040;
  --status-offline: #747f8d;
  --card-w: 780px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Space Mono', 'Courier New', monospace;
  background: #000;
  color: var(--white);
  cursor: default;
}

#background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: blur(12px) brightness(0.55);
  transform: scale(1.08);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.7) 100%);
}

#start-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

#start-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  user-select: none;
}

.splash-logo {
  font-size: 56px;
  color: var(--white);
  opacity: 0.12;
  animation: pulse-logo 3s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.22; transform: scale(1.05); }
}

#start-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
  text-align: center;
  min-height: 1.5em;
}

.splash-hint {
  font-size: 11px;
  color: var(--white-50);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: blink-hint 2s ease-in-out infinite;
}

@keyframes blink-hint {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.08; }
}

#nav-buttons {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 6px;
  background: rgba(6,6,8,0.65);
  border: 1px solid var(--glass-border);
  padding: 7px 10px;
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--white-50);
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-button:hover {
  color: var(--white);
  background: var(--white-10);
}

.nav-button.active {
  color: var(--white);
  background: var(--white-10);
  border-color: var(--white-20);
}

.nav-icon {
  font-size: 9px;
  opacity: 0.6;
}

.top-controls {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(6,6,8,0.65);
  border: 1px solid var(--glass-border);
  padding: 9px 18px;
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-icon {
  width: 18px;
  height: 18px;
  color: var(--white-80);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s;
}

.volume-icon:hover { color: var(--white); }

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 88px;
  height: 3px;
  border-radius: 2px;
  background: var(--white-20);
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 0 5px rgba(255,255,255,0.4);
}

.card-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
}

.card {
  width: var(--card-w);
  max-width: 92vw;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 26px 28px;
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.035) inset,
    0 10px 50px rgba(0,0,0,0.65),
    0 0 100px rgba(0,0,0,0.25);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  pointer-events: auto;
  position: relative;
  flex-shrink: 0;
}

.badge-box {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 35;
}

.badge-group {
  display: flex;
  gap: 5px;
  background: rgba(0,0,0,0.4);
  padding: 5px 9px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
}

.badge-container {
  position: relative;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.badge {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(255,255,255,0.35));
  transition: transform 0.2s;
}

.badge:hover { transform: scale(1.25); }

.tooltip {
  visibility: hidden;
  background: rgba(0,0,0,0.92);
  color: var(--white);
  text-align: center;
  border-radius: 7px;
  padding: 4px 9px;
  position: absolute;
  z-index: 200;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  border: 1px solid var(--glass-border);
}

.badge-container:hover .tooltip,
.visitor-counter:hover .tooltip,
.social-link:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.profile-container {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.profile-picture {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.13);
  display: block;
}

.avatar-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  pointer-events: none;
  z-index: 5;
  object-fit: contain;
}

.status-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid rgba(10,10,13,0.9);
  background: var(--status-offline);
  z-index: 6;
  transition: background 0.4s;
}

.status-dot.online  { background: var(--status-online); }
.status-dot.idle    { background: var(--status-idle); }
.status-dot.dnd     { background: var(--status-dnd); }
.status-dot.offline { background: var(--status-offline); }

.profile-container::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(255,255,255,0.45);
  border-bottom-color: rgba(255,255,255,0.1);
  animation: orbit 6s linear infinite;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.35s;
}

.profile-container:hover::before { opacity: 1; }

@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 2px;
  min-width: 0;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#profile-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--white);
  text-shadow: 0 0 28px rgba(255,255,255,0.2);
  white-space: nowrap;
}

.status-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.status-badge.online  { color: var(--status-online);  background: rgba(35,209,96,0.1); }
.status-badge.idle    { color: var(--status-idle);    background: rgba(245,166,35,0.1); }
.status-badge.dnd     { color: var(--status-dnd);     background: rgba(232,64,64,0.1); }
.status-badge.offline { color: var(--status-offline); background: rgba(116,127,141,0.1); }

.profile-bio {
  color: var(--white-80);
  font-size: 13px;
  line-height: 1.65;
}

.profile-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ptag {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--white-06);
  border: 1px solid var(--glass-border);
  color: var(--white-50);
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--white-50);
}

.activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-online);
  flex-shrink: 0;
  box-shadow: 0 0 5px var(--status-online);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.bio-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-20), transparent);
  margin: 2px 0;
}

.presence-section {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 11px 15px;
}

.presence-header {
  margin-bottom: 7px;
}

.presence-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-50);
}

.presence-activity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.activity-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
}

.activity-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.activity-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.activity-details {
  font-size: 11px;
  color: var(--white-50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-05);
  border: 1px solid var(--glass-border);
  border-radius: 11px;
  transition: all 0.22s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--white-10);
  border-color: var(--white-20);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.social-link .tooltip {
  bottom: 118%;
}

.social-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.2s;
}

.social-link:hover .social-icon { opacity: 1; }

.visitor-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white-05);
  border: 1px solid var(--glass-border);
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 12px;
  cursor: default;
  position: relative;
}

.visitor-icon {
  width: 14px;
  height: 14px;
  opacity: 0.55;
  flex-shrink: 0;
}

#visitor-count {
  font-weight: 700;
  color: var(--white);
}

.visitor-label {
  color: var(--white-50);
}

.card-header {
  margin-bottom: 2px;
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
}

.title-accent {
  color: var(--white-50);
  margin-right: 8px;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card {
  display: flex;
  background: var(--white-05);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  min-height: 160px;
}

.project-card:hover {
  border-color: var(--white-20);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

.project-image {
  width: 36%;
  min-width: 150px;
  object-fit: cover;
  flex-shrink: 0;
}

.project-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.project-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.project-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tag {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--white-06);
  border: 1px solid var(--glass-border);
  color: var(--white-80);
}

.project-description {
  color: var(--white-50);
  font-size: 12px;
  line-height: 1.65;
  flex: 1;
}

.project-action {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--white);
  background: var(--white-10);
  border: 1px solid var(--white-20);
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.project-action:hover {
  background: var(--white-20);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.4);
}

.hidden { display: none !important; }

@media (max-width: 860px) {
  :root { --card-w: 92vw; }

  .card {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  #nav-buttons {
    top: 12px;
    gap: 4px;
    padding: 5px 7px;
  }

  .nav-button {
    padding: 7px 13px;
    font-size: 11px;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-info {
    align-items: center;
  }

  .badge-box {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
  }

  .profile-footer {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    flex-direction: column;
  }

  .project-image {
    width: 100%;
    height: 150px;
    min-width: unset;
  }

  #profile-name {
    font-size: 18px;
  }

  .top-controls {
    bottom: 14px;
  }
}
