@import 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/brands.min.css';
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Nunito:300,400,600,700&display=swap');

:root {
	--theme-color1: #54B689;
}

/** Globals **/

body { font-family: 'Nunito', sans-serif; }

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

h1 {
	font-size: 2em;
	position: relative;
	padding-left: 0.5em;
	margin-bottom: 1em;
}

h1:after {
	content: '';
	position: absolute;
	height: calc(100% + 10px);
	top: -5px;
	left: 0;
	width: 5px;
	background-color: var(--theme-color1);
}

a { text-decoration: none; }

article a, footer a { color: var(--theme-color1); }

article a:hover, footer a:hover { opacity: 0.8; }

.divide {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #d4d4d4;
}

.invert {
    position: relative;
    margin-top: 40px;
    padding: 40px 0;
    background-color: #f8f9fa;
}

.invert + div { margin-top: 40px; }

.invert h1 {
    text-align: center;
    padding-left: 0;
}

.invert h1:after {
    height: 5px;
	top: 50px;
	left: calc(50% - 25px);
	width: 50px;
}

.expand {
    transition: all;
    transition-duration: 0.5s;
}

.expand:hover {
    background-color: var(--theme-color1);
    color: white;
    transform: scale(1.1);
}

.fa-angular { color: #CA3327; }
.fa-node-js { color: #54B689; }
.fa-react { color: #62D4FA; }
.fa-php { color: #777BAF; }
.fa-sass { color: #BF6B97; }
.fa-npm { color: #BB443E; }
.fa-html5 { color: #DE6E3C; }
.fa-css3-alt { color: #53A7DC; }
.fa-docker { color: #0093D8; }
.fa-drupal { color: #0477BF; }
.fa-trello { color: #026AA7; }
.fa-gitkraken { color: #01A199; }
.fa-wordpress { color: #10A8DA; }
.fa-python { color: #FFE05C; }

/** Container **/

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

/** Helpers **/

.flex { display: flex; }

.flex-1 { flex: 1; }

.gap { gap: 4em; }

.wrap { flex-wrap: wrap; }

.flex-center {
    align-items: center;
    justify-content: center;
}

.custom_button {
    border-radius: 10px;
    letter-spacing: 0.6px;
    cursor: pointer;
}

i.custom_button {
    font-size: 1em;
    padding: 0.5em;
}

#hero .custom_button,
#call-to-action .custom_button {
    border: 2px solid white;
    color: white;
}

#hero .custom_button:hover, #hero .custom_button:active {
    background-color: var(--theme-color1);
    border: 2px solid var(--theme-color1);
}

article .custom_button {
    border: 2px solid #d4d4d4;
    color: #212529;
}

article .custom_button:hover, article .custom_button:active {
    background-color: transparent;
    border: 2px solid var(--theme-color1);
    color: var(--theme-color1);
}

/** Identity **/

#site-identity { flex: 1; }

#site-identity #title {
    font-size: 2em;
    font-weight: bold;
}

#site-identity .slogan {
    font-weight: 300;
    margin-top: -0.5em;
    font-size: 0.8em;
    color: grey;
}

/** Navbar **/

nav ul, nav li {
    list-style: none;
    display: inline-block;
}

nav a {
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1em;
    font-weight: 700;
    transition: all;
    transition-duration: 0.5s;
}

nav a:not(.current):hover { opacity: 0.6; }

nav a.current { color: var(--theme-color1) !important; }

/** Article **/

article {
    padding-top: 80px;
    color: #212529;
    position: relative;
}

/** About **/

#about { position: relative; }

.is_frontpage #about::before {
    position: absolute;
    top: 150px;
    right: -10px;
    content: '';
    background-color: var(--theme-color1);
    width: 30px;
    height: 30px;
    border-radius: 100%;
}

.is_frontpage #about:after {
    position: absolute;
    top: 90px;
    right: 0px;
    content: '';
    background-color: var(--theme-color1);
    width: 60px;
    height: 60px;
    border-radius: 100%;
}

/** Copy Images **/

.copy.from-db img {
    border-radius: 100%;
    margin-left: 2em;
    position: relative;
    border: 5px solid var(--theme-color1);
}

/** Table **/

.copy.from-db table {
    border-color: transparent !important;
    color: #6c757d;
}

.copy.from-db table strong {
    display: block;
    background-color: #f7f7f7;
    padding: 0.5em;
    color: black;
}

/** Header **/

header {
    padding: 1em 0;
    top: 0;
    z-index: 3;
    color: white;
    background-color: black;
    margin-bottom: 1em;
}

.is_frontpage header {
    color: white;
    position: sticky;
    margin-bottom: 0;
    background-color: transparent;
    transition: all;
    transition-duration: 0.5s;
}

.is_frontpage header a {
    color: white;
    transition: all;
    transition-duration: 0.5s;
}

.is_frontpage header.collapse {
    color: black;
    background-color: white;
    box-shadow: 0 1px 8px 3px rgb(0 0 0 / 8%);
}

.is_frontpage header.collapse a { color: black; }

/** Hero **/

#hero {
    height: 100vh;
    margin-top: -90px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 83%, 50% 100%, 0 83%);
}

#hero::before {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    background-color: rgba(0,0,0,0.6);
    z-index: 1;
}

#hero #mouse {
    color: white;
    position: absolute;
    left: 0;
    z-index: 2;
    bottom: 40px;
    font-size: 40px;
    left: calc(50% - 20px);
    cursor: pointer;
    animation: bounce 2s infinite linear;
}

@keyframes bounce {
    0%,20%,53%,80%,to {
        -webkit-animation-timing-function: cubic-bezier(.215,.61,.355,1);
        animation-timing-function: cubic-bezier(.215,.61,.355,1);
        -webkit-transform: translateZ(0);
        transform: translateZ(0)
    }

    40%,43% {
        -webkit-animation-timing-function: cubic-bezier(.755,.05,.855,.06);
        animation-timing-function: cubic-bezier(.755,.05,.855,.06);
        -webkit-transform: translate3d(0,-30px,0);
        transform: translate3d(0,-30px,0)
    }

    70% {
        -webkit-animation-timing-function: cubic-bezier(.755,.05,.855,.06);
        animation-timing-function: cubic-bezier(.755,.05,.855,.06);
        -webkit-transform: translate3d(0,-15px,0);
        transform: translate3d(0,-15px,0)
    }

    90% {
        -webkit-transform: translate3d(0,-4px,0);
        transform: translate3d(0,-4px,0)
    }
}

#hero-content {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    height: 100vh;
    width: 100%;
    z-index: 2;
    flex-direction: column;
}

#hero-content p {
    margin-bottom: 0;
    font-size: 2em;
}

#hero-content p:nth-of-type(2) {
    font-size: 3em;
    margin: 0.5em 0;
}

#hero #title { color: var(--theme-color1); }

.marquee {
    color: rgba(255,255,255,0.8);
    text-align: center;
    max-width: 600px;
}

#PhotoBox, .preview_PhotoBox {
    height: 100%;
    padding-bottom: 0;
}

/** Timelines **/

.resume-items .item {
    border-left: 1px solid var(--theme-color1);
    padding-left: 2em;
    position: relative;
    margin-left: 3px;
}

.resume-items .item > * {
    position: relative;
    top: -3px;
}

.resume-items .item label {
    font-size: 0.8em;
    opacity: 0.8;
    font-weight: 300;
    position: relative;
}

.resume-items .item label i {
    font-size: 1em;
    color: var(--theme-color1);
}

.resume-items .item h2 { margin-top: 0.5em; }

.resume-items .item h2 span {
    font-size: 0.6em;
    font-weight: normal;
    position: relative;
    top: -2px;
}

.resume-items .item h2 span:first-of-type { color: var(--theme-color1); }

.resume-items .item:not(:last-of-type) { padding-bottom: 2em; }

.resume-items .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 12px;
    height: 12px;
    background-color: white;
    border: 2px solid var(--theme-color1);
    border-radius: 100%;
}

.resume-items .item p {
    color: #6c757d;
    font-weight: 300;
}

/** Skills **/

.skills + .skills { margin-top: 2em; }

.bar {
    background-color: #ddd;
    height: 3px;
    border-radius: 5px;
    position: relative;
}

.bar:after {
    content: '';
    background-color: var(--theme-color1);
    height: 3px;
    position: absolute;
    top: 0;
    left: 0;
    transition: all;
    transition-duration: 3s;
    width: 0;
}

#skills.active .bar-30:after { width: 30%; }

#skills.active .bar-50:after { width: 50%; }

#skills.active .bar-70:after { width: 70%; }

#skills.active .bar-80:after { width: 80%; }

#skills.active .bar-90:after { width: 90%; }

#skills.active .bar-99:after { width: 99%; }

/** Services **/
/** Testimonial **/

.service { cursor: pointer; }

.service,
.testimonial {
    margin-top: 2em;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    padding: 2em;
    border: 5px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 0px 25px rgb(0 0 0 / 7%);
    font-size: 0.8em;
    color: black;
}

.service i,
.testimonial i {
    font-size: 3em;
    color: var(--theme-color1);
    background-color: #f8f9fa;
    width: 80px;
    height: 80px;
    display: block;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 0.5em;
}

.service p,
.testimonial p {
    color: #6c757d;
    transition: all;
    transition-duration: 0.5s;
}

.service:hover p { color: rgba(255,255,255,0.8); }

/** Portfolio **/

#portfolios {
    margin-left: -15px;
    margin-right: -15px;
    justify-content: center;
}

.portfolio {
    margin-top: 2em;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0px 25px rgb(0 0 0 / 7%);
    font-size: 0.8em;
    margin: 2em 15px;
    width: 255px;
    color: black;
}

.portfolio .img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 150px;
    background-size: cover !important;
    background-position: center center !important;
}

.portfolio h2 {
    padding: 1em 1em 0.5em 1em;
    font-size: 1.4em;
}

.portfolio.expand:hover {
    background-color: white;
    color: var(--theme-color1);
}

/** Footer **/

#call-to-action {
    margin-top: 40px;
    color: white;
    padding: 2em 0;
    background-color: var(--theme-color1);
}

#call-to-action h2 { margin: 0; }

#call-to-action .custom_button { background-color: transparent; }

#call-to-action .custom_button:hover, #call-to-action .custom_button:active {
    background-color: white;
    color: var(--theme-color1);
}

footer {
    padding: 1em;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .is_frontpage #about::before,
    .is_frontpage #about:after { content: none; }

    nav a { font-size: 0.8em; }

    #hero { margin-top: -150px; }

    #hero-content {
        padding: 0 1em;
        text-align: center;
    }

    article { padding: 0 1em; }

    .flex { flex-direction: column; }

    .gap { gap: 2em; }

    .portfolio {
        margin-left: auto;
        margin-right: auto;
    }

    .copy.from-db img { width: 150px; }

    .copy.from-db table {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}