/* CSS Variables */
:root {
    --color-accent: #6fffe9;
    --background-accent: rgba(45, 212, 191, 0.1);
    --color-highlight: #f8f8f8;
}

html {
    scroll-behavior: smooth;

}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sora', sans-serif;
}

body {
    background-color: #090f18;
    color: #a9abbb;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 6rem;
}

p {
    line-height: 1.4rem;
}

p::selection,
h1::selection,
h2::selection,
h3::selection,
h4::selection,
h5::selection,
h6::selection {
    background-color: var(--color-accent);
    color: #172554;
    transition-duration: 300ms;
}


.underlay {
    position: fixed;
    background: #172554;
    opacity: 0.3;
    inset: 0;
}

header,
main,
footer {
    z-index: 100;
    position: relative;
}

header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

header h1,
header h4,
.lighttext {
    color: var(--color-highlight);
}

a {
  text-decoration: none;
}


header a {
    text-decoration: none;
}

header h1 {
    font-weight: 600;
}

header h4 {
    font-weight: 400;
}

nav {
    display: none;
}

nav a {
    font-size: 0.9rem;
}

.social-links-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    font-size: 1.2rem;
    color: inherit;
    transition-duration: 200ms;
    text-decoration: none;
}

.social-links:hover {
    color: var(--color-highlight);
}

main {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section h2 {
    text-transform: uppercase;
    font-size: 1rem;
    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;
    inset: 0;
    background: #0D152A;
    opacity: 0.8;
}

.about-contents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.anchor-text {
    text-decoration: none;
    color: var(--color-highlight);
    transition-duration: 200ms;
}

.anchor-text:hover {
    color: var(--color-accent);
}

.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));
}

.tenure {
    opacity: 0.8;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.experience-card {
    font-size: 0.9rem;
    gap: 0.5rem;
}

.project-card {
    gap: 2rem;
}
.card-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-header {
    font-weight: 400;
    font-size: 1.25rem;
    text-decoration: none;
}

.card-header:hover {
    color: var(--color-accent);
}

.anchor-icon {
    padding-left: 0.5rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 1rem;
    border-radius: 0.25rem;
    color: var(--color-accent);
    background: var(--background-accent);
    opacity: 0.8;
    font-size: 0.8rem;
    font-weight: 400;
}

.project-image {
    max-width: 250px;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: grid;
    place-items: center;
    order: 2;
    border-radius: 0.25rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-stat {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
}

.project-museum-link {
    position: relative;
    color: var(--color-highlight);
    text-decoration: none;
    transition-duration: 200ms;
    margin-right: auto;
}

.project-museum-link span {
    transition-duration: 200ms;
}

.project-museum-link:hover span {
    padding-left: 0.5rem;
}

.project-museum-link::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--color-highlight);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    /* background: transparent; */
    transition-duration: 200ms;
}

.project-museum-link:hover::after {
    /* background: var(--color-highlight); */
    transform: scaleX(1);
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.scroll-to-top {
    text-decoration: none;
    color: var(--color-accent);
    transition-duration: 200ms;
    background: var(--background-accent);
    padding:  1rem;
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    overflow: hidden;
    transition-duration: 200ms;
}

.scroll-to-top:hover {
    /* background: var(--color-accent); */
    color: var(--color-highlight);
}


@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 {
        order: 0;
    }

    header {
        max-width: unset;
    }

    header h1 {
        font-size: 3rem;
        font-weight: 500;
    }

    header h4,
    nav a {
        font-size: 1.25rem;
        font-weight: 400;
    }


    header p {
        /* font-weight: 400; */
        max-width: 300px;
    }

     .social-links-container {
        display: flex;
        gap: 1.5rem;
    }

    .social-links-container i {
        font-size: 1.5rem;
    }

}

@media (min-width: 1024px) {
    body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        row-gap: 0;
        padding: 6rem;
        padding-top: 0;
        padding-bottom: 4rem;
        
    }

    header {
        position: sticky;
        top: 0;
        margin-left: auto;
        /* background: greenyellow; */
        height: 100vh;
        padding-bottom: 6rem;
    }

    header h1 {
        font-size: 3rem;
        font-weight: 500;
    }

    header h4,
    nav a {
        font-size: 1.25rem;
        font-weight: 400;
    }


    header p {
        /* font-weight: 400; */
        max-width: 300px;
    }

    nav {
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 1rem;
        margin-top: 6rem;
    }

    .social-links-container {
        display: flex;
        gap: 1.5rem;
    }

    .social-links-container i {
        font-size: 2rem;
    }

    header,
    main {
        padding-top: 6rem;
        max-width: 600px;
        width: 100%;
    }

    main {
        margin-right: auto;
    }

    .sticky-header {
        display: none;
    }

    footer {
        grid-column: span 2/span 2;
        flex-direction: row;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        margin-top: 6rem; /* Adjust the value as needed */
    }
}
