/* Reset de Margens e Box-Sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variáveis de Design - Padrão Modo Black (Escuro) */
:root {
    --bg-primary: #11161a;
    --bg-secondary: #1e252b;
    --color-grey: #50555a;
    --color-blue: #89c4ff;
    --text-main: #ffffff;
    --text-muted: #a0a5ab;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-bg: rgba(255, 255, 255, 0.07);
    --glass-hover-border: rgba(137, 196, 255, 0.25);
    --bg-radial: radial-gradient(circle at 50% 30%, #1e252b 0%, #11161a 100%);
    --grid-color: rgba(137, 196, 255, 0.03);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Variáveis de Design - Modo Light (Claro) */
body.light-theme {
    --bg-primary: #f4f6f9;
    --bg-secondary: #ffffff;
    --color-grey: #50555a;
    --color-blue: #0077b5;
    --text-main: #191e24;
    --text-muted: #62686e;
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-hover-bg: rgba(0, 0, 0, 0.05);
    --glass-hover-border: rgba(0, 119, 181, 0.25);
    --bg-radial: radial-gradient(circle at 50% 30%, #ffffff 0%, #f4f6f9 100%);
    --grid-color: rgba(0, 119, 181, 0.03);
    --shadow-color: rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Fundo Tecnológico Sutil */
.bg-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-radial);
    z-index: -1;
    transition: background 0.4s ease;
}

.bg-network::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Container Principal */
.container {
    width: 100%;
    max-width: 450px;
    padding: 30px 24px 50px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Botão de Alternância de Tema Estilizado */
.theme-toggle-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

#theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--glass-hover-bg);
    border-color: var(--glass-hover-border);
    transform: translateY(-1px);
}

#theme-toggle i {
    font-size: 14px;
}

/* Controle de exibição dos ícones do tema */
body .icon-theme-light { display: none; }
body .icon-theme-dark { display: inline-block; }
body.light-theme .icon-theme-light { display: inline-block; }
body.light-theme .icon-theme-dark { display: none; }

/* Cabeçalho */
.header {
    text-align: center;
    margin-bottom: 35px;
    width: 100%;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

/* Configuração do Logotipo Externo Menor e Sofisticado */
.logo-image {
    width: 80px; 
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(137, 196, 255, 0.12));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.light-theme .logo-image {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.logo-image:hover {
    transform: scale(1.06) rotate(3deg);
}

/* O Nome muda de cor automaticamente via variável CSS */
.logo-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
    transition: color 0.4s ease;
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.2px;
    max-width: 85%;
    margin: 0 auto;
    line-height: 1.5;
    transition: color 0.4s ease;
}

/* Lista de Links */
.links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 45px;
}

/* Cartões com Efeito Glassmorphism Adaptável */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.link-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

/* Efeito Reflexo de Luz Lateral */
.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: skewX(-30deg);
    transition: 0.8s ease;
}

body.light-theme .link-item::before {
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 0, 0, 0.02),
        transparent
    );
}

.link-item:hover::before {
    left: 130%;
}

.link-item:hover {
    transform: translateY(-4px);
    background: var(--glass-hover-bg);
    border-color: var(--glass-hover-border);
}

/* Customização dos Wrappers dos Ícones */
.icon-wrapper {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

body.light-theme .icon-wrapper {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.link-item:hover .icon-wrapper {
    transform: scale(1.08);
}

/* Efeitos de Hover Dinâmicos baseados nas Cores das Marcas */
.btn-whatsapp:hover .icon-wrapper { color: #25D366; background: rgba(37, 211, 102, 0.08); border-color: rgba(37, 211, 102, 0.2); }
.btn-facebook:hover .icon-wrapper { color: #1877F2; background: rgba(24, 119, 242, 0.08); border-color: rgba(24, 119, 242, 0.2); }
.btn-instagram:hover .icon-wrapper { color: #E1306C; background: rgba(225, 48, 108, 0.08); border-color: rgba(225, 48, 108, 0.2); }
.btn-linkedin:hover .icon-wrapper { color: #0077B5; background: rgba(0, 119, 181, 0.08); border-color: rgba(0, 119, 181, 0.2); }
.btn-website:hover .icon-wrapper { color: #3b82f6; background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.2); }

.link-item span {
    font-size: 15px;
    font-weight: 500;
    flex-grow: 1;
    letter-spacing: 0.2px;
}

.arrow-icon {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.link-item:hover .arrow-icon {
    transform: translateX(4px);
    opacity: 0.9;
}

/* Rodapé */
.footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
    width: 100%;
    margin-top: auto;
    transition: color 0.4s ease;
}

/* Ajustes de Responsividade */
@media (max-width: 360px) {
    .container {
        padding: 20px 16px;
    }
    .logo-text {
        font-size: 23px;
    }
    .link-item {
        padding: 14px 16px;
    }
}