:root {
    --corduroy-50: #f6f7f7;
    --corduroy-100: #e0e7e2;
    --corduroy-200: #c1cec6;
    --corduroy-300: #9bada4;
    --corduroy-400: #758c81;
    --corduroy-500: #5e756a;
    --corduroy-600: #475a51;
    --corduroy-700: #3c4943;
    --corduroy-800: #323d38;
    --corduroy-900: #2d3431;
    --corduroy-950: #171c1a;
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    --font-heading: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
    --text-color: var(--corduroy-950);
    --muted-color: #5b6b66;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    background-image: repeating-linear-gradient(to top, var(--corduroy-200), var(--corduroy-400), var(--corduroy-600));
}

#toggleBtn {
    display: none;
    position: fixed;
    top: 10px;
    left: 235px;
    background-color: var(--corduroy-800);
    color: var(--corduroy-50);
    border: none;
    cursor: pointer;
    z-index: 9999;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#toggleBtn:hover {
    background-color: var(--corduroy-700);
    transform: scale(1.1);

}

.sidebar {
    background-image: linear-gradient(to right, var(--corduroy-900), var(--corduroy-700));
    color: var(--corduroy-50);
    width: 250px;
    position: fixed;
    top: 0;
    left: 0px;
    height: 100vh;
    padding-top: 50px;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

#nametitle {
    margin-top: 15px;
    margin-left: 20px;
    font-size: medium;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar img {
    width: 210px;
    height: 210px;
    margin-left: 20px;
    margin-top: -40px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--corduroy-50);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sidebar ul li {
    padding: 12px 20px;
    margin-bottom: 15px;
    border: 2px solid var(--corduroy-50);
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.contato,
.sidebar ul li a {
    text-decoration: none;
    color: var(--corduroy-50);
}

header {
    background-image: linear-gradient(to right, var(--corduroy-900), var(--corduroy-700));
    padding: 30px 20px;
    text-align: center;
    margin-left: 250px;
    border-radius: 0px 0px 18px 18px;
    color: var(--corduroy-50);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-profile-img {
    display: none;
}
p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-color);
    font-weight: 400;
}

/* Headings */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--corduroy-900);
    margin-top: 0.35rem;
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.05;
}
.header-txt {
    color:white
}

h2 {
    font-size: 1.9rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

header nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

header nav ul li {
    display: inline;
    margin: 0 10px;
}

header h1 {
    margin: 10px 0;
    font-size: 2.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

header nav ul li a {
    text-decoration: none;
    color: var(--corduroy-50);
    font-weight: bold;
    border: 2px solid var(--corduroy-50);
    border-radius: 12px;
    padding: 10px;
}

div {
    border: 2px solid var(--corduroy-900);
    margin-bottom: 5px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
div.nesteddiv {
    border: 2px solid var(--corduroy-900);
    margin-left: 25px;
    margin-right: 25px;
    margin-bottom: 10px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.4);
}
div p {
    align-items: center;
    margin-left: 50px;
    margin-right: 50px;
}

h2 {
    margin-left: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--corduroy-900);
    font-size: 2rem;
    border-bottom: 3px solid var(--corduroy-700);
    padding-bottom: 10px;
    display: inline-block;
}

h3 {
    margin-left: 20px;
    color: var(--corduroy-800);
    font-size: 1.4rem;
}

h4 {
    margin-left: 20px;
    color: var(--corduroy-700);
    font-size: 1.1rem;
}

.content {
    padding: 20px;
}
.content > div {
    margin-bottom: 25px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

section.content, footer {
    margin-left: 250px;
    margin-bottom: -14px;
}

footer {
    border-radius: 18px 18px 0px 0px;
    margin-left: 250px;
    padding: 30px 20px;
    background-image: linear-gradient(to right, var(--corduroy-900), var(--corduroy-700));
    color: var(--corduroy-50);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

footer ul li {
    margin-right: 10px;
    padding: 10px 15px;
    border-radius: 12px;
    border: 2px solid var(--corduroy-50);
    transition: all 0.3s ease;
}

footer ul li a {
    color: var(--corduroy-50);
    text-decoration: none;
}

footer ul li:hover a {
    color: black; /* Garante que o texto do link mude de cor quando o cursor estiver sobre o li */
}

.contato a:hover {
    color: black; /* Define a cor preta para o texto ao passar o mouse */
}

footer ul li:last-child {
    margin-right: 0;
}

ul {
    list-style-type: none;
}


ul li:hover {
    color: var(--corduroy-950);
    background-color: var(--corduroy-100);
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact {
    margin-top: 10px;
}

/* Responsividade para tablets */
@media only screen and (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 220px;
    }

    .sidebar img {
        width: 180px;
        height: 180px;
    }

    header {
        margin-left: 220px;
        padding: 25px 15px;
    }

    section.content, footer {
        margin-left: 220px;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }
}

/* Responsividade para telas menores (tablets pequenos e mobile) */
@media only screen and (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sidebar ul li {
        width: auto;
        margin: 8px 10px;
        padding: 10px 20px;
    }

    .sidebar img {
        width: 180px;
        height: 180px;
        margin: 0 auto;
        display: block;
    }

    header {
        margin-left: 0;
        margin-right: 0;
        padding: 20px 15px;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        width: 100%;
    }

    main {
        padding-top: 190px;
    }

    .header-profile-img {
        display: block;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--corduroy-50);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    header h1 {
        font-size: 1.8rem;
    }

    section.content {
        margin-left: 0;
        padding: 10px;
    }

    footer {
        margin-left: 0;
    }

    footer {
        border-radius: 0;
        padding: 25px 15px;
    }

    footer ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        list-style: none;
        gap: 10px;
    }

    footer ul li {
        margin: 5px;
        padding: 8px 12px;
        border: 2px solid var(--corduroy-50);
        font-size: 0.9rem;
        text-align: center;
    }

    #toggleBtn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 10000;
    }

    .sidebar.open ~ main #toggleBtn {
        left: 295px;
    }

    .sidebar #open_btn_icon {
        transform: rotate(0deg);
    }

    .sidebar.open #open_btn_icon {
        transform: rotate(180deg);
    }

    #open_btn_icon {
        transition: transform 0.3s ease;
    }

    #nametitle {
        margin-top: 10px;
        margin-bottom: 30px;
        margin-left: 20px;
        font-size: 1rem;
    }

    h2 {
        font-size: 1.6rem;
        margin-left: 10px;
    }

    h3 {
        font-size: 1.2rem;
        margin-left: 15px;
    }

    h4 {
        font-size: 1rem;
        margin-left: 15px;
    }

    p {
        font-size: 1rem;
        margin-left: 10px;
        margin-right: 10px;
    }

    div p {
        margin-left: 10px;
        margin-right: 10px;
    }

    .content > div {
        padding: 15px;
    }

    div.nesteddiv {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* Responsividade para mobile pequeno */
@media only screen and (max-width: 480px) {
    header {
        display: flex; /* Habilita o Flexbox */
        flex-direction: row; /* Garante alinhamento horizontal (imagem e texto lado a lado) */
        align-items: center; /* Alinha a imagem e o texto verticalmente no centro */
        padding: 15px; /* Adiciona algum espaçamento interno (ajuste conforme necessário) */
        gap: 15px; /* Espaço entre a imagem e o texto */
        width: 100%; /* Garante que o header ocupe toda a largura */
    }
    
    /* 2. Imagem de Perfil: Mantém as propriedades que você forneceu */
    .header-profile-img {
        /* display: block; deve ser removido implicitamente aqui, pois o pai é Flex */
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--corduroy-50);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        
        /* Garante que a imagem não encolha ou cresça */
        flex-shrink: 0; 
    }
    .sidebar {
        width: 260px;
    }

    .sidebar img {
        width: 160px;
        height: 160px;
    }

    header h1 {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 0.8rem;
    }

    h3 {
        font-size: 1.0rem;
        margin-left: 10px;
    }

    h4 {
        font-size: 0.75rem;
    }

    p {
        font-size: 0.75rem;
        margin-left: 10px;
        margin-right: 10px;
    }

    div p {
        margin-left: 10px;
        margin-right: 10px;
    }

    .content > div {
        padding: 10px;
        margin-bottom: 8px;
    }

    footer ul li {
        font-size: 0.55rem;
        padding: 4px 8px;
    }
}

/* Estilo para links de projeto com ícone */
.project-link {
    color: var(--corduroy-900);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.project-link i.fa-github,
.project-link i.fab,
.project-link i.fa-brands {
    font-size: 1rem;
    color: var(--corduroy-900);
}

/* --------- Visual depth & border removal for content blocks --------- */
/* Remove bordas das divs que contém textos e aumentar profundidade visual */
.content > div,
.content > div > div,
.content .nesteddiv {
    /* remove borda herdada do seletor genérico `div` */
    border: none;
    background-color: rgba(255, 255, 255, 0.92); /* ligeiramente mais sólido para contraste */
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16,24,32,0.18);
}

.content > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(16,24,32,0.22);
}

.content .nesteddiv {
    margin-left: 25px;
    margin-right: 25px;
    box-shadow: 0 8px 26px rgba(16,24,32,0.12);
}

/* Ajuste para telas pequenas (evitar efeitos exagerados em touch) */
@media (hover: none) and (pointer: coarse) {
    .content > div:hover { transform: none; box-shadow: 0 10px 30px rgba(16,24,32,0.18); }
}