/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Evita destaque de toque em mobile e força camadas pra evitar repinturas */
html, body, a, button {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
}

/* Evitar rolamento horizontal (global) */
html, body {
    overflow-x: hidden; /* evita barras horizontais */
}

/* GARANTIR ALTURA E EVITAR BOUNCE/ROLAGEM INDESEJADA (mobile) */
html, body {
    height: 100%;
    min-height: 100%;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    
}

/* Força fundo preto global para evitar faixa branca */
html, body {
    background-color: #000;
    height: 90%;
    min-height: 100%;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    overflow-x: hidden;
    background-image: url('img/backgroundpaginatoda01.avif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* Backdrop/Particles consolidado — usa --vh para evitar bugs com barra do navegador */
.particles {
    position: fixed;
    inset: 0;
    width: 100vw;
    /* Usar var(--vh) definido por JS para lidar com altura dinâmica do viewport */
    height: calc(var(--vh, 1vh) * 100);
    min-height: 100vh; /* fallback */
    z-index: -1;
    pointer-events: none;
    background-image: url('img/backgroundpaginatoda01.avif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-color: #000; /* fallback */
    isolation: isolate;
    contain: paint;
    will-change: opacity;
    transform: none !important; /* previne bugs quando pais têm transform */
    -webkit-backface-visibility: hidden;
}

/* Somente em telas grandes podemos aplicar attachment: fixed (desktop). */
@media (min-width: 1024px) {
    .particles {
        background-attachment: fixed;
    }
}

/* Garante que containers pai não criem stacking context por 'transform' */
html, body, .container, .profile-header {
    transform: none !important;
}

/* Evitar overflow horizontal/trabalho do ripple que cria scroll */
html, body {
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

/* Garante que cada link tenha contexto para o ripple e que overflow seja cortado */
.link-item {
    position: relative;
    overflow: hidden;
}

/* Assegura o .ripple não provoque scroll ao expandir */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
    will-change: transform, opacity;
    left: 0;
    top: 0;
}

/* Particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-image: url(img/backgroundpaginatoda01.avif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* reforça que o background deve ficar fixo */
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Container principal */
.container {
    max-width: 480px;
    /* Adicionamos margem no topo para empurrar o conteúdo para baixo e evitar cortes */
    margin: 100px auto 0;
    padding: 20px;
    position: relative;
    z-index: 1;
    
     background-repeat: no-repeat;
     background-position: center center;
     background-size: cover;
}

/* Header do perfil */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
    /*background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0));*/
    background-image: url(img/backabaixodologo.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 80px 20px 30px 20px; /* Padding ajustado para o novo layout */
    /* Removemos a sombra e a borda para um efeito de degradê mais limpo */
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    filter: drop-shadow(2px 2px 6px white);

}

.profile-image {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    margin-top: -150px; /* Puxa a imagem para fora do card */
}

.profile-image img {
    width: 250px;
    height: 190px;
    border-radius: 10%;
    /* A borda foi removida conforme solicitado */
    
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.25s ease;
    margin-bottom: 30px;
}

.profile-image:hover img {
    transform: scale(1.05);
}

/* Efeito: luz cinza piscante que contorna apenas o logotipo no header (usa múltiplos drop-shadow para contorno uniforme) */
.profile-header .logo {
    display: inline-block;
    border-radius: 10%;
    will-change: filter;
    animation: grayOutline 2.0s infinite linear;
    filter: drop-shadow(0 0 0 rgba(200,200,200,0));
}

@keyframes grayOutline {
    0%  { filter: drop-shadow(0 0 0 rgba(200,200,200,0)) drop-shadow(0 0 0 rgba(200,200,200,0)); }
    6%  { filter: drop-shadow(0 0 6px rgba(200,200,200,0.95)) drop-shadow(0 0 12px rgba(200,200,200,0.5)); }
    10% { filter: drop-shadow(0 0 3px rgba(150,150,150,0.2)) drop-shadow(0 0 10px rgba(150,150,150,0.15)); }
    18% { filter: drop-shadow(0 0 10px rgba(180,180,180,0.8)) drop-shadow(0 0 18px rgba(180,180,180,0.45)); }
    22% { filter: drop-shadow(0 0 0 rgba(0,0,0,0)) drop-shadow(0 0 0 rgba(0,0,0,0)); }
    30% { filter: drop-shadow(0 0 5px rgba(190,190,190,0.45)) drop-shadow(0 0 11px rgba(190,190,190,0.25)); }
    50% { filter: drop-shadow(0 0 0 rgba(0,0,0,0)) drop-shadow(0 0 0 rgba(0,0,0,0)); }
    72% { filter: drop-shadow(0 0 8px rgba(160,160,160,0.6)) drop-shadow(0 0 14px rgba(160,160,160,0.35)); }
    90% { filter: drop-shadow(0 0 0 rgba(0,0,0,0)) drop-shadow(0 0 0 rgba(0,0,0,0)); }
    100%{ filter: drop-shadow(0 0 0 rgba(0,0,0,0)) drop-shadow(0 0 0 rgba(0,0,0,0)); }
}

.profile-header .logo:hover {
    animation-duration: 1.0s;
    filter: drop-shadow(0 0 12px rgba(200,200,200,0.95)) drop-shadow(0 0 20px rgba(200,200,200,0.55));
}

/* Acessibilidade: reduz animações se o usuário prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
    .profile-header .logo {
        animation: none;
        filter: drop-shadow(0 0 8px rgba(200,200,200,0.6)) drop-shadow(0 0 12px rgba(200,200,200,0.3));
    }
}

.verified-badge {
    position: absolute;
    bottom: 95px;
    right: 5px;
    background: #4CAF50;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 3px solid white;
}

.profile-name {
    font-family: 'Orbitron', 'Russo One', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 36px; /* Destaque */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 5px;

    /* Preenchimento com degradê leve (efeito metálico) e texto recortado */
    background: linear-gradient(180deg, #ffffff 0%, #e8f8ff 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Borda e brilho (neon branco) */
    -webkit-text-stroke: 0.6px rgba(255,255,255,0.95);
    text-shadow:
        0 0 6px rgba(255,255,255,0.95),
        0 0 14px rgba(255,255,255,0.85),
        0 0 24px rgba(0, 255, 255, 0.08),
        0 2px 2px rgba(0,0,0,0.25);

    -webkit-font-smoothing: antialiased;
    animation: glow 2.2s ease-in-out infinite;
}

.profile-title {
    font-size: 18px;
    color: #f8f4f4;
    font-weight: 600;
    margin-bottom: 5px;
    filter: drop-shadow(2px 4px 6px white);
    

}

.profile-subtitle {
    font-size: 14px;
    color: #070707;
    margin-bottom: 20px;
    background-color: #f5f5dc7a;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #dadada;
    filter: drop-shadow(2px 4px 6px rgb(255, 60, 0));
}

.stat-label {
    font-size: 12px;
    color: #ffffff;
    filter: drop-shadow(2px 4px 6px rgb(255, 60, 0));
}

/* Container de links */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

/* Estilo dos links */
.link-item {
    display: flex;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid;
    border-color: rgba(255, 255, 255, 0.2);
    background-image: url(img/backbotaocarro.jpg);
    background-repeat: no-repeat;
    background-position: right 40% center;
    filter: drop-shadow(2px 4px 6px black);
}

span {
    color: white;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    -webkit-tap-highlight-color: transparent; /* Remove o destaque de toque em celulares */
}

.link-item.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.link-item.primary:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 79, 0);
    flex-shrink: 0;
    position: relative; /* Adicionado para posicionar a imagem */
    margin-right: 25px; /* Aumentado para dar espaço à imagem maior */
}



.link-icon2 img {
    width: 95px;
    height: 195px;
    object-fit: contain;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    margin-left: 50px;
}








.link-icon img {
    /* A imagem agora é maior e posicionada de forma absoluta para vazar */
    width: 95px;
    height: 95px;
    object-fit: contain;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.link-item.primary .link-icon {
    background: rgba(255, 255, 255, 0);
}

.link-icon.whatsapp {
    background: rgba(0, 0, 0, 0);
    /* A cor do ícone agora vem da imagem */
}

.link-icon.instagram {
    background: linear-gradient(45deg, #00000000 0%, #e6693c00 25%, #dc274200 50%, #cc236700 75%, #bc188800 100%);
    /* A cor do ícone agora vem da imagem */
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.link-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.link-subtitle {
    font-size: 13px;
    opacity: 0.7;
}

.link-arrow {
    font-size: 16px;
    opacity: 0.5;
    transition: all 0.3s ease;
    color: lawngreen;
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Redes sociais */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-link[data-social="facebook"]:hover {
    background: #1877f2;
    color: white;
}

.social-link[data-social="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link[data-social="linkedin"]:hover {
    background: #0077b5;
    color: white;
}

.social-link[data-social="youtube"]:hover {
    background: #ff0000;
    color: white;
}

/* Informações de contato */
.contact-info {
    text-align: center;
     background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(1px);
    border-radius: 15px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin: 8px 0;
    color: #030303f8;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-info i {
    color: #00000000;
}

a{
    text-align: center;
    text-decoration: none;
    color: yellowgreen;
}

footer p {
    text-align: center;
    font-size: 12px;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 10px;
    background-color: #000;
    padding: 20px;
}



/* Responsividade */
@media (max-width: 480px) {
    .container {
        margin-top: 80px; /* Reduz a margem superior em telas menores */
        padding: 15px;
    }
    
    .profile-header {
        /* Ajustado para dar espaço à imagem que vaza para fora */
        padding: 70px 15px 25px;
    }

    /* Ajuste para evitar problemas com o background fixo em telas pequenas,
       fazendo com que o background role com a página. */
    /* A regra abaixo não é mais necessária com a correção aplicada. */
    /* .particles { background-attachment: scroll; } */

    .profile-image {
        margin-top: -145px; /* Ajuste do deslocamento para telas menores */
    }

    .profile-image img {
               width: 220px;
        height: 200px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .profile-stats {
        gap: 20px;
    }
    
    .link-item {
        padding: 15px;
    }
    
    .link-icon {
        width: 45px;
        height: 45px;
        margin-right: 20px;
    }

    .link-icon img {
        /* Ajuste para telas menores */
        width: 85px;
        height: 85px;
    }



    .link-icon2 img {
    width: 50px;
    height: 60px;
    object-fit: contain;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    margin-left: 50px;
    margin-top: -10px;
}
    
    .link-title {
        font-size: 15px;
    }
    
    .link-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .container {
        margin-top: 70px;
    }
    .profile-header {
        padding-top: 60px;
        margin-bottom: 20px;
    }
    .profile-image img {
               width: 200px;
        height: 150px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação do brilho do título */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 6px rgba(255,255,255,0.8),
                     0 0 12px rgba(255,255,255,0.5),
                     0 0 18px rgba(255,255,255,0.2);
    }
    50% {
        text-shadow: 0 0 14px rgba(255,255,255,1),
                     0 0 26px rgba(255,255,255,0.9),
                     0 0 36px rgba(255,255,255,0.6);
    }
}