/* Keyframe para entrada do card */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ===== CURSORES PERSONALIZADOS ===== */

/* Cursor de mãozinha para elementos clicáveis */
a, 
button, 
.social-btn, 
.maximize-btn, 
.profile-card, 
#entry-screen,
#entry-screen .entry-content,
[onclick] {
    cursor: url('cursor.cur'), pointer !important;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    cursor: url('cursor.cur'), auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Animação de fundo */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.text-237 {
    position: absolute;
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(180deg,
        #1a1a1a 0%,
        #3a3a3a 15%,
        #6a6a6a 30%,
        #8a8a8a 45%,
        #f7f7f7 50%,
        #8a8a8a 55%,
        #6a6a6a 70%,
        #3a3a3a 85%,
        #1a1a1a 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
    white-space: nowrap;
    animation: slideText 25s linear infinite;
    filter: 
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3))
        blur(0.5px);
}

/* Posicionamento para todas as 9 linhas */
.text-237:nth-child(1) { top: 5%; animation-delay: 0s; }
.text-237:nth-child(2) { top: 15%; animation-delay: -3s; animation-direction: reverse; }
.text-237:nth-child(3) { top: 25%; animation-delay: -6s; }
.text-237:nth-child(4) { top: 35%; animation-delay: -9s; animation-direction: reverse; }
.text-237:nth-child(5) { top: 45%; animation-delay: -12s; }
.text-237:nth-child(6) { top: 55%; animation-delay: -15s; animation-direction: reverse; }
.text-237:nth-child(7) { top: 65%; animation-delay: -18s; }
.text-237:nth-child(8) { top: 75%; animation-delay: -21s; animation-direction: reverse; }
.text-237:nth-child(9) { top: 85%; animation-delay: -24s; }

@keyframes slideText {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

.container { 
    max-width: 1200px; 
    width: 100%; 
    z-index: 1;
}

.title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px white, 0 0 20px black, 0 0 30px white;
    color: white;
    animation: neonRGB 2s infinite alternate;
}

@keyframes neonRGB {
    0% { text-shadow: 0 0 10px white, 0 0 20px black, 0 0 30px white; }
    50% { text-shadow: 0 0 15px black, 0 0 25px white, 0 0 35px black; }
    100% { text-shadow: 0 0 10px white, 0 0 20px black, 0 0 30px white; }
}

.profiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    perspective: 1000px;
}

/* ANIMAÇÕES APRIMORADAS DO CARD */
.profile-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(31, 31, 31, 0));
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    
    /* Estado inicial para animação de entrada */
    transform: scale(0.95) translateY(30px);
    opacity: 0;
    
    /* Sombra inicial leve com múltiplas camadas */
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    
transition: transform 0.4s ease, box-shadow 0.4s ease;

.card {
  position: relative;
  background: #111;
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
  z-index: 0;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    #ffffff,
    #3d3d3d,
    #585858,
    #ffffff
  );
  background-size: 300% 300%;
  animation: animarBorda 6s linear infinite;
  z-index: -1;
}

.card::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #111;
  border-radius: 10px;
  z-index: -1;
}

@keyframes animarBorda {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
    /* Animação de entrada */
    animation: cardEntrance 0.8s ease-out 0.3s forwards;
}

/* Segundo card com delay maior */
.profile-card:nth-child(2) {
    animation-delay: 0.6s;
}

/* Keyframe para entrada do card */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, 
      rgba(0, 0, 0, 0.212), 
      rgba(255, 255, 255, 0.137), 
      rgba(0, 0, 0, 0.425),
      rgba(255, 255, 255, 0.103));
  border-radius: 20px;
  z-index: -1;
  opacity: 0.6; /* sempre visível, bem suave */
  filter: blur(15px);
  animation: rotateBorder 8s linear infinite; /* mais lento e suave */
}

@keyframes rotateBorder {
    0% { filter: blur(10px) hue-rotate(0deg); }
    100% { filter: blur(10px) hue-rotate(360deg); }
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card .card-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.6) 0%,
        rgb(100, 149, 255) 15%,
        rgba(0, 0, 0, 0.2) 30%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s ease, background 0.1s ease;
    mix-blend-mode: overlay;
    z-index: 1;
}
/* ANIMAÇÕES DO CONTEÚDO INTERNO */
.avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    transform-style: preserve-3d;
    transform: translateY(25px);
    opacity: 0;
    animation: slideUpContent 0.8s ease-out 1s forwards;
}

.avatar {
  width: 140px;            /* ou o tamanho que você quiser */
  height: 140px;
  border-radius: 50%;
  background-size: cover;  /* <-- evita o "zoom bugado" */
  background-position: center; /* <-- mantém a foto centralizada */
  background-repeat: no-repeat;
  border: 1px solid #ffffff8a;  /* opcional: borda branca */
}

.profile-card.hovered .avatar img {
  filter: saturate(1.2);
}

.profile-card:hover .avatar {
    transform: translateZ(30px) scale(1.1);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.411),
        0 0 0 3px rgba(255, 255, 255, 0.2);
}

.name-input {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: white;
    margin-bottom: 0.5rem;
    transform: translateY(25px);
    opacity: 0;
    animation: slideUpContent 0.8s ease-out 1.3s forwards;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-card:hover .name-input {
    transform: translateY(-3px) scale(1.05);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.4),
        0 5px 10px rgba(0, 0, 0, 0.3);
}

.role {
  position: relative;
background: linear-gradient(
  90deg,
  #000000 0%,
  #585858 25%,
  #c0c0c0 50%,
  #797979 75%,
  #000000 100%
);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(15px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}
.role::after {
    content: "";
    display: block;
    margin: 2px auto 0 auto;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, 
        #ffffffb2, 
        #ffffffb2,  
        #ffffffb2);
    background-size: 200% 100%;
    animation: silverShine 2s ease-in-out infinite;
    transition: width 0.5s ease;
}

@keyframes silverShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.profile-card:hover .role {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
}

.profile-card:hover .role::after {
    width: 60%;
}

@keyframes slideUpContent {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floating {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1); }
}

.profile-card {
    animation: cardEntrance 0.8s ease-out 0.3s forwards;
}

.profile-card:nth-child(2) {
    animation: cardEntrance 0.8s ease-out 0.6s forwards;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 10;
}

@media (max-width: 768px) {
    .profiles-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-card {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .profile-card:hover {
        transform: scale(1.02) translateY(-4px);
    }
    
    .text-237 {
        font-size: 4rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    #entry-screen .entry-content {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .text-237 {
        font-size: 3rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .profiles-container {
        gap: 1.5rem;
    }
    
    #entry-screen .entry-content {
        font-size: 2rem;
    }
}

.profile-card {
    will-change: transform, box-shadow;
}

.avatar {
    will-change: transform;
}

body.loaded {
    opacity: 1;
}

/* Redes sociais */
.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(136, 136, 136, 0);
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-btn img {
    width: 55%;
    height: 55%;
    filter: invert(1);
    transition: transform 0.3s ease;
}

/* aparece suavemente quando passa o mouse no card */
.profile-card:hover .maximize-btn {
  opacity: 1;
  transform: scale(1);
}

/* efeito de crescimento ao passar o mouse no botão */
.maximize-btn:hover {
  transform: scale(1.3);
  background: #000000; 
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.644);
}

/* ================== OVERRIDE PARA POP INDIVIDUAL ================== */
.profiles-container .profile-card:hover { transform: none; }

.profile-card.hovered .card-light { opacity: 1; }

.profile-card.hovered {
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 12px 25px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.24);
}

.profiles-container .profile-card:hover .avatar { transform: none; filter: none; }
.profile-card.hovered .avatar {
  transform: translateZ(30px) scale(1.12) rotateZ(-3deg);
  filter: saturate(1.3);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 0 3px rgba(255, 255, 255, 0.2);
}

.profiles-container .profile-card:hover .maximize-btn { opacity: 0; pointer-events: none; }
.profile-card.hovered .maximize-btn { opacity: 1; pointer-events: auto; }

.social-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.social-btn:hover {
  transform: scale(1.15);
  box-shadow:
    0 15px 25px rgba(0, 0, 0, 0.678),
    0 0 15px rgb(43, 43, 43);
}
.social-btn:hover img { transform: none !important; }
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* faz a imagem cobrir o círculo sem distorcer */
  border-radius: 50%;  /* mantém redondo */
  display: block;
}

.profile-card.scaled {
  transform: scale(1.05);
  z-index: 5;
}
/* Tela de entrada */
#entry-screen {
  position: fixed;     /* sempre cobre a tela toda */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(15px);
  background: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;       /* fica por cima de tudo */
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#entry-screen .entry-content {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}


/* Animação letra por letra com neon */
#entry-screen .entry-content span {
  display: inline-block;
  position: relative;
  animation: neonRun 2.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}

@keyframes neonRun {
  0%, 60%, 100% {
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 
      0 0 5px rgba(255, 255, 255, 0.2);
    transform: scale(1);
  }
  30% {
    color: #ffffff;
    text-shadow: 
      0 0 10px #fff,
      0 0 20px #fff,
      0 0 30px #000000,
      0 0 40px #000000,
      0 0 50px #ffffff,
      0 0 60px #ffffff;
    transform: scale(1.15);
  }
}

/* Remove a animação de piscar antiga */
#entry-screen .entry-content {
  animation: none;
}
/* Esconder com transição */
#entry-screen.hidden {
  opacity: 0;
  visibility: hidden;
}