/*
  Copyright © 2025 Cheddlar. All rights reserved.
*/

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a193c 100%);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#click-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a193c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s;
  z-index: 999;
  cursor: pointer;
}

#click-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#click-text {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  color: #c4b5fd;
  text-shadow: 0 0 15px rgba(196, 181, 253, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.card {
  background: rgba(34, 34, 51, 0.93);
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(80, 0, 120, 0.23);
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
  border: 1.5px solid #6d28d9;
  z-index: 10;
}

.card:hover {
  box-shadow: 0 8px 40px 0 rgba(80, 0, 120, 0.35);
}

.avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px 0 rgba(80, 0, 120, 0.13);
  font-size: 2rem;
  border: 2px solid #c4b5fd;
  overflow: hidden;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1 {
  font-size: 1.45rem;
  font-weight: 600;
  color: #c4b5fd;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.name {
  color: #a78bfa;
}

.subtitle {
  color: #bdb4e6;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
  font-weight: 400;
}

.links {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.links a {
  color: #a78bfa;
  transition: color 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.links a:hover {
  color: #c4b5fd;
}

.icon {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
  fill: currentColor;
}

.projects-bar {
  width: 100%;
  max-width: 700px;
  min-width: 320px;
  margin: 1.2rem 0;
  padding: 0.7rem 1.2rem;
  background: rgba(34, 34, 51, 0.93);
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(80, 0, 120, 0.23);
  border: 1.5px solid #6d28d9;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.projects-bar::-webkit-scrollbar {
  display: none;
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: rgba(50, 50, 70, 0.3);
  border-radius: 1.2rem;
  transition: all 0.2s;
  text-decoration: none;
  min-width: 90px;
  color: #bdb4e6;
}

.project-item:visited,
.project-item:active {
  color: #bdb4e6;
  text-decoration: none;
}
.project-item:hover {
  color: #c4b5fd;
  background: rgba(109, 40, 217, 0.18);
  transform: translateY(-2px) scale(1.04);
  text-decoration: none;
}

.project-icon {
  width: 1.4em;
  height: 1.4em;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: #c4b5fd;
}

.project-name {
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.project-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(-1px);
}

@media (max-width: 800px) {
  .projects-bar {
    max-width: 98vw;
    padding: 0.7rem 0.2rem;
    gap: 0.6rem;
  }
  .project-item {
    padding: 0.5rem 0.6rem;
    min-width: 70px;
  }
}

.music-player {
  margin-top: 2rem;
  background: rgba(34, 34, 51, 0.95);
  border: 1.5px solid #6d28d9;
  border-radius: 2.5rem;
  box-shadow: 0 4px 32px 0 rgba(80, 0, 120, 0.13);
  padding: 1.1rem 2.2rem 1.1rem 2.2rem;
  min-width: 260px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-info {
  color: #a78bfa;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  text-align: center;
  font-weight: 500;
}

.controls-container {
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.3rem;
}

.controls-container button {
  background: none;
  border: none;
  color: #a78bfa;
  font-size: 2.1rem;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  outline: none;
}

.controls-container button:active {
  color: #c4b5fd;
  transform: scale(0.92);
}

.controls-container button:hover {
  color: #c4b5fd;
}

@media (max-width: 400px) {
  .card, .music-player {
    min-width: 90vw;
    padding: 1.5rem 0.5rem;
    backdrop-filter: blur(8px);
    background: rgba(34, 34, 51, 0.75);
  }
}

body {
  cursor: none;
}

#cursor-canvas {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10000;
}

#visualizer {
  display: block;
  margin: 1.5rem auto;
  width: 100%;
  max-width: 400px;
  height: 120px;
  background: rgba(34, 34, 51, 0.5);
  border-radius: 1rem;
  border: 1.5px solid #6d28d9;
  box-shadow: 0 4px 32px 0 rgba(80, 0, 120, 0.23);
}

.avatar:hover {
  box-shadow: 0 0 24px 6px #a78bfa, 0 2px 12px 0 rgba(80, 0, 120, 0.13);
  transition: box-shadow 0.3s;
}

.animated-name {
  background: linear-gradient(90deg, #c4b5fd 10%, #fff 50%, #a78bfa 90%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 2.2s linear infinite;
  font-weight: 700;
  position: relative;
}

@keyframes shine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.project-item svg {
  display: inline-block;
  vertical-align: middle;
  height: 1.3em;
  width: 1.3em;
}
