@font-face {
    font-family: "madetommyregular";
    src: url("../font/MADE%20TOMMY%20Regular_PERSONAL%20USE.otf")
        format("opentype");

    font-weight: normal;
}

body {
    background: #0e192f;
    text-align: center;
    color: white;
    /*font-family: 'Lato', sans-serif;*/
    margin: 0;
    font-family: "madetommyregular", "Lato", sans-serif;
}

main {
    margin: 140px 20px 80px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 80px;
    margin: 10px 0;
}

h2 {
    font-size: 55px;
    margin: 7px 0;
}

p {
    font-size: 25px;
}

footer {
    margin: 30px 0 60px;
}

footer p {
    font-size: 21px;
}

footer a:link,
footer a:visited,
footer a:hover,
footer a:active {
    color: white;
}

body > img {
    width: 500px;
    height: 500px;
    position: fixed;
}

#logo-bg-left {
    top: -80px;
    left: -190px;
}

#logo-bg-right {
    bottom: -60px;
    right: -290px;
}

.hero {
    margin-bottom: 100px;
}

.projects {
    margin-top: 10px;
}

.projects h3 {
    font-size: 32px;
    margin: 10px 0 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.project-card {
    display: block;
    padding: 24px;
    border-radius: 18px;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.github-logo {
    width: 36px;
    height: 36px;
    fill: white;
    margin-bottom: 12px;
}

.project-card h4 {
    margin: 0 0 10px;
    font-size: 22px;
}

.project-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

@media screen and (max-width: 640px) {
    main {
        margin-top: 80px;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 35px;
    }

    body > img {
        width: 130px;
        height: 130px;
    }

    #logo-bg-left {
        top: -20px;
        left: -70px;
    }

    #logo-bg-right {
        bottom: 90px;
        right: -70px;
    }

    .projects h3 {
        font-size: 26px;
    }

    .project-card {
        padding: 18px;
    }
}
