@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* --- Reset Básico e Estilos Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    background-color: #121212;
    background-image: radial-gradient(#2a2a2a 1px, transparent 1px);
    background-size: 25px 25px;
}

/* --- Layout Principal --- */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Tipografia (Fontes e Textos) --- */
h1, h2, h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

h2 {
    font-size: 1.8em;
    border-bottom: 2px solid #00aaff;
    padding-bottom: 5px;
    margin-top: 20px;
}

.subtitle {
    font-size: 1.2em;
    font-weight: 300;
    color: #cccccc;
    margin-bottom: 20px;
    min-height: 25px;
}

a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00ffff;
}

/* --- Estrutura e Seções --- */
section {
    margin-bottom: 40px;
}

ul {
    list-style: none;
}

.contact-info li {
    display: inline-block;
    margin-right: 20px;
}

/* --- Efeito de Card Interativo --- */
.card {
    background-color: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #00aaff;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 170, 255, 0.2);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

/* --- Animação de Fade-in --- */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Menu de Navegação Fixo --- */
.navbar {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}
.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}
.nav-menu {
    display: flex;
    list-style: none;
    text-align: center;
}
.nav-item {
    height: 70px;
}
.nav-link {
    color: #e0e0e0;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
    transition: all 0.2s ease;
}
.nav-link:hover {
    color: #00aaff;
    border-bottom: 3px solid #00aaff;
}

/* --- Header Simplificado --- */
header {
    padding: 120px 20px 40px 20px;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Efeito Máquina de Escrever --- */
#subtitle-typewriter::after {
    content: '|';
    margin-left: 5px;
    opacity: 1;
    animation: blink 0.7s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Botão de Download --- */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #00aaff;
    color: #121212;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn:hover {
    background-color: #00ffff;
    color: #121212;
    transform: translateY(-3px);
}

/* --- Botão Voltar ao Topo --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #00aaff;
    color: #121212;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top-btn:hover {
    background-color: #00ffff;
    transform: scale(1.1);
}

/* --- Botão Flutuante do WhatsApp --- */
.whatsapp-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    fill: #FFF;
}