:root {
    --background-accent: rgba(45, 212, 191, .1);
    --color-highlight: #eaeff4;
    --color-background: #000218;
    --color-accent: #bdc4cc;
    --color-card: #02062f;
}

html {
    scroll-behavior: smooth;
}

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

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-background);
    color: var(--color-accent);
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 6rem;
}

p {
    line-height: 1.5rem;
}

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

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

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

header a {
    text-decoration: none;
}

header h1 {
    font-weight: 600;
}

header h4 {
    font-weight: 400;
}

nav {
    display: none;
}

nav a {
    font-size: 0.9;
}

.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: 6rem;
}

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

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

.menuText {
    display: flex;
    justify-content: left;
    color: var(--color-highlight);
    text-decoration: none;
    padding: 8px 10px;
    transition-duration: 200ms;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin-top: 20px;
    gap: 8px;
    width: 50%;
}

.card {
    width: 140px;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.15s;
}

.card::before {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: inherit;
    background: radial-gradient(
        960px circle at 0 0,
        rgba(212, 200, 230, 0.1),
        transparent 25%
    );
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.card-content {
    background-color: var(--color-card);
    border-radius: inherit;
    transition: all 0.25s;
    height: calc(100% - 2px);
    width: calc(100% - 2px);
}

.card:hover {
    transform: scale(0.98);
}

.card:hover::before {
    opacity: 1;
}


.about-contents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 20px;
}

.about-contents p {
    font-size: 1.1rem;
}

.expProTitles {
    color: var(--color-highlight);
    display: flex;
    justify-content: left;
    text-decoration: none;
}

.anchor-text {
    display: flex;
    justify-content: left;
    color: var(--color-highlight);
    text-decoration: none;
}

.anchor-text:hover {
    color: var(--color-accent);
}

.titleHeading {
    color: var(--color-highlight);
    background: var(--color-card);
    padding: 8px 12px;
    margin-top: 20px;
    border: 1px solid;
    border-image: linear-gradient(-68deg,#02062f, #e2e8f0);
    border-image-slice: 1;
    box-shadow: -1.5px -1px 3px -2px var(--color-highlight);
}

.experience-contents,
.project-contents,
.contact-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.75rem;
}

.tenure {
    opacity: 0.7;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.experience-card p {
    font-size: 0.9rem;
}

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

.anchor-icon {
    padding-left: 0.5rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    color: var(--color-accent);
    
}

.tag {
    background: #1E1E1E;
    border: 1px solid;
    padding: 0.25rem 0.5rem;
    
}

.illustrator {
    border-image: linear-gradient(-68deg,#301e09, #DD8603);
    color: #FF9500;
    box-shadow: -1.5px -1px 5px -2px #FF9500;
}

.photoshop {
    border-image: linear-gradient(-68deg,#061c64, #0C91FF);
    color: #1D8EFF;
    box-shadow: -1.5px -1px 5px -2px #1D8EFF;
}

.indesign {
    border-image: linear-gradient(-68deg,#210102, #FF0919);
    color: #FF0033;
    box-shadow: -1.5px -1px 5px -2px #FF0033;
}

.figma {
    border-image: linear-gradient(-68deg,#1f022f, #9103DD);
    color: #c854fd;
    box-shadow: -1.5px -1px 5px -2px #c854fd;

}

.readymag {
    border-image: linear-gradient(-68deg,#071a58, #66BAFF);
    color: #63B1FF;
    box-shadow: -1.5px -1px 5px -2px #63B1FF;
}

.blender {
    border-image: linear-gradient(-68deg,#341f0a, #DD5E03);
    color: #FF7700;
    box-shadow: -1.5px -1px 5px -2px #FF7700;
}

.mailchimp {
    border-image: linear-gradient(-68deg,#413B04, #FFE500);
    color: #FFDD1C;
    box-shadow: -1.5px -1px 5px -2px #FFDD1C;
}

.hootsuite {
    border-image: linear-gradient(-68deg,#4C1605, #FF3700);
    color: #FF4921;
    box-shadow: -1.5px -1px 5px -2px #FF4921;
}

.adobe {
    border-image: linear-gradient(-68deg,#590F0F, #FF1B1B);
    color: #FC0000;
    box-shadow: -1.5px -1px 5px -2px #FC0000;
}

.axure {
    border-image: linear-gradient(-68deg,#04450A, #71FF3D);
    color: #21FF5C;
    box-shadow: -1.5px -1px 5px -2px #21FF5C;
}

.wordpress {
    border-image: linear-gradient(-68deg,#052844, #00C3FF);
    color: #31F4FE;
    box-shadow: -1.5px -1px 5px -2px #31F4FE;
}

.illustrator,
.photoshop,
.indesign,
.figma,
.readymag,
.blender,
.mailchimp,
.hootsuite,
.adobe,
.axure,
.wordpress {
    border-image-slice: 1;
}


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

.project-image-container {
    max-width: 210px;
    overflow: hidden;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    order: 2;
    border-radius: 0.25rem;
}

.project-image-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

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

.resume-link {
    position: relative;
    color: var(--color-highlight);
    text-decoration: none;
    transition-duration: 200ms;
    margin-right: auto;
}

.resume-link span {
    transition-duration: 200ms;
}

.resume-link:hover span {
    padding-left: 0.25rem;
    text-decoration: none;
}

.resume-link::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    bottom: 0;
    background: transparent;
    transition-duration: 200ms;
}

.resume-link:hover::after {
    background: var(--color-accent);
    text-decoration: none;

}

.contact-content {
    display: flex;
    flex-direction: column;
    padding: 0px 10px 60px 10px;
    justify-content: center;
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

input,
textarea {
    width: 100%;
    background: transparent;
    padding: 8px;
    border-image: linear-gradient(-68deg,#02062f, #7c809b);
    border-image-slice: 1;
    color: #e2e8f0;
}
input:focus,
textarea:focus {
    outline: none;
    border-image: linear-gradient(-68deg,#02062f, #e2e8f0);
    border-image-slice: 1;
    color: #e2e8f0;
}


button {
    padding: 8px;
    background: #02062f;
    border: none;
    color: #eaeff4;
}

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

.footer-text {
    color: var(--color-highlight);
    text-decoration: none;
    transition-duration: 200ms;
}


footer p {
    font-size: 0.9rem;
}

.scroll-to-top {
    text-decoration: none;
    background: var(--color-card);
    color: var(--color-highlight);
    border-image-slice: 1;
    box-shadow: -1.5px -1px 5px -2px var(--color-highlight);
    padding: 0 0.8rem;
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
    border-radius: 100%;
    overflow: hidden;    
}

.scroll-to-top:hover,
.sub-btn:hover {
    opacity: 0.6;
    transition-duration: 200ms;
}

@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;
    }

    header {
        max-width: unset;
    }

    header h1 {
        font-size: 3rem;
    }

    header h4 {
        font-size: 1.4rem;
    }

    header p {
        max-width: 300px;
    }

    .social-link-container {
        gap: 1.5rem;
    }

    .social-link-container i {
        font-size: 2rem;
    }

    

}

@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: auto;
        height: 100vh;
        padding-bottom: 6rem;
    }

    header h1 {
        font-size: 3rem;
    }

    header h4 {
        font-size: 1.4rem;
    }

    header p {
        max-width: 300px;
    }

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

        flex: 1;
    }

    nav a {
        font-size: 1rem;
    }

    .social-link-container {
        gap: 1.5rem;
    }

    .social-link-container i {
        font-size: 2rem;
    }

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


    main {
        margin-right: auto;
        padding-top: 10.7rem;
    }

    
    .fullscreen {
        display: none;
    }

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