/*** 
======================
Variables
======================
***/

:root {
    color-scheme: light only;
    --primary-color: #1B2430;
    --primary-color-tint: rgba(27, 36, 48, 0.8);
    --secondary-color: #76fac7;
    --secondary-color-tint: rgba(118, 250, 199, 0.1);
    --slate: #9eb0c8;
    --slate-light: #b9c6d8;
    --slate-lighter: #dce2eb;

    --transition: all 0.25s ease;

    --font-main: 'Inter', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
/*
    --svg-arrow: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 80' stroke='rgba%28118, 250, 199, 0.55%29' stroke-linejoin='join' ";
    data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28118, 250, 199, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e
*/
}

/*** 
======================
General
======================
***/
body {
    color: var(--slate);
    background-color: var(--primary-color);
    font-family: var(--font-main);
	font-size: 20px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }
}

a {
    position: relative;
    text-decoration: none;
    outline: none;
    color: var(--slate-lighter);
    transition: var(--transition);
}

a.url:hover,
a.url:focus,
a.url:active {
    text-decoration: none;
    outline: none;
    color: var(--secondary-color);
}

a.url::before {
    content: '';
    background-color: var(--secondary-color);
    position: absolute;
    left: 0;
    bottom: 0px;
    height: 1px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

a.url:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

a:focus {
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--slate-light)
}

section:not(:first-of-type) .container > .row {
    padding-top: 100px;
    padding-bottom: 100px;
}

/*section:not(:first-of-type):not(:last-of-type) .container::after .container > div > div {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}*/

/** Sections Headers **/
/*section:not(:first-of-type) .header {
    text-align: center;
    font-weight: 800;
    margin-bottom: 40px;
    box-shadow: inset 0px -3px 5px 0px rgba(0,0,0,0.6);
    padding: 5px 0 5px 0;
}*/

section:not(:first-of-type) .header {
    font-weight: 600;
    margin-bottom: 40px;
    padding: 5px 0 5px 0;
    overflow: hidden;
    white-space: nowrap;
}

section:not(:first-of-type) .header h1:before {
    color: var(--secondary-color);
    content: "> ";
}

section:not(:first-of-type) .header h1:after {
    background-color: var(--secondary-color);
    content: "";
    display: inline-block;
    height: 1px;
    position: relative;
    vertical-align: middle;
    width: 100%;
    left: 0.5em;
    /*margin-right: -40%;*/
}

/*section:not(:first-of-type) .header h1:after {
    content: "";
    box-sizing: border-box;
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 50%;
    transform: translate(50%,-50%);
    border-bottom: 1px solid var(--secondary-color);
    margin-top: 5px;
    transition: border-width 0.1s ease-in-out;
    border-radius: 3px;
}

section:not(:first-of-type) .header h1:hover:after {
    border-width: 3px;
}*/

/*section:not(:first-of-type) h2 {
    overflow: hidden;
    padding-left: 10%;
    font-weight: 600;
}

section:not(:first-of-type) h2:before {
    content: "";
    color: var(--secondary-color);
}

section:not(:first-of-type) h2:before, section:not(:first-of-type) h2:after {
    background-color: var(--secondary-color);
    content: "";
    display: inline-block;
    height: 1px;
    position: relative;
    vertical-align: middle;
}

section:not(:first-of-type) h2:before {
    width: 10%;
    right: 0.5em;
    margin-left: -10%;
}

section:not(:first-of-type) h2:after {
    width: 40%;
    left: 0.5em;
    margin-right: -40%;
}*/


/** Button **/
.my-btn{
    position: relative;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
    overflow: hidden;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 1;
}

.btn-style-one {
    position: relative;
    text-align: center;
    white-space: nowrap;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-secondary);
    font-size: 15px;
    line-height: 1;
    font-weight: 400;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    text-decoration: none;
}

button.btn-style-one:hover:enabled{
    color: var(--secondary-color);
    background-color: var(--secondary-color-tint);
}

a.btn-style-one:hover{
    color: var(--secondary-color);
    background-color: var(--secondary-color-tint);
}

/** navbar **/
.navbar {
    transition: var(--transition);
    padding-top: 1.5rem;
}

.navbar .navbar-brand {
    color: var(--secondary-color);
    transition: var(--transition);
}

.navbar .navbar-brand.inOverlay {
    color: var(--primary-color);
}

.navbar.fixed-top.scrolled {
    background-color: var(--primary-color-tint) !important;
    padding-top: 0.5rem;
}

.navbar-collapse {
    font-family: var(--font-secondary);
    font-size: 14px;
}

/*.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28118, 250, 199, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}*/

.nav-item .nav-link.active {
    color: var(--secondary-color);
}
.nav-item .nav-link.active:before {
    content: "> ";
}

/** mobile navbar **//*
@media (max-width: 768px) {
    .navbar {
        transition: none;
        background-color: var(--primary-color-tint) !important;
        padding-top: 0.5rem;
    }

    .navbar-collapse {
        background: linear-gradient(to bottom, #181d23 0%, #202736 80%);
        height: 100vh;
        width: 100vw;
    }
    .navbar-collapse.collapsing {
        -webkit-transition: none;
        transition: none;
    }

    .navbar-collapse.collapse:not(.show) {
        display: block !important;
    }

    .navbar-collapse:not(.show) {
        animation: fade-out 600ms forwards;
    }

    @keyframes fade-out {
        0% {
          opacity: 1;
          z-index: 999;
        }
        50% {
          opacity: 1;
          z-index: 999;
        }
        100% {
          opacity: 0;
          z-index: -1;
        }
    }

    .navbar-collapse.show {
        animation: fade-in 300ms forwards;
    }

    @keyframes fade-in {
        from {
          opacity: 0;
          z-index: -1;
        }
        to {
          opacity: 1;
          z-index: 999;
        }
    }

    .navbar-collapse > .overlay {
        display: block;
        position: absolute;
        right: 0;
        height: 100vh;
        width: 100vw;
        background: #fafafa;
        z-index: -1;
    }

    .navbar-collapse.show > .overlay {
        animation: overlay-slide-in 300ms forwards 300ms;
    }

    @keyframes overlay-slide-in {
        from {
            width: 100vw;
        }
        to {
            width: 0;
        }
    }

    .navbar-collapse:not(.show) > .overlay{
        animation: overlay-slide-out 300ms forwards;
    }

    @keyframes overlay-slide-out {
        from {
            width: 0;
            left: 0;
        }
        to {
            width: 100vw;
            left: 0;
        }
    }
}*/

/*** 
======================
Mobile Navbar
======================
***/

.mobile-nav {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(to bottom, #181d23 0%, #202736 80%);
    /*border: none;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.mobile-nav.deactive {
    animation: fade-out 600ms forwards;
}

@keyframes fade-out {
    0% {
      opacity: 1;
      z-index: 999;
    }
    50% {
      opacity: 1;
      z-index: 999;
    }
    100% {
      opacity: 0;
      z-index: -1;
    }
}

.mobile-nav.active {
    animation: fade-in 300ms forwards;
}
  
@keyframes fade-in {
    from {
        opacity: 0;
        z-index: -1;
    }
    to {
        opacity: 1;
        z-index: 999;
    }
}

.mobile-nav .nav-items {
    text-align: center;
}

.mobile-nav ul {
    color: var(--slate-light);
    list-style-type: none !important;
    font-size: 3rem;
    padding-left: 0;
}

.mobile-nav > #mparticles-js {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mobile-nav > .overlay {
    position: absolute;
    right: 0;
    height: 100vh;
    width: 100vw;
    background: var(--secondary-color) !important;
    z-index: 2;
}

.mobile-nav.active > .overlay {
    animation: overlay-slide-in 300ms forwards 300ms;
}
  
@keyframes overlay-slide-in {
from {
    width: 100vw;
}
to {
    width: 0;
}
}

.mobile-nav > .overlay {
animation: overlay-slide-out 300ms forwards;
}

@keyframes overlay-slide-out {
from {
    left: 0;
    width: 0;
}
to {
    left: 0;
    width: 100vw;
}
}

.mobile-nav .nav-items {
    z-index: 1;
}

/** Mobile Nav Toggler **/
.mobile-nav-toggler {
    display: none;
    position: relative;
    height: 22px;
    width: 30px;
    outline: none;
}
  
.mobile-nav-toggler span,
.mobile-nav-toggler span::before,
.mobile-nav-toggler span::after {
    position: absolute;
    content: '';
    width: 30px;
    height: 3px;
    background: #fafafa;
    transition: 500ms cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-toggler span {
    position: relative;
    display: block;
    top: 50%;
    transform: translate(0,-50%);
}

.mobile-nav-toggler span::before {
    top: -8px;
}

.mobile-nav-toggler span::after {
    top: 8px;
}

.mobile-nav-toggler:hover > span,
.mobile-nav-toggler:hover > span::before,
.mobile-nav-toggler:hover > span::after {
    background: var(--secondary-color);
}

.mobile-nav-toggler.active > span  {
    background: transparent;
}

.mobile-nav-toggler.active > span::before  {
    transform: rotate(-225deg);
    top: 0px;
}

.mobile-nav-toggler.active > span::after  {
    transform: rotate(225deg);
    top: 0px;
}

@media (max-width: 768px) {
    .navbar {
        background-color: var(--primary-color-tint) !important;
        padding-top: 0.5rem;
    }

    .mobile-nav-toggler {
        display: block;
    }
}

/*** 
======================
Home Section
======================
***/

#home {
    background: linear-gradient(to bottom, #181d23 0%, #202736 80%);
    height: 100vh;
    min-height: 400px;
    box-shadow: 0px 4px 3px 0px rgba(0,0,0,0.2);
}

#home #particles-js {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 400px;
    z-index: 1;
}

#home .col-12 {
    z-index: 2;
}

#home h1 {
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    font-size: clamp(14px, 5vw, 16px);
    font-weight: 400;
}

#home h2 {
    color: var(--slate-light);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    line-height: 1.1;
}

#home p {
    font-size: 18px;
    max-width: 540px;
}

#home p > span {
    color: var(--secondary-color);
}

#home ul.socials,
#home ul.socials li {
    list-style: none;
    padding: 0;
    margin: 0;
}

#home ul.socials {
    margin-top: 5px;
    display: flex;
}

#home ul.socials li a {
    position: relative;
    top: 0;
    margin-right: 10px;
    color: var(--secondary-color);
    transition: var(--transition);
}

#home ul.socials li a:hover {
    top: -3px;
    margin-right: 10px;
    color: var(--secondary-color);
}

/*** 
======================
About Section
======================
***/

/*#about img {
    max-width: 80%;
    border: 1px solid var(--secondary-color) !important;
}*/

#about img {
    max-width: 80%;
    -webkit-box-shadow: 0px 0px 5px rgba(64, 79, 104, 0.5);
    box-shadow: 0px 0px 5px rgba(64, 79, 104, 0.5);
}

/*#about ul {
    list-style: none;
}

#about li:before {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-style: solid;
    border-width: 0 0 2px 2px;
    content: "";
    display: block;
    height: 6px;
    width: 6px;

    position: relative;
    top: 18px;
    left: -15px;

    transform: rotate( 225deg );
    -webkit-transform: rotate( 225deg );
}*/

#about ul, #about li {
    list-style: none;
    padding: 0;
    margin: 0;
}

#about ul {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
}

#about ul li {
    text-align: center;
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: clamp(14px, 5vw, 16px);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--slate-light);
    line-height: 20px;
    padding: 5px 20px;
    border-radius: 20px;
    margin-top: 5px;
    margin-left: 5px;
    margin-right: 5px;
    flex-grow: 1;
    cursor: default;
}

#about ul li:hover {
    -webkit-box-shadow: 0px 0px 5px rgba(64, 79, 104, 0.5);
    box-shadow: 0px 0px 5px rgba(64, 79, 104, 0.5);
}

/*** 
======================
Projects Section
======================
***/

#projects .carousel {
    border-radius: 5px;
    overflow: hidden;
}

#projects .project .carousel-title {
    z-index: 2;
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    background: var(--primary-color-tint);
    text-align: center;
}

#projects .project .carousel-title h5 {
    color: var(--secondary-color);
    font-family: var(--font-secondary);
}

/*** 
======================
Contact Section
======================
***/

#contact form {
    position: relative;
}

#contact form .overlay {
    display: none;
    background-color: rgba(0, 0, 0, 0);
    transition: var(--transition);
}

#contact form .overlay .spinner-grow {
    display: none;
    color: var(--secondary-color);
}

#contact form.loading .overlay .spinner-grow {
    display: block;
}

#contact form.loading .overlay,
#contact form.response .overlay {
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}

#contact form .feedback {
    display: none;
}

#contact form .feedback div {
    width: 100%;
}

#contact form.response .feedback {
    display: block;
}

#contact form .close {
    display: none;

    position: absolute;
    top: 5px;
    left: 5px;
    color: var(--secondary-color);
    cursor: pointer;
}

#contact form.response .close {
    display: block;
}


#contact form button {
    z-index: auto;
}

input, textarea {
    border: none;
    padding: 1rem;
    font-family: 'Overlock', Arial, Helvetica, sans-serif;
    width: 100%;
    height: 40%;
    transition: 200ms;
}

input[type="text"],
input[type="email"],
input[type="text"]:not(output):not(:focus),
input[type="email"]:not(output):not(:focus),
textarea {
    border-bottom: 1px solid var(--slate-light);
    background: transparent;
    color: #fafafa;
    /*font-size: clamp(14px, 5vw, 16px);*/
    box-shadow: none;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="text"]:not(output):focus,
input[type="email"]:not(output):focus,
textarea:focus {
    border-bottom: 1px solid var(--secondary-color);
}

input[name="nickname"] {
	display: none;
}

textarea {
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
}

::placeholder {
    color: var(--slate-light);
}

/*** 
======================
Footer
======================
***/

#footer {
    padding-top: 0;
}