/***** FONTS *****/
@font-face {
    font-family: 'PoppinsLocal';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'PoppinsLocal-bold';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'PoppinsLocal-bold-italic';
    src: url('../fonts/Poppins-BoldItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'JetBrainsLocal';
    src: url('../fonts/JetBrainsMono-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'JetBrainsLocal-bold';
    src: url('../fonts/JetBrainsMono-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'JetBrainsLocal-italic';
    src: url('../fonts/JetBrainsMono-Italic.ttf') format('truetype');
}


/***** GLOBAL *****/
html,
body {
    width: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}
body {
    font-family: PoppinsLocal;
    background-color: #F5F5F9;
    color: #373E49;
    font-size: 20px;
}
b, strong {
    font-family: PoppinsLocal-bold;
    font-weight: normal; 
}
a {
    transition: 0.3s ease-in-out;
}
a:hover {
    color: #0077b6;
}
h1 {
    font-family: PoppinsLocal-bold-italic;
    font-size: 62px;
    position: relative;
    width: fit-content;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px #373e4950;
    z-index: 99;
}
h1::after {
    content: "";
    display: block;
    position: relative;
    height: 20px;
    width: 0;
    transform: skewX(140deg);
    bottom: 0.4em;
    left: 0.2em;
    z-index: -1;
}
h1.animate__underline::after {
    animation: underline 0.5s ease-in-out both;
}
@keyframes underline {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}
h2 {
    font-family: PoppinsLocal-bold;
    font-size: 62px;
}
h3 {
    font-family: PoppinsLocal;
    font-size: 28px;
}
h5 {
    font-family: PoppinsLocal-bold-italic;
    font-size: 20px;
}

.animated {
    opacity: 0 !important;
}
.hidden {
    display: none;
}
.modal-open {
  padding-right: 0px !important;
}
.text-bubble {
    display: inline-block;
    border-radius: 50px;
    padding: 0.1em;
    padding-left: 1em;
    padding-right: 1em;
    margin-left: 0.25em;
    margin-right: 0.25em;
    margin-bottom: 0.5em;
    min-width: 125px;
    box-shadow: 0 0 15px #373E4980;
    text-align: center;
    font-size: 16px;
    color: #F5F5F9;
}

/***** HEADER *****/
#header-nav {
    background-color: #1D1F22;
    padding-top: 1rem;
    padding-bottom: 1rem;
    /* box-shadow: 0 0 15px #f5f5f980; */
    position: absolute;
    z-index: 100;
    width: 100%;
    top: 0;
}
#header-nav .nav-item {
    min-width: 10em;
    display: flex;          
    align-items: center;
    scroll-behavior: smooth;

}
#header-nav .nav-link {
    color: #F5F5F9 !important;
    letter-spacing: 2px;
    margin-left: auto;
    margin-right: auto;
}
#header-nav .nav-link:hover {
    color: #0077b6;
}
.navbar-logo {
    width: 100px;
}
#navbar-logo__desktop {
    margin-left: 1.5em;
    margin-right: 1.5em;
    display: block;
}
#navbar-logo__resize {
    display: none;
}
#about-link:hover {
    color: #6279CB !important;
}
#portfolio-link:hover {
    color: #D73D4F !important;
}
#contact-link:hover {
    color: #9276B5 !important;
}
#linkedin {
    background-image: url('../media/in.webp');
    width: 30px;
    height: 30px;
    background-size: cover;
}
#linkedin:hover {
    background-image: url('../media/in-hover.webp');
}




/***** DESIGN/DEVELOPMENT *****/
.des-dev {
    margin-top: 132px;
    position: relative;
    box-shadow: 0 0 15px #373E4980;
}
.des-dev .row {
    height: 100%;
}
.des-dev h2 {
    text-align: center;
}

/* DESIGN */
.des {
    background: linear-gradient(243.05deg, #E085D8 -5.14%, #6A45FF 90.89%);
    overflow: hidden;
    position: relative;
    display: flex;
    width: 100%;
    color: #F5F5F9;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 80vh;
}
.text-bubble--intro {
    background-color: #fff;
    color: #1C2431;
    box-shadow: 0 0 15px #ffffff8b;
}
#des-text.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 0.5s both;
}
#des-pill1.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 1s both;
}
#des-pill2.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 1s both;
}

.bg-poly {
    position: absolute;
    width: initial;
    height: initial;
}
#bg-poly1 {
    /* background-image: url("../media/floating-vector1.png"); */
    left: 70%;
    top: 80%;
}
#bg-poly2 {
    left: 75%;
    top: 45%;
}
#bg-poly3 {
    left: 20%;
    top: 25%;
}
#bg-poly4 {
    left: -15%;
    top: -20%;
}
#bg-poly5 {
    left: 50%;
    top: -20%;
}
#bg-poly6 {
    left: -15%;
    top: 65%;
}
/* base floating motion */
@keyframes floaty {
    0%   { transform: translate(-50%, -50%) translate(0px, 0px); }
    50%  { transform: translate(-50%, -50%) translate(0px, -8px); }
    100% { transform: translate(-50%, -50%) translate(0px, 0px); }
}

/* DEVELOPMENT */
.dev {
    background: linear-gradient(rgba(255, 255, 255, 0.2) -128.7%, rgba(0, 0, 0, 0.2) 57.79%), #1C2431;
    color: #F5F5F9;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 80vh;
    /* clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); */
}
.red {
    color: #D73D4F
}
.dev-content {
    text-align: center;
    min-width: 100%;
}
#dev-title {
    --caret: #f5f5f996;
}
#dev-title::before {
    content: "";
    font-family: JetBrainsLocal-bold;
}
#dev-title.animate__typewriter::before {
    animation: typing 2s 1.5s linear both;
}
#dev-title::after {
    content: "";
    border-right: 10px solid var(--caret);
    animation: blink 0.75s linear infinite;
}
.dev-text {
    font-family: JetBrainsLocal;
}
#dev-divider {
    height: 1px;
    border: none;
    background: radial-gradient(circle at center, #fff 0%, rgba(255,255,255,0) 75%);
    background-repeat: no-repeat;
    background-size: 75% 100%;
    background-position: center;
}
.char {
  will-change: transform;
}


#dev-text1.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 3.5s linear both;
}
#dev-divider.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 3.75s linear both;
}
#dev-text2.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 4s linear both;
}
@keyframes typing {
  0%    {content: "";}
  7.6%  {content: "<";}
  15.2% {content: "<d";}
  22.8% {content: "<de";}
  30.4% {content: "<dev";}
  38%   {content: "<deve";}
  45.6% {content: "<devel";}
  53.2% {content: "<develo";}
  60.8% {content: "<develop";}
  68.4% {content: "<developm";}
  76%   {content: "<developme";}
  83.6% {content: "<developmen";}
  91.2% {content: "<development";}
  98.8% {content: "<development>";}
  100%  {content: "<development>";}
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes fadeInDelay {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}



/***** ABOUT *****/
#about-title::after {
    background-color: #6279CB;
}
#about-pic {
    border-radius: 50%;
    box-shadow: 0 0 15px #373E4980;
    width: 200px;
    height: 200px;
    display: block;
    object-fit: cover;
}
#about-text {
    width: 80%;
}
.skill-container {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.text-bubble--skills {
    background: linear-gradient(180deg, #C97B33 0%, #CC8F34 100%);
}
.text-bubble--languages {
    background: linear-gradient(180deg, #6279CB 0%, #9276B5 100%);
}
#about-pic.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 0.2s both;
}
#about-text.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 0.4s both;
}
#skill1.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 0.2s both;
}
#skill2.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 0.4s both;
}
#skill3.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 0.6s both;
}
#language1.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 0.8s both;
}
#language2.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 1s both;
}
#language3.animate__fadeInDelay {
    animation: fadeInDelay 0.5s 1.2s both;
}




/***** PORTFOLIO *****/
#portfolio {
    background: linear-gradient(rgba(255, 255, 255, 0.2) -128.7%, rgba(0, 0, 0, 0.2) 57.79%), #1C2431;
    box-shadow: 0 0 15px #f5f5f980;
    z-index: 99;
}
#portfolio-title {
    color: #F5F5F9;
}
#portfolio-title::after {
    background-color: #D73D4F;
}

#portfolio a {
    text-decoration: none;
}
.info-box {
    position: relative;
    width: 100%;
    border-radius: 5px;
    background-color: #F5F5F9;
    margin-bottom: 1em;
    margin-top: 1em;
    -moz-box-shadow: 0 0 15px #aaa;
    -webkit-box-shadow: 0 0 15px #aaa;
    box-shadow: 0 0 15px #aaa;
    border-radius: 5px;
    z-index: 99;
}
.img-sec {
    overflow: hidden;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom: 0;
    transition: 0.5s ease;
    padding: 3px;
}
.img-sec img {
    width: 100%;
    object-fit: cover;
    height: 200px;
    transition: transform .5s ease;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.title-sec {
    position: relative;
    text-align: center;
    padding: 0.5em;
    letter-spacing: 0.1em;
    font-size: 22px;
    font-weight: bold;
    transition: .5s ease;
    background: #fff;
    color: #D73D4F;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: 99;
}
.title-sec::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #F74776 0%, #5358D5 100%);
    opacity: 0;
    transition: opacity 0.5s;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    pointer-events: none;
}
.info-box:hover .title-sec {
    letter-spacing: 0.15em;
    color: #F5F5F9;
}
.info-box:hover .title-sec::after {
    opacity: 1;
}
.info-box:hover .img-sec img {
  transform: scale(1.1);
}

.modal-body {
    background-color: #F5F5F9;
}
.modal-header .close {
    color: #D73D4F;
}
.modal-port h5 {
    margin-bottom: 0;
}
.modal-port .carousel {
    -moz-box-shadow: 0 0 15px #aaa;
    -webkit-box-shadow: 0 0 15px #aaa;
    box-shadow: 0 0 15px #aaa;
}
.modal-port .carousel-item, .modal-port .carousel {
    height: 400px;
}
.modal-port .carousel-item {
    object-fit: cover;
}
.modal-port .carousel-item img {
    object-fit: cover;
    object-position: center center;
    height: 100%;
    width: inherit;
}
.modal-port .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E") !important;
    filter: drop-shadow(0px 0px 5px #fff);
}
.modal-port .carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E") !important;
    filter: drop-shadow(0px 0px 5px #fff);
}
.modal-port .carousel-indicators li {
    background-color: #000;
    filter: drop-shadow(0px 0px 5px #fff);
}
#portfolio-1.animate__fadeInDelay {
    animation: fadeInDelay 0.75s 0.3s both;
}
#portfolio-2.animate__fadeInDelay {
    animation: fadeInDelay 0.75s 0.6s both;
}
#portfolio-3.animate__fadeInDelay {
    animation: fadeInDelay 0.75s 0.9s both;
}
#portfolio-4.animate__fadeInDelay {
    animation: fadeInDelay 0.75s 0.3s both;
}
#portfolio-5.animate__fadeInDelay {
    animation: fadeInDelay 0.75s 0.6s both;
}





/***** CONTACT *****/
#contact {
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
  position: relative;
}
#contact-title::after {
    background-color: #9276B5;
}
.contact-text {
    display: block;
    position: relative;
}
#contact .info-box {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), linear-gradient(180deg, #9276B5 0%, #6279CB 100%);
    box-shadow: 0 0 15px #9276B5;
    min-width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
#contact-box {
    color: #F5F5F9;
}
#particles-js{ 
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #F5F5F9;
    background-image: url("");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    color: #000;
} 
.btn-submit {
    background-color: #e2c96f;
    border: 1px solid #e2c96f;
    box-shadow: 0px 0px 15px #F5F5F9;
    border-radius: 50px;
    width: 200px;
}
.btn-submit:hover {
    background-color: #F5F5F9;
    color: #e2c96f;
    box-shadow: 0px 0px 15px #e2c96f;
}
#contact h4 {
    text-align: center;
    font-weight: bold;
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: #F5F5F9;
    animation: l15 1s infinite linear;
}
.loader::before,
.loader::after {    
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
    animation: l15 2s infinite;
}
.loader::after {
    margin: 8px;
    animation-duration: 3s;
}
@keyframes l15{ 
    100%{transform: rotate(1turn)}
}


/***** RESIZE: LG *****/
@media (max-width: 992px){
    body {
        font-size: 16px;
    }
    h1 {
        font-size: 60px;
    }
    h1::after {
        height: 12px;
    }
    h5 {
        font-size: 16px;
    }
    .text-bubble {
        min-width: 120px;
        font-size: 14px;
    }
    

    #dev-title.animate__typewriter::before {
        animation: typing 2s linear both;
    }
    #dev-text1.animate__fadeInDelay {
        animation: fadeInDelay 0.5s 2s linear both;
    }
    #dev-divider.animate__fadeInDelay {
        animation: fadeInDelay 0.5s 2.25s linear both;
    }
    #dev-text2.animate__fadeInDelay {
        animation: fadeInDelay 0.5s 2.5s linear both;
    }

    #about-pic.animate__fadeInDelay, #about-text.animate__fadeInDelay {
        animation: fadeInDelay 0.5s 0s both;
    }
    #skill1.animate__fadeInDelay {
        animation: fadeInDelay 0.5s 0.2s both;
    }
    #skill2.animate__fadeInDelay {
        animation: fadeInDelay 0.5s 0.4s both;
    }
    #skill3.animate__fadeInDelay {
        animation: fadeInDelay 0.5s 0.6s both;
    }
    #language1.animate__fadeInDelay {
        animation: fadeInDelay 0.5s 0.8s both;
    }
    #language2.animate__fadeInDelay {
        animation: fadeInDelay 0.5s 1s both;
    }
    #language3.animate__fadeInDelay {
        animation: fadeInDelay 0.5s 1.2s both;
    }

    .info-box {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .modal-port .carousel-item, .modal-port .carousel {
        height: 300px;
    }

    #portfolio-1.animate__fadeInDelay {
        animation: fadeInDelay 0.75s 0.1s both;
    }
    #portfolio-2.animate__fadeInDelay {
        animation: fadeInDelay 0.75s 0.1s both;
    }
    #portfolio-3.animate__fadeInDelay {
        animation: fadeInDelay 0.75s 0.1s both;
    }
    #portfolio-4.animate__fadeInDelay {
        animation: fadeInDelay 0.75s 0.1s both;
    }
    #portfolio-5.animate__fadeInDelay {
        animation: fadeInDelay 0.75s 0.1s both;
    }
}



/***** RESIZE: MD *****/
@media (max-width: 768px){
    .des-dev {
        margin-top: 107px;
    }
    .bg-poly {
        animation: floaty 6s ease-in-out infinite;
    }
    .animate__squareCircle {
        animation: squareToCircleResized 2s alternate both;
    }

    .about {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    #about-pic {
        height: 150px;
        width: 150px;
    }
    #about-text {
        width: 100%;
    }
    .skill-container {
        margin-left: initial;
    }
    #particles-js{ 
        opacity: 0.5;
    }
}



/***** RESIZE: NAVBAR *****/
@media (max-width: 767px){
    #navbar-logo__desktop {
        display: none;
    }
    #navbar-logo__resize {
        display: block;
        width: 75px;
    }
    .navbar-collapse {
        padding-top: 0.5em;
    }
    #header-nav .nav-link { 
        margin-left: initial;
    }
}

/***** RESIZE: SM *****/
@media (max-width: 576px){ 
    h1 {
        font-size: 36px;
    }
    h2 {
        font-size: 36px;
    }
    h3 {
        font-size: 18px;
    }
    .dev, .des {
        height: 70vh;
    }
    .modal-port .carousel-item, .modal-port .carousel {
        height: 200px;
    }
    .bg-poly {
        transform: scale(80%);
    }
    #bg-poly1 {
        /* background-image: url("../media/floating-vector1.png"); */
        left: 65%;
        top: 80%;
    }
    #bg-poly2 {
        left: 85%;
        top: 45%;
    }
    #bg-poly3 {
        left: 20%;
        top: 35%;
    }
    #bg-poly4 {
        left: 0%;
        top: 0%;
    }
    #bg-poly5 {
        left: 100%;
        top: -10%;
    }
    #bg-poly6 {
        left: -35%;
        top: 85%;
    }
}
