:root {
  --base: #24273a;
  --mantle: #1e2030;
  --crust: #181926;
  --text: #cad3f5;
  --subtext1: #b8c0e0;
  --surface0: #363a4f;
  --surface1: #494d64;
  --blue: #8aadf4;
  --lavender: #b7bdf8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--crust), var(--base));
  display: flex;
  scroll-behavior: auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  padding-top: 80px;
}

.top-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.55rem 0.9rem;
  display: flex;
  gap: 1rem;
  z-index: 1000;
  background: rgba(54, 58, 79, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid rgba(73, 77, 100, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.top-navbar a img {
  width: 22px;
  height: 22px;
  display: block;
  filter: brightness(0) saturate(100%) invert(79%) sepia(11%) saturate(464%) hue-rotate(190deg) brightness(97%) contrast(96%);
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.top-navbar a:hover img {
  opacity: 1;
  transform: scale(1.1);
}

.center-box {
  position: relative;
  background: var(--surface0);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  width: min(420px, 90%);
  border: 1px solid var(--surface1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.center-box h1 {
  background: linear-gradient(270deg, var(--lavender), #a06ae1, var(--lavender));
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.center-box p {
  color: var(--subtext1);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.center-box a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--crust);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.center-box a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(138, 173, 244, 0.35);
}

.page-content {
  margin-top: 120px;
  text-align: center;
  color: var(--text);
}

.page-content h1 {
  color: var(--lavender);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.page-content p {
  color: var(--subtext1);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.work-box {
  background: var(--surface0);
  width: 90%;
  max-width: 600px;
  min-height: 1000px;
  border-radius: 20px;
  border: 1px solid var(--surface1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  padding: 2rem;
  margin-top: 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work-box h1 {
  color: var(--lavender);
  margin-bottom: 1.5rem;
}

.projects {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.project img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.project img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(120, 153, 206, 0.15);
}

.project p {
  color: var(--subtext1);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.profile-pfp {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 0 18px rgba(211, 166, 237, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pfp:hover {
  transform: scale(1.1);
  box-shadow: 0 0 26px rgba(211, 166, 237, 0.8);
}

.social-buttons.centered {
  position: static;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #78a0d1;
  transition: transform 0.2s ease;
}

.social-buttons a img {
  width: 20px;
  height: 20px;
}

.social-buttons a:hover {
  transform: scale(1.1);
}

.aos-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.about-box {
  background: var(--surface0);
  width: 90%;
  max-width: 600px;
  min-height: 450px;
  border-radius: 20px;
  border: 1px solid var(--surface1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  padding: 2.5rem 3rem;
  margin-top: 120px;
  text-align: center;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about-box h1 {
  font-size: 2rem;
  color: #a06ae1;
  margin-bottom: 0.5rem;
}

.about-box p {
  font-size: 1rem;
  color: var(--subtext1);
  line-height: 1.6;
  max-width: 500px;
}

.skills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.skill {
  position: relative;
  display: flex;
  flex-direction: column;
}

.skill-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue);
  color: var(--crust);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  user-select: none;
}

.skill-btn img {
  height: 20px;
  width: auto;
}

.skill-btn .arrow {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.skill-btn:hover {
  transform: scale(1.05);
}

.skill-desc {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--surface0);
  color: var(--text);
  padding: 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--surface1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  margin-top: 6px;
  text-align: center;
  z-index: 10;
}

.smp {
  font-style: italic;
  color: #b7bdf8;
  font-weight: 500;
  margin-top: 1rem;
}

.games {
  color: #b7bdf8;
  margin-top: 2px;
}

.profiles-section {
  margin-top: 60px;
  text-align: center;
  width: 100%;
  padding: 3rem 1rem;
}

.profiles-section h2 {
  font-size: 2rem;
  color: var(--lavender);
  margin-bottom: 2rem;
}

.profiles-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.profile-card {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(138, 173, 244, 0.25);
}

.profile-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 0.8rem;
  object-fit: cover;
  border: 2px solid var(--lavender);
}

.profile-card h3 {
  color: var(--blue);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.profile-card p {
  color: var(--subtext1);
  font-size: 0.9rem;
  line-height: 1.3;
}

.profile-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.profile-link:hover .profile-card {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(138, 173, 244, 0.25);
}

.work-subtitle {
  font-size: 0.85rem;
  color: var(--subtext1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.work-subtitle.bottom {
  margin-top: 1.5rem;
}

.about-box {
  position: relative;
}

.game-badges {
  position: relative;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.game-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-badge img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.game-badge:hover img {
  transform: scale(1.1);
}

.mc-text {
  color: var(--subtext1);
  font-size: 0.85rem;
  margin-top: 2px;
  white-space: nowrap;
}

.game-label {
  font-size: 0.85rem;
  color: var(--subtext1);
  margin-top: 2px;
  text-align: center;
  max-width: 60px;
  word-wrap: break-word;
}

/*BG REVEAL THING*/
body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--crust), var(--base));
}

.bg-reveal {
  position: fixed;
  inset: 0;
  background: url("images/background.png") center / cover no-repeat;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;

  -webkit-mask-image: radial-gradient(
    circle 160px at var(--mx, -200px) var(--my, -200px),
    black 0%,
    transparent 70%
  );
  mask-image: radial-gradient(
    circle 160px at var(--mx, -200px) var(--my, -200px),
    black 0%,
    transparent 70%
  );
}

@media (hover: none) {
  .bg-reveal {
    display: none;
  }
}


/*PROJECTS THINGY*/

.projects-scroll-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 2rem;
  position: relative; 
}

.projects-images-index {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-img-container {
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.project-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
  display: block;
}

.project-img-container img:hover {
  transform: scale(1.05);
}

.projects-info-index {
  position: sticky;
  top: 140px;
  padding: 2rem;
  background: var(--mantle);
  border-radius: 16px;
  height: fit-content;
}


.projects-info-index {
  position: sticky;
  top: 140px;
  align-self: start; 
  padding: 2rem;
  background: var(--mantle);
  border-radius: 16px;
  height: fit-content;
}

.scroll-spacer-index {
  height: 200px; 
}

.mp {
    margin-top: 50px;
    margin-bottom: 10px;
}

.pfp-container {
  position: relative;
  display: inline-block;
}

.wave-hand {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font-size: 24px;
  transform-origin: center bottom;
  opacity: 0;
  transition: opacity 0.2s;
}

.pfp-container:hover .wave-hand {
  opacity: 1;
  animation: wave 0.6s infinite;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-20deg); }
  100% { transform: rotate(0deg); }
}

