/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles */
:root {
  --primary: #8364e8;
  --secondary: #7048e8;
  --metallic-light: #b8a6ff;
  --metallic-mid: #8364e8;
  --metallic-dark: #5840b5;
  --metallic-shadow: #42307e;
  --bg-dark: #0f0f0f;
  --bg-card: #252525;
  --bg-card-hover: #2d2d2d;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --success: #2ecc71;
  --warning: #f1c40f;
  --danger: #e74c3c;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --container-padding: clamp(1rem, 5vw, 3rem);
  --section-spacing: clamp(2rem, 5vw, 4rem);
  --card-padding: clamp(1.25rem, 3vw, 2.5rem);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.main-container {
  min-height: 100vh;
  padding-bottom: var(--section-spacing);
  overflow-x: hidden;
}

.content-container {
  width: 100%;
  max-width: min(1440px, 90vw);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  gap: var(--section-spacing);
}

/* Hero section */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 12vh, 8rem) var(--container-padding);
  min-height: clamp(400px, 80vh, 800px);
  text-align: center;
  background-position: center;
  background-size: cover;
  margin-bottom: var(--section-spacing);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 15, 0.5),
    rgba(15, 15, 15, 0.95)
  );
  z-index: 1;
}

.profile-image {
  position: relative;
  width: clamp(180px, 25vw, 300px);
  height: clamp(180px, 25vw, 300px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  z-index: 2;
  transition: all 0.3s ease;
  background-color: var(--bg-card);
}

.profile-image:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(131, 100, 232, 0.3);
}

.profile-name {
  position: relative;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  z-index: 2;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  cursor: default;
  background: linear-gradient(
    to bottom,
    var(--metallic-light) 5%,
    var(--metallic-mid) 30%,
    var(--metallic-dark) 60%,
    var(--metallic-shadow) 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 
    0px 1px 1px rgba(255, 255, 255, 0.1),
    0px -1px 1px rgba(0, 0, 0, 0.2);
}

.profile-name::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent calc(var(--x, 0%) - 15%),
    rgba(255, 255, 255, 0.4) var(--x, 0%),
    transparent calc(var(--x, 0%) + 15%)
  ),
  linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 1;
  mix-blend-mode: overlay;
}

.profile-name::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 1px;
  z-index: -1;
  background: var(--metallic-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.3;
  filter: blur(1px);
}

.profile-name.active::before {
  opacity: 1;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  padding: var(--card-padding);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(132, 94, 247, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  position: relative;
  display: inline-block;
  color: var(--text);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Song grid */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
}

.song-card {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.song-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(132, 94, 247, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.song-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.song-card:hover .song-image {
  transform: scale(1.05);
}

.song-info {
  padding: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}

.song-title {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.status-card {
  background-color: var(--bg-card);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.status-card:hover {
  border-color: rgba(132, 94, 247, 0.2);
  transform: translateY(-3px);
}

.status-label {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.status-value {
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.status-subtext {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
  font-weight: 400;
}

.status-online { color: var(--success); }
.status-idle { color: var(--warning); }
.status-dnd { color: var(--danger); }
.status-offline { color: var(--text-muted); }

/* Info list */
.info-list {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.info-label {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: var(--text-muted);
}

.info-value {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.03);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.project-card:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(132, 94, 247, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-title {
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 700;
  margin: 0;
}

.project-link {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.project-link:hover {
  color: var(--metallic-light);
  border-bottom-color: var(--primary);
  text-shadow: 0 0 8px rgba(131, 100, 232, 0.3);
}

.project-description {
  color: var(--text-muted);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.5;
  margin: 0;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-sublink {
  color: var(--text-muted);
  text-decoration: none;
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
}

.project-sublink:hover {
  color: var(--primary);
  background: rgba(131, 100, 232, 0.1);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Contact section */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(131, 100, 232, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-link:hover::before {
  left: 100%;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(131, 100, 232, 0.25);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--metallic-dark));
  color: white;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(131, 100, 232, 0.3);
}

.contact-link:hover .contact-icon {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 6px 18px rgba(131, 100, 232, 0.4);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.contact-label {
  font-weight: 700;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--text);
  line-height: 1.2;
}

.contact-value {
  font-weight: 500;
  color: var(--text-muted);
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  transition: color 0.3s ease;
  line-height: 1.3;
}

.contact-link:hover .contact-value {
  color: var(--primary);
}

.current-song {
  color: var(--primary);
}

.current-game {
  color: var(--success);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.song-card {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

/* Large screens */
@media (min-width: 1920px) {
  html {
    font-size: 18px;
  }
  
  .content-container {
    max-width: 1600px;
  }
  
  .songs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .info-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium screens */
@media (max-width: 1024px) {
  .songs-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .info-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  .songs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .status-card {
    text-align: center;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .songs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .song-info {
    padding: 0.75rem;
  }
  
  .info-item {
    padding: 1rem;
  }
  
  .card {
    padding: var(--card-padding);
  }
} 