:root  {
    --color-accent: #ff9558;
    --color-highlight: #ff5f02;
    --color-link: #ffffff;
    --color-background: #383535;
    --color-button: #2e2e2e;
}

html {
    scroll-behavior: smooth;
}

* {
    font-family: 'inter', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-background);
    color: #a8c2c2;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 6rem;
}

p, h2 {
    line-height: 1.5rem;
}

p::selection, h1::selection, h2::selection, h3::selection, h4::selection, h5::selection, h6::selection {
    background: var(--color-accent);
    color: var(--color-background);
}

/*.underlay {
    position: fixed;
    background: hsl(0, 0%, 36%);
    inset: 0;
    opacity: 0.4;
} */

header, main, footer {
    position: relative;
    z-index: 10;
}

header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 250px;
}

header h1, header h4,.lightText{
    color: var(--color-highlight);
}

header a {
    text-decoration: none;
}

header h1 {
    font-weight: 600;
    font-size: 3rem;
}

header h4 {
    font-weight: 400;
}

nav a {
    font-size: 0.9rem;
}

nav {
    display: none;
}

main {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section h2 {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
}

.sticky_header {
    position: sticky;
    top: 0;
    padding: 1rem 0;
    z-index: 2;
}

.sticky_header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-background);
    opacity: 0.9;
}

.sticky_header h2 {
    position: relative;
    z-index: 2;
}
.about_contents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about_contents p {
    font-size: 1.1rem;
}

.anchor_text, .scroll_top {
    color: var(--color-link);
    text-decoration: none;
    transition-duration: 200ms;
}

.anchor_text:hover, .scroll_top:hover {
    color: var(--color-highlight);
}

.experience_contents, .project_contents{
   display: flex;
   flex-direction: column;
   gap: 4rem;
}

.experience_card, .project_card {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.experience_card {
    gap: 0.5rem;
}

.project_card {
    gap: 1rem;
}

.card_column {
    display: flex;
    flex-direction: column;
    gap: 0.8;
}

.tenure {
    opacity: 0.6;
    text-transform: uppercase;
    z-index: 1;
}

.tenure, .experience_card p {
    font-size: 0.9rem;
}

.card_header {
    font-weight: 400;
    font-size: 1rem;
    
}

a:visited {
    color: var(--color-link); /* Ensures the link keeps its intended color */
    text-decoration: none; /* Removes the underline */
}

a {
    text-decoration: none;
}

.tag_contents {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--color-highlight);
}

.tag, .scroll_top  {
    padding: 0.25rem 0.5rem;
    border-radius: 0.8rem;
    background-color: var(--color-button);
}

.tag p  {
    font-size: 0.8rem;
}

.project_image_contents {
    max-width: 250px;
    overflow: hidden;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    order: 2;
    border-radius: 1rem;
}

.project_image_contents img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.project_stat_link {
    display: flex;
    gap: 0.5rem;
    align-items:  center;
    font-size: 0.8rem;
}

.arrow_link {
    transition-duration: 200ms;
}

.arrow_link:hover span {
    padding-left: 0.25rem;
    transition-duration: 200ms;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    gap: 2rem;
}

footer p {
    font-size: 0.9rem;
}

.scroll_top:hover {
    position: relative;
    top: -0.25rem;
}

@media (min-width: 640px) {
    .project_card,
    .experience_card {
      
    grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .card_column {
        grid-column: span 3;
    }

    .project_image_contents {
        order: 0;
    }

    .social_link_container {
        display: flex;
        gap: 1rem;
     }
     
     .social_link_container i {
        font-size: 2rem;
     }
    
       header {
        max-width: unset;
       }

       header h1 {
        font-size: 3.25rem;
     }

     header h4 {
        font-size: 1.25rem;
     }

     header p {
        max-width: 320px;
     }

}

@media (min-width: 1024px) {
    body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        padding: 6rem;
        padding-top: 0;
    }

    header {
        grid-column: 1 / span 1; /* Force the header to stay in the first column */
        position: sticky;
        top: 0; 
        margin-left: auto;
        height: 100vh;
        padding-bottom: 6rem;
    }

     header h1 {
        font-size: 3.5rem;
     }

     header h4 {
        font-size: 1.25rem;
     }

     header p {
        max-width: 320px;
     }

     nav {
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 0.5rem;
     }

     nav a {
        font-size: 1.2rem;
     }

     .social_link_container {
        display: flex;
        gap: 1rem;
     }
     
     .social_link_container i {
        font-size: 2rem;
     }

    header, main {
        padding-top: 6rem;
        max-width: 660px;
        width: 100%;
    }



    main {
        margin-right: auto;
    }
.sticky_header {
    display: none;
}

footer {
    grid-column: span 2 / span 2;
    flex-direction: row;
    max-width: 1340px;
    margin: 0 auto;
    width: 100%;
}


.project_image_contents {
    order: 0;
}

}