@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
  --red: #dc143c;
  --red-glow: rgba(220, 20, 60, 0.6);
  --dark-red: #8b0000;
  --black: #0a0a0a;
  --card-bg: rgba(18, 18, 18, 0.8);
  --card-border: rgba(220, 20, 60, 0.15);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #000;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

#rain, #particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#particles {
  z-index: 2;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 400px;
  z-index: 10;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark-red), var(--red));
  background-size: cover;
  background-position: center;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 50%, #000 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  min-height: 400px;
}

.avatar-zone {
  position: relative;
  flex-shrink: 0;
}

.avatar-container {
  position: relative;
  width: 150px;
  height: 150px;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), #ff1744, var(--red));
  animation: rotate 4s linear infinite;
  opacity: 0.8;
  filter: blur(8px);
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.avatar {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #000;
  display: block;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.avatar-decoration {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background-size: contain;
  background-position: center;
  z-index: 1;
  pointer-events: none;
}

.clan-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 20px var(--red-glow);
}

.clan-badge img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.identity-section {
  flex: 1;
  padding-bottom: 1rem;
}

.nameplate {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(90deg, rgba(220, 20, 60, 0.15), transparent);
  border-left: 4px solid var(--red);
  backdrop-filter: blur(10px);
  border-radius: 0 12px 12px 0;
}

.username {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--red), #fff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  filter: drop-shadow(0 0 30px var(--red-glow));
  line-height: 1;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.clan-tag {
  padding: 0.5rem 1rem;
  background: rgba(220, 20, 60, 0.2);
  border: 2px solid var(--red);
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--red);
  box-shadow: 0 0 20px var(--red-glow);
}

.user-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  padding-left: 1.5rem;
  font-family: 'Space Grotesk', monospace;
}

/* Main Container */
.main-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: -4rem auto 4rem;
  padding: 0 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 30px rgba(220, 20, 60, 0.3);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(220, 20, 60, 0.2);
}

.card-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 10px var(--red-glow));
}

.card-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--red);
}

.bio {
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.badges-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.discord-badge {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: help;
  transition: all 0.3s ease;
}

.discord-badge:hover {
  background: rgba(220, 20, 60, 0.2);
  border-color: var(--red);
  transform: scale(1.1);
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(220, 20, 60, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(220, 20, 60, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(220, 20, 60, 0.1);
  border-color: var(--red);
}

.stat-emoji {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px var(--red-glow));
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(220, 20, 60, 0.2);
  border-color: var(--red);
  color: var(--text);
  transform: translateY(-2px);
}

.projects-section {
  grid-column: 1 / -1;
}

.section-header {
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--red);
}

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
}

.project-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card:hover::before {
  transform: translateX(100%);
}

.project-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 30px rgba(220, 20, 60, 0.3);
  transform: translateX(8px);
}

.project-card.featured {
  border: 2px solid var(--red);
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(139, 0, 0, 0.1));
}

.project-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 15px var(--red-glow));
}

.project-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px var(--red-glow);
}

.contact-card {
  grid-column: 1 / -1;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-dim);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #43b581;
  box-shadow: 0 0 15px rgba(67, 181, 129, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

/* Links Tree Section */
.links-tree-section {
  grid-column: 1 / -1;
}

.tree-container {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 1rem;
  line-height: 1.8;
}

.tree-line {
  display: flex;
  align-items: center;
  margin: 0.25rem 0;
  transition: all 0.3s ease;
}

.tree-line:hover {
  background: rgba(220, 20, 60, 0.05);
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  border-radius: 6px;
}

.tree-branch {
  color: var(--red);
  margin-right: 0.5rem;
  font-weight: bold;
  white-space: pre;
  filter: drop-shadow(0 0 8px var(--red-glow));
}

.tree-label {
  color: var(--text);
  font-weight: 600;
}

.tree-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tree-link:hover {
  color: var(--red);
  text-decoration: underline;
}

.indent-1 {
  padding-left: 1.5rem;
}

.indent-2 {
  padding-left: 3rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-dim);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #43b581;
  box-shadow: 0 0 15px rgba(67, 181, 129, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(67, 181, 129, 0.8); }
  50% { box-shadow: 0 0 25px rgba(67, 181, 129, 1); }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem 4rem;
  }

  .nameplate {
    flex-direction: column;
    text-align: center;
    border-radius: 12px;
    border-left: none;
    border-top: 4px solid var(--red);
  }

  .username {
    font-size: 2rem;
  }

  .user-subtitle {
    padding-left: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    flex-direction: column;
    text-align: center;
  }

  .tree-container {
    padding: 1.5rem;
    font-size: 0.9rem;
  }

  .indent-1 {
    padding-left: 1rem;
  }

  .indent-2 {
    padding-left: 2rem;
  }
}
