/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #e6e6e6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 80, 20, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 80, 20, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 80, 20, 0.03) 0%, transparent 50%);
    z-index: -1;
}

main {
    margin-left: 50px; 
}

/* Parallax sections */
.parallax {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
}

.parallax-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: translateZ(0);
    z-index: 1;
    height: 100%;
}








/* Conteúdo das seções */
.conteudo {

    padding: 100px 20px;
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 2;
    height: 100vh;

}

.secao1, .secao2, .secao3 {
    max-width: 1200px;
    margin: 0 auto;
}

















.content-section1 {

    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(15, 15, 15, 0.8));
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;

}

.content-section1::before {

    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    z-index: 0;

}

.content-section1 h1 {

    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #d4af37, #ffd700, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 1;

}

.content-section1 h3 {

    font-size: 1rem;
    color: #b8b8b8;
    font-weight: 300;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;

}
.gifs {

    width: 100%;
    height: 700px;
    display: flex;
    padding: 30px;

}

.gifs img {

    width: 100%;
    height: 100%;
    border-radius: 50%;

}





















/* Seção de projetos */
.content-section2 {

    padding: 40px 0;
    overflow-y: auto;

}

.content-section2 h1 {

    top: -50px;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    position: relative;

}

.content-section2 h1::after {

    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);

}

.card {

    top: -50px;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;

}

.card::before {

    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;

}

.card:hover::before {

    transform: translateX(100%);

}

.card:hover {

    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.1);

}

.card h2 {

    color: #d4af37;
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);

}

.card p {

    color: #b8b8b8;
    line-height: 1.6;
    font-size: 1rem;
    
}













/* Seção de skills */
.content-section3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 20px;
}

.soft-skills, .hard-skills {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.soft-skills::before, .hard-skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #d4af37, transparent);
}

.hard-skills::before {
    background: linear-gradient(to bottom, #ffd700, transparent);
}

.soft-skills h2, .hard-skills h2 {
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.soft-skills ul, .hard-skills ul {
    list-style: none;
    padding: 0;
}

.soft-skills li, .hard-skills li {
    padding: 10px 0;
    padding-left: 20px;
    position: relative;
    color: #e6e6e6;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.soft-skills li:hover, .hard-skills li:hover {
    color: #d4af37;
    padding-left: 25px;
}

.soft-skills li::before, .hard-skills li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.soft-skills li:hover::before, .hard-skills li:hover::before {
    transform: translateX(5px);
}

.neuronios {

    position: absolute;
    z-index: 100;
    border-radius: 50%;
    top: 120%;
    left: 50%;
    transform: translate(-50%, -50%);

}














/* Footer */
footer {
    background: #0a0a0a;
    color: #666;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 0.9rem;
}



















/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-left: 50px; /* Compensa a sidebar */
}

.modal.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    margin: auto;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(212, 175, 55, 0.1);
    overflow-y: auto;
    position: relative;
}

.modal-content h2 {
    color: #d4af37;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.modal-content h3 {
    color: #d4af37;
    font-size: 1.8rem;
    margin: 25px 0 15px;
}

.modal-content h4 {
    color: #ffd700;
    font-size: 1.4rem;
    margin: 20px 0 10px;
}

.modal-content p, .modal-content li {
    color: #b8b8b8;
    line-height: 1.7;
    margin-bottom: 15px;
}

.modal-content ul {
    list-style-position: inside;
    padding-left: 20px;
}

.modal-content li {
    margin-bottom: 10px;
}

.modal-content pre {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.modal-content code {
    color: #d4af37;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.project-links {

    margin-top: 40px;

}

.project-links a {

    background-color: #b8941f;
    padding: 10px;
    text-align: center;
    border-radius: 20px;
    width: 100px;
    cursor: pointer;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease-in-out;

}

.project-links a:hover {

    background-color: #d4af37;

}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: rotate(90deg);
}

/* Responsividade */
@media (max-width: 768px) {
    main {
        margin-left: 0;
    }
    
    .sidebar {
        width: 100%;
        height: 70px;
        flex-direction: row;
        justify-content: center;
        bottom: 0;
        top: auto;
        border-right: none;
        border-top: 1px solid #d4af37;
    }
    
    .cardner {
        flex-direction: row;
        transform: none;
        gap: 15px;
    }
    
    .modal {
        padding-left: 0;
    }
    
    .content-section1 h1 {
        font-size: 2.5rem;
    }
    
    .content-section1 h3 {
        font-size: 1.2rem;
    }
    
    .content-section3 {
        grid-template-columns: 1fr;
    }
}

/* Animações de entrada */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.conteudo > div {
    animation: slideUp 0.8s ease-out;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4af37, #b8941f);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ffd700, #d4af37);
}

/* ADICIONE A PARTIR DAQUI - RESPONSIVIDADE PARA TELAS MENORES */

/* Para telas menores que 768px (tablets e celulares) */
@media screen and (max-width: 768px) {
    
    /* Ajustes gerais do layout */
    main {
        margin-left: 0 !important;
        margin-top: 70px; /* Compensa a barra lateral no topo */
    }
    
    /* Barra lateral vai para o topo */
    .sidebar {
        width: 100% !important;
        height: 70px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        z-index: 1000;
        background-color: rgba(10, 10, 10, 0.95) !important;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
        border-right: none !important;
        border-top: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ajuste dos cards sociais na barra superior */
    .cardner {
        flex-direction: row !important;
        transform: none !important;
        gap: 15px !important;
        margin: 0 !important;
        height: 100%;
        align-items: center;
    }
    
    /* Ajuste dos contêineres sociais */
    .socialContainer {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Brilho na borda direita vai para baixo */
    .conteudo {
        position: relative;
    }
    
    .conteudo::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, transparent, #d4af37, transparent);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    
    /* Ajustes no conteúdo das seções */
    .conteudo {
        padding: 80px 15px !important;
        height: auto !important;
        min-height: 100vh;
    }
    
    /* Seção 1 - Ajustes */
    .content-section1 {
        padding: 40px 20px !important;
        margin: 20px 0 !important;
    }
    
    .content-section1 h1 {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    .content-section1 h3 {
        font-size: 0.9rem !important;
        letter-spacing: 2px !important;
    }
    
    .gifs {
        height: 300px !important;
        padding: 15px !important;
        margin-top: 20px;
    }
    
    .gifs img {
        object-fit: cover;
        max-height: 100%;
    }
    
    /* Seção 2 - Projetos */
    .content-section2 h1 {
        font-size: 2.2rem !important;
        top: 0 !important;
        margin-bottom: 40px !important;
    }
    
    .card {
        padding: 20px !important;
        margin-bottom: 20px !important;
        top: 0 !important;
    }
    
    .card h2 {
        font-size: 1.2rem !important;
    }
    
    .card p {
        font-size: 0.9rem !important;
        line-height: 1.5;
    }
    
    /* Seção 3 - Skills */
    .content-section3 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 20px 15px !important;
    }
    
    .soft-skills, .hard-skills {
        padding: 25px !important;
    }
    
    .soft-skills h2, .hard-skills h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .soft-skills li, .hard-skills li {
        font-size: 1rem !important;
        padding: 8px 0 !important;
        padding-left: 15px !important;
    }
    
    .neuronios {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: 200px !important;
        margin: 20px auto;
        border-radius: 10px !important;
        object-fit: cover;
    }
    
    /* Footer ajustado */
    footer {
        padding: 20px 15px !important;
        margin-top: 50px;
    }
    
    /* Modais responsivos */
    .modal {
        padding-left: 0 !important;
        padding-top: 70px; /* Compensa a barra superior */
    }
    
    .modal-content {
        width: 95% !important;
        max-height: 85vh !important;
        padding: 25px 15px !important;
        margin: 10px auto !important;
        border-radius: 15px !important;
    }
    
    .modal-content h2 {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
    }
    
    .modal-content h3 {
        font-size: 1.4rem !important;
        margin: 20px 0 10px !important;
    }
    
    .modal-content h4 {
        font-size: 1.2rem !important;
    }
    
    .modal-content p, .modal-content li {
        font-size: 0.9rem !important;
        line-height: 1.5;
    }
    
    .modal-content pre {
        padding: 10px !important;
        font-size: 0.8rem !important;
        overflow-x: auto;
    }
    
    .modal-close {
        top: 90px !important; /* Abaixo da barra lateral */
        right: 15px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 1.2rem !important;
    }
    
    /* Ajuste para tags de tecnologia nos modais */
    .tech-tags, .features-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tag, .feature-card {
        font-size: 0.8rem !important;
        padding: 5px 10px !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .project-links a {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    /* Ajustes para APIs endpoints */
    .api-endpoints {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .endpoint code {
        font-size: 0.8rem !important;
        word-break: break-all;
    }
}

/* Para telas menores que 480px (celulares pequenos) */
@media screen and (max-width: 480px) {
    
    .content-section1 h1 {
        font-size: 1.7rem !important;
    }
    
    .content-section1 h3 {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
    }
    
    .gifs {
        height: 200px !important;
    }
    
    .content-section2 h1 {
        font-size: 1.8rem !important;
    }
    
    .card h2 {
        font-size: 1.1rem !important;
    }
    
    .modal-content h2 {
        font-size: 1.5rem !important;
    }
    
    .modal-content h3 {
        font-size: 1.2rem !important;
    }
    
    .cardner {
        gap: 10px !important;
    }
    
    .socialContainer {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* Ajuste de padding geral para elementos */
    .conteudo {
        padding: 70px 10px !important;
    }
    
    .soft-skills, .hard-skills {
        padding: 20px 15px !important;
    }
}

/* Para telas em modo paisagem (landscape) em celulares */
@media screen and (max-height: 600px) and (orientation: landscape) {
    
    .sidebar {
        height: 60px !important;
    }
    
    main {
        margin-top: 60px !important;
    }
    
    .conteudo {
        padding: 60px 15px !important;
        min-height: auto;
    }
    
    .modal {
        padding-top: 60px !important;
    }
    
    .modal-close {
        top: 70px !important;
    }
    
    .gifs {
        height: 200px !important;
    }
}

/* Ajuste de scroll suave para dispositivos móveis */
@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Ajuste para evitar zoom em inputs em iOS */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px; /* Evita zoom automático no iOS */
    }
}