@media (max-width: 700px) {
    .profile-section {
        padding: 12px;
        box-shadow: 0 0 16px 2px #00ffe7a0, 0 2px 8px rgba(0,0,0,0.12);
        border-radius: 12px;
        width: 100%;
    }
    .profile-container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        gap: 10px;
        max-width: 98vw;
    }
    .profile-photo img {
        width: 90vw;
        max-width: 180px;
        height: auto;
        border-radius: 16px;
        object-position: center 20%;
    }
    .profile-text h2 {
        font-size: 1.1rem;
    }
    main {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
    }
    main section {
        width: 100%;
        max-width: 400px;
        min-width: 0;
        margin: 8px auto;
        padding: 12px;
        border-radius: 12px;
        box-shadow: 0 0 16px 2px #00ffe7a0, 0 2px 8px rgba(0,0,0,0.12);
        word-break: normal;
        overflow-wrap: normal;
        box-sizing: border-box;
    }
    main section img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        object-fit: contain;
    }
    .profile-photo img {
        width: 90vw;
        max-width: 180px;
        height: auto;
        border-radius: 16px;
        object-position: center 20%;
        object-fit: cover;
    }
    .profile-text, .profile-text h2, .profile-text p {
        word-break: normal;
        overflow-wrap: normal;
        box-sizing: border-box;
        max-width: 100%;
    }
}
/* Variáveis de tema */
:root {
    --font-family: 'Segoe UI', Arial, sans-serif;
    --line-height: 1.7;
    --background-color: #f5f6fa;
    --text-color: #222;
    --header-footer-background: #e4e4e4;
    --link-color: #0078d7;
    --card-background: #fff;
    --card-shadow: 0 0 10px rgba(0,0,0,0.08);

    /* Dark mode */
    --dark-background-color: #181a1b;
    --dark-text-color: #e4e6eb;
    --dark-header-footer-background: #23272a;
    --dark-link-color: #4aa8ff;
    --dark-card-background: #23272a;
    --dark-card-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo para botões */
button {
    all: unset;
    display: inline-block;
    padding: 10px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    background: var(--link-color);
    color: #fff;
    transition: background 0.2s;
}
button:hover {
    background: #005fa3;
}

/* Estilo global */
body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 24px;
    transition: background 0.3s, color 0.3s;
}

/* Estilo para o cabeçalho */
header {
    text-align: center;
    margin-bottom: 24px;
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--header-footer-background);
    padding: 24px 0;
    border-radius: 8px;
    transition: background 0.3s;
}

header h1 {
    font-size: 2.7em;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.2em;
    color: #555;
}

/* Estilo para a navegação */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    gap: 16px;
}

nav ul li a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
nav ul li a:hover {
    background: #e4e4e4;
}

nav ul li a img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Estilo para o conteúdo principal */
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

main section {
    background: var(--card-background);
    padding: 24px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    width: 45%;
    text-align: center;
    transition: background 0.3s, box-shadow 0.3s;
}

main section img {
    max-width: 100%;
    border-radius: 8px;
}

main section img:not([src*="eurecortado"]) {
    width: 360px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s;
}

main section img:not([src*="eurecortado"]):hover {
    transform: scale(1.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

main section img[src*="eurecortado"] {
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s;
}

main section img[src*="eurecortado"]:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Layout especial para a primeira section */
main section:first-child {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Mantém as demais sections em duas colunas */
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

main section {
    background: var(--card-background);
    padding: 24px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    width: 45%;
    text-align: center;
    transition: background 0.3s, box-shadow 0.3s;
}

/* Evita que o primeiro section herde o width das demais */
main section:first-child {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

/* Estilo para o rodapé */
footer {
    text-align: center;
    margin-top: 32px;
    background: var(--header-footer-background);
    padding: 16px 0;
    border-radius: 8px;
    transition: background 0.3s;
}

footer p {
    font-size: 1.1em;
}

/* Tema escuro */
body.dark-mode {
    background: #181818;
    color: #f2f2f2;
}

body.dark-mode header,
body.dark-mode nav,
body.dark-mode footer {
    background-color: var(--dark-header-footer-background);
}

body.dark-mode nav ul li a {
    color: var(--dark-link-color);
}
body.dark-mode nav ul li a:hover {
    background: #222;
}

body.dark-mode main section {
    background: var(--dark-card-background);
    box-shadow: var(--dark-card-shadow);
}

body.dark-mode a {
    color: var(--dark-link-color);
}

body.dark-mode button {
    background: var(--dark-link-color);
    color: #fff;
}
body.dark-mode button:hover {
    background: #357ab8;
}

button#toggle-dark-mode {
    padding: 4px 12px;
    font-size: 14px;
    border-radius: 4px;
    background: transparent;
    color: var(--text-color);
    border: 1px solid #888;
    box-shadow: none;
    opacity: 0.7;
    transition: background 0.2s, color 0.2s, opacity 0.2s, border 0.2s;
}

body.dark-mode button#toggle-dark-mode {
    color: var(--dark-text-color);
    border: 1px solid #444;
}

button#toggle-dark-mode:hover {
    background: #e4e4e4;
    color: var(--link-color);
    opacity: 1;
    border: 1px solid var(--link-color);
}

body.dark-mode button#toggle-dark-mode:hover {
    background: #23272a;
    color: var(--dark-link-color);
    border: 1px solid var(--dark-link-color);
}

/* Estilo para a seção de perfil */
.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.profile-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(30,30,30,0.03);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 32px;
    gap: 32px;
    max-width: 800px;
    width: 100%;
}

.profile-photo img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 24px;
    border: 4px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.profile-text {
    flex: 1;
    font-size: 1.15rem;
    color: #222;
}

.profile-text h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 2rem;
    color: #333;
}

@media (max-width: 700px) {
    .profile-container {
        flex-direction: column;
        align-items: center;
        padding: 16px;
        gap: 16px;
    }
    .profile-photo img {
        width: 120px;
        height: 120px;
        border-radius: 16px;
        object-position: center 20%;
    }
    .profile-text h2 {
        font-size: 1.3rem;
    }
}

body.dark-mode .profile-container {
    background: rgba(40,40,40,0.7);
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

body.dark-mode .profile-text {
    color: #f2f2f2;
}

body.dark-mode .profile-text h2 {
    color: #fff;
}
