/* RESET */

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

/* ROOT */

:root{
  --bg-primary: #050505;
  --bg-secondary: #0d0d0d;

  --red-primary: #ff2b2b;
  --red-secondary: #ff3c3c;

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;

  --border-color: rgba(255,255,255,0.08);
}

/* GLOBAL */

body{
  
  font-family: 'Inter', sans-serif;

  background:
    #050505;

  color: white;

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;

  text-rendering: optimizeLegibility;
}
a{

  transition:
    0.35s ease;
}
body::before{

  content: '';

  position: fixed;

  inset: 0;

  background-image:

    linear-gradient(
      rgba(255,255,255,0.03) 1px,
      transparent 1px
    ),

    linear-gradient(
      90deg,
      rgba(255,255,255,0.03) 1px,
      transparent 1px
    );

  background-size:
    80px 80px;

  mask-image:
    radial-gradient(
      circle at center,
      black,
      transparent 85%
    );

  pointer-events: none;

  z-index: -1;
}

html{

  scroll-behavior: smooth;
}

.container{

  width: min(1180px, 92%);

  margin: 0 auto;
}

.section{

  padding: 120px 0;
}



/* HEADER */

.header{

  position: fixed;

  top: 20px;
  left: 0;

  width: 100%;

  z-index: 999;
}

.navbar{

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding:
    18px 28px;

  border-radius: 22px;

  background:
    rgba(10,10,10,0.55);

  border:
    1px solid rgba(255,255,255,0.08);

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);

  box-shadow:
    0 10px 40px rgba(0,0,0,0.25);
}

/* LOGO */

.logo{

  font-size: 1.2rem;

  font-weight: 700;

  letter-spacing: -0.5px;

  color: white;
}

.logo span{

  color:
    var(--red-primary);
}

.nav-links{

  display: flex;

  align-items: center;

  gap: 35px;

  list-style: none;
}

/* NAV LINKS */

.nav-links a{

  position: relative;

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

  text-decoration: none;

  font-size: 0.95rem;

  transition:
    0.35s ease;
}

.nav-links a::after{

  content: '';

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0;
  height: 1px;

  background:
    rgba(255,0,0,0.85);

  transition:
    0.35s ease;
}

.nav-links a:hover{

  color: white;
}

.nav-links a:hover::after{

  width: 100%;
}

.nav-links a:hover{
  color: var(--text-primary);
}

/* HEADER SCROLL EFFECT */

.navbar.scrolled{

  background:
    rgba(5,5,5,0.78);

  border-color:
    rgba(255,255,255,0.10);

  box-shadow:
    0 12px 50px rgba(0,0,0,0.35);
}

/* HERO */

.hero{
  min-height: 100vh;

  display: flex;
  align-items: center;

  position: relative;

  overflow: hidden;

  padding-top: 180px;

  background:
  radial-gradient(
    circle at top right,
    rgba(255,0,0,0.12),
    transparent 30%
  );
}

.hero::before{
  content: '';

  position: absolute;

  width: 500px;
  height: 500px;

  background: rgba(255,0,0,0.12);

  filter: blur(120px);

  top: -100px;
  right: -100px;
}

.hero-content{
  position: relative;
  z-index: 2;
}

.hero-subtitle{
  color: var(--red-primary);

  margin-bottom: 20px;

  font-weight: 600;
}

.hero h1{

  font-size: 4.5rem;

  line-height: 1.05;

  max-width: 900px;

  margin-bottom: 25px;

  letter-spacing: -2px;

  background: linear-gradient(
    to bottom,
    #ffffff,
    #8f8f8f
  );

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}


.hero-description{
  max-width: 600px;

  color: var(--text-secondary);

  font-size: 1.1rem;
  line-height: 1.7;

  margin-bottom: 40px;
}

/* BUTTONS */

.hero-buttons{
  display: flex;
  gap: 20px;
}

.btn{
  padding: 14px 28px;

  border-radius: 12px;

  text-decoration: none;

  font-weight: 600;

  transition: 0.3s ease;
  
  position: relative;

  overflow: hidden;
}

.btn-primary{
  background: var(--red-primary);
  color: white;
}

.btn-primary:hover{
  transform: translateY(-4px);

  box-shadow: 0 0 30px rgba(255,0,0,0.3);
}

.btn-secondary{
  border: 1px solid var(--border-color);

  color: white;
}

.btn-secondary:hover{
  background: rgba(255,255,255,0.05);
}

/* Estilização dos links de redes sociais no topo */
.hero-socials {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    justify-content: flex-start;
}

.hero-socials .social-item {
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Efeito ao passar o mouse: acende em vermelho e sobe de leve */
.hero-socials .social-item:hover {
    color: var(--red-primary) !important;
    transform: translateY(-2px);
}

/* Estilização dos links de redes sociais no topo */
.hero-socials {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    justify-content: flex-start;
}

.hero-socials .social-item {
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço entre o ícone e o texto */
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Ícone ganha um destaque ligeiramente maior */
.hero-socials .social-item i {
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

/* Efeito Hover */
.hero-socials .social-item:hover {
    color: var(--red-primary) !important;
    transform: translateY(-2px);
}

.hero-socials .social-item:hover i {
    color: var(--red-primary) !important;
}

/* TITLES */

.section{

  position: relative;

  padding:
    140px 0;
}

.section-title{

  margin-bottom: 70px;

  max-width: 750px;
}

.section-title span{

  display: inline-flex;

  align-items: center;

  padding:
    10px 18px;

  border-radius: 999px;

  margin-bottom: 22px;

  background:
    rgba(255,255,255,0.04);

  border:
    1px solid rgba(255,255,255,0.08);

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

  font-size: 0.85rem;

  letter-spacing: 0.5px;
}
.section-title h2{

  font-size:
    clamp(2.5rem, 5vw, 4rem);

  line-height: 1.1;

  letter-spacing: -2px;

  color: white;
}
/**************Tecnologias**********/
/* ==========================================================================
   SEÇÃO DE HABILIDADES (SKILLS)
   ========================================================================== */
.skills-section {
    background: #050505;
    position: relative;
    z-index: 2;
}

.skills-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Força 3 colunas iguais */
    gap: 20px !important;
    width: 100% !important;
}

.skills-category-card {
    background: rgba(13, 13, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color 0.4s ease, transform 0.4s ease;
}

/* Efeito ao passar o mouse no card da categoria */
.skills-category-card:hover {
    border-color: rgba(255, 43, 43, 0.2);
    transform: translateY(-5px);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 43, 43, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.category-icon i {
    color: var(--red-primary);
    font-size: 1.5rem;
}

.skills-category-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Deixa o item da habilidade ligeiramente mais claro no hover */
.skill-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.skill-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}


/************* Sobre **************/

.about-content{

  display: grid;

  grid-template-columns:
    1.1fr 0.9fr;

  gap: 60px;

  align-items: center;
}

/* ABOUT TEXT */

.about-text{

  display: flex;

  flex-direction: column;

  gap: 25px;
}

.about-text p{

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

  font-size: 1.05rem;

  line-height: 1.9;
}

/* ABOUT CARDS */

.about-cards{

  display: flex;

  flex-direction: column;

  gap: 20px;
}

.about-card{

  padding: 28px;

  border-radius: 22px;

  background:
    linear-gradient(
      180deg,
      rgba(20,20,20,0.95),
      rgba(10,10,10,0.98)
    );

  border:
    1px solid rgba(255,255,255,0.08);

  transition:
    0.4s ease;

  position: relative;

  overflow: hidden;
}

.about-card::before{

  content: '';

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      rgba(255,0,0,0.08),
      transparent 60%
    );

  opacity: 0;

  transition: 0.4s ease;
}

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

.about-card:hover{

  transform:
    translateY(-6px);

  border-color:
    rgba(255,0,0,0.20);
}

.about-card h3{

  font-size: 1.1rem;

  margin-bottom: 12px;

  color: #ffffff;
}

.about-card p{

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

  line-height: 1.7;

  font-size: 0.95rem;
}
/* PROJECTS */

.projects-grid{

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(340px, 1fr));

  gap: 30px;

  align-items: stretch;
}

.project-card{

  position: relative;

  display: flex;
  flex-direction: column;

  justify-content: space-between;

  min-height: 100%;

  background:
    linear-gradient(
      180deg,
      rgba(20,20,20,0.95),
      rgba(10,10,10,0.98)
    );

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 24px;

  overflow: hidden;

  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;

  backdrop-filter: blur(12px);
}

.project-card:hover{

  transform:
    translateY(-10px);

  border-color:
    rgba(255,0,0,0.25);

  box-shadow:
    0 10px 40px rgba(255,0,0,0.12);
}

.project-image{

  position: relative;

  height: 240px;

  background:
    radial-gradient(
      circle at top left,
      rgba(255,0,0,0.20),
      transparent 50%
    ),
    linear-gradient(
      135deg,
      #121212,
      #080808
    );

  border-bottom:
    1px solid rgba(255,255,255,0.05);

  overflow: hidden;
}

.project-image::before{

  content: '';

  position: absolute;

  width: 200%;
  height: 100%;

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

  transform: rotate(25deg);

  left: -250%;

  transition: 1s;
}

.project-card:hover .project-image::before{
  left: 100%;
}

.project-content{

  padding: 30px;

  display: flex;
  flex-direction: column;

  flex: 1;
}

.project-content h3{

  font-size: 1.5rem;

  margin-bottom: 18px;

  letter-spacing: -1px;
}

.project-content p{

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

  line-height: 1.7;

  margin-bottom: 25px;

  font-size: 0.98rem;
}

.project-tech{
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 25px;
}

.project-tech span{
  padding: 8px 14px;

  border-radius: 999px;

  background: rgba(255,255,255,0.05);

  font-size: 0.9rem;
}

.project-buttons{

  display: flex;

  gap: 20px;

  margin-top: auto;
}

.project-buttons a{
  color: white;

  text-decoration: none;

  transition: 0.3s;
}

.project-buttons a:hover{
  color: var(--red-primary);
}
/* PROJECT BADGE */

.project-badge{

  position: absolute;

  top: 20px;
  left: 20px;

  padding:
    10px 14px;

  border-radius: 999px;

  background:
    rgba(0,0,0,0.45);

  backdrop-filter: blur(10px);

  border:
    1px solid rgba(255,255,255,0.08);

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

  font-size: 0.8rem;

  z-index: 5;
}

/* PROJECT CATEGORY */

.project-category{

  display: inline-block;

  margin-bottom: 14px;

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

  font-size: 0.85rem;

  font-weight: 500;

  letter-spacing: 0.5px;

  text-transform: uppercase;
}

/* ==========================================================================
   CARROSSEL DE IMAGENS AUTOMÁTICO PARA OS CARDS DE PROJETOS
   ========================================================================== */

/* Container da imagem do projeto passa a segurar o carrossel */
.project-image-carousel {
    position: relative;
    height: 200px; /* Mantém a altura padrão do seu layout */
    width: 100%;
    overflow: hidden;
    background-color: rgba(18, 18, 18, 0.6);
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Define que todas as fotos ficam sobrepostas, invisíveis por padrão */
.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: sliderAnimation 12s infinite ease-in-out; /* Animação em loop */
}

/* Controla o tempo de exibição e transição de cada uma das 3 fotos */
.carousel-slide:nth-child(1) {
    animation-delay: 0s;
}
.carousel-slide:nth-child(2) {
    animation-delay: 4s;
}
.carousel-slide:nth-child(3) {
    animation-delay: 8s;
}

/* Regra da animação: faz a foto aparecer (fade-in), fixar e sumir (fade-out) */
@keyframes sliderAnimation {
    0%, 100% { opacity: 0; }
    8.33%, 33.33% { opacity: 1; z-index: 2; } /* Exibe a foto por 4 segundos */
    41.66% { opacity: 0; z-index: 1; }        /* Transiciona para a próxima */
}

/* CONTACT */

.contact{

  position: relative;
}

/* BOX */

.contact-box{

  position: relative;

  padding:
    80px 60px;

  border-radius: 32px;

  overflow: hidden;

  text-align: center;

  background:
    linear-gradient(
      180deg,
      rgba(20,20,20,0.96),
      rgba(8,8,8,0.98)
    );

  border:
    1px solid rgba(255,255,255,0.08);
}

/* GLOW */

.contact-box::before{

  content: '';

  position: absolute;

  width: 500px;
  height: 500px;

  background:
    rgba(255,0,0,0.08);

  filter: blur(140px);

  top: -250px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 0;
}

/* CONTENT */

.contact-box > *{

  position: relative;

  z-index: 2;
}

/* TAG */

.contact-tag{

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding:
    10px 18px;

  border-radius: 999px;

  background:
    rgba(255,255,255,0.04);

  border:
    1px solid rgba(255,255,255,0.08);

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

  font-size: 0.9rem;

  margin-bottom: 25px;
}

/* TITLE */

.contact-box h2{

  font-size:
    clamp(2.5rem, 5vw, 4.5rem);

  line-height: 1.1;

  letter-spacing: -2px;

  max-width: 800px;

  margin:
    0 auto 30px;
}

/* TEXT */

.contact-box p{

  max-width: 720px;

  margin:
    0 auto 40px;

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

  line-height: 1.9;

  font-size: 1.05rem;
}

/* BUTTONS */

.contact-buttons{

  display: flex;

  justify-content: center;

  gap: 20px;

  flex-wrap: wrap;
}

/* BUTTON */

.contact-buttons a{

  padding:
    15px 26px;

  border-radius: 14px;

  text-decoration: none;

  color: white;

  background:
    rgba(255,255,255,0.05);

  border:
    1px solid rgba(255,255,255,0.08);

  transition:
    0.35s ease;
}

/* HOVER */

.contact-buttons a:hover{

  transform:
    translateY(-4px);

  border-color:
    rgba(255,0,0,0.25);

  background:
    rgba(255,0,0,0.08);

  box-shadow:
    0 10px 30px rgba(255,0,0,0.10);
}

/* MENU MOBILE */

.menu-toggle{
  display: none;

  flex-direction: column;

  gap: 5px;

  cursor: pointer;
}

.menu-toggle span{
  width: 28px;
  height: 3px;

  background: white;

  border-radius: 999px;

  transition: 0.3s;
}

/* HEADER ACTIVE */

.header.active{
  background: rgba(5,5,5,0.85);

  box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

/* REVEAL ANIMATION */



.reveal.active{
  opacity: 1;

  transform: translateY(0);
}

/* ==========================================================================
   EFEITO LED COMPLETO + MOUSE GLOW PARA OS CARDES DE PROJETOS
   ========================================================================== */

/* 1. Torna os cards de projetos semi-transparentes com efeito de vidro fosco */
.project-card {
    background: rgba(13, 13, 13, 0.4) !important; /* Mesma transparência das tecnologias */
    backdrop-filter: blur(12px) !important; /* Efeito vidro premium */
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

/* 2. Ativa e projeta a luz vermelha de fundo que segue o mouse */
.project-card .spotlight-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(255, 43, 43, 0.06),
        transparent 40%
    ) !important;
    z-index: 1;
    pointer-events: none;
}

/* 3. Ativa o brilho laser na borda do card acompanhando o ponteiro */
.project-card .spotlight-border-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(255, 43, 43, 0.25),
        transparent 40%
    ) !important;
    z-index: 0;
    pointer-events: none;
    mask: linear-gradient(#fff 0 0) padding-box exclude, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box exclude, linear-gradient(#fff 0 0);
    padding: 1px;
}

/* 4. Garante que todo o conteúdo interno fique legível e por cima da luz */
.project-card .project-image,
.project-card .project-content {
    position: relative;
    z-index: 2;
}

/* 5. Deixa o fundo da imagem do projeto sutilmente transparente para não quebrar o visual */
.project-image {
    background-color: rgba(18, 18, 18, 0.6) !important;
}

/* 6. Controla o salto (Hover) idêntico ao que você gostou nas tecnologias */
.project-card:hover {
    transform: translateY(55px) !important; /* Ajustado para o mesmo salto padrão das tecnologias */
    border-color: rgba(255, 43, 43, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 43, 43, 0.05) !important;
}

/* HERO GLOW EXTRA */

.hero::after{
  content: '';

  position: absolute;

  width: 400px;
  height: 400px;

  background: rgba(255,0,0,0.08);

  filter: blur(120px);

  bottom: -100px;
  left: -100px;

  animation: pulseGlow 6s infinite alternate;
}

/* GLOW ANIMATION */

@keyframes pulseGlow{

  0%{
    transform: scale(1);
  }

  100%{
    transform: scale(1.2);
  }

}

/* FUTURISTIC GRID */

body::before{

  content: '';

  position: fixed;

  inset: 0;

  background-image:

    linear-gradient(
      rgba(255,255,255,0.03) 1px,
      transparent 1px
    ),

    linear-gradient(
      90deg,
      rgba(255,255,255,0.03) 1px,
      transparent 1px
    );

  background-size: 60px 60px;

  z-index: -3;
}

/* NOISE EFFECT */

body::after{

  content: '';

  position: fixed;

  inset: 0;

  opacity: 0.03;

  z-index: -2;

  pointer-events: none;

  background-image:
    url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
}

/* CURSOR GLOW */

.cursor-glow{

  position: fixed;

  width: 300px;
  height: 300px;

  background:
    radial-gradient(
      circle,
      rgba(255,0,0,0.15),
      transparent 70%
    );

  border-radius: 50%;

  pointer-events: none;

  transform: translate(-50%, -50%);

  z-index: -1;

  transition:
    transform 0.08s linear;
}

/* BUTTON LIGHT EFFECT */

.btn::before{

  content: '';

  position: absolute;

  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

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

  transition: 0.6s;
}

.btn:hover::before{
  left: 100%;
}

/* SPOTLIGHT CARD */

.spotlight-card{

  position: relative;

  isolation: isolate;
}

/* LIGHT FOLLOW */

.spotlight-card::before{

  content: '';

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at var(--x) var(--y),
      rgba(255,0,0,0.15),
      transparent 35%
    );

  opacity: 0;

  transition: opacity 0.3s ease;

  z-index: 0;
}

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

/* CONTENT ABOVE LIGHT */


.project-image{
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   ESTILIZAÇÃO DOS NOVOS BOTÕES DE CONTATO DIVERSOS
   ========================================================================== */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Garante que no celular eles fiquem empilhados certinho */
    margin-top: 25px;
}

.contact-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==========================================================================
   EFEITO HOVER PADRONIZADO PARA OS BOTÕES DE CONTATO (DIVERSAS REDES)
   ========================================================================== */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* Base idêntica para todas as redes sociais */
.contact-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. O Botão do WhatsApp permanece verde sólido por destaque comercial */
.btn-contact-ws {
    background-color: #25D366;
    color: #ffffff !important;
}
.btn-contact-ws:hover {
    background-color: #20ba5a;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
    transform: translateY(-3px);
}

/* --- PADRONIZAÇÃO DO EFEITO INTERNO DE COR (HOVER) --- */

/* Base escura comum antes de passar o mouse */
.btn-contact-link,
.btn-contact-git,
.btn-contact-insta {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.02);
}

/* LinkedIn: Transição interna para azul */
.btn-contact-link:hover {
    background-color: #0077B5 !important;
    border-color: transparent !important;
    color: #ffffff !important; /* Mantém o texto branco por cima da cor */
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.3);
    transform: translateY(-3px);
}

/* GitHub: Transição interna para o Vermelho do seu Portfólio */
.btn-contact-git:hover {
    background-color: var(--red-primary, #ff2b2b) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 43, 43, 0.3);
    transform: translateY(-3px);
}

/* Instagram: Transição interna para o degradê oficial */
.btn-contact-insta:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.3);
    transform: translateY(-3px);
}

#inicio,
#sobre,
#stack,
#projetos,
#contato{

  scroll-margin-top: 220px;
}

/* BACK TO TOP */

.back-to-top{

  position: fixed;

  right: 30px;
  bottom: 30px;

  width: 52px;
  height: 52px;

  border: none;

  border-radius: 50%;

  background:
    rgba(15,15,15,0.75);

  border:
    1px solid rgba(255,255,255,0.08);

  color: white;

  font-size: 1.1rem;

  cursor: pointer;

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.25);

  opacity: 0;

  visibility: hidden;

  transform:
    translateY(20px);

  transition:
    0.4s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: 999;
}

.back-to-top.show{

  opacity: 1;

  visibility: visible;

  transform:
    translateY(0);
}

.back-to-top:hover{

  transform:
    translateY(-5px);

  border-color:
    rgba(255,0,0,0.25);

  box-shadow:
    0 10px 35px rgba(255,0,0,0.12);
}

.back-to-top svg{

  width: 20px;
  height: 20px;

  stroke-width: 2.2;
}

/* ==========================================================================
   EFEITO VISUAL DA SEÇÃO DE TECNOLOGIAS (EFEITO TRANSPARENTE + MOUSE GLOW)
   ========================================================================== */

/* 1. Remove o fundo preto sólido que estava tampando a malha quadriculada do site */
.skills-section {
    background: transparent !important; /* Faz o fundo do site aparecer por trás */
    position: relative;
    z-index: 2;
}

/* 2. Ajusta os cards para ficarem semi-transparentes com o efeito de vidro fosco */
.skills-category-card {
    background: rgba(13, 13, 13, 0.4) !important; /* Fundo escuro mas transparente */
    backdrop-filter: blur(12px) !important; /* Dá o efeito premium de vidro fosco */
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* 3. Ativa e estiliza a luz vermelha interna que vai seguir o seu mouse */
.skills-category-card .spotlight-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(255, 43, 43, 0.06),
        transparent 40%
    ) !important;
    z-index: 1;
    pointer-events: none;
}

/* 4. Ativa e estiliza o brilho na borda que acompanha o mouse */
.skills-category-card .spotlight-border-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(255, 43, 43, 0.25),
        transparent 40%
    ) !important;
    z-index: 0;
    pointer-events: none;
    mask: linear-gradient(#fff 0 0) padding-box exclude, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box exclude, linear-gradient(#fff 0 0);
    padding: 1px;
}

/* 5. Garante que os ícones e textos fiquem por cima do brilho do mouse */
.skills-category-card .category-icon,
.skills-category-card h3,
.skills-category-card .skills-list {
    position: relative;
    z-index: 2;
}

/* 6. Efeito ao passar o mouse por cima do card inteiro (Hover) */
.skills-category-card:hover {
    transform: translateY(50px) !important; /* DIMINUÍDO AQUI: De -5px para -2px para o salto ficar bem sutil */
    border-color: rgba(255, 43, 43, 0.2) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 43, 43, 0.05) !important; /* Suavizei a sombra também para combinar */
}

/* ==========================================================================
   ALINHAMENTO E CENTRALIZAÇÃO DO FOOTER (RODAPÉ)
   ========================================================================== */
.footer {
    width: 100% !important;
    padding: 40px 0 !important;
    background-color: #0a0a0a !important; /* Mantém o fundo escuro do tema */
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important; /* Linha sutil separando o conteúdo */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Força o container interno a empilhar tudo no centro */
.footer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 12px !important; /* Espaçamento controlado entre o logo, o copyright e o texto */
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
}

/* Garante o destaque correto do logo no centro */
.footer-logo {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 1px !important;
    margin-bottom: 4px !important;
}

/* O pontinho vermelho neon do seu nome */
.footer-logo span {
    color: var(--red-primary, #ff2b2b) !important;
}

/* Estilização do texto menor de baixo */
.footer-subtext {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    max-width: 450px !important; /* Limita a largura para o texto quebrar bonito no centro */
    line-height: 1.5 !important;
    margin: 0 !important;
}