@import url('https://fonts.googleapis.com/css2?family=Goldman:wght@400;700&display=swap');

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    font-family: "Goldman", sans-serif;
    line-height: 1.5;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    background-color: #f6f6f6;
    display: flex;
    flex-direction: column;
    gap: 2em;
    padding: 2em;
}

/* Header */
header {
    display: table;
    margin: 0 auto;
    text-align: center;
}

#me {
    background: url(../img/me/square.jpg) no-repeat center / contain;
    width: 256px;
    height: 256px;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#text {
    display: flex;
    flex-direction: column;
    font-size: 4em;
    font-weight: 600;
    line-height: 1.1;
    margin-top: 0.5em;
}

/* Profile Section */
#profile {
    display: table;
    margin: 0 auto;
    text-align: left;
}

#profile h2 {
    font-size: 2rem;
    font-weight: 700;
}

#profile p {
    font-size: 1.3rem;
    line-height: 1.6;
}

#profile a {
    text-decoration: none;
    color: inherit;
}

#profile a:hover {
    color: #808000;
}

/* Footer */
footer {
    display: table;
    margin: 0 auto;
    text-align: center;
}

footer div {
    display: flex;
    gap: 24px;
}

footer a {
    background-color: transparent;
    border-radius: 50%;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.5);
    display: block;
    height: 44px;
    width: 44px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px;
    transition: box-shadow 0.15s;
}

footer a:hover {
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
}

/* Social Icons */
#x {
    background-image: url(../img/social/x.svg);
}

#mastodon {
    background-image: url(../img/social/mastodon.svg);
}

#bluesky {
    background-image: url(../img/social/bluesky.svg);
}

#github {
    background-image: url(../img/social/github.svg);
}

#linkedin {
    background-image: url(../img/social/linkedin.svg);
}

#email {
    background-image: url(../img/social/email.svg);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

#me,
#text,
#profile,
footer {
    animation: fadeIn 0.8s ease-out both;
}

#me {
    animation-delay: 0s;
}

#text {
    animation-delay: 0.2s;
}

#profile {
    animation-delay: 0.4s;
}

footer {
    animation-delay: 0.6s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #me {
        width: 128px;
        height: 128px;
    }

    #text {
        font-size: 2.09em;
    }

    #profile h2 {
        font-size: 1.7rem;
    }

    #profile p {
        font-size: 1.2rem;
    }

    footer div {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    footer a {
        height: 32px;
        width: 32px;
        background-size: 16px;
    }
}

/* Transitions */
#me,
#text,
#profile h2,
#profile p,
footer a {
    transition: all 0.4s ease;
}