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

body {
  background: #050505;
  color: #EAEAEA;
  font-family: 'Inter', sans-serif;

  position: relative;
  z-index: 1;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
    border-color: transparent;
  }
}

/* MAIN */
.container {
    max-width: 1400px;   /* Largura máxima do container */
    margin: 0 auto;      /* Centraliza horizontalmente */
    padding: 60px;       /* Espaçamento interno uniforme em todos os lados */
    text-align: center;  /* Centraliza o conteúdo inline */
    width: 90%;          /* Adapta levemente em telas menores */
}

/* HEADER */
.profile {
    width: 230px;
    border-radius: 50%;
    border: 2px solid #EAEAEA;
    margin-bottom: 15px;
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from {
        box-shadow:
            0 0 10px #EAEAEA,
            0 0 20px #EAEAEA;
    }
    to {
        box-shadow:
            0 0 20px #EAEAEA,
            0 0 40px #EAEAEA,
            0 0 60px #EAEAEA;
    }
}

h1 {
    font-family: 'Inter', sans-serif;
}

.subtitle {
    color: #EAEAEA;
}

section {
    margin-top: 40px;
}

h2 {
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
}

/* ===== SKILLS ===== */

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px 70px;
    justify-items: center;
    margin-top: 30px;
}

.skill-category {
    text-align: center;
}

.skill-category h3 {
    margin-bottom: 18px;
    font-family: 'Inter', sans-serif;
}

.skills-grid {
    display: grid;
    gap: 15px;
    justify-content: center;
}

/* Languages 2x2 */
.skill-category:nth-child(1) .skills-grid {
    grid-template-columns: repeat(2, 95px);
}

/* Frontend */
.skill-category:nth-child(2) .skills-grid {
    grid-template-columns: 95px;
}

/* Backend */
.skill-category:nth-child(3) .skills-grid {
    grid-template-columns: 95px;
}

/* Database */
.skill-category:nth-child(4) .skills-grid {
    grid-template-columns: 95px;
}

/* ORM */
.skill-category:nth-child(5) .skills-grid {
    grid-template-columns: 95px;
}

/* DevOps */
.skill-category:nth-child(6) .skills-grid {
    grid-template-columns: 95px;
}

.skill-item {
    width: 95px;
    height: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: 0.3s;
}

.skill-item i {
    font-size: 34px;
    transition: 0.3s;
}

.skill-item span {
    font-size: 0.75rem;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.skill-item:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px currentColor);
}

/* ===== BOTÕES PREMIUM ===== */

.skills-actions {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 15px;              
    margin-top: 20px;
}

/* BASE */
.btn-resume,
.btn-github {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

/* RESUME */
/* BOTÃO VIEW RESUME PREMIUM */
.btn-resume {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #EAEAEA;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    box-shadow:
        0 0 8px rgba(255,255,255,0.05),
        inset 0 0 6px rgba(255,255,255,0.05);
    gap: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;

    /* Neon pulse contínuo */
    animation: neonPulseBtn 2s infinite alternate;
}

@keyframes neonPulseBtn {
    from {
        box-shadow:
            0 0 10px #EAEAEA,
            0 0 20px #EAEAEA,
            inset 0 0 6px rgba(255,255,255,0.1);
    }
    to {
        box-shadow:
            0 0 20px #EAEAEA,
            0 0 40px #EAEAEA,
            inset 0 0 10px rgba(255,255,255,0.2);
    }
}

.btn-resume i {
    font-size: 14px;
    transition: all 0.3s ease;
}

/* HOVER: Glow branco intenso */
.btn-resume:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255,255,255,0.08);
    box-shadow:
        0 0 25px #ffffff,
        0 0 40px #ffffff,
        0 0 60px #ffffff,
        inset 0 0 12px rgba(255,255,255,0.2);
}

.btn-resume:hover i {
    filter: drop-shadow(0 0 12px #ffffff)
            drop-shadow(0 0 20px #ffffff);
    color: #ffffff;
}

/* GITHUB WRAPPER */
.github-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* GITHUB BOTÃO */
.btn-github {
    width: 60px;
    height: 60px;
    background: #050505;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 15px rgba(0,0,0,0.7),
        inset 0 0 6px rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

/* ÍCONE */
.btn-github i {
    font-size: 28px;
    color: #EAEAEA;
    transition: all 0.3s ease;
}

/* TEXTO EMBAIXO */
.github-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: #EAEAEA;
    text-shadow: 0 0 4px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

/* HOVER: Glow branco consistente */
.github-wrapper:hover .btn-github {
    transform: translateY(-6px) scale(1.1);
    background: #0d0d0d;
    box-shadow:
        0 12px 30px rgba(0,0,0,0.9),
        0 0 15px rgba(255,255,255,0.2),
        0 0 30px rgba(255,255,255,0.15);
}

.github-wrapper:hover .btn-github i {
    filter: drop-shadow(0 0 10px #ffffff)
            drop-shadow(0 0 20px #ffffff);
    color: #ffffff;
}

.github-wrapper:hover .github-label {
    text-shadow:
        0 0 6px #ffffff,
        0 0 12px #ffffff;
    color: #ffffff;
}

/* PROJECTS */
.projects {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.project-images img {
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
}

.project-images img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(6px);
    
    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255,255,255,0.05);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #F8F8F8;
    cursor: pointer;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #EAEAEA;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    transition: 0.2s;
}

.nav:hover {
    color: #EAEAEA;
}

.prev { left: 20px; }
.next { right: 20px; }

/* FOOTER */
/* ===== CONTACT SECTION ===== */

footer {
    margin-top: 60px;
    text-align: center;
}

/* ===== CONTACT PREMIUM ===== */

.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 30px 0;
}

/* BOTÕES */
.contact a {
    position: relative;
    text-decoration: none;
    color: #EAEAEA;
    font-size: 23px;

    width: 53px;
    height: 53px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);

    box-shadow:
        0 0 8px rgba(255,255,255,0.08),
        inset 0 0 8px rgba(255,255,255,0.05);

    transition: all 0.25s ease;
    animation: contactPulse 2s infinite alternate;
}

/* Neon pulse */
@keyframes contactPulse {
    from {
        box-shadow:
            0 0 10px rgba(255,255,255,0.2),
            0 0 20px rgba(255,255,255,0.15),
            inset 0 0 6px rgba(255,255,255,0.05);
    }
    to {
        box-shadow:
            0 0 20px rgba(255,255,255,0.35),
            0 0 35px rgba(255,255,255,0.25),
            inset 0 0 10px rgba(255,255,255,0.08);
    }
}

/* Hover glow */
.contact a:hover {
    transform: translateY(-6px) scale(1.1);

    box-shadow:
        0 0 20px #ffffff,
        0 0 40px #ffffff,
        0 0 60px #ffffff,
        inset 0 0 12px rgba(255,255,255,0.2);
}

.contact a:hover i {
    filter:
        drop-shadow(0 0 6px #ffffff)
        drop-shadow(0 0 14px #ffffff);
}

/* TOOLTIP */
.contact a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 11px;
    letter-spacing: 1px;

    background: rgba(0,0,0,0.8);
    padding: 4px 8px;
    border-radius: 6px;

    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.contact a:hover::after {
    opacity: 1;
    bottom: -34px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .project-images {
        grid-template-columns: 1fr;
    }
}

/* CENTRALIZA */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* NOME */
.name {
  font-size: 36px;
  color: #EAEAEA;
  text-transform: uppercase;
  letter-spacing: 2px;

  text-shadow: 
    0 0 5px #EAEAEA,
    0 0 10px #F8F8F8;

  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  from {
    text-shadow: 
      0 0 5px #EAEAEA,
      0 0 10px #EAEAEA;
  }
  to {
    text-shadow: 
      0 0 20px #EAEAEA,
      0 0 40px #EAEAEA,
      0 0 60px #EAEAEA;
  }
}

/* TYPING */
.typing {
  font-size: 18px;
  color: #EAEAEA;
  margin-top: 10px;

  display: inline-block;

  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #EAEAEA;

  width: 0;

  animation: typing 3s steps(22, end) 1s forwards, blink 0.7s infinite;
}

@keyframes typing {
  to {
    width: 240px;
  }
}

/* BOTÕES DA SEÇÃO DE PROJETOS */

/* ===== PROJECT ACTIONS CENTRALIZED ===== */
.project-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 18px 0 10px 0;
    flex-wrap: wrap;
}

/* ===== PROJECT BUTTONS ===== */
.project-actions .btn {
    color: #EAEAEA;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    box-shadow:
        0 0 8px rgba(255,255,255,0.08),
        inset 0 0 6px rgba(255,255,255,0.05);

    transition: all 0.25s ease;

    /* Neon pulse */
    animation: projectPulse 2.5s infinite alternate;
}

/* Neon Pulse Animation */
@keyframes projectPulse {
    from {
        box-shadow:
            0 0 8px rgba(255,255,255,0.15),
            0 0 16px rgba(255,255,255,0.08),
            inset 0 0 6px rgba(255,255,255,0.05);
    }
    to {
        box-shadow:
            0 0 18px rgba(255,255,255,0.25),
            0 0 30px rgba(255,255,255,0.15),
            inset 0 0 10px rgba(255,255,255,0.08);
    }
}

/* Hover Glow */
.project-actions .btn:hover {
    transform: translateY(-4px) scale(1.06);

    box-shadow:
        0 0 20px #ffffff,
        0 0 40px rgba(255,255,255,0.6),
        0 0 60px rgba(255,255,255,0.4);
}

/* Icon Glow */
.project-actions .btn:hover i {
    filter:
        drop-shadow(0 0 6px #ffffff)
        drop-shadow(0 0 12px #ffffff);
}



/* Particles background */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Glow neon branco nas partículas e linhas */
#tsparticles canvas {
  filter:
    drop-shadow(0 0 8px rgba(255,255,255,0.6))
    drop-shadow(0 0 18px rgba(255,255,255,0.5))
    drop-shadow(0 0 35px rgba(255,255,255,0.35))
    drop-shadow(0 0 60px rgba(255,255,255,0.25));
}

/* Blur gradient blob */
.blur-blob {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,150,255,0.25), transparent);
  filter: blur(120px);
  z-index: -2;
  animation: blobMove 20s infinite alternate;
}

@keyframes blobMove {
  from { transform: translate(-150px, -100px); }
  to { transform: translate(250px, 150px); }
}


/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Scrollbar custom */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Seleção de texto */
::selection {
  background: #ffffff;
  color: #000000;
}


/* Developer Profile */
.profile-section {
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.01);
    border-radius: 12px;
    padding: 30px;
}

/* Projects */
.project {
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 25px;
}


.profile-section h2 {
  margin-bottom: 15px;
}

.profile-section p {
  max-width: 900px;
  margin: auto;
  line-height: 1.6;
  color: #cfcfcf;
}

h2 {
  font-family: 'Inter', sans-serif;
  position: relative;
  display: inline-block;

  margin-bottom: 30px;
  letter-spacing: 1px;
  color: #EAEAEA;

  text-shadow:
    0 0 4px rgba(255,255,255,0.5),
    0 0 10px rgba(255,255,255,0.4),
    0 0 20px rgba(255,255,255,0.25);

  transition: 0.3s;
}


h2:hover {
  text-shadow:
    0 0 6px rgba(255,255,255,0.8),
    0 0 18px rgba(255,255,255,0.6),
    0 0 35px rgba(255,255,255,0.4);
}

h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.5);

  box-shadow:
    0 0 6px rgba(255,255,255,0.6),
    0 0 12px rgba(255,255,255,0.4);
}


/* Glow apenas nas letras, mantendo o cursor */
.typing {
    font-size: 18px;
    color: #EAEAEA;
    margin-top: 10px;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #EAEAEA;
    width: 0;
    animation: typing 3s steps(22, end) 1s forwards, blink 0.7s infinite;
    position: relative; /* necessário para o ::after */
}

/* Pseudo-elemento que cria o glow só nas letras */
.typing::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: transparent; /* não mostra letras extras */
    text-shadow: 0 0 6px #ffffff,
                 0 0 12px #ffffff,
                 0 0 18px #ffffff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover: ativa o glow */
.typing:hover::after {
    opacity: 1;
}



.shimmer-text {
    font-weight: 500;
    letter-spacing: 0.4px;

    color: rgba(255,255,255,0.85);

    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* brilho passando */
.shimmer-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );

    transform: skewX(-20deg);

    animation: shimmer-pass 5s infinite;
}

/* animação lenta */
@keyframes shimmer-pass {
    0% {
        left: -150%;
    }
    80% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}