@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
    /* --darkBlue: #01020A; */
    --darkBlue: #15151c;
    --offWhite: #BDBDBD;
    --gold: #E8BF40;
    --gray: #555;
    --green: #347d27;
    --red: #b62525;
}

html {
    height: 100%;
    scrollbar-gutter: stable;
}

body {
    background-color: var(--darkBlue);
    background-size: cover;
    margin: 0;
    color: var(--offWhite);
    font-family: 'Open Sans', sans-serif;
    font-weight: 300; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    padding: 0 40px;
}

header, main, footer, section {
    display: flex;
}

header {
    align-items: center;                
    justify-content: space-evenly;      
    align-content: center;
    height: 5%;
    min-height: 10px;
    width: auto;
    max-width: 650px;
    padding-top: 25px;
    flex-wrap: wrap;
}

main {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section {
    flex-direction: row;
    justify-content: center;
    align-items: center;  
    flex-wrap: wrap;
    max-width: 1200px;
}

.skillsbox {
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    justify-items: center; 
    margin-top: 5px;
    padding-bottom: 50px;
}

.skill-item {
    text-align: center; 
}

.skill {
    font-size: 40px;                    
    transition: transform 0.3s ease;    
}

.skill-description {
    margin-top: 0;                    
    font-size: 14px;                   
    color: var(--gray);                    
    font-weight: 400;                 
}

footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 50px;
    padding: 0 30px 0 30px;
    width: 100%;
}

nav {
    padding: 20px 0px 10px 0px;
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 55px;
}


.about-image {
    float: left; 
    margin: 0 20px 0 0;
    width: 250px; 
    height: auto; 
    border-radius: 5px;
}

li {
    margin: 0 0 15px 0;
}

nav a {
    text-decoration: none;
    color: var(--offWhite);
}

nav a:visited {text-decoration: none; color: var(--offWhite);}
nav a:hover {
    text-decoration: none; color: var(--gold);
    transform: scale(1.1);

}
nav a:focus {text-decoration: none; color: var(--offWhite);}

i {
    color: var(--offWhite);
    text-decoration: none; 
    padding: 15px;
}

i:hover {
    text-decoration: none; 
    color: var(--gold);
    transform: scale(1.1);
}

i:visited {
    text-decoration: none; 
    color: var(--offWhite);
}


i:focus {
    text-decoration: none; 
    color: var(--offWhite);
}

i:active {
    text-decoration: none; 
    color: var(--offWhite);
}



.about {
    display: flex;
}

.portfolio_about {
    line-height: 1.9;
    padding: 10% 33%;
}

.spacer {
    height: 3vh;
}


.header_logo {
    max-height: 100px;
}

.header_logo:hover {
    text-decoration: none; color: var(--gold);
}

.link-grid-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   
    gap: 12px;
    margin: 40px auto;            
}

.link-item {
    display: flex;
}

.link-item-link {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
}

.link-item-icon {
    width: 24px;
    text-align: center;
}

.technical-skills-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.technical-skills-grid-box {
    flex: 1 1 420px;
    max-width: 575px;
    padding-bottom: 30px;
}

.technical-skills-grid-box a {
    color: inherit;         
    text-decoration: none; 
}

.portfolio-skills-grid-box {
    flex: 1 1 420px;
    max-width: auto;
    padding-bottom: 30px;
}

.portfolio-item {
    display: flex; 
    align-items: flex-start; 
    gap: 50px; 
    margin-top: 25px; 
    padding-bottom:40px; 
    border-bottom: 1px solid var(--offWhite);
}

.portfolio-img-box {
    width: 250px; 
    height: auto;
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding: 2px;
}

.portfolio-img {
    max-width: 250px; 
    max-height: 250px; 
    height: auto; 
    border-radius: 5px;
}

.portfolio-text {
    width: 100%;
    max-width:700px; 
}

.portfolio-btn {
    display: inline-block; 
    background-color: #24292e; 
    color: #fff; 
    padding: 8px 16px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 600;
    width: 125px;
    text-align: center;
}

.portfolio-btn:link,
.portfolio-btn:visited,
.portfolio-btn:focus,
.portfolio-btn:active {
  color: #fff;
  text-decoration: none;
}

.portfolio-btn:hover {
    text-decoration: none; 
    background-color: var(--gold);
    color: var(--darkBlue);

}

h2 {
    text-align: center;
    font-weight: 300; 
    font-size: xx-large;
    max-height: fit-content;
    padding-bottom: 1%;
    margin: 0 0 1% 0; 
    border-bottom-style: solid;
    border-bottom-color: var(--gold);
    border-bottom-width: 1px;
}

h3 {
    width: fit-content;
    margin: 0 auto 1% auto; 
    
    text-align: center;
    font-weight: 300; 
    font-size: large;
    max-height: fit-content;
    border-bottom-style: solid;
    border-width: 1px;
    border-bottom-color: var(--offWhite);
}
p {
    max-width: 800px;
}

@media (max-width: 1083px) {
    .portfolio-btn {
        display: block;
        margin: 20px auto 0 auto; 
        text-align: center;      
    }

    .small-span {
        display: block;
        text-align: center;
        margin: 0 0 30px;
    }
}

/* Reset float and stack content on narrow screens */
@media (max-width: 500px) {
    .about-image {
        float: none;
        display: block;
        margin: 0 auto 30px auto; 
    }

    .about-text {
        text-align: left; 
    }

    nav {
        row-gap: 30px;
        column-gap: 20px;
        flex-wrap: wrap;
        padding: 0px;      

    }

    nav a {
        width: 110px;
        margin: 0px;
    }

    a {
        text-align: center;
    }

    .portfolio-img-box {
        align-items: end;
    }

    .portfolio-item {
        gap: 40px; 
    }

    .portfolio-btn {
        display: block;
        margin: 20px auto 0 auto; 
        text-align: center;      
    }

    p {
        margin-top: 30px;
        text-indent: 40px;
        text-align: left;
    }
    
}