/* ABOUT ME ------------------------------------------------------------------------------ */

.personal{
    box-sizing: border-box;
    width: 90%;
    height: fit-content;
    border-radius: 5%;
    padding: 25px;
    border-radius: 5px;
    background-color: var(--main-bg-color);
    margin-top: 50px;
}

/* ----- */

.timeline-component{
    animation: bobble linear;
    animation-timeline: view();
    animation-range: entry 0% cover 75%;
    transition: all 0.2s ease-in-out;
    scale: 1;
    z-index: 1;
    opacity: 1;
}

.border-anim{
    border: 3px solid #0000;
    border-radius: 12px;
    background: linear-gradient(var(--main-bg-color),var(--main-bg-color)) padding-box, linear-gradient(
            var(--angle),
            var(--main-bg-color),
            var(--main-accent-color)
        ) border-box !important;
    animation: 8s rotate linear infinite!important;
    position: relative;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.timeline-component hr, .service-bite hr{
    opacity: 0.3;
    margin: 15px 0px;
}

.stat-row{
    display: flex;
    flex-direction: row;
    gap: 25px;
    padding-bottom: 0px;
}

.stat-row p{
    margin: 0px;
}

.service-bite a, .skills a{
    text-decoration: none;
    color: var(--main-accent-color);
    font-weight: bolder;
}
.timeline h2{
    padding-top: 0px;
    margin-top: 0px;
}



.design-section {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--alt-bg-color);
    padding: 50px 0px;
}

.cv{
    background-color: var(--alt-bg-color);
}

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

.timeline {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-color: var(--alt-bg-color);
}

.timeline-content {
    padding: 20px;
    background: var(--main-bg-color);
    /* -webkit-box-shadow: 5px 5px 10px #242424, -5px -5px 10px #313348;
    box-shadow: 5px 5px 10px #242424, -5px -5px 10px #313348;*/
    border-radius: 5px;
    color: var(--alt-bg-color);
    padding: 1.75rem;
    transition: 0.4s ease;
    overflow-wrap: break-word !important;
    margin: 1rem;
    margin-bottom: 20px;
    border-radius: 6px;
}

.timeline-component {
    margin: 0px 40px 20px 40px;
}

@media screen and (min-width: 768px) {
    .timeline {
        display: grid;
        grid-template-columns: 1fr 3px 1fr;
        }
    .timeline-middle {
        position: relative;
        background-image: linear-gradient(45deg, #F27121, #E94057, #8A2387);
        width: 3px;
        height: 100%;
        }
    .main-middle {
        opacity: 0;
        }
    .timeline-circle {
        position: absolute;
        top: 0;
        left: 50%;
        width: 15px;
        height: 15px;
        border-radius: 5px;
        /*background-image: linear-gradient(45deg, #F27121, #E94057, #8A2387);*/
        background-color: var(--main-accent-color);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        }
}

@keyframes bobble {
    0% {
        opacity: 0.8;
        rotate: 3deg;
        transform:translateX(5%);
        scale: 0.9;
    }
    65%{
        opacity: 1;
        rotate: -1deg;
        scale: 1.1;
    }
    80%{
        opacity: 1;
        rotate: 0deg;
        scale: 1;
    }
    100% {
        opacity: 1;
        rotate: 0deg;
        transform:translateX(0%);
        scale: 1;
    }
}

/* ----- */

.introduction-container{
    padding-top: 200px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    padding-top: 40px;
}

.introduction-container h1 {
    max-width: 600px;
    padding: 20px;
    margin: 50px auto;
    font-size: clamp(1rem, 7vw, 3rem);
    text-align: right;
    line-height: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.introduction-container .introduction {
    position: relative;
    z-index: 0;
    height: 1em;
    overflow: hidden;
    display: flex;
    font-size: 1em;
    flex-direction: column;
}

@keyframes auto-scroll {
    0% {
        transform: translateY(0);
    }
    5% {
        transform: translateY(0);
    }
    10% {
        transform: translateY(-1em);
    }
    30% {
        transform: translateY(-1em);
    }
    35% {
        transform: translateY(-2em);
    }
    55% {
        transform: translateY(-2em);
    }
    60% {
        transform: translateY(-3em);
    }
    80% {
        transform: translateY(-3em);
    }
    85% {
        transform: translateY(-4em);
    }
    100% {
        transform: translateY(-4em);
    }
}

.introduction-container .introduction span {
    background: -webkit-linear-gradient(var(--main-accent-color), #F8566D);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: auto-scroll 10s infinite;
    padding: 0px 5px 0px 10px;
}

/* ----- */

.container-stats{
    justify-content: space-around;
    display: flex;
    flex-direction: row-reverse;
    background-color: var(--alt-bg-color);
    padding-top: 50px;
}

.about-break{
    padding: 25px;
    background-color: var(--main-accent-color);
    color: var(--alt-bg-color);
    display: flex;
    text-align: center;
}

/* ----- */

/* ------------------------------------------------------------------------------ */

.personal-cards{
    padding: 50px;
    background-color: var(--main-accent-color);
    gap: 50px;
    color: var(--alt-bg-color);
}

/*---*/

.cola{
    width: calc(100% - 2rem);
    margin: 1rem;
    cursor: pointer;
    contain: layout;
    will-change: transform;
}

.container{
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    will-change: transform;
    contain: layout;
}

.front,
.back{
    background-size: cover;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.25);
    border-radius: 10px;
    background-position: center;

    -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    text-align: center;
    min-height: 500px;
    height: auto;
    border-radius: 10px;
    color: var(--main-bg-color);
    font-size: 1.5rem;
    background: var(--alt-bg-color);
}

.back{
    background: var(--alt-bg-color);
}

.front:after{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    content: '';
    display: block;
    opacity: .6;
    background-color: var(--main-bg-color);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
}

.container:hover .front,
.container:hover .back{
    -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.back{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.inner{
    -webkit-transform: translateY(-50%) translate3d(0, 0, 60px) scale(0.94);
    transform: translateY(-50%) translate3d(0, 0, 60px) scale(0.94);
    top: 50%;
    position: absolute;
    left: 0;
    width: 100%;
    padding: 2rem;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: 1px solid transparent;
    -webkit-perspective: inherit;
    perspective: inherit;
    z-index: 2;
    contain: layout;
}

.container .back{
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.container .front{
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.container:hover .back{
    -webkit-transform: rotateY(0deg);
            transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.container:hover .front{
    -webkit-transform: rotateY(-180deg);
            transform: rotateY(-180deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.front .inner p{
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.front .inner p:after{
    content: '';
    width: 4rem;
    height: 2px;
    position: absolute;
    background: var(--alt-bg-color);
    display: block;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -.75rem;
}

.inner .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    top: -50px;
}

.inner .icon img{
    position: absolute;
    max-width: 100%;
    height: auto;
}

.inner .icon h1{
    position: absolute;
    top: 100px;
    color: var(--alt-bg-color);
}



@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(var(--float-height, -5px)); }
    100% { transform: translateY(0px); }
}

.cola, .inner .icon {
    animation: float var(--float-speed, 2s) ease-in-out infinite;
}

/* Different delays and speeds for each element*/
.inner .icon{ --float-speed: 2s;  animation-delay: 0.2s; }
.cola:nth-of-type(2){animation-delay: 0.2s; }
.cola:nth-of-type(3){animation-delay: 0.4s; }
.cola:nth-of-type(4){animation-delay: 0.6s; }

body{
    transform: translate3d(0, 0, 0);

}

html, body {
    height: 100%;
    margin: 0;
    transform: none !important;
}



.quote{
    text-align: center;
    padding: 25px;
    background-color: var(--alt-bg-color);
    color: var(--main-bg-color);
}




/*------------------------------------*/
/* Service bites show on hover or click */
.service-bite.visible{
    opacity: 1;
    visibility: visible;
}

.sb-container {
    position: relative;
    min-height: 410px;
    width: 90%;
    left: 5%;
    background-color: var(--main-bg-color);
    border-radius: 5px;
    padding-bottom: 25px;
}

.service-bite {
    opacity: 0;
    transition: all 0.3s ease-in-out;
    padding: 25px;
    position: absolute;
}

.service-bite p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--alt-bg-color);
    text-align: center;
}

.service-bite h2 {
    text-align: center;
    color: var(--alt-bg-color);
}

.perso-col{
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.selected {
    background-color: var(--alt-bg-color) !important;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px !important;
    color: var(--main-bg-color) !important;
    scale: 1.03;
}

.thumb{
    background-size: cover;
    background-position: 50%;
    height: 30vh;
}



/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    header{
        width: 100%;
    }
    .container-stats{
        display: flex;
        flex-direction: column;
    } 
    .perso-col {
        display: flex;
        flex-direction: column-reverse;
        gap: 50px;
        
    }
    .sb-container{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .timeline{
        max-width: 100%;
    }
    .skills{
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: center;
    }
    .personal{
        width: 90%;
        box-sizing: border-box;
        width: 90%;
        height: fit-content;
        border-radius: 5%;
        padding: 25px;
        border-radius: 5px;
        background-color: var(--main-bg-color);
        margin-top: 50px;
    }
    .card-display{
        display: flex;
        flex-direction: column;
    }
    .front, .back{
        min-height: 65vh;
    }
    .inner .icon h1 {
        position: absolute;
        top: 50px;
        color: var(--alt-bg-color);
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    header{
        width: 100%;
    }
    .container-stats{
        display: flex;
        flex-direction: column;
    } 
    .perso-col {
        display: flex;
        flex-direction: column-reverse;
        gap: 50px;
        
    }
    .sb-container{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .timeline{
        max-width: 100%;
    }
    .skills{
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: center;
    }
    .personal{
        width: 90%;
        box-sizing: border-box;
        width: 90%;
        height: fit-content;
        border-radius: 5%;
        padding: 25px;
        border-radius: 5px;
        background-color: var(--main-bg-color);
        margin-top: 50px;
    }
    .card-display{
        display: flex;
        flex-direction: column;
    }
    .front, .back{
        min-height: 750px;
    }
    .inner .icon h1 {
        position: absolute;
        top: 200px;
        color: var(--alt-bg-color);
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    .container-stats{
        display: flex;
        flex-direction: column;
    } 
    .perso-col {
        display: flex;
        flex-direction: column-reverse;
        gap: 50px;
        
    }
    .sb-container{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .timeline{
        max-width: 100%;
    }
    .skills{
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: center;
    }
    .personal{
        width: 90%;
        box-sizing: border-box;
        width: 90%;
        height: fit-content;
        border-radius: 5%;
        padding: 25px;
        border-radius: 5px;
        background-color: var(--main-bg-color);
        margin-top: 50px;
    }
    .card-display{
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 3 equal columns */
        grid-auto-flow: dense;
    }
    .front, .back{
        min-height: 500px;
    }
    .inner .icon h1 {
        position: absolute;
        top: 200px;
        color: var(--alt-bg-color);
    }
    .inner .icon {
        top: -140px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .inner .icon {
        top: -100px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .container-stats{
        display: flex;
        flex-direction: row-reverse;
    } 
    .perso-col {
        display: flex;
        flex-direction: column;
        gap: 50px;
        margin: 25px;
    }
    .personal{
        width: 400px;
        margin: 25px;
        margin-left: 5%;
    }
    .card-display{
        display: flex;
        flex-direction: row;
    }
    .front, .back{
        min-height: 500px;
    }
    .inner .icon h1 {
        position: absolute;
        top: 100px;
        color: var(--alt-bg-color);
    }
    .inner .icon {
        top: -50px;
    }
}