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

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-dark: rgba(0, 0, 0, 0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text-primary: #f0f0f5;
  --text-secondary: #888899;
  --text-muted: #555566;
  --accent: #f83939;
  --accent-fadeout: #c23737;
  --accent-glow: rgba(250, 139, 139, 0.15);
  --accent2: #60a5fa;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

h1, h2, h3 {
  color: var(--accent-fadeout) !important;
}

h1.massive {
  font-size: 45px;
  font-weight: bolder;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(167,139,250,0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(96,165,250,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

canvas#bg {
  display: none;
}

#app {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 100%;
  margin: 0 auto;
  padding: 80px;
  gap: 20px;
  min-height: 100vh;
}

aside#sidebar {
  width: 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 24px;
  height: fit-content;
}

#divider {
  width: 1px;
  background: linear-gradient(transparent, var(--border), transparent);
  margin: 0 4px;
}

#about-section {
  flex: 1;
  min-width: 0;
}

#about-section main {
  flex: 1;
  min-width: 0;
}

#projects-section, #gear-section {
  display: none;
}

.box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s;
}

.box:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.box > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.box > div:first-child img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  object-fit: cover;
}

.short-info h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.short-info p {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.box > p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.box > div:last-of-type {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.d-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--mono);
  transition: all 0.2s;
}

.d-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.box h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--mono);
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(21% - 8px);
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.social:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.social i {
  transition: all 0.4s;
}
.social:hover i {
  rotate: 8deg;
}

.game-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  aspect-ratio: 2 / 3;
  width: 120px;
  position: relative;
  box-shadow: 0 4px 10px #0000004d;
}

.game-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  overflow-clip-margin: content-box;
  overflow: clip;
}

.game-wrapper img:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.game-wrapper .game-name {
  opacity: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem .5rem .8rem;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(10px);
  text-align: center;
  background: linear-gradient(#0000, #000000f2);
  border-radius: 0 0 8px 8px;
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
  
}

.game-wrapper:hover .game-name {
  opacity: 1;
  transform: translateY(0px);
}

nav#navbar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  backdrop-filter: blur(12px);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  width: 100%;
}

.nav-item a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.nav-item i {
  font-size: 15px;
  opacity: 0.7;
  transition: all 0.5s ease;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--accent) !important;
  color: var(--text-primary);
}

.nav-item:hover i {
  rotate: 10deg;
}

.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(250, 139, 139, 0.2);
}

.nav-item.active i {
  opacity: 1;
}

@media (max-width: 900px) {
  #app {
    flex-direction: column;
    padding: 16px;
  }

  aside#sidebar {
    width: 100%;
    min-width: unset;
    position: static;
  }
}
