/* Estilos específicos para a página de contato (contact.html) */

/* Ajuste do layout para centralizar verticalmente */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container principal da página */
.contact-page-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 120px 20px 60px;
    width: 100%;
}

/* Wrapper para o efeito de Flip (3D) */
.swap-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    perspective: 1000px; /* Dá a profundidade 3D */
    display: grid;
    grid-template-areas: "card";
    
    /* A animação de entrada agora pertence ao wrapper */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: slideInUp 0.8s var(--ease-elastic) forwards;
}

/* Cartão do formulário com efeito de vidro */
.contact-card {
    grid-area: card; /* Ocupa o mesmo espaço no grid */
    width: 100%;
    /* max-width removido pois o wrapper controla isso */
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    
    /* Configurações para o Flip */
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    transform: rotateY(0deg);
    z-index: 2;
    overflow: visible; /* Permite que o botão "vaze" para fora do container */
}

.contact-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
}

/* Ajustes nos inputs herdados do style.css para garantir contraste */
.contact-container input,
.contact-container textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-container input:focus,
.contact-container textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Área do botão voltar */
.back-home-container {
    position: absolute;
    top: 100px; /* Logo abaixo da navbar */
    left: 40px; /* Alinhado à esquerda */
    z-index: 50;
    border: none;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: white;
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    transform: translateX(-1px);
}

.container-contact {
    grid-area: card;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 30px;
    width: 100%;

    backface-visibility: hidden;
    transform: rotateY(180deg);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* --- Classes Ativas (Quando virado) --- */
.swap-wrapper.flipped .contact-card {
    transform: rotateY(-180deg);
    opacity: 0;
    pointer-events: none;
}

.swap-wrapper.flipped .container-contact {
    transform: rotateY(0deg);
    opacity: 1;
    pointer-events: all;
    z-index: 3;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    text-align: center;
    color: var(--text-primary);
    text-decoration: none;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
    color: var(--text-primary);
    width: 100%;
}

.itens-info-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

a:hover {
    color: #fff;
    transform: scale(1.05);
}


h3  {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
    color: var(--text-primary);
}

.item-info {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    position: relative;
}

.item-info:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: var(--primary-color);
    transform: scale(1.03);
    font-size: 18px;
}

.item-info p {
    margin: 0;
}

.item-info.linkedin {
    position: relative;
    overflow: visible;
}

.Preview-LinkedIn,
.Preview-GitHub,
.Preview-Instagram {
    position: absolute;
    top: 50%;
    right: calc(100% + 15px);
    transform: translateY(-50%) scale(0.95);
    width: 520px;
    max-width: 520px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

.item-info:hover .Preview-LinkedIn,
.item-info:hover .Preview-GitHub,
.item-info:hover .Preview-Instagram {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.Contact-Icons {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.preview-social {
    position: absolute;
    top: 50%;
    right: calc(100% + 15px);
    transform: translateY(-50%) scale(0.95);
    width: 320px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

.item-info:hover .preview-social {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}


.preview-social::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 12px solid rgba(255, 255, 255, 0.15);
}
/* Botão Submit */

.btn-submit {
    background-color: rgba(255, 255, 255, 0);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    margin: 0.7rem 0;
    padding: 16px 22px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.089);
    transition: all 0.2s ease;
}


.btn-submit:hover:not(:disabled) {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(131, 49, 224, 0.15);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Botão de Troca (Ícone) */
.form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Estilo base do botão (agora circular e flutuante) */
.btn-info-section {
    background: rgba(30, 30, 30, 0.9); /* Fundo um pouco mais sólido para destacar */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.3);
}

/* Ativar o tooltip customizado no hover */
.btn-info-section:hover .default-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -45px;
}

/* Modificador para o botão flutuante na lateral */
.btn-floating-swap {
    position: absolute;
    right: -25px; /* Faz ele "sobrar" para fora (metade da largura) */
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    z-index: 10;
}

.btn-info-section:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.1); /* Mantém centralizado verticalmente ao dar zoom */
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.btn-back-flip {
    margin-top: 1rem;
    width: 100%;
    font-size: 1rem;
    gap: 10px;
    padding: 0.8rem;
    border-radius: 8px;
}

/* Responsividade */
@media (max-width: 600px) {
    .contact-card, .container-contact {
        padding: 2rem 1.5rem;
        /* Mantém o background em mobile para legibilidade */
        /* border: none; */
        /* background: transparent; */
        box-shadow: none;
    }
    
    .contact-page-container {
        padding-top: 100px;
        /* Aumenta padding lateral em telas pequenas para o botão não cortar */
        padding-left: 40px; 
    }

    /* Em telas muito pequenas, talvez seja melhor ajustar o botão */
    .btn-floating-swap {
        left: -15px; /* Entra um pouquinho mais */
    }
} 



.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    text-align: center;
    padding: 8px;
    color: var(--text-primary);
    background: rgba(15, 15, 15, 0.651);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    z-index: 1000;
}