:root {
    --background-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #003366;
    --container-bg-color: #f8f8f8;
    --accent-light: #003366;
}

body.dark {
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --container-bg-color: #2b2b2b;
    --accent-light: #6699CC;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 650px;
    width: 100%;
    padding: 40px;
    background-color: var(--container-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: justify;
}

h1 {
    color: var(--accent-light); 
    margin-bottom: 5px;
    font-size: 2em;
}

h2 {
    color: var(--accent-light);
    font-size: 1.2em;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 25px;
}

p {
    margin-bottom: 30px;
    font-size: 1.1em;
    text-align: justify;
}

h1, h2, .socials-header, .footer {
    text-align: center;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background-color: white;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.theme-toggle:hover {
    opacity: 0.8;
}

body.dark .theme-toggle {
    background-color: var(--accent-light);
    color: white;
    border-color: var(--accent-light);
}

.material-symbols-outlined {
    font-size: 1.5em;
}

.profile-logo {
    display: block;
    width: 100px;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.lab-photo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto 15px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cv-button-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.cv-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 51, 102, 0.3);
}

body.dark .cv-button {
    background-color: var(--accent-light);
    box-shadow: 0 3px 6px rgba(102, 153, 204, 0.3);
}

.cv-button:hover {
    background-color: #004d99;
    transform: translateY(-2px);
}

.cv-button:active {
    transform: translateY(0);
}

.socials-header {
    color: var(--accent-light); 
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    border-top: 1px solid color-mix(in srgb, var(--text-color) 20%, transparent);
    padding-top: 20px;
}

.socials-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.socials-list li {
    margin: 7px 15px;
}

.socials-list a {
    color: var(--accent-light); 
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s, transform 0.1s; 
    display: flex;
    align-items: center;
}

.socials-list a:hover {
    color: var(--accent-color);
    transform: translateY(-2px); 
}

.socials-icon {
    font-size: 1.2em;
    margin-right: 5px;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.socials-label {
    font-size: 1em;
    font-weight: 500;
}

.footer {
    margin-top: 40px;
    font-size: 0.85em;
    color: color-mix(in srgb, var(--text-color) 50%, transparent);
}
