@import url('./reset.css');

/* FONTS */
@font-face {
    font-family: Lequire;
    src: url('/assets/fonts/Lequire.otf');
}

@font-face {
    font-family: Lequire-Outline;
    src: url('/assets/fonts/Lequire-Outline.otf');
}

@font-face {
    font-family: Inter;
    src: url('/assets/fonts/Inter.ttf');
}

@font-face {
    font-family: Inter;
    src: url('/assets/fonts/Inter-Italic.ttf');
    font-style: italic;
}

/* COLORS */
:root {
    --brand-purple:#220949;
    --brand-violet:#975FC0;
    --brand-lilac:#CCC5F8;
    --brand-lilac-rgb: rgba(204, 197, 248, 1);
    --brand-lilac-rgb-transparent: rgba(204, 197, 248, 0);
    --brand-blue: #617CED;
    --brand-red: #E6487B;
    --brand-yellow: #EDCF59;
    --brand-gradient: linear-gradient(30deg,rgba(97, 124, 237, 1) 0%, rgba(230, 72, 123, 1) 50%, rgba(237, 207, 89, 1) 100%);
    --brand-gradient-horizontal: linear-gradient(90deg,rgba(97, 124, 237, 1) 0%, rgba(230, 72, 123, 1) 50%, rgba(237, 207, 89, 1) 100%);
}

/* DEFAULTS */
body {
    background-color: var(--brand-purple);
    color: var(--brand-lilac);
    font-family: Inter;
    margin: 0;
}

div.wave {
    margin: 0;
    height: 150px;
    overflow: hidden;
}

div.lilac {
    background-color: var(--brand-lilac);
    color: var(--brand-purple);
}

.radius-30 {
    border-radius: 30px;
}

.radius-10 {
    border-radius: 10px;
}

h1 {
    font-family: Lequire;
    font-weight: normal;
    margin: 0px;
}

p {
    margin: 0 0 10px 0;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

a {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

img.element.small {
    height: 40px;
}

img.element.big {
    height: 80px;
}

.divider-00 {
    height: 0px;
}

.divider-10 {
    height: 10px;
}

.divider-20 {
    height: 20px;
}

.divider-30 {
    height: 30px;
}

.divider-50 {
    height: 50px;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.button {
    background: 
      linear-gradient(var(--brand-purple), var(--brand-purple)) padding-box,
      var(--brand-gradient-horizontal) border-box;
    border-radius: 10px;
    border: 3px solid transparent;

    margin: 20px;
    padding: 8px 15px;

    color: var(--brand-lilac);
    text-decoration: none;
    text-transform: lowercase;
    font-weight: bold;

    display: flex;
    justify-content: center;
    align-items: center;
    place-items: center;
}

div.lilac .button, .button.lilac_button {
    background: 
      linear-gradient(var(--brand-lilac), var(--brand-lilac)) padding-box,
      var(--brand-gradient-horizontal) border-box;
      color: var(--brand-purple)
}

.button::after {
    content: url('/assets/images/Arrow_Right_Lilac.png');
    padding-left: 10px;
    transform: scale(.9);
    transition: transform .2s ease;
}

div.lilac .button::after, .button.lilac_button::after {
    content: url('/assets/images/Arrow_Right_Purple.png');
}

a.button:hover {
  color: var(--brand-blue);
}

a.button:hover::after {
    transform: scale(.9) translateX(5px);
}

.links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.links.flex-container {    
    gap: 0;
}

.link a, .link span {
    display: flex;
    justify-content: center;
    align-items: center;
    place-items: center;

    font-size: smaller;
  
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    text-transform: lowercase;
}

.link a:hover {
  color: var(--brand-blue);
}

.link.atSign a::before {
    content: url('/assets/images/Icon_At.png');
    padding-right: 2px;
    transform: scale(.8);
}

.link.local a::before {
    content: url('/assets/images/Arrow_Right_Gradient.png');
    padding-right: 2px;
    transform: scale(.8);
}

.link.local.purple a::before {
    content: url('/assets/images/Arrow_Right_Purple.png');
}

a.hidden-email {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

ul.element-list 
{
    margin: 0;
    padding-left: 0;
    li {
        list-style: none;
        background-image: url('/assets/images/Arrow_Right_Gradient_Large.png');
        background-repeat: no-repeat;
        background-position: left center;
        background-size: 25px;
        padding-left: 35px;
        margin-block-end: 1.2em;

        h3 {
            margin-block-start: 0;
        }
    }
}

ul.element-list-small {
    li {
        background-size: 12px;
        padding-left: 20px;
        margin-bottom: 5px;
        margin-left: 10px;
    }
}

.flex-container {
    display: flex;
    gap: 30px;
    flex-basis: 0;
    flex-grow: 1;
    justify-self: center;
    margin: auto;
    max-width: 1024px;
    width: 100%;
}

main > .flex-container,
main > .lilac {
    padding-left: 30px;
    padding-right: 30px;
}

.column {
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.flex-start {
    justify-content: flex-start;
    align-items: flex-start;
    align-self: flex-start;
}

.gap-0 {
    gap: 0px;
}

.gap-10 {
    gap: 10px;
}

.banner {
    border-radius: 30px; 
    background: var(--brand-gradient); 
    height: 300px;
    width: 100%;
}

.badge {
    border-radius: 30px; 
    background: var(--brand-gradient); 
    height: fit-content;
    width: 300px;
    padding: 50px 35px;
    color: white;
}

/* HEADER */
header {
    padding: 20px;
    margin-bottom: 25px;
 
    .logo { 
        img {
            width: 125px;
        }
    }

    nav {
        flex-grow: 1;

        ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            justify-content: flex-end;
        }

        a {
            display: block;
            text-align: center;
            padding: 0 16px 14px 16px;
            text-decoration: none;
            text-transform: uppercase;
        }
        a:hover {
            color: var(--brand-blue);
        }
    }
}

/* FOOTER */

footer {
    .logo img {
        width: 200px;
    }

    nav {
        padding: 0 10px;
        justify-content: space-between;
        
        .links:first-of-type {
            flex-grow: 1;
            flex-basis: 0;
        }

        .links:last-of-type {
            flex-grow: 1;
            flex-basis: 0;
            display: flex;
            justify-content: flex-end;
        }
    }
}


/* PROJECT GRID */

.tag_links .selected{
    text-decoration: underline;
}

.project_grid {
    display: flex; 
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1024px;
}

/* PROJECT BOX */

.project_box {
    width: 0px;
    height: 0px;
    margin: 0 0px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 400ms 0ms;

    &.show {
        width: 250px;
        height: 350px;
        margin: 0 15px 30px 15px;
        opacity: 1;
        transition: opacity 400ms 0ms;
    }

    .gradient_border {
        background: 
            linear-gradient(var(--brand-purple), var(--brand-purple)) padding-box,
            var(--brand-gradient) border-box;
    }

    .purple_border {
        background: 
            linear-gradient(var(--brand-lilac), var(--brand-lilac)) padding-box,
            var(--brand-purple) border-box;
    }
    
    .project_box_header {
        display: flex;
        flex-direction: column;
        text-decoration: none;
    }

    .release-year {
        margin-top:-1.5em;
        padding: 0px 5px 0px 40px; 
        background: var(--brand-lilac);
        background: linear-gradient(90deg,var(--brand-lilac-rgb-transparent) 5%, var(--brand-lilac-rgb) 45%);
        color: var(--brand-purple);
        display: inline-block;
        width: fit-content;
        align-self: flex-end;
        font-style: italic;
    }
}

.project_box img {
    border-radius: 10px 10px 0 0;
    border-width: 3px;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.project_box_content {     
    border-radius: 0 0 10px 10px;
    border: 3px solid transparent;
    border-top: 0;
    padding: 0 20px 10px 20px;
    height: 60%;

    font-size: 0.9em;

    display: flex;
    flex-direction: column;
}

.project_box h2 {
    margin: 0;
    padding-top: 15px;
    font-size: 1.2em;
    height: 70px;
}

.project_box p {
    flex-grow: 1;
}

.project_box_content a,    
.project_box_content a.project_box_link { 
    text-decoration: none;
    font-weight: bold;
}

.project_box a.project_box_link {
    display: flex;
    justify-content: left;
    align-items: center;
    place-items: center;

    margin-top: 10px;
}

.project_box a.project_box_link::after {
    content: url('/assets/images/Arrow_Right_Purple.png');
    
    padding-left: 5px;
    transform: scale(.6);
    transition: transform .2s ease;
}

.project_box a.project_box_link:hover::after {
    transform: scale(.6) translateX(5px);
}

.project_box .gradient_border .project_box_link::after {
    content: url('/assets/images/Arrow_Right_Lilac.png');
}

/* ABOUT */

.about.flex-container {
    justify-content: center;

    .about_description {
        width: 500px;
        padding: 30px;
        display: flex;
        flex-direction: column;

        h2 {
            margin: 10px 0;
        }

        .links {
            flex-grow: 1;
            align-items: flex-end;
            justify-content: flex-start;

            .link a {
                padding-bottom: 0;
            }

            .link a:first-of-type {
                padding-left: 0;
            }
        }
    }
    .about_portrait {    
        max-width: 300px;

        img {
            -webkit-transform: scale(-1, 1);
            -moz-transform: scale(-1, 1);
            -o-transform: scale(-1, 1);
            transform: scale(-1, 1);   
            margin-bottom: 1.2em;
        }
    }

    .about_portrait_large {
        max-width: 400px;
    }
}

.about-core-values {
    justify-content: center;

    .core-value {
        max-width: 250px;
        min-height: 220px;
        height: 100%;
        margin: 0px;

        .gradient_border {
            border-radius: 10px;
            border: 3px solid transparent;
            padding: 20px;
            height: 100%;

            background: 
                linear-gradient(var(--brand-purple), var(--brand-purple)) padding-box,
                var(--brand-gradient) border-box;
        }

        img {
            object-fit: contain;
            height: 40px;
            width: 40px;
            align-self: center;
        }

        h3 {
            margin-block-end: 1em;
        }
    }
}

.about-details {
    .about-text {
        flex-grow:1; 
        flex-basis:0;
    }

    .about-list {
        max-width: 275px;
    }
}

.about-badge {
    width: 100%;
}

/* PROJECT DETAILS */

.project_details {
    justify-content: center;

    h2:first-of-type {
        margin-bottom: 10px;
    }

    .links {
        margin-left: -10px;

        .link 
        {
            a {
                padding: 14px 10px;
                text-wrap-mode: nowrap;
            }
        }
    }

    .project_image {    
        width: 450px;
        height: 300px;
        object-fit: cover;
        z-index: 999;
    }

    .element-list li {
        background-image: url('/assets/images/Arrow_Right_Purple.png');
    }
}

/* RESPONSIVE CSS */
.mobile-only {
    display: none;
}

@media (max-width: 600px) {
    .flex-container {
        gap: 10px;
    }

    .mobile-only {
        display: block;
    }

    .mobile-hide {
        display: none;
    }

    .link a, .link span {
        padding: 4px 6px;
    }

    header.flex-container {
        flex-direction: column;
    }

    header {
        padding: 20px;

        .logo {
            align-self: center;
        }

        & nav {
            ul {
                justify-content: center;
            }
            a {
                padding: 0 6px 4px 6px;
            }
        }
    }

    main > .flex-container, main > .lilac {
        padding-left: 20px;
        padding-right: 20px;
    }

    .about.flex-container {
        flex-direction: column;

        .about_description {
            width: 100%;
        }

        .about_portrait {
            max-width: 100%;
        }
    }

    footer {
        padding-bottom: 50px;

        nav.flex-container {
            flex-direction: column;
        }
        & nav .links:last-of-type {
            justify-content: center;
        }
    }

    .tag_links {
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .project_details {
        flex-direction: column;
    }
    
    .about-details {
        margin-top: -30px;
        .flex-container{
            flex-direction: column;
        }
    }

    .about-core-values {
        flex-direction: column;

        & .core-value {
            max-width: 100%;
            min-height: 135px;
        
            .gradient_border {
                padding: 10px;
                display: flex;
                flex-wrap: wrap;
            }

            img {
                align-self: anchor-center;
                margin-right: 10px;
            }
        }
    }

    .about-badge {
        margin: 0 20px;
        width: auto;

        h1 {
            text-align: center;
        }
    }

    .contact {
        .flex-container {
            flex-direction: column;

            .badge {
                align-self: center;
            }
        }
    }
}