body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    animation: fadeInPage 0.8s ease-out forwards;
    background: linear-gradient(to bottom, #0b0b2b, #1b2735 70%, #090a0f);
    overflow-x: hidden;
    transform: translateZ(0);
}

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

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    background: none;
  margin: 30px auto 0;
    padding: 0 1rem;
    list-style-type: none;
}

.nav li {
    display: flex;
}

.nav li a {
    text-decoration: none;
    color: white;
    padding: 10px 18px;
    display: block;
    font-weight: bold;
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav li a:hover {
    background-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .nav {
        gap: 0.5rem 0.75rem;
        margin: 16px auto 12px;
    }

    .nav li a {
        padding: 8px 12px;
        font-size: 1rem;
    }
}

main {
    padding: 20px;
    text-align: center;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    gap: 2rem;
    max-width: 1200px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    transition: transform 0.45s ease, padding 0.45s ease, box-shadow 0.45s ease, opacity 0.45s ease;
    transform: scale(0.96);
}

.image-container.pop {
    transform: scale(1.08);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.image-container.shrink {
    transform: scale(0.88);
    opacity: 0.92;
}

.profile-image {
    width: 320px;
    max-width: 100%;
    height: auto;
    margin-top: 0;
    border-radius: 50%;
}

.profile-description {
    color: white;
    font-size: 24px;
    width: 35%;
    min-width: 260px;
    line-height: 1.6;
}

.contact-column {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f0f4ff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.info-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: block;
    clear: both;
}

.info-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    align-items: stretch;
}

.info-card {
    display: block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 1rem;
    min-height: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    color: #f7f8ff;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.info-card p {
    color: #cbd4ff;
    line-height: 1.6;
    margin: 0;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

#steam-inventory {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.inventory-grid::-webkit-scrollbar {
  width: 10px;
}

.inventory-grid::-webkit-scrollbar-thumb {
  background: rgba(203, 212, 255, 0.45);
  border-radius: 999px;
}

.inventory-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.inventory-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #f0f4ff;
}

.spotify-section {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.spotify-content {
  display: block;
}

.spotify-player {
  flex: 1;
}

.spotify-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.spotify-title {
  font-size: 1.4rem;
  margin: 0;
  color: #f0f4ff;
}

.spotify-section iframe {
  display: block;
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 16px;
  background: #121212;
}

.dancing-webp {
  width: 46px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.content-row {
  max-width: 1100px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.favorite-games {
  width: 100%;
  margin: 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.spotify-section {
  width: 100%;
  margin: 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.game-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card a {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.game-logo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

@media (max-width: 860px) {
  .content-row {
    grid-template-columns: 1fr;
  }

  .dancing-webp {
    width: 40px;
  }

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

.inventory-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 220px;
}

.inventory-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 0.85rem;
}

.inventory-item h3 {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  color: #f7f8ff;
}

.inventory-item p {
  font-size: 0.9rem;
  color: #cbd4ff;
  margin: 0;
}

.inventory-item .inventory-meta {
  font-size: 0.82rem;
  color: #d7deff;
  margin-top: 0.2rem;
}

.inventory-empty {
  color: #cbd4ff;
  margin-top: 1rem;
}

#clutch-gameplay {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#clutch-gameplay .inventory-title {
  margin-bottom: 1rem;
}

.clutch-video {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #05060d;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
}

@media (max-width: 960px) {
  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .inventory-grid {
    grid-template-columns: 1fr;
    max-height: 460px;
  }

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

  #clutch-gameplay {
    padding: 0.95rem;
    border-radius: 18px;
  }

  .clutch-video {
    border-radius: 12px;
  }
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

@media (max-width: 860px) {
    .image-container {
        flex-direction: column;
        padding: 1.5rem;
    }

    .test-description {
        width: 100%;
        font-size: 20px;
    }

    .contact-column {
      flex-direction: row;
      justify-content: center;
      width: 100%;
    }
}

footer {
    margin-top: auto;
  background:
    linear-gradient(180deg, rgba(10, 18, 38, 0.55), rgba(7, 12, 26, 0.88)),
    radial-gradient(circle at 20% -30%, rgba(122, 174, 255, 0.2), transparent 50%);
  border-top: 1px solid rgba(186, 211, 255, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
    color: white;
    text-align: center;
  padding: 1.15rem 1rem;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  footer {
    background: rgba(10, 18, 38, 0.9);
  }
}

.footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
}

.footer-contact .contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(186, 211, 255, 0.35);
}

.footer-contact .contact-icon:hover {
  background: rgba(186, 211, 255, 0.22);
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  contain: paint;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.95) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.7) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 220px 220px, 320px 320px, 420px 420px;
  background-position: 0 0, 80px 40px, 40px 140px;
  opacity: 0.92;
  animation: twinkle 10s ease-in-out infinite alternate;
}

.shooting-star {
  position: absolute;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.95), transparent);
  pointer-events: none;
  contain: paint;
  opacity: 0;
  animation: shoot 10s linear infinite;
}

.shooting-star:nth-child(1) {
  top: 18%;
  left: -100px;
  animation-delay: 0s;
}

.shooting-star:nth-child(2) {
  top: 42%;
  left: -100px;
  animation-delay: 4.5s;
}

.shooting-star:nth-child(3) {
  top: 70%;
  left: -100px;
  animation-delay: 7.5s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes shoot {
  0% {
    transform: translateX(0) translateY(0) rotate(20deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translateX(125vw) translateY(34vh) rotate(20deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
