@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
@font-face {
    font-family: 'Quentin';
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/quentin.woff') format('woff');
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background-color:hsla(0,0%,5%,1);
    background-image:
        radial-gradient(at 50% 85%, hsla(0,0%,5%,1) 0px, transparent 50%),
        radial-gradient(at 2% 38%, hsla(186,71%,38%,0.53) 0px, transparent 50%),
        radial-gradient(at 90% 59%, hsla(308,55%,28%,0.8) 0px, transparent 50%);
    background-size: 100% 100vh;
    background-repeat: no-repeat;
}

.mobile-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.mobile-nav img {
    height: 3rem;
}

#menu-button-container {
    position: relative;
    padding: 10px;
    z-index: 10;
}

.menu-button-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #ffffff44;
    background: #000;
    border-radius: 6px;
    z-index: -1;
    transform: translate(-1px, -1px);
}

.menu-button-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(120deg, #c94277, #d720c2, #1b9aaa);
    background-size: 100% 100%;
    border-radius: 6px;
    z-index: -2;
    transform: translate(-2px, -2px);
    filter: blur(4px);
}

#menu-button {
    height: calc(2rem + 3px);
    width: 2.5rem;
    transform: rotate(0deg);
}

#menu-button span {
    display: block;
    background-color: #eee;
    border-radius: 9px;
    left: 0;
    height: 3px;
    width: 100%;
    opacity: 1;
    position: absolute;
    transform: rotate(0deg);
    transition: .25s;
}
  
#menu-button span:nth-child(1) {
    top: 0;
}

#menu-button span:nth-child(2) {
    top: 1rem;
}

#menu-button span:nth-child(3) {
    top: 2rem;
}

#menu-button.open span:nth-child(1) {
    top: 1rem;
    transform: rotate(45deg);
}

#menu-button.open span:nth-child(2) {
    left: 50%;
    top: 1rem;
    width: 0%;
}
 
#menu-button.open span:nth-child(3) {
    top: 1rem;
    transform: rotate(-45deg);
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: #000;
    border-right: 1px solid #ffffff22;
    z-index: 5;
    padding: 5rem 2rem 1rem 2rem;
    transition: transform 300ms;
    transform: translateX(-100%);
}

nav.open {
    transform: translateX(0%);
}

nav > a > img {
    height: 3rem;
    display: none;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: baseline;
    padding: 0;
    margin-top: 1.25rem;
    margin-right: 1.25rem;
    list-style: none;
}

nav .text {
    display: block;
    position: relative;
    color: #fff;
    font-family: Quicksand;
    font-size: 1.25rem;
    letter-spacing: 0.25ch;
    text-decoration: none;
    transition: all 300ms;
}

nav .text::after {
    position: absolute;
    bottom: calc(50% - 3px);
    left: -1rem;
    content: "";
    height: 5px;
    width: 5px;
    background-color: #1fb3c6;
    border-radius: 3px;
    opacity: 0;
    transition: all 300ms;
}

nav .text:hover::after {
    opacity: 1;
}

nav .text:hover {
    color: #1fb3c6;
    filter: drop-shadow(0 0 10px #1fb3c6);
}

nav .pdf-tag {
    font-size: 0.75rem;
    letter-spacing: normal;
    color: inherit;
    opacity: 0.75;
    height: 1rem;
}

nav .social-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-self: flex-start;
}

nav .social-links > a {
    display: block;
    padding: 0;
    margin: 0;
}

.github-link, .linkedin-link {
    position: relative;
}

.github-link img, .linkedin-link img {
    display: block;
    height: 1.5rem;
}

.github-link::before, .linkedin-link::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity:0;
    transition: opacity 300ms;
}

.github-link::before {
    background-repeat: no-repeat;
    background-size: 100%;
    background-image: url(images/github-glow.svg);
}

.linkedin-link::before {
    background-repeat: no-repeat;
    background-size: 100%;
    background-image: url(images/linkedin-glow.svg);
}

.github-link:hover::before, .linkedin-link:hover::before {
    opacity:1;
}

main {
    min-height:calc(100vh - 5rem);
}

.splash {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 5vh;
    padding: 1.5rem 1rem 0 1.5rem;
}

.splash p {
    color: #d1d1d1;
    font-family: Inter, Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 600;
    font-display: fallback;
    font-size: 2rem;
    line-height: 3rem;
}

#my-name {
    color: #1fb3c6;
    font-family: 'Quentin', sans-serif;
    font-display: fallback;
    font-weight: 500;
    font-size: 2.5rem;
}

#my-job {
    position: relative;    
    background: linear-gradient(to right, #c94277, #d720c2,  #1b9aaa);
    background-position: 0 100%;
    background-size: 100% 2px;
    background-repeat: repeat-x;
}

.splash-img {
    height: 12rem;
}

#projects, #about, #contact {
    display: flex;
    flex-direction: column;
    padding: 0 5vw;
    min-height: 100vh;
}

#contact {
    min-height: max-content;
}

h2 {
    position: relative;
    align-self: center;
    color: #eee;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-family: Quicksand;
    font-size: 2rem;
    letter-spacing: 0.25ch;
    font-weight: bolder;
}

#about {
    background-color:hsla(0,0%,5%,1);
    background-image:
        radial-gradient(at 17% 54%, hsla(0,0%,5%,1) 0px, transparent 50%),
        radial-gradient(at 61% 22%, hsla(0,0%,5%,1) 0px, transparent 50%),
        radial-gradient(at 62% 56%, hsla(336,55%,52%,0.75) 0px, transparent 50%);
}

#about p {
    display: block;
    position: relative;
    font-size: 1.2rem;
    line-height: 3rem;
    padding: 0;
    margin: 1rem 0;
    color: #d8d8d8;
}

#about p::before {
    position: absolute;
    content: "";
    top: 2.5rem;
    width: 3rem;
    height: 1px;
    background: linear-gradient(to right, rgb(27, 154, 170), transparent);
}

#projects article {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    z-index: 2;
    background-color: #000000;
    border-radius: 1rem;
    border: 1px solid #ffffff22;
    font-family: Inter, Arial, sans-serif;   
}

#projects .article-container {
    position: relative;
    margin: 10px;
    margin-bottom: 4rem;
}

#projects .article-border {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-color:hsla(0,0%,5%,1);
    background-image:
        radial-gradient(at 61% 38%, hsla(0,0%,5%,1) 0px, transparent 50%),
        radial-gradient(at 37% 75%, hsla(0,0%,5%,1) 0px, transparent 50%),
        radial-gradient(at 3% 2%, rgba(201, 66, 119, 0.5) 0px, transparent 50%),
        radial-gradient(at 91% 88%, hsla(186,71%,38%,0.5) 0px, transparent 50%);
    transform: translate(-10px, -10px);
    filter: blur(10px);
    z-index: -1;
}

#projects article .project-content {
    display: flex;
    flex-direction: column;
}

#projects article img {
    height: 12rem;
    filter: drop-shadow(0px 5px 15px #23c0d244);
    transition: all 300ms; 
}

#projects article img:hover {
    transform: scale(1.05);
}

#projects article .project-content h3 {
    color: #eee;
    font-family: Quicksand;
    font-size: 1.5rem;
    letter-spacing: 0.1ch;
    font-weight: bolder;
    padding: 0;
    margin: 0 0 0.5rem 0;
}

#projects article .project-content ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    list-style: none;
}

#projects article .project-content ul li {
    background-color: #23c0d2;
    font-size: 0.9rem;
    color: #bbb;
    padding: 0.3rem 0.6rem;
    border-radius: 9999px;
    transition: background 1000ms, opacity 500ms;
    opacity: 0;
}

#projects article .project-content ul li.active {
    opacity: 1 ;
    background-color: #eeeeee22;
}

#projects article .project-content p {
    display: block;
    line-height: 2rem;
    padding: 1rem 0;
    margin: auto 0;
    color: #ddd;
}

#projects .project-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
}

#projects .project-content .project-links a {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    transition: all 300ms;
}

#projects .view {
    color: #D94882;
    background-color: #c9427711;
    border: 1px solid #ffffff11;
    margin-right: 1rem;
}

#projects .view:hover {
    color: #E84D8B;
    background-color: #c9427728;
    border: 1px solid #ffffff22;
}

#projects .view svg {
    height: 1rem;
    width: 1rem;
    color: #C993A9;
}

#projects .code {
    color: #1FA6B5;
    background-color: #1c98a611;
    border: 1px solid #ffffff11;
}

#projects .code:hover {
    color: #21B4C4;
    background-color: #1c98a628;
    border: 1px solid #ffffff22;
}

#projects .code svg {
    height: 1rem;
    width: 1rem;
    color: #80A2A6;
}

#contact form {
    display: flex;
    flex-direction: column;
    margin: 0 auto 4rem auto;
    width: 90%;
}

#contact label {
    color: #eee;
    font-size: 0.8;
    margin: 0 0 0.5rem 0.5rem;
}

#contact input, #contact textarea {
    display: block;
    background-color:#000;
    width: calc(100% - 2rem - 2px);
    font-size: 1rem;
    font-family: inherit;
    color: #1fb3c6;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ffffff44;
    transition: border 300ms;
    resize: none;
}

#contact input:focus, #contact textarea:focus {
    border: 1px solid #ffffff44;
    outline: 0;
}

#contact .input-container {
    position: relative;
    margin: 2px;
    margin-bottom: 1rem;
}

#contact .input-border {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(120deg, rgba(201, 66, 119, 0.75), rgba(215, 32, 194, 0.75), rgba(27, 154, 170, 0.75));
    background-size: 100% 100%;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 300ms;
    z-index: -1;
    transform: translate(-2px, -2px);
    filter: blur(4px);
}

#contact input:focus + .input-border, #contact textarea:focus + .input-border {
    opacity: 1;
}

#contact .form-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
    justify-content: flex-end;
}

#contact .form-row span {
    padding: 0.8rem 1.2rem;
    margin-right: auto;
    border-radius: 0.5rem;
}

#contact .form-row .error {
    border: 1px solid #FF233F;
    color: #FF233F;
    background-color: #FF233F11;
}

#contact .form-row .success {
    border: 1px solid #21D27D;
    color: #21D27D;
    background-color: #21D27D11;
}

#contact .button-container {
    position: relative;
}

#contact button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    color: #fff;
    font-size: 1.2rem;
    background: linear-gradient(120deg, rgba(201, 66, 119, 0.75), rgba(215, 32, 194, 0.75) 33%, rgba(28, 152, 166, 0.75));
    background-size: 100% 100%;
    border-radius: 0.5rem;
    border: none;
}

#contact button svg {
    height: 1.2rem;
    width: 1.2rem;
    color: #ffffffaa;
}

#contact .button-border {
    filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    background: linear-gradient(120deg, rgba(201, 66, 119, 0.5), rgba(215, 32, 194, 0.5) 33%, rgba(28, 152, 166, 0.75));
    background-size: 100% 100%;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 300ms;
    z-index: -2;
    transform: translate(-5px, -5px);
}

#contact button:focus {
    outline: 0;
}

#contact button:hover + .button-border, #contact button:focus + .button-border {
    opacity: 1;
}

footer {
    display: flex;
    position: relative;
    background-color: #000;
    background: linear-gradient(90deg, rgba(201, 66, 119, 0.05), rgba(215, 32, 194, 0.05) 33%, rgba(28, 152, 166, 0.05));
    justify-content: space-between;
    padding: 2rem;
    color: #bbb;
}

footer .footer-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(120deg, rgba(201, 66, 119, 0.5), rgba(215, 32, 194, 0.5) 33%, rgba(28, 152, 166, 0.75));
    height: 1px;
}

footer ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;
}

footer a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(28, 152, 166, 0);
    transition: all 300ms;
}

footer a:hover {
    color: rgba(28, 152, 166, 1);
    border-bottom: 1px solid rgba(28, 152, 166, 1);
}

@media screen and (min-width: 390px) {

    .splash-img {
        height: 16rem;
    }

    h2 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

@media screen and (min-width: 590px) {

    .splash {
        flex-direction: row;
    }

    #projects, #about, #contact {
        padding: 0 10vw;
    }

    #about p {
        font-size: 1.5rem;
    }

    #contact form {
        width: 80%;
    }
}

@media screen and (min-width: 790px) {

    .mobile-nav {
        display: none;
    }

    nav {
        display: flex;
        justify-content: space-between;
        padding: 1rem;
        transform: translateX(0%);
        position: relative;
        flex-direction: row;
        background: none;
    }

    nav > a > img {
        display: block;
    }

    nav .social-links {
        margin-left: auto;
        align-self: flex-end;
    }

    nav ul {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1.3rem;
        margin-right: 1rem;
    }

    nav .text {
        font-size: 1.3rem;
    }

    nav .text:hover::after {
        width: 15px;
        left: calc(50% - 7px);
    }

    nav .text::after {
        bottom: -0.8rem;
        left: calc(50% - 3px);
    }

    .splash {
        padding: 1.5rem 1.5rem 0 2rem;
    }

    #projects article {
        flex-direction: row;
    }
}

@media screen and (min-width: 890px) {
    
    nav ul {
        gap: 2rem;
    }
    
    .splash-img {
        height: 20rem;
    }

    .splash p {
        font-size: 2.5rem;
        line-height: 3.5rem;
    }
    
    #my-name {
        font-size: 3rem;
    }
}


@media screen and (min-width: 990px) {

    nav {
        padding: 1rem;
    }
    
    nav > a > img {
        height: 3.5rem;
    }
    
    nav ul {
        gap: 3rem;
        margin-top: 1.6rem;
        margin-right: 1rem;
    }
    
    nav .text {
        font-size: 1.5rem;
    }

    main {
        min-height: calc(100vh - 6rem);
    }
    
    .github-link img, .linkedin-link img {
       height: 1.8rem;
    }

    .splash-img {
        height: 28rem;
    }
}