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

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Dosis', sans-serif;
    overflow-x: hidden;
}

main {
    flex: 1;
}

.bg {
    position: fixed;
    inset: 0;
    display: flex;
    z-index: -1;
}

.bg-left {
    width: 40%;
    background-color: #d9d5d2;
}

.bg-right {
    width: 60%;
    background-color: #ffffff;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 8%;
    text-transform: uppercase;
    background-color: #ffffff;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    font-size: 22px;
    text-decoration: none;
    color: black;
    transition: 0.3s;
    font-weight: 400;
    padding: 6px;
}

nav a:hover {
    background-color: #4d4d4d;
    border-radius: 5px;
    color: white;
}

.active {
    background-color: #dbd8d6;
    border-radius: 5px;
}

.name {
    font-weight: 600;
    font-size: 30px;
}

.job-title {
    font-size: 22px;
    letter-spacing: 0.15em;
    font-weight: 400;
    margin-left: 8px;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 10px;
    flex-wrap: wrap;
    width: 100%;
}

.card {
    background-color: #dbd8d6;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    flex: 1 1 250px;
    max-width: 300px;
    padding: 20px;
}

.img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 16px auto;
}

.card h1 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 16px;
}

hr {
    width: 30%;
    border: none;
    height: 1.5px;
    background-color: black;
    margin: auto;
}

.card h2 {
    font-weight: 400;
    letter-spacing: .2em;
    padding: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.social-medias {
    background-color: #ffffff;
    padding: 12px;
    display: flex;
    gap: 16px;
    justify-content: center;
    border-radius: 5px;
}

.social-medias i {
    display: block;
    text-decoration: none;
    color: black;
    transition: 0.3s;
    font-size: 16px;
}

.social-medias i:hover {
    color: #4d4d4d;
}

.presentation {
    flex: 1 1 300px;
    padding: 20px;
    max-width: 400px;
    line-height: 1.6;
}

.presentation p {
    font-size: 18px;
    margin-bottom: 18px;
}

.presentation-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
    max-width: 400px;
}

.presentation-buttons a {
    flex: 1;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
    border: 2px solid #4d4d4d;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
}

.btn-contact {
    color: black;
}

.btn-proj {
    background-color: #4d4d4d;
    color: white;
}

.btn-proj:hover {
    background-color: #ffffff;
    color: black;
}

.btn-contact:hover {
    background-color: #4d4d4d;
    color: white;
}

footer {
    background-color: #4d4d4d;
    color: white;
    padding: 15px 8%;
    text-align: center;
    font-size: 14px;
    width: 100%;
}

@media (max-width: 1024px) {
    .presentation h1 {
        font-size: 3.5em;
    }
    nav a {
        font-size: 16px;
    }
    .hero {
        gap: 20px;
        padding: 30px 5%;
    }
    .card, .presentation {
        max-width: 90%;
    }
    .presentation-buttons {
        justify-content: center;
    }
    footer {
        padding: 15px 5%;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .hero {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .presentation {
        max-width: 90%;
        text-align: center;
        padding: 10px;
    }
    .presentation p {
        font-size: 16px;
    }
    .presentation-buttons {
        max-width: 90%;
        justify-content: center;
        margin: auto;
    }
    .presentation-buttons a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .presentation-buttons a {
        font-size: 14px;
    }
    nav a {
        font-size: 16px;
        padding: 4px 6px;
    }
    .img {
        width: 150px;
        height: 150px;
    }
    footer {
        padding: 10px 3%;
        font-size: 11px;
    }
}

.projects {
    padding: 60px 8%;
}

.projects h1 {
    font-size: 4em;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #dbd8d6;
    padding: 20px;
    transition: 0.3s;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    margin-bottom: 15px;
}

.project-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 14px;
    color: #333;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
}

.bg-left_c {
    width: 50%;
    background-color: #d9d5d2;
}

.bg-right_c {
    width: 50%;
    background-color: #ffffff;
}

.contact {
    min-height: auto;
    display: flex;
}

.contact-left {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    margin: 0 auto;
}

.contact-left .card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px 25px;
    max-width: 320px;
}

.contact-left .card h1 {
    margin-bottom: 5px;
}

.contact-left .card p {
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-left .card .contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.contact-left .card .contact-links a {
    padding: 10px;
    background-color: #ffffff;
    border-radius: 5px;
    transition: 0.3s;
}

.contact-left .card .contact-links a:hover {
    background-color: #4d4d4d;
    color: white;
}

.contact-left h1 {
    font-size: 4em;
    margin-bottom: 20px;
}

.contact-left p {
    margin-bottom: 20px;
}

.contact-links a {
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    color: black;
    transition: 0.3s;
}

.contact-links a:hover {
    color: #4d4d4d;
}

@media (max-width: 768px) {

    .contact {
        flex-direction: column;
    }

    .contact-left {
        width: 100%;
        padding: 30px 20px;
        margin: 0;
    }

    .contact-left h1 {
        font-size: 2.5em;
        text-align: center;
    }

    .bg-left_c {
        display: none;
    }

    .bg-right_c {
        width: 100%;
    }

    .bg-left {
        display: none;
    }

    .bg-right {
        width: 100%;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.3s;
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
