/* =========================
   VIR WEBSITE — ITSUKI THEME
========================= */

:root {
    --primary: #e63950;        /* Rosso Itsuki */
    --primary-glow: #ff9ab0;   /* Glow rosa */
    --bg-dark: #12080d;
    --text-light: #fff4f7;
    --card-dark: rgba(35, 12, 18, 0.65);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* BACKGROUND */

#particles-js,
.floating-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-orbs::before,
.floating-orbs::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
}

.floating-orbs::before {
    background: rgba(255,122,150,0.25);
    top: 5%;
    left: 10%;
}

.floating-orbs::after {
    background: rgba(230,57,80,0.20);
    bottom: 8%;
    right: 12%;
}

/* CONTAINER */

.container {
    width: 100%;
    min-height: 100vh;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.7rem;
}

/* CARD */

.card {
    width: 88%;
    max-width: 470px;
    padding: 2rem 1.4rem;
    background: var(--card-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 2px solid rgba(255,122,150,0.35);

    border-radius: 30px;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.7),
        0 0 20px rgba(255,122,150,0.20);

    transition: 0.3s ease;
}

/* PROFILE */

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar-wrapper {
    width: 130px;
    height: 130px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;

    border: 4px solid var(--primary);

    box-shadow:
        0 0 24px rgba(255,122,150,0.55),
        0 0 48px rgba(255,122,150,0.25);
}

.name {
    font-size: 3rem;
    font-weight: 700;

    background: linear-gradient(
        90deg,
        #e63950,
        #ff7a8c,
        #ffd6de
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    color: transparent;

    text-shadow:
        0 0 12px rgba(255,122,150,0.35);
}

/* TITLES */

.section {
    text-align: center;
}

.section-title {
    font-size: 1.4rem;
    color: var(--primary-glow);
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* PRESENTATION */

.presentation-info {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.presentation-text {
    max-width: 360px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.85;
}

/* LINKS */

.profile-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.top-links,
.bottom-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.social-btn,
.project-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;

    width: 125px;
    padding: 0.9rem;

    border-radius: 14px;

    background: rgba(255,255,255,0.03);

    border: 1px solid rgba(255,122,150,0.30);

    color: var(--text-light);
    text-decoration: none;

    transition: 0.3s ease;
}

.social-btn:hover,
.project-btn:hover {
    transform: translateY(-6px);

    background: rgba(255,122,150,0.15);

    border-color: var(--primary-glow);

    box-shadow:
        0 12px 32px rgba(255,122,150,0.25);
}

.social-icon,
.project-icon {
    width: 20px;
    height: 20px;
}

/* WIDGETS */

.discord-widget img,
.spotify-widget img {
    width: 100%;
    display: block;
}

/* MOBILE */

@media (max-width: 768px) {
    .card {
        width: 94%;
    }

    .top-links,
    .bottom-links {
        flex-wrap: wrap;
    }
}

.social-btn img[alt="GitHub"],
.social-btn img[alt="Steam"] {
    filter: brightness(0) invert(1);
}

.live-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 16px;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 12px;
}

.refreshing,
.stats-footer {
  display: block;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  margin-top: 4px;
}

.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-4px);
}

.social-btn {
  transition: transform 0.2s ease, filter 0.2s ease;
  will-change: transform;
}

.social-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

body {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.avatar {
  transition: transform 0.3s ease;
  will-change: transform;
}

.avatar:hover {
  transform: scale(1.03);
}

.section-title {
  transition: letter-spacing 0.3s ease;
}

.section-title:hover {
  letter-spacing: 1px;
}

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.05),
    transparent
  );
  transition: 0.5s;
}

.card:hover::before {
  left: 100%;
}

@media (max-width: 600px) {

  .container {
    padding: 10px;
  }

  .card {
    width: 100%;
    margin-bottom: 12px;
  }

  .profile-links {
    flex-direction: column;
    gap: 8px;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 14px;
  }

  .presentation-text {
    font-size: 13px;
    line-height: 1.4;
  }
}

body {
  -webkit-tap-highlight-color: transparent;
}

.social-btn {
  touch-action: manipulation;
}

html {
  -webkit-text-size-adjust: 100%;
}

.stat-item span {
  font-size: 13px;
}