*:pre:before,
*::after {
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}
* {
    margin: 0 auto;
    padding: 0 auto;
    box-sizing: border-box;
    vertical-align: baseline;
}
body {
    min-height: 100vh;
    max-width: 100%!important;
    position: relative;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: linear-gradient(to bottom, var(--white-primary) 23%, var(--gray));
}
a {
    text-decoration: none;
}
h4 {
    font-size: 1em;
}
body::-webkit-scrollbar {
    display: none;
}
@media (min-width: 992px) and (max-width: 1200px) {
    .animated-text {
        width: 85%;
        transform: translateX(30%) !important;
    }
}
@media (min-width: 768px) and (max-width: 992px) {
    .animated-text {
        width: 90%;
        transform: translateX(23%)!important;
    }
}
@media (min-width: 576px) and (max-width: 768px) {
    .animated-text {
        width: 95%;
        transform: translateX(17%)!important;
    }
    .animated-text ul {
        transform: translateY(-2%)!important;
    }
    .project {
        background: var(--primary);
    }
    .skill p {
        font-weight: 380 !important;
    }
    .social {
        transform: translateX(3%) !important;
        text-align: center !important;
    }
}
@media (min-width: 390px) and (max-width: 576px) {
    .animated-text h3 {
        font-size: 1.5em!important;
    }
    .animated-text {
        font-size: 0.8em!important;
        /* wrap: no-wrap; */
        width: 100%!important;
        transform: translateX(16%)!important;
    }
    .animated-text ul {
        transform: translateY(-4%)!important;
    }
    .overlay {
        top: -45% !important;
        left: 33% !important;
    }
    /* .project { */
    /*     background: linear-gradient(to bottom, var(--secondary), var(--primary)) !important; */
    /* } */
    /* .negative { */
    /*     background: linear-gradient(to bottom, var(--primary), var(--secondary)) !important; */
    /* } */
    /* .project-img { */
    /*     box-shadow: rgba(255, 255, 255, 0.25) 0px 54px 55px, rgba(255, 255, 255, 0.12) 0px -12px 30px, rgba(255, 255, 255, 0.12) 0px 4px 6px, rgba(255, 255, 255, 0.17) 0px 12px 13px, rgba(255, 255, 255, 0.09) 0px -3px 5px !important; */
    /* } */
    .skill p {
        font-weight: 350 !important;
    }
    .social {
        text-align: center !important;
        transform: translateX(3%) !important;
    }
}
@media (max-width: 390px) {
    .animated-text h3 {
        font-size: 1.5em!important;
    }
    .animated-text {
        font-size: 0.7em!important;
        min-width: 100%!important;
        transform: translateX(18%)!important;
        word-wrap: no-wrap!important;
    }
    .animated-text ul {
        font-size: 1em!important;
        transform: translateY(-3%)!important;
    }
    .overlay {
        top: -45% !important;
        left: 35% !important;
    }
    #naslov {
        transform: translate(0, -210%)!important;
    }
    /* .project { */
    /*     background: linear-gradient(to bottom, var(--secondary), var(--primary)) !important; */
    /* } */
    /* .negative { */
    /*     background: linear-gradient(to bottom, var(--primary), var(--secondary)) !important; */
    /* } */
    /* .project-img { */
    /*     box-shadow: rgba(255, 255, 255, 0.25) 0px 54px 55px, rgba(255, 255, 255, 0.12) 0px -12px 30px, rgba(255, 255, 255, 0.12) 0px 4px 6px, rgba(255, 255, 255, 0.17) 0px 12px 13px, rgba(255, 255, 255, 0.09) 0px -3px 5px !important; */
    /* } */
    .social {
        text-align: center !important;
        transform: translateX(3%) !important;
    }
}
/* colors */
:root {
    --primary: #16354D;
    --secondary: #6B99C3;
    --white-primary: #E4E5EA;
    --white-secondary: #D2D2D4;
    --dark: #0C151C;
    --gray: #6C757D;
}
.primary {
    background: var(--primary)!important;
}
.secondary {
    background: var(--secondary);
}
.white-primary {
    background: var(--white-primary);
}
.dark {
    background: var(--dark);
}
.font-blue {
    color: var(--primary);
}
.font-primary {
    color: var(--white-primary);
}
.font-secondary {
    color: var(--white-secondary);
}
.text-warning {
    color: #BFA692 !important;
    font-weight: 600;
}
.text-warning:hover {
    color: var(--white-primary) !important;
}
.text-justify {
    text-align: justify;
}
/* Header */
.font-dark {
    color: var(--dark);
}
#navbar {
    /* max-width: 100%!important; */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    /* background-color: var(--primary); */
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}
/* .navbar img { */
/*     width: 1.5m; */
/*     height: 1.5em; */
/* } */
.navbar img:hover {
    opacity: .8;
}
.navbar a {
    margin: 0;
}
.navbar a:hover {
    color: var(--white-secondary);
    /* opacity: .7; */
}
.navbar a:active {
    color: var(--secondary);
}
.navbar-toggler {
    background: var(--primary);
    border: 1px solid var(--white-primary);
}
.nav-fluid {
    margin-right: 0!important;
}
.nav-fluid .nav-item {
    margin-left: 1em!important;
}
.custom-toggle {
    margin: 0 auto;
}
/* Cover */
#cover {
    background-image: url('../images/cover23.webp');
    background-size: cover;
    max-width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: darken;
    background-position: center center;
    background-attachment: fixed;
    filter: sepia(100%) saturate(900%) hue-rotate(190deg) contrast(45%);
    height: 100vh;
}
#naslov {
    padding-top: 1em;
    padding-bottom: 1em;
    background-color: var(--dark);
    border: 5px solid var(--primary);
    position: relative;
    transform: translate(0, -230%);
    /* box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px; */
    /* box-shadow: rgb(38, 57, 77) 0em 1.5em 2em -1em; */
    box-shadow: -3px 22px 127px -52px rgba(107,153,195,1) inset, -16px -145px 114px -172px rgba(107,153,195,1) inset;
}
.cv {
    align-items: center;
    border: 0.1em solid var(--white-primary);
    left: 50%;
}
.cv:hover {
    background-color: var(--primary);
    cursor: pointer;
    opacity: .8;
}
.cv-a {
    text-decoration: none;
    color: var(--white-secondary);
}
.animated-text {
    /* display: inline; */
    box-sizing: border-box;
    width: 80%;
    transform: translateX(35%);
    margin: 0 auto;
}
.dynamic-text {
    line-height: 2.3em;
}
.dynamic-text li {
    list-style: none;
    position: relative;
    word-wrap: no-wrap;
    overflow: hidden;
    color: var(--secondary);
    top: 0;
    font-size: 1.5em;
    animation: slide 6s steps(3) infinite;
}
.disable {
    display: none;
}
.dynamic-text span {
    position: relative;
}
.dynamic-text li span::after {
    content: "";
    left: 0;
    height: 120%;
    width: 100%;
    background-color: var(--dark);
    position: absolute;
    border-left: 2.3px solid var(--secondary);
    animation: typing 2s steps(17) infinite alternate;
    /* animation-delay: 0s; */
}
@keyframes typing {
    100% {
        left: 100%;
        margin: 0 35px 0 35px;
    }
}
@keyframes slide {
    100% {
        top: -6.9em;
    }
}
/* Shadow & BackToTop */
.back-to-top { 
    display: none;
    position: fixed;
    bottom: 3em;
    right: 3em;
    padding: 0.6em 1em;
    background-color: var(--secondary);
    color: var(--white-primary);
    border: 0.1em solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
}
.back-to-top:hover {
    background-color: var(--primary);
    border: 0.1em solid var(--secondary);
}
.back-to-top:active {
    background-color: var(--secondary);
    border: 0.1em solid var(--primary);
}
.shadow {
    width: 4.6em;
    height: 4.6em;
    position: absolute;
    background-color: rgba(22, 53, 77, 0.4);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 999;
}
/* Skills */
#skills {
    min-height: 60%;
}
.skill {
    min-height: 50%;
    /* max-width: 32%; */
}
.skill:hover {
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    background-color: var(--primary);
}
.skill p {
    font-weight: 460;
}
.skill:hover p {
    color: var(--white-primary);
}
.skill:hover h3 {
    color: var(--white-primary);
}
/* Projects */
/* #projects { */
/*     background: linear-gradient(var(--primary), var(--secondary)); */
/*     -webkit-clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); */
/*     clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); */
/* } */
.project {
    min-height: 60vh;
    position: relative;
    background: linear-gradient(to bottom right, var(--primary) 23%, var(--white-primary));
    box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
    -webkit-clip-path: polygon(0% 0, 96% 0, 100% 96%, 0 100%);
    clip-path: polygon(0% 0, 100% 5%, 100% 95%, 0 100%);
}
.negative {
    min-height: 60vh;
    position: relative;
    background: linear-gradient(to bottom right, var(--white-primary), var(--primary) 77%);
    -webkit-clip-path: polygon(0% 0, 96% 0, 100% 96%, 0 100%);
    clip-path: polygon(0% 5%, 100% 0%, 100% 100%, 0 95%);
}
.project::before {
    position: relative;
    z-index: -1;
}
.project-img {
    max-width: 100%;
    height: auto;
    /* box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px; */
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    cursor: pointer;
}
.project-img-div:hover {
    .project-img {
        animation: blur 1.4s linear forwards; 
    }
    .overlay {
        animation: overlay 1.5s linear forwards;
    }
}
.logo {
    background: var(--white-primary);
    border-radius: 50%;
}
.overlay {
    top: -45%;
    left: 42%;
    position: relative;
    z-index: 2;
    opacity: 0;
    border: 0.1em solid var(--white-primary);
}
.overlay:hover {
    background-color: var(--primary);
    color: var(--white-primary);
}
@keyframes blur {
    100% {
        filter: blur(4px);
    }
}
@keyframes overlay {
    100% {
        opacity: 1;
    }
}
/* About */
#about {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
    clip-path: polygon(0 3%, 100% 0%, 100% 100%, 0 100%);
    min-height: 100vh;
}
.about-img img {
    box-shadow: rgba(0, 0, 0, 0.19) 0em 2em 2.5em, rgba(0, 0, 0, 0.23) 0em 1em 1em;
}
.form button {
    background-color: var(--primary);
}
#taMessage {
    height: 10em;
}
.contact-me {
    /* min-height: 60vh; */
    box-shadow: rgb(38, 57, 77) 0em 1.5em 2em -1em;
    border-radius: 2.3em 0em 2.3em 0em;
}
/* .submit { */
/*      */
/* } */
.submit {
    border: 0.1em solid var(--dark);
}
.submit:hover {
    background-color: var(--secondary);
    opacity: 0.8;
}
/* Some image effects */
.img-effect {
    --s: 2em;  /* size of the frame */
    --b: 0.1em;   /* border thickness */
    --c: var(--white-primary);

    /* aspect-ratio: 1; */
    object-fit: cover;
    padding: calc(2*var(--s));
    --_g: var(--c) var(--b),#0000 0 calc(100% - var(--b)),var(--c) 0;
    background:
        linear-gradient(      var(--_g)) 50%/100% var(--_i,100%) no-repeat,
        linear-gradient(90deg,var(--_g)) 50%/var(--_i,100%) 100% no-repeat;
    outline: calc(var(--w)/2) solid #0009;
    outline-offset: calc(var(--w)/-2 - 2*var(--s));
    transition: .4s;
    cursor: pointer;
}
.img-effect:hover {
    outline: var(--b) solid var(--c);
    outline-offset: calc(var(--s)/-2);
    --_i: calc(100% - 2*var(--s));
}
