/* DARKMODE */

:root {
    --body-color: white;
    --p-color: #555555;
    --a-color: black;
    --a-hover-color: black;
    --icon-color: black;
    --icon-background-color: #e2e0e0;
    --title-color: black;
    --cv-button: white;
    --button-border-color: #353535;
    --button-bg-color: transparent;
    --button-text-color: #353535;
    --button-hover-bg: #353535;
    --button-hover-text: white;
    --button-hover-border: #ffffff;
}

.darkmode {
    --body-color: #131623;
    --p-color: #a4a5b8;
    --a-color: #ffffff;
    --a-hover-color: #a4a5b8;
    --icon-color: white;
    --icon-background-color: #333232;
    --title-color: white;
    --cv-button: white;
    --button-border-color: #ffffff;
    --button-bg-color: transparent;
    --button-text-color: #ffffff;
    --button-hover-bg: #ffffff;
    --button-hover-text: #000000;
    --button-hover-border: #353535;
}

#theme-switch {
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--icon-background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    fill: var(--icon-color);
    transition: transform 300ms ease;
}

#theme-switch:hover {
    transform: scale(1.25);
}

#theme-switch svg {
    fill: var(--primary-color);
}

#theme-switch svg:last-child {
    display: none;
}

.darkmode #theme-switch svg:first-child {
    display: none;
}

.darkmode #theme-switch svg:last-child {
    display: block;
}

/* GENERAL */

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: var(--body-color);
}

html {
    scroll-behavior: smooth;
}

p {
    color: var(--p-color)
}

/* DESKTOP NAV */

nav,
.nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}


a {
    color: var(--a-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: var(--a-hover-color);
}

.logo {
    font-size: 2rem;
}

.logo:hover {
    cursor: default;
}

/* SECTIONS */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
}

/* PROFILE SECTION */

.main_pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.text {
    align-self: center;
    text-align: center;
}

.text p {
    font-weight: 600;
}

.text_p1 {
    text-align: center;
}

.text_p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
    color: var(--title-color);
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* ICONS */

.icon {
    cursor: pointer;
    height: 2rem;
    fill: var(--icon-color);
    transition: transform 300ms ease;
}

.icon:hover {
    transform: scale(1.25);
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1 {
    border: var(--button-border-color) 0.1rem solid;
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
}

.btn-color-2 {
    border: var(--button-border-color) 0.1rem solid;
    background: var(--button-bg-color);
    color: var(--button-text-color);
}

.btn-color-1:hover,
.btn-color-2:hover {
    cursor: pointer;
    transform: scale(1.15);
    border: var(--button-hover-border) 0.1rem solid;
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
}

/* TYPEWRITER EFFECT */

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}