@import url("https://use.typekit.net/pue5blc.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --green: #158e30;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Inter", sans-serif;
    line-height: 1.5;
}

body {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1,
h2 {
    font-weight: 700;
    font-style: normal;
    color: #FFF;
}

p {
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* LOGO & SVG ANIMATIONS */

#logo-container {
    text-align: center;
}

#logo {
    width: 100%;
}

.wye,
.site {
    stroke: currentColor;
    stroke-width: 0.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.wye {
    color: #fff;
    animation: draw 10s linear forwards 0s, fill 1s ease forwards 2.5s;
}

.site {
    color: var(--green);
    animation: draw 10s linear forwards 1s, fill 0.75s linear forwards 2.5s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fill {
    to {
        fill: currentColor;
        stroke: transparent;
    }
}

/* PROJECTS & CLIENTS */
#projects-section,
#clients-section {
    text-align: center;
    margin-top: 5rem;
    width: 100%;
}

#projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

#clients {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.client {
    display: flex;
    height: 10rem;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    padding: 1rem;
    transition: box-shadow 0.25s ease;
}

.client-icon {
    height: 100%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-icon img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

a.project {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: #FFF;
    color: #000;
    border-radius: 1rem;
    transition: box-shadow 0.25s ease;
}

.project:hover,
.client:hover {
    box-shadow: 0px 0px 20px 10px var(--green);
}

.project-icon {
    width: 100%;
}

.project-name {
    grid-area: project-name;
    text-align: left;
}

.project-details {
    grid-area: project-details;
    text-align: center;
}

.footer-credit {
    display: flex;
    font-size: 0.75rem;
    width: 100vw;
    padding: 0.75rem 0;
    justify-content: center;
    color: #FFF;
}

.footer-credit a {
    text-decoration: none;
    transition-duration: 0.25s;
}

.footer-credit a:hover {
    color: var(--green);
}

/* POPOVER */

.popover-trigger {
    background: var(--green);
    padding: 1rem 2rem;
    color: #FFF;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition-duration: 0.25s;
    outline: 2px solid var(--green);
    text-transform: uppercase;

    &:hover {
        outline: 2px solid #FFF;
    }
}

.popover {
    max-width: 80vw;
    opacity: 0;
    background: #FFF;
    padding: 2rem;
    transition-property: display, opacity;
    transition-duration: 0.5s;
    transition-behavior: allow-discrete;
    margin: auto;
    border: none;
    box-shadow: 0px 0px 10px #000;
    border-radius: 1rem;
    flex-direction: column;
    gap: 1rem;

    & * {
        color: #000;
    }

    &:popover-open {
        display: flex;
        opacity: 1;

        @starting-style {
            opacity: 0;
        }

    }
}

/* CONTACT FORM */

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
}

#contact-form button {
    background: var(--green);
    padding: 1rem;
    color: #FFF;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 0.5rem;
}

.cursor-follower {
    --size: 1000px;
    width: var(--size);
    height: var(--size);
    background-color: #158e30;
    border-radius: 50%;
    filter: blur(1000px);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* will-change: transform; */
    z-index: -1;
    opacity: 0.5;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {

    body {
        cursor: auto;
    }

    .cursor-follower {
        display: none !important;
    }

    #clients {
        grid-template-columns: 1fr 1fr;
    }

    #projects {
        grid-template-columns: 1fr;
    }

}