html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
    margin: 0;
    padding: 0;
    background-color: #0F1117;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer { margin-top: auto; }

* {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

/* ── Header / Hero ──────────────────────────────── */

.cabecalho {
    background-color: #0F1117;
    border-bottom: 1px solid #2D3748;
    padding: 48px 24px 80px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* ── Particle Canvas ────────────────────────────── */

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

.cabecalho > *:not(#particles) {
    position: relative;
    z-index: 1;
}

.meu_Nome {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #818CF8;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 24px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.linksNav {
    transition: color 0.2s ease;
    color: #94A3B8;
    font-size: 0.95rem;
    font-weight: 500;
}

.linksNav:hover { color: #818CF8; }

.gl {
    margin-top: 32px;
    display: flex;
    gap: 48px;
    justify-content: center;
}

.logos {
    width: 36px;
    margin-bottom: 6px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.logos:hover { opacity: 1; }

.Links {
    color: #94A3B8;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
}

.Links:hover { color: #818CF8; }

.publi {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fraseIconica {
    margin-top: 28px;
    color: #94A3B8;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ── Sobre mim ──────────────────────────────────── */

.sobreMim {
    max-width: 860px;
    margin: 56px auto 0;
    background-color: #1A202C;
    border-radius: 10px;
    border: 1px solid #2D3748;
    padding: 32px 36px 36px;
}

.titutoAbout {
    color: #E2E8F0;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.titutoAbout::after {
    content: '_';
    animation: piscar 1s infinite;
}

@keyframes piscar {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

.fotoTexto {
    display: flex;
    align-items: center;
    gap: 32px;
}

.texto {
    color: #CBD5E0;
    line-height: 1.75;
    font-size: 0.95rem;
    flex: 1;
}

.circuloImagem {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #818CF8;
}

.minhaFoto {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Conheça ─────────────────────────────────────── */

.conheca {
    max-width: 860px;
    margin: 56px auto 56px;
    background-color: #1A202C;
    border-radius: 10px;
    border: 1px solid #2D3748;
    padding: 32px 36px 36px;
}

.conheca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.conheca-card {
    display: flex;
    flex-direction: column;
    background-color: #0F1117;
    border: 1px solid #2D3748;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
}

.conheca-card:hover {
    border-color: #818CF8;
}

.conheca-banner {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
}

.conheca-banner--video {
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #1e1b4b 100%);
}

.conheca-banner--blog {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #0f172a 100%);
}

.conheca-banner--portfolio {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #022c22 100%);
}

.conheca-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.conheca-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #C7D2FE;
}

.conheca-body p {
    font-size: 0.875rem;
    color: #94A3B8;
    line-height: 1.65;
    flex: 1;
}

.conheca-cta {
    font-size: 0.825rem;
    font-weight: 600;
    color: #818CF8;
    margin-top: 4px;
    transition: color 0.2s;
}

.conheca-card:hover .conheca-cta { color: #6366F1; }

/* ── Footer ──────────────────────────────────────── */

footer {
    height: 80px;
    background-color: #1A202C;
    border-top: 1px solid #2D3748;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    color: #64748B;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 768px) {
    .meu_Nome { font-size: 1.6rem; }

    nav { gap: 24px; }

    .gl { gap: 32px; }

    .sobreMim, .conheca { margin-left: 16px; margin-right: 16px; }

    .fotoTexto {
        flex-direction: column-reverse;
        align-items: center;
        gap: 24px;
    }

    .circuloImagem {
        width: 140px;
        height: 140px;
    }

    .conheca-grid { grid-template-columns: 1fr; }
    .conheca-banner { height: 130px; }
}

/* ── Scroll Reveal ──────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── 3D Tilt Cards ──────────────────────────────── */

.conheca-card {
    --rx: 0deg;
    --ry: 0deg;
    transform: perspective(600px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: border-color 0.2s ease,
                transform 0.35s cubic-bezier(0.03, 0.98, 0.52, 0.99),
                box-shadow 0.35s ease;
    will-change: transform;
}

.conheca-card:hover {
    border-color: #818CF8;
    box-shadow: 0 12px 40px rgba(129, 140, 248, 0.15),
                0 0 30px rgba(129, 140, 248, 0.06);
}
