@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    overflow: hidden;
    padding: 20px;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #3a72b3;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
    z-index: -1;  
}

.header-image {
    max-width: 280px;
    object-fit: contain;
}

main {
    margin: 50px;
}

.intro {
    background-color: white;
    max-width: 600px;
    min-height: 300px;
    padding: 20px;
    box-shadow: 1px 3px 5px rgb(87, 85, 85);
}

.intro p, .card p {
    color: rgb(55, 53, 53);
    line-height: 0.7cm;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 10px;
}

.project-image {
    object-fit: cover;
    min-height: 200px;
    width: 100%;
}

.card {
    box-shadow: 1px 3px 5px rgb(87, 85, 85);
    min-height: 400px;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.card h3, .card p, .icons {
    margin: 10px;
}

footer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #3a72b3;
    color: white;
    min-height: 300px;
    padding: 20px;
}

.footer-image {
    max-width: 500px;
    object-fit: contain;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 300px;
}

.open-in-new {
    width: 20px;
}

.project-name, .icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

i {
    font-size: 20px;
    color: black;
}

.large {
    font-size: 30px;
}

.icons {
    justify-content: center;
    gap: 15px;
}

a {
    text-decoration: none;
}

.about-me {
    margin: 20px 5px;
}

.header-icons {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 20px;
    margin: 50px 30px 0 0;
}

.icons-outline {
    width: 20px;
    fill: white;
}

.contact-icons {
    display: flex;
    gap: 10px;
}

.footer-icons {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 20px;
}

@media (width <= 600px) {
    header {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    header::before {
        max-height: 300px;
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
    }

    .header-image {
        max-width: 200px;
        object-fit: contain;
    }

    .intro {
        box-shadow: none;
    }

    .header-icons {
        justify-content: center;
        margin-top: 10px;
    }

    .about-me {
        text-align: center;
        margin: 10px 5px;
    }

    footer {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .footer-image {
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (width > 600px) and (width <= 1000px) {
    .intro {
        position: relative;
        margin-top: 50px;
        justify-content: center;
        align-items: center;
        max-width: 600px;
        width: 100%;
        box-shadow: 1px 3px 5px rgb(103, 99, 99);
    }

    .intro p, .intro h1 {
        margin-left: 170px;
        width: auto;
    }

    .header-icons {
        display: none;
    }

    .header-image {
        position: absolute;
        z-index: 1;
        max-width: 210px;
        transform: translate(-120%, -10%);
    }

    .footer-image {
        max-width: 400px;
    }
} 

