* {
  margin: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: black;
  color: white;
  overflow-x: hidden;
}

#loader {
  position: fixed;
  inset: 0;
  background: black;
  display: grid;
  place-items: center;
  z-index: 999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #222;
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.bg-item {
  position: absolute;
  width: 45vmax;
  object-fit: cover;
  filter: blur(20px);
  opacity: 0.65;
  pointer-events: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: -1;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 3rem 1rem;
  display: grid;
  gap: 4rem;
  opacity: 0;
}

.section {
  display: grid;
  gap: 1.2rem;
}

.profile {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.avatar {
  width: 100px;
  border-radius: 14px;
}

.desc {
  opacity: 0.8;
}

.stats {
  margin-left: auto;
  text-align: right;
}

.stats .label {
  font-size: 0.75rem;
  opacity: 0.6;
}

.stats .count {
  font-size: 1.8rem;
  font-weight: 600;
}

.links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.btn:hover {
  transform: scale(1.15);
}

.btn:active {
  transform: scale(0.95);
}

.discord:hover {
  background: #5865f2;
  border-color: #5865f2;
}

.roblox:hover {
  background: #e2231a;
  border-color: #e2231a;
}

h2 span {
  font-size: 0.75rem;
  opacity: 0.55;
  font-weight: normal;
  margin-left: 0.3rem;
}


.projects {
  display: grid;
  gap: 1.6rem;
}

.project {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
  transition: transform 0.35s ease;
}

.project:hover {
  transform: scale(0.95);
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;

  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;

  color: white;
  pointer-events: none;

  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
}

.enter {
  animation: drop 0.9s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .profile {
    flex-direction: column;
    text-align: center;
  }

  .stats {
    margin-left: 0;
    margin-top: 1rem;
    text-align: center;
  }
}
