* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
}

html {
    cursor: url("./images/cursor-default.svg"), auto;
    scroll-behavior: smooth;
}

body {
    max-width: 100vw;
    background: #f5ebe0;
    color: black;
}

.section {
    padding: 50px 0 120px;
}

a:hover {
    cursor: url("./images/cursor-default.svg"), auto;
}

header {
    display: flex;
    padding: 10px;
    padding: 20px 30px;
    font-family: "Poiret One", sans-serif;
    font-weight: bold;
}

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: #df3b57;
}

.underline {
    display: inline-block;
    position: relative;
}

.underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #cd5334;
    transition: transform 0.75s ease-out;
}

.underline:hover::after {
    transform: scaleX(1);
}

.underline::after {
    transform-origin: bottom right;
}

.underline:hover::after {
    transform-origin: bottom left;
}

.hero {
    min-height: 45vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.about > * {
    transition: transform 500ms;
}

.about > *:hover {
    transform: translateY(-10px);
}

h1 {
    font-family: "Italiana", sans-serif;
    font-size: 40px;
    color: rgb(74 94 42);
}

h2 {
    font-family: "Antic Didone", serif;
    font-size: 30px;
}

.about p {
    font-family: "Goudy Bookletter 1911", serif;
    font-size: 35px;
    color: #d62828;
    font-weight: bolder;
}

.about .profession {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
}

@keyframes rotate {
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}

.image {
    width: 250px;
}

.image img {
    width: 200px;
    max-width: 90vw;
    border-radius: 50%;
    /* animation: rotate 4s linear infinite; */
}


.portfolio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.portfolio .project {
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

@keyframes fade-in {
    from {
        scale: 0.8;
        opacity: 0;
    }
    to {
        scale: 1;
        opacity: 1;
    }
}

@keyframes hover {
    from {
        box-shadow: 1px 1px #e8ac65;
    }
    to {
        box-shadow: 4px 4px #e8ac65;
    }
}
.portfolio img {
    width: 350px;
    border: 2px solid #e8ac65;
    border-radius: 10px;
    animation: fade-in linear forwards;
    animation-timeline: view();
    animation-range-start: cover;
    animation-range-end: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio img:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px #cd5334;
}

.whoami {
    background: #f9dcc4;
    font-family: "Cormorant Infant", serif;
    color: #d62828;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.whoami div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    font-size: 25px;
}

.whoami p {
    width: 400px;
    max-width: 80%;
    text-align: justify;
}

.whoami strong {
    color: #450920;
    font-size: 27px;
}

.whoami em {
    color: #640d14;
}

.whoami a {
    color: inherit;
}

.whoami a:hover {
    font-weight: bold;
}


.whoami img {
    width: 250px;
    border-radius: 50%;
}

footer {
    background: rgb(72 108 52);
    min-height: 50vh;
    padding: 40px;
    color: rgb(255 248 243);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.thanks {
    width: 700px;
    max-width: 95%;
    font-size: 60px;
    font-family: "Cormorant Infant", serif;
    font-weight: 900;
    text-align: left;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.thanks div {
    width: 400px;
}

.thanks img {
    width: 250px;
    border-radius: 50%;
}

.thanks .made {
    margin-top: 30px;
    font-size: 20px;
}