@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #10a345; /* Verde vibrante PerfilFlex */
    --primary-light: #16c054; /* Verde mais claro para hovers/detalhes */
    --accent: #1a1a1a; /* Cinza chumbo/preto do logo */
    --accent-dark: #0d0d0d; /* Preto profundo */
    --gray: #8e9597;
    --gray-light: #f4f6f7;
    --gray-dark: #2d3748;
    
    --bg-gradient-1: #f3f5f8;
    --bg-gradient-2: #e2e6eb;
    
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(16, 163, 69, 0.08);
    
    --text-main: #1a1a1a; /* Nome em preto para destacar, como no anexo */
    --text-body: #333333;
    --text-muted: #71717a;
    
    --font: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-body);
    overflow-x: hidden;
    padding: 20px 10px;
}

/* Efeito de Luzes de Fundo (Glows) */
.bg-glows {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}

.glow-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -50px;
    left: -50px;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: var(--gray);
    bottom: -50px;
    right: -50px;
}

/* Container Principal (Card flutuante Light - Altura ampliada +40px) */
.card-container {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 55px 25px 45px 25px; 
    box-shadow: 0 20px 40px -15px rgba(16, 163, 69, 0.12);
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Detalhe de fundo geométrico sutil no próprio cartão */
.card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 31px;
    background: 
        /* Glow verde suave no canto superior esquerdo */
        radial-gradient(circle at 10% 10%, rgba(16, 163, 69, 0.04) 0%, transparent 45%),
        /* Glow cinza suave no canto inferior direito */
        radial-gradient(circle at 90% 90%, rgba(142, 149, 151, 0.08) 0%, transparent 45%),
        /* Padrão pontilhado decorativo sutil (halftone) */
        radial-gradient(rgba(16, 163, 69, 0.03) 1.5px, transparent 1.5px) 0 0 / 14px 14px,
        radial-gradient(rgba(142, 149, 151, 0.04) 1.5px, transparent 1.5px) 7px 7px / 14px 14px;
    z-index: -1;
    pointer-events: none;
}

/* Topo / Logotipo Aumentado e com mais respiro */
.logo-container {
    width: 100%;
    margin-bottom: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 240px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(16, 163, 69, 0.04));
}

/* Info do Profissional */
.profile-info {
    margin-bottom: 35px;
    width: 100%;
}

.profile-name {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.profile-role {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary); /* Cargo em verde conforme o anexo */
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 0 auto;
}

/* Grade de Contatos */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 35px;
}

.contacts-grid.has-five {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contacts-grid.has-five .contact-item {
    width: 90px;
    flex-shrink: 0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-body);
    transition: var(--transition);
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 163, 69, 0.05);
    border: 1px solid rgba(16, 163, 69, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(16, 163, 69, 0.03);
}

.contact-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: var(--accent); /* Ícones pretos, conforme anexo */
    transition: var(--transition);
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary); /* Rótulo verde, conforme anexo */
    transition: var(--transition);
}

/* Hover nos Contatos */
.contact-item:hover .contact-icon-wrapper {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 163, 69, 0.25);
}

.contact-item:hover .contact-icon-wrapper svg {
    fill: #ffffff; /* Ícone fica branco no hover sobre o fundo verde */
}

.contact-item:hover .contact-label {
    color: var(--primary-light);
}

/* Botões de Ação Principais */
.actions-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.btn {
    width: 100%;
    padding: 15px 20px;
    border-radius: 16px;
    border: none;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 163, 69, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 163, 69, 0.25);
    background: linear-gradient(135deg, var(--primary-light) 0%, #1bc75d 100%);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.btn-secondary {
    background: rgba(16, 163, 69, 0.04);
    border: 1px solid rgba(16, 163, 69, 0.1);
    color: var(--accent);
}

.btn-secondary:hover {
    background: rgba(16, 163, 69, 0.08);
    border-color: rgba(16, 163, 69, 0.2);
    transform: translateY(-2px);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
}

/* Modal do QR Code (Light) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    border: 1px solid rgba(16, 163, 69, 0.08);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 340px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(16, 163, 69, 0.15);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.qr-code-wrapper {
    background: #ffffff;
    padding: 15px;
    border: 1px solid rgba(16, 163, 69, 0.08);
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(16, 163, 69, 0.05);
}

#qr-image {
    width: 180px;
    height: 180px;
    display: block;
}

.btn-close {
    background: rgba(16, 163, 69, 0.04);
    border: 1px solid rgba(16, 163, 69, 0.1);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 12px;
    font-family: var(--font);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.btn-close:hover {
    background: rgba(16, 163, 69, 0.08);
}

/* Toast de Notificação (Copiado com Sucesso) */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(16, 163, 69, 0.25);
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

/* Endereço Leve e Elegante */
.company-address {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.4;
    max-width: 90%;
    margin-top: -15px; 
}

/* Responsividade adicional */
@media (max-width: 380px) {
    .card-container {
        padding: 40px 15px 30px 15px;
    }
    .profile-name {
        font-size: 1.45rem;
    }
    .contact-icon-wrapper {
        width: 52px;
        height: 52px;
    }
}
