/* Cores e Fontes */
:root {
    --primary-color: #00bcd4; /* Azul Ciano - Cor Principal */
    --secondary-color: #61d4b3; /* Verde Água - Destaque */
    --background-color: #121212; /* Fundo Escuro */
    --card-bg: #1e1e1e; /* Fundo dos Cards */
    --text-color: #f5f5f5; /* Texto Claro */
    --subtle-text: #999; /* Texto Secundário */
    --border-color: #333; /* Borda Sutil */
}

/* Estilos Gerais */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Josefin Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navegação Lateral */
nav.menu-lateral {
    width: 62px;
    height: 100%;
    background-color: var(--card-bg);
    box-shadow: 3px 0 0 var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    transition: width .3s ease-in-out;
    z-index: 1000;
}

nav.menu-lateral:hover {
    width: 220px;
}

.btn-expandir {
    padding: 20px 10px;
}

.btn-expandir > i {
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

nav.menu-lateral:hover .btn-expandir > i {
    transform: rotate(180deg);
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li.item-menu {
    transition: background-color .3s;
}

ul li.item-menu:hover {
    background-color: rgba(0, 188, 212, 0.1);
    border-left: 3px solid var(--primary-color);
}

ul li.item-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1em;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

ul li.item-menu a .txt-link {
    white-space: nowrap;
    opacity: 0;
    transition: opacity .3s;
}

nav.menu-lateral:hover .txt-link {
    opacity: 1;
}

ul li.item-menu a .icon > i {
    font-size: 1.5em;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Conteúdo Principal */
main {
    margin-left: 62px;
    padding: 40px;
    transition: margin-left .3s ease-in-out;
}

nav.menu-lateral:hover ~ main {
    margin-left: 220px;
}

/* Seções */
section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Títulos */
h1, h2 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 0.2em;
}

h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 1em;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Seção de Apresentação */
#presentation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    border: none;
    max-width: 100%;
    margin-bottom: 0;
}

#presentation #profile {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#presentation #profile:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--primary-color);
}

#presentation h1 {
    font-size: 4em;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
}

#presentation h2 {
    font-size: 1.6em;
    font-weight: 400;
    color: var(--secondary-color);
    margin: 0;
    min-height: 2em;
}

#presentation h2::after {
    display: none;
}

/* Efeito de Digitação - Cursor que pisca */
#typing-text {
    font-weight: 500;
}

#typing-text::after {
    content: '|';
    animation: blink-caret 0.75s step-end infinite;
    font-size: 1.1em;
    color: var(--primary-color);
    margin-left: 5px;
}

@keyframes blink-caret {
    from, to { color: transparent }
    50% { color: var(--primary-color) }
}

#presentation p {
    font-size: 1em;
    color: var(--subtle-text);
    max-width: 600px;
    margin-bottom: 1em;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5em; /* Reduz o tamanho dos ícones */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.social-links .download-cv {
    display: inline-block;
    font-size: 0.8em; /* Reduz o tamanho do texto do botão */
    padding: 6px 16px; /* Reduz o padding do botão */
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    letter-spacing: 1px;
}

.social-links .download-cv:hover {
    background-color: var(--primary-color);
    color: var(--card-bg);
}

/* Cards de Informação */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.card h4 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.card span, .card p {
    color: var(--subtle-text);
    font-size: 0.9em;
    margin-bottom: 0.5em;
}

/* Estilos Específicos das Seções */
#about-me p {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

#technologies h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-bottom: 1em;
    text-align: center;
}

#technologies ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#technologies ul li {
    font-size: 1em;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

#technologies ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2em;
    line-height: 1;
}

/* Estilização dos Níveis de Conhecimento */
.intermediate, .beginner, .basic, .advanced {
    padding: 2px 0;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 10px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    
    background: linear-gradient(90deg, #00bcd4, #61d4b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#technologies ul li:hover .intermediate,
#technologies ul li:hover .advanced,
#technologies ul li:hover .beginner,
#technologies ul li:hover .basic {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: var(--background-color);
    color: var(--subtle-text);
    font-size: 0.8em;
    border-top: 1px solid var(--border-color);
}

/* Responsividade - Mudar a navegação em telas pequenas */
@media (max-width: 768px) {
    /* Estilos para a navegação em dispositivos móveis */
    nav.menu-lateral {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }
    nav.menu-lateral:hover {
        width: 100%;
    }
    nav.menu-lateral ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    nav.menu-lateral ul li.item-menu a {
        padding: 10px 15px;
    }
    nav.menu-lateral a .txt-link {
        display: none;
    }
    nav.menu-lateral a .icon > i {
        font-size: 1.2em;
    }
    .btn-expandir {
        display: none;
    }
    main {
        margin-left: 0;
        padding: 15px;
    }
    #presentation h1 { font-size: 2.5em; }
    #presentation h2 { font-size: 1.2em; }
    h2 { font-size: 1.8em; }
    .social-links { flex-direction: column; gap: 15px; }
}