:root {
  --primary-color: #FFFFFF; 
  --secondary-color: #FFFFFF;
  --background-dark: #000000;
  --text-color: #FFFFFF;
  --cursor-hue: 0deg;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: 'Space Mono', monospace;
  background: var(--background-dark);
  color: var(--text-color);
  overflow-x: hidden;
  overflow-y: auto;
  perspective: 1000px;
  cursor: none;
}

.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  background: url('assets/cursor.png') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease-out;
  filter: hue-rotate(var(--cursor-hue, 0deg)); 
}

.glitch-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0;
  z-index: 20;
  mix-blend-mode: color-dodge;
}

#profile-block {
  transform-style: preserve-3d;
  transition: transform 0.5s ease-out, background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, opacity 0.3s ease;
  width: 640px;
  max-width: 90vw;
}

#profile-block.profile-appear {
  animation: slideInFade 1s ease-out forwards;
}

@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.profile-container {
  position: relative;
  transform-style: preserve-3d;
}

.profile-container::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 10px 10px,
    var(--primary-color) 15%,
    transparent 25%
  );
  animation: orbit 3s linear infinite;
  z-index: -1;
  filter: blur(2px);
  box-shadow: 0 0 10px var(--primary-color);
}

.profile-container.fast-orbit::after {
  animation: fast-orbit 0.5s linear forwards;
}

#profile-name {
  font-weight: 700;
  font-size: 32px;
  text-align: left;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.4);
}

#profile-bio {
  font-family: 'Courier New', monospace;
}

.visitor-icon {
  stroke: var(--primary-color);
}

.visitor-count {
  color: var(--primary-color);
}

.volume-icon {
  stroke: var(--primary-color);
}

.volume-icon:hover,
.volume-icon:active {
  stroke: var(--secondary-color);
}

.volume-slider {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.volume-slider::-webkit-slider-thumb {
  border-color: var(--primary-color);
}

.transparency-icon {
  stroke: var(--primary-color);
}

.transparency-icon:hover,
.transparency-icon:active {
  stroke: var(--secondary-color);
}

.transparency-slider {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.transparency-slider::-webkit-slider-thumb {
  border-color: var(--primary-color);
}

.top-controls {
  position: fixed;
  bottom: calc(50% - 240px - 20px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 6px 10px;
  display: flex;
  gap: 12px;
  z-index: 25;
}

.volume-control, .transparency-control {
  z-index: 25;
  background: none;
  padding: 0;
}

.volume-slider, .transparency-slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  width: 80px;
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
  touch-action: manipulation;
}

.volume-slider::-webkit-slider-thumb, .transparency-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  cursor: grab;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.volume-slider::-webkit-slider-thumb:hover, .transparency-slider::-webkit-slider-thumb:hover,
.volume-slider::-webkit-slider-thumb:active, .transparency-slider::-webkit-slider-thumb:active {
  background: #E0E0FF;
}

@media (max-width: 768px) {
  #profile-block {
    width: 85vw;
    max-width: 360px;
    padding: 15px;
    left: 50%;
    transform: translateX(-50%);
  }

  .profile-picture {
    width: 80px;
    height: 80px;
  }

  #profile-name {
    font-size: 18px;
  }

  #profile-bio {
    font-size: 12px;
  }

  .visitor-counter {
    font-size: 10px;
    padding: 6px 10px;
  }

  .visitor-icon {
    width: 14px;
    height: 14px;
  }

  .top-controls {
    bottom: calc(50% - 200px - 20px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 8px;
    gap: 10px;
  }

  .volume-slider, .transparency-slider {
    width: 60px;
  }

  .volume-icon, .transparency-icon {
    width: 16px;
    height: 16px;
  }

  #start-text {
    font-size: 18px;
  }
}

@keyframes orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fast-orbit {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}