:root {
  --background-color: #121212;
  --card-background: rgba(30, 30, 30, 0.6);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-color: #e0e0e0;
  --highlight-color: #ff6f00;
  --button-background: linear-gradient(90deg, #ff6f00, #ff9e42);
  --button-hover-background: linear-gradient(90deg, #ff9e42, #ff6f00);
  --font-righteous: 'Righteous', sans-serif;
  --font-poppins: 'Poppins', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-poppins);
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Profile Card */
.profile-card {
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.1) 0%, rgba(30, 30, 30, 0.8) 50%, rgba(20, 20, 20, 0.9) 100%);
  border-radius: 25px;
  border: 1px solid rgba(255, 111, 0, 0.2);
  backdrop-filter: blur(15px);
  padding: 50px 40px;
  max-width: 750px;
  width: 100%;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 111, 0, 0.1);
  animation: fadeIn 1s ease-out;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--highlight-color), #ff9e42, var(--highlight-color));
  border-radius: 25px 25px 0 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--highlight-color);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 111, 0, 0.6), 0 0 40px rgba(255, 111, 0, 0.3);
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.level-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: var(--highlight-color);
  color: #fff;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 50%;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(255, 111, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.title-glitch {
  font-family: var(--font-righteous);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  margin-bottom: 5px;
  animation: glitch 1s infinite;
}

@keyframes glitch {
  0% { text-shadow: 2px 2px #ff6f00, -2px -2px #00aaff; }
  25% { text-shadow: -2px 2px #ff6f00, 2px -2px #00aaff; }
  50% { text-shadow: 2px -2px #ff6f00, -2px 2px #00aaff; }
  75% { text-shadow: -2px -2px #ff6f00, 2px 2px #00aaff; }
  100% { text-shadow: 2px 2px #ff6f00, -2px -2px #00aaff; }
}

.subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: #aaa;
  margin-bottom: 30px;
}

.bio-section {
  text-align: left;
  line-height: 1.6;
  margin-bottom: 30px;
}

.bio-section p {
  margin-bottom: 15px;
}

.highlight {
  color: var(--highlight-color);
  font-weight: 600;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  margin-bottom: 40px;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--highlight-color);
  font-family: var(--font-righteous);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: #aaa;
}

/* Follow Button */
.follow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 50px;
  background: var(--button-background);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.5);
}

.follow-button:hover {
  background: var(--button-hover-background);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 111, 0, 0.7);
}

.follow-button i {
  margin-left: 10px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 80px;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(30, 30, 30, 0.6);
  border-left: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  z-index: 10;
  transition: width 0.3s ease;
}

.sidebar:hover {
  width: 250px;
}

.sidebar:hover .sidebar-button span {
  display: inline;
}

.sidebar:hover .social-icon {
  width: 40px;
  height: 40px;
}

.sidebar-buttons {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-button {
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.sidebar-button:hover {
  color: var(--highlight-color);
}

.sidebar-button i {
  transition: transform 0.3s ease;
}

.sidebar-button span {
  margin-left: 15px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 1rem;
  display: none;
  transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-button i {
  transform: translateX(-10px);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.youtube { background-color: #ff0000; }
.twitter { background-color: #1da1f2; }
.discord { background-color: #7289da; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc236a, #bc1888); }
.spotify { background-color: #1db954; }

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--highlight-color);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  border: none;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
  transition: all 0.3s ease;
}

.mobile-menu-button:hover {
  background: #ff9e42;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 111, 0, 0.6);
}

.mobile-menu-button.active {
  background: #ff9e42;
  transform: rotate(90deg);
}

/* Animations and effects */
.hover-3d {
  transition: transform 0.3s ease;
}

.hover-3d:hover {
  transform: translateZ(10px) rotateX(5deg) rotateY(5deg);
}


/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .content {
    padding: 15px;
  }

  .profile-card {
    padding: 35px 25px;
    max-width: 100%;
    margin: 0 10px;
  }
  
  .title-glitch {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 0.95rem;
  }
  
  .bio-section {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .stats-container {
    flex-direction: row;
    gap: 15px;
    justify-content: space-around;
  }
  
  .stat-value {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  /* Sidebar for Mobile */
  .sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 111, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 80px 20px 20px;
  }

  .sidebar.active {
    right: 0;
  }

  .sidebar-buttons {
    gap: 15px;
  }

  .sidebar-button {
    width: 100%;
    height: 55px;
    justify-content: flex-start;
    padding: 0 15px;
    border-radius: 12px;
    background: rgba(255, 111, 0, 0.1);
    border: 1px solid rgba(255, 111, 0, 0.2);
    transition: all 0.3s ease;
  }

  .sidebar-button:hover {
    background: rgba(255, 111, 0, 0.2);
    border-color: rgba(255, 111, 0, 0.4);
  }

  .sidebar-button span {
    display: inline;
    opacity: 1;
    margin-left: 15px;
    font-size: 1rem;
    font-weight: 500;
  }

  .sidebar-button i {
    transform: translateX(0);
    font-size: 1.3rem;
  }

  .social-links {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .mobile-menu-button {
    display: block;
  }

  /* Overlay for mobile sidebar */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* For screens larger than mobile but smaller than desktop (e.g., tablets) */
@media (min-width: 769px) and (max-width: 1024px) {
  .profile-card {
    max-width: 700px;
    padding: 45px 35px;
  }

  .sidebar {
    width: 70px;
  }

  .sidebar:hover {
    width: 220px;
  }

  .sidebar-button span {
    font-size: 0.95rem;
  }

  .avatar {
    width: 130px;
    height: 130px;
  }

  .title-glitch {
    font-size: 2.3rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .profile-card {
    padding: 25px 20px;
    margin: 0 5px;
  }

  .title-glitch {
    font-size: 1.8rem;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .stats-container {
    flex-direction: column;
    gap: 20px;
  }

  .sidebar {
    width: 100%;
    right: -100%;
  }
}