:root {
    --color-accent: #5eead4;
    --backround-accent: rgba(45, 212, 191, 0.1);
    --color-highlight: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "INTER", sans-serif;
}

body {
    background-color: #0f172a;
    color: #9482b8;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 6rem;

}

p,
h2 {
    font-size: 1.3rem;
    line-height: 1.5rem;
    
}

p::selection,
h1::selection,
h2::selection,
h3::selection,
h4::selection,
h5::selection,
h6::selection {
    background-color: var(--color-accent);
    color: #0f172a;
}

.underlay {
    position: fixed;
    background-color: #52135a;
    inset: 0;
    opacity: 0.15;

}

header,
main,
footer {
    position: relative;
    z-index: 10;
}

header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
}   

header h1,
header h4,
.lightText {
    color: var(--color-highlight);
}

.lightText {
    font-size: 1.6rem;
}

header a {
    text-decoration: none;
    
}

header h1 {
    font-weight: 600;
}

.profile-picture {

    height: 200px;
    width: 200px;
    border-radius: 10%;
}

.sticky-header img{
    float: right;
    margin-right: 10px;
   
   
    
    
}

.matrix-picture{
    justify-content: space-between;
    height: 400px;
    width: 500px;
    border-radius: 5%;
    
}


header h4 {
    align-items: center;
    font-weight: 400;
    gap: 1.5rem;

}

nav {
    display: none;
}

nav a {
    font-size: 1.2rem;
}

.social-link-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    font-size: 1.2rem;
    color: inherit;
    text-decoration: none;
    transition-duration: 200ms;
}

.social-link:hover {
    color: var(--color-highlight);
}
    

main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
}

section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

section h2 {
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: 500;
}

.sticky-header {
    position: sticky;
    top: 0;
    padding: 1rem 0;
    
}

.sticky-header h2 {
    position: relative;
    z-index: 2;
}

.sticky-header::before {
    content: '';
    position: absolute;
    top: 0;
    inset: 0;
    background: #101A31;
    opacity: 0.8;
    
}

.about-contents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-contents p {
    font-size: 1.3rem;
    padding-bottom: 4rem;
    
}

.about-contents p::before {
    content: '';
    color: var(--color-accent);
    margin-right: 0.5rem;
    display: inline-flex;

}

.anchor-text {
    text-decoration: none;
    color: var(--color-highlight);
    transition-duration: 200ms;

}

.anchor-text:hover {
    color: var(--color-accent);

}


.experience-contents,
.project-contents {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    
      

}

.experience-card,
.project-card {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    
    
}

.experience-card {
    gap: 1rem;
    font-weight: 400;
    padding-bottom: 2rem;
    
}

.project-card {
    gap: 1rem;
    font-weight: 600;    
    
}

.project-card p {
    font-size: 1rem;

}

.card-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1rem;
}

.tenure {
    opacity: 0.7;
    text-transform: uppercase;
    color: rgb(120, 219, 106);
}


.experience-card p {
    font-size: 1.3rem;
    
}

.card-header {
    font-weight: 500;
    font-size: 1.6rem;
}

.tag-container{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--color-accent);
   
}

.tag {
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--backround-accent);
}

.tag p {
    font-size: 1rem;

}

.project-image-container{
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    display: grid;
    
    place-items: center;
    aspect-ratio: 16 / 9;
    order: 2;
    border-radius: 0.25rem;
    background-color: #042f2e;
}

.project-image-container img {                 
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
    
    
}

.project-stat-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.project-archive-link {
    position: relative;
    color: var(--color-highlight);
    text-decoration: none;
    transition-duration: 200ms;
    margin-right: auto;
    margin-left: 25%;

}

.project-archive-link span {
    transition-duration: 200ms;
}

.project-archive-link:hover span {
    padding-left: 0.5rem;
}

.project-archive-link::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    bottom: 0;
    background: transparent;
    transition: 200ms;

} 

.project-archive-link:hover::after {
    background: var(--color-accent);
}

footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;

}

footer p {
    font-size: 1.3rem;
    max-width: fit-content;
}


.scroll-to-top {
    text-decoration: none;
    color: rgb(105, 241, 101);
    background: unvisible;
    padding: 0 0.75rem;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border-radius: 100%;
    overflow: hidden;
    transition: 200ms;
    
    
}

.scroll-to-top:hover {
    opacity: 0.6;
    
}

.scroll-to-top i {
    height: 1rem;
    font-size: 1rem;
    
}

@media (min-width: 640px) {
    .project-card,
    .experience-card {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .card-column {
        grid-column: span 3 / span 3;
       
    }

    .project-image-container {
        order: 0;
        height: max-content;
        width: max-content;
        flex-direction: column;
    }

    header {
        max-width: unset;
    }

    .project-contents {
        gap: 3rem;
        
    }

    .project-card p {
        font-size: 1.3rem;
        font-weight: 400;
    }

    .experience-contents {
        padding-bottom: 1rem;
    }

}

@media (min-width: 1024px) {
    body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        padding: 6rem;
        padding-top: 0;
    }

    header {
        position: sticky;
        top: 0;
        margin-left: 0 auto;
        height: 100vh;
        padding-bottom: 6rem;
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        flex: 1;
    }

    nav a {
        font-size: 1.2rem;
    }

    header,
    main {
        padding-top: 6rem;
        max-width: 600px;
        width: 100%;
        padding-bottom: 6rem;
    }

    main {
        margin-right: 0 auto;
    }

    .sticky-header{
        display: none;
    }

    footer {
        grid-column: span 2 / span 2;
        flex-direction: row;
        max-width: auto;
        margin: 0 auto;
        width: 100%;
    }

    header h1 {
        font-size: 6rem;
    }

    header h4 {
        font-size: 1.5rem;
        
    }

    header p {
        max-width: 300px;
    }


    nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        flex: 1;
    }

    nav a {
        font-size: 1.2rem;
    }

    .social-link-container {
        gap: 1.3rem;
    }

    .social-link-container i {
        font-size: 1.7rem;
    }
    

    main {
        margin-right: auto;
    }

    .H4p {
        font-size: 1.3rem;
    }

    .sticky-header {
        display: none;
        height: 100px;

    }
  
}
    
    
    
    
        
    

    

