/* Barra de rolagem para seções expandidas do blog */
.expandable-card .card-content.expanded {
    max-height: 70vh;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

/* Estiliza a barra de rolagem para visual moderno */
.expandable-card .card-content.expanded::-webkit-scrollbar {
    width: 8px;
    background: #101820;
}
.expandable-card .card-content.expanded::-webkit-scrollbar-thumb {
    background: #00bfff;
    border-radius: 4px;
}
.expandable-card .card-content.expanded::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}
/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #000000;
    color: #00bfff;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

/* Páginas que recebem o menu automaticamente via layout-loader
   precisam de recuo superior para não ter o cabeçalho de conteúdo coberto
   pelo header fixo. */
body.auto-site-header {
    padding-top: calc(var(--auto-header-offset, 88px) + 0.75rem);
}

/* Em layouts com body flex, o min-width:auto padrão dos itens pode impedir
   encolhimento e causar "estouro" horizontal em páginas de conteúdo (tutoriais).
   min-width:0 permite que os itens respeitem a viewport. */
body > * {
    min-width: 0;
}

/* Páginas de tutorial (Infnet) usam .tutorial-container em vez de <main>.
   Como o body do site é flex, garantimos que o container não "trave" largura. */
.tutorial-container {
    width: 100%;
    min-width: 0;
}

/* Proteção global contra overflow horizontal (mobile/tablet)
   - evita que um único token/linha force a página a "alargar"
   - mantém scroll horizontal dentro de blocos (quando necessário) */
pre,
code {
    max-width: 100%;
}

pre {
    overflow-x: auto;
}

code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Tabelas responsivas por padrão */
table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

th,
td {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

main {
    background: transparent;
    position: relative;
    z-index: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: clip;
}

/* Fonte Orbitron para títulos */
h1, h2, h3, h4, h5, h6, .site-title, .page-title, .logo {
    font-family: 'Orbitron', 'Courier New', monospace;
}

/* Canvas para chuva binária */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.12;
    background-color: transparent;
    pointer-events: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    flex-shrink: 0;
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00bfff;
    text-shadow: 0 0 10px #00bfff;
    animation: glow 2s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    filter: drop-shadow(0 0 8px #00bfff);
}

.bracket {
    color: #00bfff;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px; /* Espaço mínimo */
    margin: 0;
}

.nav-links a {
    font-family: 'Orbitron', 'Courier New', monospace;
    color: #00bfff;
    text-decoration: none;
    padding: 0.8rem 0.5rem;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    font-size: 0.84rem;
}

.nav-links a:hover {
    background: rgba(0, 191, 255, 0.1);
    box-shadow: 0 0 20px #00bfff;
    transform: translateY(-2px);
}

/* Container principal - Controla o alinhamento vertical */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 5rem); /* Altura da viewport menos o header */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-x: clip;
}

main > .central-image + .container {
    justify-content: flex-end;
}

/* Home: reduzir crescimento excessivo em telas grandes e evitar
   rolagem desnecessária por excesso de altura do bloco principal. */
body.home-page main {
    --home-crest-height: min(42vh, 320px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: 0;
    padding-top: calc(var(--auto-header-offset, 88px) + 0.4rem);
    padding-bottom: 0.4rem;
}

body.home-page .container {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

body.home-page .central-image {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    margin-top: 0;
    align-items: flex-start;
    overflow: visible;
    flex: 0 0 auto;
    margin-bottom: 0.75rem;
}

body.home-page #main-image {
    height: var(--home-crest-height);
    max-width: min(62vw, 460px);
    max-height: none;
    display: block;
}

body.home-page .main-title {
    margin-top: 0;
    margin-bottom: 0.55rem;
}
/* Imagem de fundo - CENTRALIZADA */
.central-image {
    margin-top: -50px;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: -100px;
    width: 100%;
    height: 100vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

#main-image {
    position: relative;
    z-index: 0;
    width: auto;
    height: 80%; /* Ajuste a altura conforme necessário */
    max-width: 80%;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

/* Título, autor e frase animada */
.main-title {
    text-align: center;
    margin-bottom: 1rem;
}

body.home-page .hero-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    gap: 0.15rem;
}

.site-title {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #00bfff;
    text-shadow: 
        0 0 3px #00bfff,
        0 0 5px rgba(0, 191, 255, 0.5);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.author-name {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    color: #0088aa;
    margin: 0;
    opacity: 0.8;
    letter-spacing: 1px;
}

.typing-text {
    margin: 0 auto 2rem auto; /* Espaçamento abaixo da frase */
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#typing-phrase {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 1.2rem;
    color: #00bfff;
    text-shadow: 0 0 5px #00bfff;
    font-weight: 700;
}

/* Botões de ação */
.action-buttons {
    position: relative;
    z-index: 40;
    display: flex;
    gap: 2rem;
    justify-content: center; /* Mantém os botões centralizados dentro do container */
    flex-wrap: wrap;
    margin: 0;
    width: 100%; /* Adicione esta linha */
}



.btn {
    position: relative;
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #00bfff;
    color: #00bfff;
    text-decoration: none;
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 150px;
}

main > .central-image + .container .btn {
    background: rgba(0, 0, 0, 0.32);
    text-shadow: 0 0 4px rgba(0, 191, 255, 0.7);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.btn:hover {
    box-shadow: 0 0 30px #00bfff;
    transform: translateY(-2px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 191, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover .btn-glitch {
    transform: translateX(100%);
}


/* Footer */
footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.9rem 1.4rem 0.5rem;
    position: relative;
    z-index: 120;
    border-top: 1px solid rgba(0, 191, 255, 0.3);
    flex-shrink: 0;
}

.footer-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
}

.footer-section h3 {
    color: #00bfff;
    margin-bottom: 0.4rem;
    font-size: 1.02rem;
    text-shadow: 0 0 7px #00bfff;
}

.footer-section p {
    color: #0099cc;
    line-height: 1.35;
    font-size: 0.82rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 0.8rem;
    padding-top: 0.7rem;
    border-top: 1px solid #004466;
}

.footer-bottom p {
    font-family: 'Orbitron', 'Courier New', monospace;
    color: #0088aa;
    font-weight: 400;
    font-size: 10px;
}

.highlight {
    font-family: 'Orbitron', 'Courier New', monospace;
    color: #00bfff;
    text-shadow: 0 0 10px #00bfff;
    font-weight: 700;
}

/* Animações */
@keyframes glow {
    from { text-shadow: 0 0 10px #00bfff; }
    to { text-shadow: 0 0 20px #00bfff, 0 0 30px #00bfff; }
}

@keyframes titleGlow {
    from { 
        text-shadow: 
            0 0 3px #00bfff,
            0 0 6px rgba(0, 191, 255, 0.3);
    }
    to { 
        text-shadow: 
            0 0 4px #00bfff,
            0 0 8px rgba(0, 191, 255, 0.5);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Estilos para páginas internas */
.active {
    border-color: #00bfff !important;
    background: rgba(0, 191, 255, 0.1) !important;
    box-shadow: 0 0 20px #00bfff !important;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 6rem;
}

.page-title {
    font-size: 3rem;
    color: #00bfff;
    text-shadow: 0 0 30px #00bfff;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.separator {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00bfff, transparent);
    margin: 0 auto;
    animation: pulse 2s ease-in-out infinite;
}

/* Outros estilos de páginas (contato, tips, etc.) */
.contact-grid, .tips-grid, .career-timeline, .projects-grid, .about-content, .blog-grid {
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Adiciona regras para melhor adaptação em telas médias */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 2rem;
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 600px;
    }
}

/* ... (restante do CSS para páginas internas) ... */
.contact-info h2 {
    color: #00bfff;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #004466;
    background: rgba(21, 27, 29, 0.685);
    text-align: left;
}

.contact-label {
    color: #0099cc;
    font-weight: bold;
    min-width: 100px;
    margin-right: 1rem;
}

.contact-value {
    color: #00bfff;
    flex: 1;
}

.online {
    color: #00bfff;
    animation: blink 2s infinite;
}

.contact-form {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border: 1px solid #00bfff;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    color: #00bfff;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(21, 27, 29, 0.685);
    border: 1px solid #00bfff;
    color: #00bfff;
    font-family: inherit;
    border-radius: 3px;
    
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 10px #00bfff;
    background: rgba(0, 191, 255, 0.1);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00bfff;
    padding: 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: left;
}

.tip-card:hover {
    box-shadow: 0 0 30px rgba(62, 171, 214, 0.719);
    transform: translateY(-5px);
}

/* Responsividade para o footer */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
}

/* Ajuste específico para telas médias - footer 2x2 */
@media (max-width: 900px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    footer {
        padding: 0.75rem 0.45rem 0.15rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .footer-section h3 {
        font-size: 0.83rem;
    }

    .footer-section p {
        font-size: 0.63rem;
    }
}

/* Responsividade */
/* Garante que o logo seja visível em telas maiores */
@media (min-width: 651px) {
    .logo {
        display: flex;
    }
}

/* Oculta o logo quando não há espaço suficiente para ficar ao lado dos links */
@media (max-width: 950px) {
    .logo {
        display: none;
    }
    
    nav {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    header {
        padding: 0.45rem 0.7rem;
    }

    .nav-mobile-hide {
        display: none !important;
    }

    nav {
        width: 100%;
        max-width: 100%;
        padding: 0.25rem 0;
    }

    .nav-links {
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .nav-links a {
        white-space: nowrap;
        padding: 0.5rem 0.38rem;
        font-size: clamp(0.64rem, 1.9vw, 0.78rem);
        letter-spacing: 0.4px;
    }
}

@media (max-width: 768px) {
    /* Layout geral para mobile */
    body {
        font-size: 14px;
    }

    header {
        padding: 0.45rem 0.6rem;
    }
    
    .container {
        padding: 1rem;
        max-width: 100%;
    }

    .central-image {
        top: 0;
        margin-top: 0;
        height: 70vh;
        z-index: 0;
    }

    #main-image {
        height: auto;
        max-height: 55vh;
        max-width: 92%;
    }

    body.home-page main {
        --home-crest-height: min(34vh, 250px);
        padding-top: calc(var(--auto-header-offset, 88px) + 0.5rem);
    }

    body.home-page .central-image {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        height: auto;
        margin-top: 0;
    }

    body.home-page #main-image {
        height: var(--home-crest-height);
        max-height: none;
        max-width: min(82vw, 340px);
    }
    
    nav {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.35rem 0;
        width: 100%;
        max-width: 100%;
    }

    .nav-links {
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .nav-links a {
        padding: 0.45rem 0.32rem;
        font-size: clamp(0.63rem, 2.7vw, 0.76rem);
        letter-spacing: 0.4px;
        white-space: nowrap;
    }

    /* Ocultar itens específicos do menu em dispositivos móveis */
    .nav-mobile-hide {
        display: none !important;
    }

    .site-title {
        font-size: 2.5rem;
    }

    body.home-page main {
        min-height: 0;
    }

    .author-name {
        font-size: 1rem;
    }
    
    /* Blog específico para mobile */
    .page-title {
        font-size: 2rem !important;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .expandable-card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .card-header {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .blog-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .blog-date {
        font-size: 0.8rem !important;
        padding: 0.2rem 0.6rem !important;
    }
    
    .blog-item h4 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .blog-tags .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        margin: 0.2rem 0.2rem 0 0;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 620px) {

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .action-buttons .btn {
        width: min(260px, 100%);
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-header {
        margin-top: 4rem;
        margin-bottom: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .contact-label {
        min-width: auto;
        margin-right: 0;
    }
}

/* === RESPONSIVIDADE MELHORADA PARA MOBILE === */
@media (max-width: 480px) {
    /* Melhorias gerais para telas muito pequenas */
    body {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    /* Blog específico */
    .page-title {
        font-size: 1.6rem !important;
    }
    
    .expandable-card {
        margin-bottom: 0.8rem;
    }
    
    .card-header {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .card-content {
        padding: 0.8rem;
    }
    
    .blog-item {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .blog-item h4 {
        font-size: 1rem;
    }
    
    .blog-excerpt {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Ajustes para navegação */
    nav {
        padding: 0.3rem;
    }
    
    nav ul li a {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* === AJUSTES ESPECÍFICOS PARA TUTORIAL === */
@media (max-width: 480px) {
    .tutorial-container {
        padding: 0.5rem;
    }
    
    .book-title {
        font-size: 1.6rem;
    }
    
    .chapter-title {
        font-size: 1.1rem;
    }
    
    .nav-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .command-line, .output {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .hack-tip, .pro-tip, .security-note {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}

/* === AJUSTES PARA IA FUNDAÇÕES HISTÓRIA === */
@media (max-width: 480px) {
    .timeline-item {
        width: 120px !important;
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    .timeline-year {
        font-size: 0.7rem;
    }
    
    #main-content {
        padding: 0.8rem !important;
    }
    
    .chart-container {
        height: 200px !important;
    }
    
    header h1 {
        font-size: 1.6rem !important;
    }
    
    header p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 320px) {
    
    .page-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .contact-item {
        padding: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .contact-info h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0.3rem;
    }
    
    .page-header {
        margin-top: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 0.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .contact-info h2 {
        font-size: 1.3rem;
    }
    
    .contact-item {
        padding: 0.5rem;
    }
    
    footer {
        padding: 1.5rem 0.5rem 1rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-section p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 9px;
    }
}

/* === ESTILOS PARA O CURRÍCULO HACKER === */

/* Container principal do CV */
.cv-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Layout de 2 colunas */
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 6rem auto 2rem auto;
    background: rgba(0, 15, 20, 0.8);
    border: 1px solid #00bfff;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Colunas */
.cv-left-column, .cv-right-column {
    padding: 2rem;
}

.cv-left-column {
    border-right: 1px solid #00bfff;
}

/* Seções */
.cv-section {
    margin-bottom: 2.5rem;
}

.cv-section-title {
    font-family: 'Orbitron', monospace;
    color: #00bfff;
    font-size: 1.5rem;
    text-shadow: 0 0 10px #00bfff;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

.cv-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #00bfff;
}

/* Perfil (Coluna Esquerda) */
.cv-profile-section {
    text-align: center;
    margin-bottom: 2rem;
}

.cv-profile-image {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 0 15px #00bfff);
    margin-bottom: 1rem;
}

.cv-name {
    font-size: 2.5rem;
    color: #00bfff;
    text-shadow: 0 0 15px #00bfff;
}

.cv-subtitle {
    font-size: 1rem;
    color: #0099cc;
    text-align: center;
}

.cv-bio {
    color: #0099cc;
    line-height: 1.6;
    text-align: left;
}

/* Filosofia (Coluna Esquerda) */
.philosophy-list .philosophy-item {
    margin-bottom: 1rem;
    text-align: left;
}

.philosophy-list .philosophy-item h3 {
    color: #00bfff;
    margin-bottom: 0.3rem;
}

.philosophy-list .philosophy-item p {
    color: #0099cc;
}

/* Skills (Coluna Direita) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid #004466;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: rgba(0, 191, 255, 0.1);
    border-color: #00bfff;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: #00bfff;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: #0099cc;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Timeline (Coluna Direita) */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #004466;
}

.timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.7rem;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00bfff;
    box-shadow: 0 0 10px #00bfff;
}

.timeline-year {
    color: #00bfff;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.timeline-desc {
    color: #0099cc;
}

/* Responsividade para o CV */
@media (max-width: 900px) {
    .cv-container {
        grid-template-columns: 1fr; /* Colunas empilhadas em telas menores */
        margin-top: 5rem;
    }
    .cv-left-column {
        border-right: none;
        border-bottom: 1px solid #00bfff;
    }
    .skills-grid {
        grid-template-columns: 1fr; /* Skills em uma única coluna */
    }
}

/* === ESTILOS PARA PÁGINA "SOBRE" COM SEÇÕES EXPANSÍVEIS === */

/* Seção principal com foto e título */
.profile-main-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(0, 15, 20, 0.4);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image-main {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 20px #00bfff);
    object-fit: cover;
    border-radius: 10px;
}

.profile-intro {
    flex-grow: 1;
}

.profile-tagline {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    color: #00bfff;
    text-shadow: 0 0 15px #00bfff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.profile-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid #00bfff;
    color: #00bfff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Seções expansíveis */
.expandable-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expandable-card {
    background: rgba(0, 15, 20, 0.3);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.expandable-card:hover {
    border-color: rgba(0, 191, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 191, 255, 0.05);
}

.card-header:hover {
    background: rgba(0, 191, 255, 0.1);
}

.card-header h3 {
    color: #00bfff;
    font-size: 1.3rem;
    margin: 0;
}

.toggle-arrow {
    color: #00bfff;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.toggle-arrow.expanded {
    transform: rotate(180deg);
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 2rem;
}

.card-content.expanded {
    max-height: 2000px;
    padding: 0 2rem 2rem 2rem;
}

/* Conteúdo específico das seções */
.bio-text {
    color: #0099cc;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.timeline-item {
    color: #0099cc;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(0, 191, 255, 0.3);
    line-height: 1.6;
}

.timeline-item strong {
    color: #00bfff;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    margin-top: 0.5rem;
    line-height: 1.6;
}

.academic-item {
    color: #0099cc;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(0, 191, 255, 0.05);
    border-radius: 5px;
    border-left: 3px solid #00bfff;
}

.academic-item .year {
    color: #00bfff;
    font-weight: bold;
    margin-right: 1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tech-category {
    background: rgba(0, 191, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.tech-category h4 {
    color: #00bfff;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.tech-category p {
    color: #0099cc;
    line-height: 1.5;
}

/* Estilos específicos para página de carreira */
.academic-section, .skills-section, .certifications-section {
    margin-bottom: 2rem;
}

.academic-section h4, .skills-section h4, .certifications-section h4 {
    color: #00bfff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
}

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

.cert-item {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: #00bfff;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(0, 191, 255, 0.2);
    border-color: #00bfff;
    transform: translateY(-2px);
}

/* === ESTILOS PARA TIPS EM FORMATO EXPANSÍVEL === */
.tip-item {
    background: rgba(0, 15, 20, 0.4);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.tip-item:hover {
    border-color: rgba(0, 191, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.1);
    transform: translateY(-2px);
}

.tip-item .tip-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tip-item .tip-number {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

.tip-item h4 {
    color: #00bfff;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.tip-item p {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tip-item .tip-command {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 5px;
    padding: 1rem;
    margin-top: 1rem;
}

.tip-item .tip-command code {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Responsividade para tips */
@media (max-width: 768px) {
    .tip-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .tip-item .tip-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tip-item .tip-number {
        align-self: flex-start;
    }
}

/* === ESTILOS PARA BLOG EM FORMATO EXPANSÍVEL === */
.blog-item {
    background: rgba(0, 15, 20, 0.4);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.blog-item:hover {
    border-color: rgba(0, 191, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.1);
    transform: translateY(-2px);
}

.blog-item .blog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-item .blog-date {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.85rem;
    min-width: 120px;
    text-align: center;
}

.blog-item h4 {
    color: #00bfff;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.blog-item .blog-excerpt {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: justify;
}

.blog-item .blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-item .blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-item .tag {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: #00bfff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-item .read-more {
    color: #00bfff;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.blog-item .read-more:hover {
    color: #fff;
    border-bottom-color: #00bfff;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.8);
}

/* Newsletter section dentro do blog */
.newsletter-section {
    background: rgba(0, 15, 20, 0.6);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.newsletter-section h4 {
    color: #00bfff;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.newsletter-section .newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-section .newsletter-form input {
    flex: 1;
    min-width: 250px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: #00bfff;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.newsletter-section .newsletter-form input:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

/* Community section */
.community-section {
    background: rgba(0, 15, 20, 0.4);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
}

.community-section h4 {
    color: #00bfff;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.community-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    min-width: 80px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 191, 255, 0.2);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    color: #00bfff;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsividade para blog */
@media (max-width: 768px) {
    .blog-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .blog-item .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .blog-item .blog-date {
        align-self: flex-start;
    }
    
    .blog-item .blog-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-section .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-section .newsletter-form input {
        min-width: 100%;
    }
    
    .community-stats {
        justify-content: center;
    }
}

/* === ESTILOS PARA CONTATO EM FORMATO EXPANSÍVEL === */
.contact-overview {
    width: 100%;
    margin: 0 0 2.1rem 0;
    padding: 1.8rem;
    border: 1px solid rgba(0, 191, 255, 0.32);
    border-radius: 12px;
    background:
        radial-gradient(circle at top right, rgba(0, 191, 255, 0.14), transparent 45%),
        rgba(0, 12, 20, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-overview-lead {
    color: #d7eeff;
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
    text-align: left;
}

.contact-badges {
    justify-content: flex-start;
    margin-bottom: 1.2rem;
}

.contact-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 0.85rem;
}

.quick-stat {
    background: rgba(0, 191, 255, 0.08);
    border: 1px solid rgba(0, 191, 255, 0.26);
    border-radius: 8px;
    padding: 0.85rem 0.95rem;
    text-align: left;
}

.quick-label {
    display: block;
    color: #7dd9ff;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 0.35rem;
    font-family: 'Orbitron', monospace;
}

.quick-stat strong {
    color: #e6f8ff;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-info-modern {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-intro-note {
    color: #d0efff;
    line-height: 1.6;
    text-align: left;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 1rem;
}

.contact-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    background: rgba(0, 15, 20, 0.48);
    border: 1px solid rgba(0, 191, 255, 0.24);
    border-radius: 10px;
    padding: 1.15rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-item-modern:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 191, 255, 0.5);
    box-shadow: 0 8px 22px rgba(0, 191, 255, 0.12);
}

.contact-icon {
    width: 56px;
    min-width: 56px;
    padding: 0.38rem 0.5rem;
    border-radius: 7px;
    background: rgba(0, 191, 255, 0.18);
    color: #7fdfff;
    border: 1px solid rgba(0, 191, 255, 0.35);
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-align: center;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    text-align: left;
}

.contact-details .contact-label {
    color: #74d7ff;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.85px;
}

.contact-details .contact-value {
    color: #f0fbff;
    font-size: 0.96rem;
    line-height: 1.46;
    overflow-wrap: anywhere;
}

.contact-details .contact-value a {
    color: #00bfff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.24rem;
}

.contact-details .contact-value a:hover {
    color: #d6f3ff;
    text-shadow: 0 0 6px rgba(0, 191, 255, 0.45);
}

.contact-note {
    color: #98cde2;
    font-size: 0.84rem;
    line-height: 1.4;
}

.status-available {
    color: #84ff9f !important;
    font-weight: 700;
}

.contact-form-modern {
    background: rgba(0, 15, 20, 0.45);
    border: 1px solid rgba(0, 191, 255, 0.26);
    border-radius: 10px;
    padding: 1.7rem;
}

.contact-form-intro {
    border: 1px solid rgba(0, 191, 255, 0.24);
    background: rgba(0, 191, 255, 0.06);
    border-radius: 8px;
    padding: 1rem 1rem 0.9rem 1rem;
    margin-bottom: 1.2rem;
    text-align: left;
}

.contact-form-intro h4 {
    color: #00bfff;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.contact-form-intro p {
    color: #d5f2ff;
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.contact-form-checklist {
    margin: 0 0 0 1.2rem;
    color: #aee6ff;
    font-size: 0.9rem;
    line-height: 1.55;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.contact-form-modern .form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.contact-form-modern .form-group label {
    display: block;
    color: #7ad9ff;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 0.5rem;
}

.contact-form-modern .form-group input,
.contact-form-modern .form-group textarea,
.contact-form-modern .form-group select {
    width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(0, 191, 255, 0.28);
    background: rgba(0, 0, 0, 0.62);
    color: #f1fbff;
    padding: 0.78rem 0.92rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form-modern .form-group textarea {
    resize: vertical;
}

.contact-form-modern .form-group input::placeholder,
.contact-form-modern .form-group textarea::placeholder {
    color: rgba(224, 246, 255, 0.58);
}

.contact-form-modern .form-group input:focus,
.contact-form-modern .form-group textarea:focus,
.contact-form-modern .form-group select:focus {
    outline: none;
    border-color: #00bfff;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.15);
}

.contact-form-modern .form-group select option {
    background: #07161f;
    color: #d8f3ff;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.btn-form {
    width: 100%;
    padding: 1rem 1.3rem;
    font-size: 1rem;
    margin-top: 0.45rem;
}

.btn-form[disabled] {
    opacity: 0.65;
    cursor: wait;
}

.form-feedback {
    margin-top: 0.85rem;
    min-height: 1.3rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    text-align: left;
}

.form-feedback.is-pending {
    color: #9fdfff;
}

.form-feedback.is-success {
    color: #86ff9f;
    text-shadow: 0 0 6px rgba(134, 255, 159, 0.25);
}

.form-feedback.is-error {
    color: #ff9f9f;
    text-shadow: 0 0 6px rgba(255, 159, 159, 0.2);
}

.collaboration-intro {
    color: #d0f0ff;
    line-height: 1.65;
    text-align: left;
    margin-bottom: 1rem;
}

.collaboration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1rem;
}

.collab-item {
    background: rgba(0, 14, 22, 0.52);
    border: 1px solid rgba(0, 191, 255, 0.22);
    border-radius: 10px;
    padding: 1.15rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.collab-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 191, 255, 0.5);
    box-shadow: 0 8px 22px rgba(0, 191, 255, 0.12);
}

.collab-kicker {
    display: inline-block;
    background: rgba(0, 191, 255, 0.12);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 999px;
    color: #7ad8ff;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.6rem;
    font-family: 'Orbitron', monospace;
}

.collab-item h4 {
    color: #00bfff;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    margin-bottom: 0.55rem;
    line-height: 1.4;
}

.collab-item p {
    color: #e5f8ff;
    line-height: 1.55;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.collab-list {
    margin: 0 0 0 1.1rem;
    color: #9fd9ef;
    font-size: 0.87rem;
    line-height: 1.5;
}

.collab-list li {
    margin-bottom: 0.3rem;
}

.collaboration-models {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.model-chip {
    background: rgba(0, 191, 255, 0.11);
    border: 1px solid rgba(0, 191, 255, 0.28);
    border-radius: 999px;
    color: #8edfff;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    padding: 0.33rem 0.72rem;
}

.model-chip:hover {
    background: rgba(0, 191, 255, 0.2);
    border-color: rgba(0, 191, 255, 0.6);
}

/* Responsividade para contato */
@media (max-width: 992px) {
    .contact-quick-stats {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-overview {
        padding: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .contact-overview-lead {
        font-size: 0.94rem;
        margin-bottom: 0.95rem;
    }

    .contact-badges {
        margin-bottom: 0.95rem;
    }

    .contact-icon {
        width: 52px;
        min-width: 52px;
        font-size: 0.69rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .collaboration-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-modern {
        padding: 1.2rem;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .profile-main-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .profile-tagline {
        font-size: 1.8rem;
    }
    
    .profile-image-main {
        width: 150px;
        height: 150px;
    }
    
    .profile-badges {
        justify-content: center;
    }
    
    .card-header {
        padding: 1rem 1.5rem;
    }
    
    .card-content.expanded {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .profile-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-badges {
        justify-content: center;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .profile-tagline {
        font-size: 1.5rem;
    }
}

/* === ESTILOS PARA PÁGINA "BLOG" ESTILO TIPS === */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
}

.blog-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00bfff;
    padding: 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card:hover {
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.7);
    transform: translateY(-5px);
}

.card-header {
    margin-bottom: 1rem;
}

.card-date {
    font-family: 'Courier New', monospace;
    color: #0099cc;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.card-title {
    color: #00bfff;
    font-size: 1.4rem;
    line-height: 1.3;
}

.card-excerpt {
    color: #0099cc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; 
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #004466;
    padding-top: 1rem;
    margin-top: auto; 
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 191, 255, 0.1);
    color: #00bfff;
    padding: 0.3rem 0.6rem;
    border: 1px solid #00bfff;
    border-radius: 3px;
    font-size: 0.8rem;
}

.read-more {
    color: #00bfff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.read-more:hover {
    text-shadow: 0 0 10px #00bfff;
}

/* Card da Newsletter */
.newsletter-card {
    grid-column: 1 / -1; 
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00bfff;
    padding: 3rem;
    border-radius: 5px;
    text-align: center;
}

.newsletter-card h2 {
    color: #00bfff;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter-card p {
    color: #0099cc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00bfff;
    color: #00bfff;
    font-family: inherit;
    border-radius: 3px;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 10px #00bfff;
}

/* === ESTILOS PARA PÁGINA "PROJETOS" === */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.project-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00bfff;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.7);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1.5rem;
    border-bottom: 1px solid #004466;
}

.project-header h3 {
    color: #00bfff;
    font-size: 1.3rem;
    flex: 1 1 240px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.project-status {
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

.project-status.active {
    background: rgba(0, 255, 0, 0.2);
    color: #00bfff;
    border: 1px solid #00bfff;
}

.project-status.completed {
    background: rgba(0, 0, 255, 0.2);
    color: #00aaff;
    border: 1px solid #00aaff;
}

/* Container da imagem */
.project-image {
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* --- ESTA É A CORREÇÃO PRINCIPAL --- */
.project-image img {
    max-height: 100px;  /* Limita a altura da imagem */
    width: auto;        /* Deixa a largura ajustar automaticamente */
    max-width: 100%;    /* Garante que a imagem não ultrapasse o card */
    filter: drop-shadow(0 0 15px #00bfff);
}

.project-card p {
    padding: 1.5rem;
    color: #0099cc;
    line-height: 1.6;
    flex-grow: 1; /* Faz a descrição ocupar o espaço vertical disponível */
}

.project-tech {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto; /* Alinha as tags na parte inferior do card */
}

.tech-tag {
    background: rgba(0, 191, 255, 0.1);
    color: #00bfff;
    padding: 0.3rem 0.6rem;
    border: 1px solid #00bfff;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* === ESTILOS PARA OS LINKS DOS PROJETOS (CORREÇÃO) === */

/* Container do link/botão no final do card */
.project-links {
  padding: 0 1.5rem 1.5rem 1.5rem; /* Adiciona espaçamento interno inferior e lateral */
  text-align: center; /* Centraliza o botão */
  margin-top: auto; /* Empurra esta seção para o final do card (importante para o layout flex) */
}

/* Estilo do botão/link do projeto */
.project-link {
  display: inline-block; /* Necessário para aplicar padding e outras propriedades de bloco */
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid #00bfff;
  color: #00bfff;
  padding: 0.6rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  font-family: 'Orbitron', 'Courier New', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 191, 255, 0.3); /* Adiciona um leve brilho constante */
}

/* Efeito ao passar o mouse */
.project-link:hover {
  background: rgba(0, 191, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.6); /* Intensifica o brilho */
  transform: translateY(-2px); /* Efeito de elevação */
}

@media (max-width: 768px) {
    .projects-grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .project-header {
        padding: 1rem;
        gap: 0.6rem;
    }

    .project-header h3 {
        font-size: 1.05rem;
        line-height: 1.35;
        flex-basis: 100%;
    }

    .project-card p,
    .project-tech,
    .project-links {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .project-link {
        width: 100%;
        text-align: center;
    }
}

/* === ESTILOS PARA ARTIGOS EXPANDÍVEIS === */
.article-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 2rem;
}

.article-content.expanded {
    max-height: 5000px; /* Maior altura para artigos longos */
    padding: 0 2rem 2rem 2rem;
}

.article-header {
    background: rgba(0, 191, 255, 0.1);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
}

.article-header h4 {
    color: #00bfff;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.article-meta {
    color: #66ccff;
    font-size: 0.9rem;
    opacity: 0.8;
}

.article-body {
    padding: 1.5rem 0;
    color: #0099cc;
    line-height: 1.6;
}

.article-body h5 {
    color: #00bfff;
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem 0;
    border-bottom: 2px solid rgba(0, 191, 255, 0.3);
    padding-bottom: 0.5rem;
}

.exercise-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.exercise-item {
    background: rgba(0, 15, 20, 0.5);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    margin: 1rem 0;
    padding: 1rem;
    transition: all 0.3s ease;
}

.exercise-item:hover {
    border-color: rgba(0, 191, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}

.exercise-title {
    color: #00bfff;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.exercise-description {
    color: #66ccff;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.code-block {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 5px;
    padding: 1rem;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: '$ ';
    color: #00bfff;
    font-weight: bold;
}

.tip-box {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    color: #66ccff;
}

.tip-box::before {
    content: '💡 Dica: ';
    color: #00bfff;
    font-weight: bold;
}

.highlight {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff66;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* Melhorias para responsividade mobile - Blog */
@media (max-width: 768px) {
    /* Container principal */
    .container {
        padding: 1rem !important;
        margin-top: 80px !important;
    }
    
    /* Header da página */
    .page-header h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }
    
    /* Seções expansíveis */
    .expandable-sections {
        gap: 1rem !important;
    }
    
    .expandable-card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .card-header {
        padding: 1rem !important;
        font-size: 1.1rem !important;
    }
    
    .card-header h3 {
        font-size: 1.1rem !important;
        line-height: 1.3;
    }
    
    .card-content {
        padding: 1rem !important;
    }
    
    /* Artigos do blog */
    .blog-item {
        margin-bottom: 1.5rem !important;
        padding: 1rem !important;
    }
    
    .blog-header {
        margin-bottom: 0.8rem;
    }
    
    .blog-date {
        font-size: 0.8rem !important;
    }
    
    .blog-item h4 {
        font-size: 1.1rem !important;
        line-height: 1.3;
        margin-top: 0.5rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem !important;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    /* Seções de exercícios */
    .exercise-section {
        margin-bottom: 1.5rem !important;
        padding: 1rem !important;
    }
    
    .exercise-section h5 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem;
    }
    
    .code-block {
        margin: 0.8rem 0;
        border-radius: 6px;
    }
    
    .code-block pre {
        font-size: 0.8rem !important;
        line-height: 1.4;
        padding: 1rem !important;
        overflow-x: auto;
    }
    
    /* Tags do blog */
    .blog-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .tag {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    /* Botões */
    .btn {
        padding: 0.8rem 1.2rem !important;
        font-size: 0.9rem !important;
        display: block;
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Tips e notas */
    .tips-section,
    .hack-tip,
    .pro-tip,
    .security-note {
        margin: 1rem 0 !important;
        padding: 1rem !important;
        font-size: 0.9rem !important;
        line-height: 1.5;
    }
    
    .tips-section ul {
        padding-left: 1.2rem;
    }
    
    .tips-section li {
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }
}
