@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

html {
	font-weight: 400;
    font-family: "Lexend", sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

 body {
 	margin: 0;
 	padding: 0;
	 background-color: #171717;
 }

 *,
 *:before,
 *:after {
 	box-sizing: border-box;
 }

 canvas {
 	opacity: 0.25;
 	position: fixed;
 	top: 0; left: 0;
 	width: 100%; height: 100%;
 	backface-visibility: hidden;
 	z-index: -1;
 }

figure {
	width: 100%;
	max-width: 1300px;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0;
	margin: 0 auto;
}

.logo img {
	width: 420px;
}

div {
	position: relative;
}

img {
	max-width: 100%;
}

figcaption {
	display: flex;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: flex-end;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 1rem;
    font-size: 12px;
    background-color: rgb(21 21 21 / 95%);
    z-index: 5;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgb(20 20 20 / 95%)
}

code,
span,
a {
	text-decoration: none;
	font-family: monospace;
	padding: 5px 12px 5px 12px;
	border: 1px solid rgba(131, 96, 168, 0.5);
	border-radius: 8px;
	line-height: 10px;
	color: #8360a8;
	margin: 0 5px;
}

code:first-child {
	margin-left: 0;
	margin-right: auto;
}

code:last-child {
    margin-right: 0;
}

span {
	margin: 0;
	display: flex;
	font-size: 20px;
	position: absolute;
	background-color: #ffffff;
	padding: 3px 10px 3px 10px;
	top: 52px;
	right: 39px;
	transition: all cubic-bezier(.0, 0, .2, 1) 750ms;
	font-style: italic;
	overflow: hidden;
	backface-visibility: hidden;
	white-space: nowrap;
	width: 55px;
	height: 28px;
}

i {
    opacity: 0;
    display: inline-block;
    font-style: italic;
    transition: opacity cubic-bezier(.0, 0, .2, 1) 750ms;
    backface-visibility: hidden;
    white-space: nowrap;
    margin-right: 0;
}

span div {
	top: 3px;
	left: 10px;
    position: absolute;
    transform: translatex(-109px);
    transition: transform cubic-bezier(.0, 0, .2, 1) 750ms;
    backface-visibility: hidden;
    white-space: nowrap;
}

span i:first-of-type {
	margin-right: 10px;
}

.logo:hover span i {
    opacity: 1;
}

.logo:hover span {
    width: 231px;
    transform: translateX(176px);
}

.logo:hover span div {
    transform: none;
}

a {
	transition: all cubic-bezier(.0, 0, .2, 1) 250ms;
}

a:hover {
	color: #171717;
	background-color: #8360a8;
	border-color: #8360a8;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px 65px 20px;
    mix-blend-mode: lighten;
    max-width: 1512px;
    margin-left: auto;
    margin-right: auto;
}

.projects a {
    padding: 0;
    border-radius: 0;
    border: 0;
    box-shadow: 0px 0px 0px 1px rgba(131, 96, 168, 0);
    width: 25%;
    margin: 0;
    background-color: #171717;
    padding: 20px 0;
    position: relative;
    backface-visibility: hidden;
    transition: transform cubic-bezier(.0, 0, .2, 1) 250ms;
}

.projects a:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(130,92,166,1) 0%, rgba(161,97,139,1) 100%);
    pointer-events: none;
    transition: all cubic-bezier(.0, 0, .2, 1) 250ms;
    opacity: 0;
    mix-blend-mode: darken;
}

.projects a:hover:before {
    opacity: 1;
}

.projects a:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 1px 0px rgba(131, 96, 168, 0.5);
    z-index: 1;
    transition: all cubic-bezier(.0, 0, .2, 1) 250ms;
}

h2 {
    font-size: 48px;
    font-weight: 700;
    padding: 0;
    color: #8360a8;
    background: linear-gradient(to left, rgba(130,92,166,1) 0%, rgba(130,92,166,1) 20%, rgba(161,97,139,1) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding-top: 90px;
    padding-bottom: 30px;
    text-align: center;
}

.aniWrap {
  margin: 40px auto;
  display: block;
  width: 28px;
  position: absolute;
  bottom: 15vh;
}

.mouse {
  width: 28px;
  height: 45px;
  border: 3px solid rgb(151 88 138);
  border-radius: 14px;
}

.scroller {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(45deg, rgba(130,92,166,1) 0%, rgba(161,97,139,1) 100%);
  position: relative;
  top: 10px;
  left: 0;
  right: 0;
  margin: 0 auto;
  -webkit-animation: scrolls 1.3s ease-out infinite; /* Chrome, Safari, Opera */
}


@-webkit-keyframes scrolls {
    0%   {top: 18px; opacity: 1; height: 4px}
    95% {top: 5px; opacity: 0; height: 8px}
  	100% {top: 18px; opacity: 1; height: 4px}
}


.about {
    display: flex;
    padding: 0 20px 65px 20px;
    max-width: 960px;
    margin: 0 auto;
    margin-top: 60px;
}

.about__col img {
    border-radius: 200px;
    opacity: 0.45;
}

.about__col p.lead {
    font-size: 30px;
    font-weight: 700;
    padding: 0;
    color: #8360a8;
    background: linear-gradient(to left, rgba(130, 92, 166, 1) 0%, rgba(130, 92, 166, 1) 20%, rgba(161, 97, 139, 1) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0;
    line-height: 1.4;
}

.about__col {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about__col + .about__col {
    margin-left: 60px;
}

.about__col p {
    color: white;
    font-size: 18px;
    line-height: 1.65;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.contact {
    display: flex;
    padding: 0 20px 180px 20px;
    max-width: 960px;
    margin: 0 auto;
    margin-top: 70px;
    justify-content: center;
    flex-direction: column;
}

.contact__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.contact__item a {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;

    font-size: 20px;
    font-weight: 600;
    color: #8360a8;
    background: linear-gradient(to left, rgba(130,92,166,1) 0%, rgba(130,92,166,1) 20%, rgba(161,97,139,1) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    font-family: "Lexend", sans-serif;
    letter-spacing: 0.2px;
}

.contact__item a:hover {
    color: #171717;
    background: #8360a8;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.contact__item a:hover svg path:not(.cls-1) {
    fill: #171717;
}

.contact__item a svg {
    min-width: 30px;
    max-width: 30px;
    margin-right: 10px;
    transition: all cubic-bezier(.0, 0, .2, 1) 250ms;
    margin-right: 0;
    margin-left: auto;
}

.contact__item + .contact__item {
    margin-top: 10px;
}

@media all and (max-width: 768px) {
	span {
		display: none;
	}

	figcaption {
		margin: 0 auto;
		left: 0; right: 0;
		flex-direction: column;
		justify-content: center;
	}

    figcaption code {
        display: none;
    }

    figcaption a {
        margin: 0;
    }

	code:first-child {
		margin-left: auto;
		margin-right: auto;
	}

	code:last-child {
	    margin-left: auto;
	    margin-right: auto;
	}

	code,
	a {
		width: 100%;
		margin: 5px 0;
	    padding: 7px 10px 9px 10px;
	}

    .projects a {
        width: 50%;
    }

    .about {
    flex-direction: column;
    align-items: center;
}

    .about__col + .about__col {
        margin-left: 0;
        margin-top: 50px;
    }

    .about__col {
        width: 100%;
    }

    .about__col img {
        border-radius: 100%;
        height: 274px;
        object-fit: cover;
        width: 274px;
    }

    .contact {
        flex-direction: column;
    }
}