:root {
  --background: 220 18% 8%;
  --foreground: 220 15% 95%;
  --card: 220 18% 12%;
  --card-foreground: 220 15% 95%;
  --primary: 280 100% 70%;
  --primary-foreground: 220 18% 8%;
  --secondary: 220 18% 16%;
  --secondary-foreground: 220 15% 85%;
  --muted-foreground: 220 15% 60%;
  --border: 220 18% 20%;

  --neon-purple: 280 100% 70%;
  --neon-blue: 200 100% 70%;
  --neon-pink: 320 100% 70%;
  --neon-green: 120 100% 70%;
  --neon-yellow: 60 100% 70%;

  --gradient-bg: linear-gradient(135deg, hsl(220 18% 8%), hsl(240 18% 12%));
  --gradient-neon: linear-gradient(
    135deg,
    hsl(280 100% 70%),
    hsl(200 100% 70%)
  );
  --gradient-card: linear-gradient(
    135deg,
    hsl(220 18% 12% / 0.8),
    hsl(240 18% 16% / 0.8)
  );

  --shadow-neon: 0 0 20px hsl(var(--primary) / 0.3);
  --shadow-glow: 0 0 40px hsl(var(--primary) / 0.2);

  --portfolio-background: var(--background);
  --portfolio-card-background: var(--card);
  --portfolio-text-color: var(--foreground);
  --portfolio-accent-color: var(--primary);
  --portfolio-border-color: var(--border);
  --portfolio-muted-color: var(--muted-foreground);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: none !important;
}

#custom-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease-out;
  z-index: 9999;
}

#custom-cursor.clicked {
  transform: translate(-50%, -50%) scale(1.8);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: hsl(var(--foreground));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  background: var(--gradient-bg);
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 5rem;
  left: 5rem;
  width: 8rem;
  height: 8rem;
  background: hsl(var(--neon-purple) / 0.2);
}

.floating-element:nth-child(2) {
  bottom: 5rem;
  right: 5rem;
  width: 6rem;
  height: 6rem;
  background: hsl(var(--neon-blue) / 0.2);
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  top: 50%;
  left: 2.5rem;
  width: 4rem;
  height: 4rem;
  background: hsl(var(--neon-pink) / 0.2);
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-neon {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.profile-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 1rem;
  box-shadow: var(--shadow-glow);
  padding: 2rem;
  max-width: 24rem;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
}

.avatar-container {
  position: relative;
  margin: 0 auto 1.5rem;
  width: 6rem;
  height: 6rem;
}

.avatar-glow {
  position: absolute;
  inset: -0.1rem;
  background: var(--gradient-neon);
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
  animation: pulse-neon 10s ease-in-out infinite;
  z-index: -1;
}

.avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--primary));
  object-fit: cover;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-neon);
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.avatar-fallback {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 2px solid hsl(var(--primary));
  background: hsl(var(--primary) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  color: hsl(var(--primary));
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-neon);
}

.username {
  font-size: 1.5rem;
  font-weight: bold;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.bio {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.music-player {
  background: hsl(var(--secondary) / 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}

.music-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.music-artist {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
}

.music-btn {
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn:hover {
  background: hsl(var(--primary) / 0.1);
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: hsl(var(--border));
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: hsl(var(--primary));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s ease;
}

.time-display {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  min-width: 2.5rem;
}

.track-details {
  flex-grow: 1;
  text-align: left;
  min-width: 0;
}

.music-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-controls {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.volume-slider {
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.3s ease, opacity 0.3s ease;

  height: 4px;
  background: hsl(var(--border));
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.volume-container:hover .volume-slider {
  width: 4rem;
  opacity: 1;
}

.volume-fill {
  height: 100%;
  background: hsl(var(--primary));
  border-radius: 2px;
  width: 50%;
  transition: width 0.1s ease;
}

.show-more-btn {
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.5rem auto 0;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--primary) / 0.1);
}

.chevron-icon {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.3s ease;
}

.chevron-icon.rotated {
  transform: rotate(180deg);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(var(--card) / 0.5);
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.social-link:hover {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-neon);
}

.icon {
  position: relative;
  z-index: 2;
  width: 1rem;
  height: 1rem;
}

.icon-music {
  width: 0.8rem;
  height: 0.8rem;
}

.visitor-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  color: hsl(var(--muted-foreground));
  width: 100%;
}

.counter-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.counter {
  position: relative;
  z-index: 1;
  margin-left: -0.75rem;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#bio-extra {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out,
    margin-top 0.4s ease-in-out;
}

#bio-extra.expanded {
  opacity: 1;
  margin-top: 0.5rem;
}

.nah {
  color: inherit;
  text-decoration: none;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
} 

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.2);
  border: 1px solid hsl(var(--primary));
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px hsl(var(--primary) / 0.1);
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.portfolio-btn:hover {
  background: hsl(var(--primary) / 0.3);
  box-shadow: 0 0 15px hsl(var(--primary) / 0.3);
}

.icon-arrow {
  width: 0.8rem;
  height: 0.8rem;
  transition: transform 0.3s ease;
}

.portfolio-btn:hover .icon-arrow {
  transform: translateX(5px);
}

.index-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.2);
  border: 1px solid hsl(var(--primary));
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px hsl(var(--primary) / 0.1);
}

.index-btn:hover {
  background: hsl(var(--primary) / 0.3);
  box-shadow: 0 0 15px hsl(var(--primary) / 0.3);
}

.index-btn:hover .icon-arrow {
  transform: translateX(-5px);
}

.portfolio-container {
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 2rem;
}

.portfolio-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.portfolio-header h1::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: hsl(var(--portfolio-accent-color));
  border-radius: 2px;
  box-shadow: 0 0 10px hsl(var(--portfolio-accent-color));
}

.portfolio-header p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: hsl(var(--portfolio-muted-color));
  max-width: 600px;
  margin: 0 auto;
}

.portfolio-grid {
  overflow-x: auto;
  padding-bottom: 1rem;
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--primary)) hsl(var(--border));
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.portfolio-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
}

.portfolio-grid.active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.portfolio-grid::-webkit-scrollbar {
  display: none;
}

.portfolio-grid::-webkit-scrollbar-track {
  background: hsl(var(--border));
  border-radius: 4px;
}

.portfolio-grid::-webkit-scrollbar-thumb {
  background-color: hsl(var(--primary));
  border-radius: 4px;
  border: 2px solid hsl(var(--background));
}

.project-card {
  background: hsl(var(--portfolio-card-background) / 0.8);
  border: 1px solid hsl(var(--portfolio-border-color) / 0.5);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  max-width: 30rem;
  flex-shrink: 0;
  user-drag: none;
  -webkit-user-drag: none;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card h2 {
  font-size: 1.25rem;
  color: hsl(var(--portfolio-accent-color));
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-card p {
  font-size: 0.9rem;
  color: hsl(var(--portfolio-muted-color));
  flex-grow: 1;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.project-link:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  box-shadow: 0 0 10px hsl(var(--primary) / 0.5);
  transform: translateY(-2px);
}

.project-link svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 640px) {
  .profile-card {
    padding: 1.5rem;
    max-width: 20rem;
  }

  .avatar-container,
  .avatar,
  .avatar-fallback {
    width: 5rem;
    height: 5rem;
  }

  .username {
    font-size: 1.25rem;
  }
  .portfolio-header {
    margin-bottom: 2rem;
  }
  .project-card {
    padding: 1rem;
  }
  .project-card h2 {
    font-size: 1.1rem;
  }
  .project-card p {
    font-size: 0.85rem;
  }
}



