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

/* ===== VARIÁVEIS ===== */
:root {
    --azul-fundo:    #050c1a;
    --azul-medio:    #0a1628;
    --azul-card:     #0d1f3c;
    --azul-borda:    #1a3a6b;
    --azul-destaque: #1e50a2;
    --azul-brilho:   rgba(30, 80, 162, 0.25);
    --ouro:          #c9a227;
    --ouro-dim:      rgba(201, 162, 39, 0.15);
    --vermelho:      #c0392b;
    --branco:        #e8edf5;
    --cinza-texto:   #9aaccc;
}

/* ===== BASE ===== */
body {
    background-color: var(--azul-fundo);
    color: var(--branco);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 80px;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

#sobre, #posts, #formacao, #cursos, #experiencia {
    scroll-margin-top: 80px;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--branco);
}

h3 {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
}

/* Linha dourada embaixo dos títulos de seção */
h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--ouro);
    margin-top: 6px;
    border-radius: 2px;
}


/* ===== NAVBAR ===== */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 12, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--azul-borda);
    margin-left: 0 !important;
    padding: 0;
    width: 100%;
}

#top-nav .navbar {
    width: 100%;
    background: transparent !important;
}

.nav-item a {
    color: var(--cinza-texto) !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--ouro);
    transition: width 0.25s ease;
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--branco) !important;
    text-decoration: none;
}

.nav-item a:hover::after,
.nav-item a.active::after {
    width: 70%;
}

/* ===== SEÇÃO SOBRE ===== */
#header {
    position: static;
}

#sobre {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    background: var(--azul-card);
    border: 1px solid var(--azul-borda);
    border-radius: 20px;
    box-shadow: 0 0 40px var(--azul-brilho);
}

/* Remove o layout de row/col do Bootstrap na seção sobre */
#sobre .col-3,
#sobre .col-md-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: auto;
}

#sobre .col-9,
#sobre .col-md-9 {
    flex: 1;
}

#sobre img {
    border: 3px solid var(--azul-destaque);
    box-shadow: 0 0 24px var(--azul-brilho);
}

#sobre h3 {
    color: var(--branco);
    margin-bottom: 0.8rem;
}

#sobre p {
    color: var(--cinza-texto);
    margin: 0;
}

#sobre p a {
    color: var(--ouro);
    transition: color 0.2s;
}

#sobre p a:hover {
    color: var(--branco);
}

#sobre .bi {
    color: var(--azul-destaque);
    margin-right: 6px;
}

/* ===== PROJETOS ===== */
#main {
    margin-top: 60px;
}

#posts {
    text-align: center;
    margin: 2.5rem auto 0;
    max-width: 1100px;
    padding: 2rem 1.5rem;
    border: 1px solid var(--azul-borda);
    border-radius: 20px;
    background: var(--azul-card);
    box-shadow: 0 0 40px var(--azul-brilho);
}

#posts h3 {
    margin-bottom: 2rem;
}

#post {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    padding: 0;
}

#post:hover a {
    text-decoration: none;
}

.conteudo {
    max-width: 360px;
    width: 100%;
    margin: 0;
}

.card {
    margin-top: 0;
    display: block;
    background: var(--azul-medio);
    border: 1px solid var(--azul-borda);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--branco);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px var(--azul-brilho);
    border-color: var(--azul-destaque);
    color: var(--branco);
}

.card:hover .card-body h4 {
    color: var(--ouro);
}

.card-image {
    background: #000;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: brightness(0.8) saturate(0.9);
    transition: filter 0.25s ease;
}

.card:hover .card-image img {
    filter: brightness(1) saturate(1.1);
}

.card-body {
    padding: 1.2rem;
    background: transparent;
}

.card-body h4 {
    margin: 0 0 0.5rem;
    color: var(--branco);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.card-body p {
    margin: 0;
    color: var(--cinza-texto);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ===== TABELAS (Formação / Cursos / Experiência) ===== */
#formacao, #cursos, #experiencia {
    background: transparent;
}

#formacao .container,
#cursos .container,
#experiencia .container {
    max-width: 1100px;
}

#formacao h3,
#cursos h3,
#experiencia h3 {
    margin-bottom: 1.2rem;
}

.table-wrapper {
    max-width: 980px;
    margin: 1.5rem auto 0;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--azul-borda);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 520px;
    background: var(--azul-card);
}

.data-table th,
.data-table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(26, 58, 107, 0.5);
    border-right: 1px solid rgba(26, 58, 107, 0.3);
}

.data-table th:last-child,
.data-table td:last-child {
    border-right: none;
}

.data-table th {
    text-align: left;
    color: var(--ouro);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(30, 80, 162, 0.15);
    border-bottom: 2px solid var(--azul-destaque);
}

.data-table td {
    color: var(--cinza-texto);
    font-size: 0.92rem;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(30, 80, 162, 0.2);
}

.data-table tbody tr:hover td {
    color: var(--branco);
}

.data-table td a {
    color: var(--cinza-texto);
    text-decoration: none;
}

.data-table td a:hover {
    color: var(--ouro);
    text-decoration: none;
}


/* ===== FOOTER ===== */
#footer {
    background: var(--azul-medio);
    border-top: 1px solid var(--azul-borda);
    color: var(--cinza-texto);
    padding: 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-content p {
    margin: 0;
    font-size: 0.85rem;
}

.footer-content img {
    max-width: 18px;
}

/* ===== SEÇÕES COM ESPAÇAMENTO ===== */
section {
    padding: 3rem 1rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    #sobre {
        flex-direction: column;
        text-align: center;
    }

    #sobre .col-3,
    #sobre .col-md-3,
    #sobre .col-9,
    #sobre .col-md-9 {
        width: 100%;
    }

    #post {
        grid-template-columns: 1fr;
    }

    h3 {
        font-size: 1.3rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
}
