/* ==========================================================
   L2A TRANSPORTS DÉDIÉS
   ANIMATIONS
   Version 1.0 Production
==========================================================*/


/*==========================================================
=                     VARIABLES
==========================================================*/

:root{

--animation-fast:.35s;

--animation-normal:.6s;

--animation-slow:1s;

}


/*==========================================================
=                     FADE UP
==========================================================*/

.reveal{

opacity:0;

transform:translateY(70px);

transition:
opacity .8s ease,
transform .8s ease;

}

.reveal.active{

opacity:1;

transform:translateY(0);

}


/*==========================================================
=                     FADE LEFT
==========================================================*/

.reveal-left{

opacity:0;

transform:translateX(-80px);

transition:.9s ease;

}

.reveal-left.active{

opacity:1;

transform:translateX(0);

}


/*==========================================================
=                     FADE RIGHT
==========================================================*/

.reveal-right{

opacity:0;

transform:translateX(80px);

transition:.9s ease;

}

.reveal-right.active{

opacity:1;

transform:translateX(0);

}


/*==========================================================
=                     ZOOM
==========================================================*/

.zoom{

opacity:0;

transform:scale(.8);

transition:.8s;

}

.zoom.active{

opacity:1;

transform:scale(1);

}


/*==========================================================
=                     HERO
==========================================================*/

.hero-content{

animation:heroIntro 1.3s ease forwards;

}

@keyframes heroIntro{

0%{

opacity:0;

transform:translateY(60px);

}

100%{

opacity:1;

transform:translateY(0);

}

}


/*==========================================================
=                     LOGO
==========================================================*/

.logo img{

animation:logoFloat 6s ease-in-out infinite;

}

@keyframes logoFloat{

0%{

transform:translateY(0px);

}

50%{

transform:translateY(-10px);

}

100%{

transform:translateY(0px);

}

}


/*==========================================================
=                     GLOW
==========================================================*/

.glow{

animation:glow 3s infinite;

}

@keyframes glow{

0%{

box-shadow:

0 0 10px rgba(11,95,255,.15);

}

50%{

box-shadow:

0 0 40px rgba(11,95,255,.45);

}

100%{

box-shadow:

0 0 10px rgba(11,95,255,.15);

}

}


/*==========================================================
=                     BUTTON SHINE
==========================================================*/

.btn{

position:relative;

overflow:hidden;

}

.btn::after{

content:"";

position:absolute;

left:-140%;

top:0;

width:60%;

height:100%;

background:

linear-gradient(

90deg,

transparent,

rgba(255,255,255,.55),

transparent

);

transform:skewX(-25deg);

}

.btn:hover::after{

animation:shine .9s;

}

@keyframes shine{

100%{

left:180%;

}

}


/*==========================================================
=                     CARD
==========================================================*/

.card{

transition:

transform .35s,

box-shadow .35s,

border-color .35s;

}

.card:hover{

transform:

translateY(-10px)

scale(1.02);

}


/*==========================================================
=                     ICON
==========================================================*/

.icon-circle{

transition:.4s;

}

.card:hover .icon-circle{

transform:rotate(10deg) scale(1.08);

}


/*==========================================================
=                     PARALLAX
==========================================================*/

.parallax{

will-change:transform;

}


/*==========================================================
=                     PROGRESS BAR
==========================================================*/

.progress-bar{

overflow:hidden;

position:relative;

}

.progress-bar::before{

content:"";

position:absolute;

left:-100%;

top:0;

width:100%;

height:100%;

background:

linear-gradient(

90deg,

transparent,

rgba(255,255,255,.45),

transparent

);

animation:loadingBar 2.2s infinite;

}

@keyframes loadingBar{

100%{

left:120%;

}

}


/*==========================================================
=                     BACKGROUND
==========================================================*/

.background-glow{

position:absolute;

inset:0;

pointer-events:none;

overflow:hidden;

}

.background-glow::before{

content:"";

position:absolute;

top:-200px;

left:-200px;

width:600px;

height:600px;

border-radius:50%;

background:

radial-gradient(

circle,

rgba(11,95,255,.16),

transparent 70%

);

animation:moveGlow1 12s infinite alternate;

filter:blur(40px);

}

.background-glow::after{

content:"";

position:absolute;

right:-250px;

bottom:-250px;

width:700px;

height:700px;

border-radius:50%;

background:

radial-gradient(

circle,

rgba(109,40,217,.18),

transparent 70%

);

animation:moveGlow2 15s infinite alternate;

filter:blur(50px);

}

@keyframes moveGlow1{

100%{

transform:

translate(150px,120px);

}

}

@keyframes moveGlow2{

100%{

transform:

translate(-160px,-140px);

}

}


/*==========================================================
=                     DIVIDER
==========================================================*/

.divider{

animation:pulseDivider 4s infinite;

}

@keyframes pulseDivider{

50%{

transform:scaleX(1.08);

opacity:.8;

}

}


/*==========================================================
=                     SCROLL INDICATOR
==========================================================*/

.scroll-indicator{

position:absolute;

bottom:40px;

left:50%;

transform:translateX(-50%);

animation:bounce 2s infinite;

}

@keyframes bounce{

50%{

transform:

translate(-50%,12px);

}

}


/*==========================================================
=                     IMAGE
==========================================================*/

.image-hover{

overflow:hidden;

border-radius:20px;

}

.image-hover img{

transition:1s;

}

.image-hover:hover img{

transform:scale(1.08);

}


/*==========================================================
=                     ROTATION
==========================================================*/

.rotate{

animation:rotateSlow 40s linear infinite;

}

@keyframes rotateSlow{

100%{

transform:rotate(360deg);

}

}


/*==========================================================
=                     BLUR IN
==========================================================*/

.blur-in{

opacity:0;

filter:blur(20px);

transform:translateY(30px);

transition:1s;

}

.blur-in.active{

opacity:1;

filter:blur(0);

transform:translateY(0);

}


/*==========================================================
=                     HOVER LINKS
==========================================================*/

a{

transition:.3s;

}

a:hover{

color:var(--color-primary-light);

}


/*==========================================================
=                     RESPONSIVE
==========================================================*/

@media(max-width:768px){

.hero-content{

animation:none;

}

.logo img{

animation:none;

}

}