:root {
  --text: #f5f7fb;
  --text-soft: rgba(245, 247, 251, 0.76);
  --text-faint: rgba(245, 247, 251, 0.5);

  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.16);

  --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  --glow: 0 0 24px rgba(255, 255, 255, 0.08);

  --chip-bg: rgba(255, 255, 255, 0.08);
  --chip-border: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: url("assets/cursor.webp") 16 16, auto;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  overflow: hidden;
  background: #06070b;
  color: var(--text);
}

::selection {
  background: #ffffff;
  color: #0b0d14;
}

.page {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(120, 80, 255, 0.18), transparent 22%),
    radial-gradient(circle at 85% 15%, rgba(0, 200, 255, 0.14), transparent 20%),
    radial-gradient(circle at 50% 85%, rgba(255, 70, 170, 0.10), transparent 22%),
    linear-gradient(145deg, #05060a 0%, #0b1020 40%, #11182b 75%, #090b12 100%);
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.04), transparent 18%),
    radial-gradient(circle at 75% 35%, rgba(255,255,255,0.03), transparent 18%),
    radial-gradient(circle at 50% 70%, rgba(255,255,255,0.025), transparent 20%);
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 92%);
  opacity: 0.4;
  pointer-events: none;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.42;
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite;
}

.ambient-1 {
  width: 340px;
  height: 340px;
  top: 6%;
  left: 6%;
  background: rgba(110, 70, 255, 0.28);
}

.ambient-2 {
  width: 390px;
  height: 390px;
  right: 8%;
  top: 16%;
  background: rgba(0, 220, 255, 0.18);
  animation-delay: -4s;
}

.ambient-3 {
  width: 360px;
  height: 360px;
  left: 38%;
  bottom: 4%;
  background: rgba(255, 0, 128, 0.14);
  animation-delay: -8s;
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: soft-light;
}

.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(0,220,255,0.06) 28%, rgba(120,80,255,0.04) 48%, transparent 72%);
  filter: blur(18px);
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.profile-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  perspective: 1200px;
}

.profile-card {
  position: relative;
  width: min(760px, 94vw);
  border-radius: 28px;
  padding: 42px 24px 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  animation:
    panelIntro 1.2s cubic-bezier(0.18, 0.84, 0.22, 1),
    panelFloat 6s ease-in-out 1.2s infinite,
    panelGlow 4.5s ease-in-out 1.2s infinite;
  will-change: transform, box-shadow, opacity;
}

.card-shine {
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255,255,255,0.08) 40%,
    transparent 60%
  );
  transform: translateX(-60%) rotate(12deg);
  animation: shineMove 8s linear infinite;
  pointer-events: none;
}

.profile-top {
  position: relative;
  text-align: center;
  z-index: 1;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.30em;
  color: var(--text-faint);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.username {
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 0 20px rgba(255,255,255,0.10);
}

.nickname {
  margin-top: 12px;
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 650;
  color: var(--text);
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dev-badge {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.18));
  animation: badgePulse 2.8s ease-in-out infinite;
}

.location {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-soft);
}

.about {
  position: relative;
  max-width: 640px;
  margin: 30px auto 0;
  text-align: center;
  z-index: 1;
}

.about p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-soft);
}

.about strong {
  color: var(--text);
  font-weight: 700;
}

.about-extra {
  margin-top: 10px;
}

.skills {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  z-index: 1;
}

.skill-chip {
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
  animation: chipFloat 4s ease-in-out infinite;
}

.skill-chip:nth-child(2) { animation-delay: 0.2s; }
.skill-chip:nth-child(3) { animation-delay: 0.4s; }
.skill-chip:nth-child(4) { animation-delay: 0.6s; }
.skill-chip:nth-child(5) { animation-delay: 0.8s; }
.skill-chip:nth-child(6) { animation-delay: 1s; }

.socials {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  z-index: 1;
}

.emoji-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.emoji-link img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 120, 120, 0.25));
}

.emoji-link:hover {
  transform: scale(1.12) translateY(-2px);
  filter: brightness(1.08);
}

.emoji-link.is-animating {
  animation: emojiPop 0.45s ease;
}

.volume-box {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  top: 16px;
  left: 16px;
  padding: 10px 12px;
  animation: softAppear 0.8s ease;
}

.volume-icon {
  font-size: 15px;
  min-width: 16px;
}

#volumeRange {
  width: 120px;
  accent-color: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.8s ease forwards;
}

.reveal-1 { animation-delay: 0.12s; }
.reveal-2 { animation-delay: 0.28s; }
.reveal-3 { animation-delay: 0.42s; }
.reveal-4 { animation-delay: 0.56s; }

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 30%),
    linear-gradient(145deg, #040509 0%, #090d18 45%, #0c1220 75%, #05070c 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.enter-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-screen__inner {
  text-align: center;
  animation: enterPulse 2.4s ease-in-out infinite;
}

.enter-screen__title {
  font-size: clamp(38px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f5f7fb;
  text-shadow:
    0 0 18px rgba(255,255,255,0.10),
    0 0 36px rgba(120, 80, 255, 0.10);
}

.enter-screen__subtitle {
  margin-top: 14px;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 247, 251, 0.72);
}

@keyframes enterPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.025);
    opacity: 1;
  }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIntro {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.94) rotateX(10deg);
    filter: blur(10px);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) scale(1.01) rotateX(0deg);
    filter: blur(0);
    box-shadow: 0 24px 90px rgba(0,0,0,0.28);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0);
    box-shadow: var(--shadow);
  }
}

@keyframes panelFloat {
  0%, 100% {
    transform: translateY(0px) rotateZ(0deg);
  }
  25% {
    transform: translateY(-4px) rotateZ(0.15deg);
  }
  50% {
    transform: translateY(-8px) rotateZ(0deg);
  }
  75% {
    transform: translateY(-4px) rotateZ(-0.15deg);
  }
}

@keyframes panelGlow {
  0%, 100% {
    box-shadow:
      0 20px 80px rgba(0, 0, 0, 0.35),
      0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow:
      0 24px 95px rgba(0, 0, 0, 0.42),
      0 0 28px rgba(255, 255, 255, 0.06);
  }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -12px) scale(1.05); }
}

@keyframes shineMove {
  0% { transform: translateX(-80%) rotate(12deg); }
  100% { transform: translateX(80%) rotate(12deg); }
}

@keyframes emojiPop {
  0% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  25% {
    transform: scale(1.25) rotate(-8deg);
    filter: brightness(1.15);
  }
  50% {
    transform: scale(0.92) rotate(8deg);
    filter: brightness(1.05);
  }
  75% {
    transform: scale(1.12) rotate(-4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
}

@keyframes softAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.18));
  }
  50% {
    transform: scale(1.08) rotate(3deg);
    filter: drop-shadow(0 0 16px rgba(120, 80, 255, 0.28));
  }
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .page {
    min-height: 100vh;
    height: auto;
  }

  .profile-wrap {
    min-height: 100vh;
    padding: 82px 14px 80px;
  }

  .profile-card {
    width: 100%;
    padding: 28px 16px 24px;
    border-radius: 24px;
  }

  .nickname {
    font-size: 17px;
  }

  .about p {
    font-size: 15px;
  }

  .skill-chip {
    font-size: 13px;
    padding: 9px 13px;
  }

  .volume-box {
    top: 12px;
    left: 12px;
    right: 12px;
    justify-content: center;
  }

  .cursor-glow {
    width: 160px;
    height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .cursor-glow {
    display: none;
  }
}