/* Variables */
:root {
    --button-color: #2D3648;
    --button-border-color: #007bff;
    --button-text-color: #ffffff;
    --button-hover-color: #0056b3;
    --button-shadow-color: rgba(0, 0, 0, 0.3);
    --button-hover-shadow-color: rgba(0, 0, 0, 0.4);
    --font-space-mono: 'Space Mono', monospace;
    --font-source-serif-pro: 'Source Serif Pro', serif;
    --font-size-small: 18px;
    --font-size-medium: 22px;
    --font-size-medium-large: 24px;
    --font-size-large: 28px;
    --font-size-xlarge: 32px;
    --font-size-xxlarge: 34px;
    --underline-color: #00FF85;
    --underline-height: 2px;
    --underline-radius: 2px;

}

body {
    font-family: var(--font-space-mono);
    background-color: #151515;
    margin: 0;
    padding: 0;
    color: white;
    scroll-behavior: smooth;
}

#background-container {
    /* background: lightgray 50% url('/images/header-bg.jpg'); */
    background-image: url('/images/header-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-blend-mode: color;
}

/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6%;
}

#header__selphie-name {
    display: flex;
    align-items: center;
}

#header__email a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 20px;
    height: 40px;

    background-color: #747474;
}

#header__email a:hover {
    background-color: #00FF85;
}



.fa-envelope {
    color: white;
    font-size: 1.5em;
    font-weight: 100;
}

#selphie {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border: 2px solid #af8080;
    box-shadow: 0 0 4px 1px #634646;
}

#name {
    font-size: 14px;
    font-weight: 700;
    margin-left: 20px;
}

/* Main Content */
main {
    padding: 6%;
    margin-bottom: 0;
    padding-bottom: 0;
}

#main__ref p {
    font-size: var(--font-size-small);
    font-weight: 400;
    letter-spacing: 0.72px;
    margin: 20px 0;
    line-height: 25px;
}

#main__ref_robert p {
    margin: 0;
    padding: 4px;
}

#main__ref p span {
    position: relative;
}

#main__ref p span::after {
    content: '';
    position: absolute;
    left: -2px;
    bottom: -3px;
    width: 100%;
    height: var(--underline-height);
    background-color: var(--underline-color);
    border-radius: var(--underline-radius);
}

#main__ref h1 {
    font-family: var(--font-source-serif-pro);
    font-size: var(--font-size-xlarge);
    font-style: italic;
    margin: 40px 0;
    color: lightskyblue;
}

#main__ref hr {
    width: 100%;
    background-color: white;
    border-radius: var(--underline-radius);
    margin: 4em 0 0;
}

/* Skills Section */
#skills {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#skills h3 {
    font-family: var(--font-source-serif-pro);
    font-size: var(--font-size-medium-large);
    font-weight: 600;
    letter-spacing: 0.96px;
    margin: 0;
    margin-bottom: 15px;
}

#skills p {
    font-family: var(--font-space-mono);
    font-size: var(--font-size-small);
    font-weight: 400;
    letter-spacing: 0.64px;
    margin: 0;
}

/* Projects Section */
#projects {
    margin: 50px 0;

    h2 {
        font-family: var(--font-source-serif-pro);
        font-size: var(--font-size-xxlarge);
        font-weight: 600;
        letter-spacing: 1.7px;
        margin: 3em auto;
        text-align: center;
    }
}

#projects__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.project {
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project img {
    width: 100%;
    border-radius: 10px;
}

.project h3 {
    font-size: 1.5em;
    margin: 15px 0 10px;
}

.project p {
    font-size: 1em;
    margin: 10px 0;
}

/* Button Styles */
a {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px;
    font-size: 1em;
    color: var(--button-text-color);
    background-color: var(--button-color);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px var(--button-shadow-color);
    text-decoration: none;
    gap: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

a:hover {
    background-color: var(--button-hover-color);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

a.github-code {
    background-color: transparent;
    border: 2px solid var(--button-border-color);
    box-shadow: none;
}

a.github-code:hover {
    background-color: var(--button-hover-color);
}

a:focus {
    outline: none;
}

/* Project Card Hover Effect */
.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Media Queries */
@media screen and (min-width: 768px) {
    header {
        margin: 0 auto;
        max-width: 1920px;
        padding-bottom: 3em;
    }

    main {
        max-width: 1920px;
        padding: 40px 6%;
        padding-bottom: 0;
        margin: 0 auto;
    }

    #main__ref p {
        font-size: var(--font-size-medium);
    }

    #main__ref h1 {
        font-size: 3.4em;
        margin-bottom: 2.5em;
        text-align: center;
    }

    div#main__ref {
        display: flex;
        flex-direction: column;
        align-items: center;
        p {
            align-self: flex-start;
            line-height: 30px;
        }
    }

    div#main__ref_robert {
        margin-bottom: 8em;
    }

    #skills {
        display: grid;
        align-items: start;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        justify-items: center;
        margin-top: 3em;
    }

    #skills h3 {
        font-size: var(--font-size-large);
    }

    #skills p {
        font-size: var(--font-size-small);
    }

    #projects {
        margin: 8em 0;
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    #projects__container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
        text-align: left;
        justify-items: center;
    }

    #projects h2 {
        font-size: var(--font-size-xxlarge);
        margin-top: 1em;
    }

    .project {
        max-width: 400px;
    }
}

@media screen and (min-width: 1000px) {
    #projects__container {
        grid-template-columns: repeat(3, 1fr);
    }
}