/*==================================================

CALBI WEBSITE
Animation Stylesheet

File:
assets/css/animations.css

==================================================*/


/*==================================================

GLOBAL TRANSITIONS

==================================================*/

*{

transition:background .3s,color .3s,border-color .3s;

}


/*==================================================

FADE ANIMATIONS

==================================================*/

.fade{

opacity:0;

transform:translateY(60px);

transition:1s ease;

}

.fade.active{

opacity:1;

transform:translateY(0);

}


/*==================================================

FADE LEFT

==================================================*/

.fade-left{

opacity:0;

transform:translateX(-70px);

transition:1s ease;

}

.fade-left.active{

opacity:1;

transform:translateX(0);

}


/*==================================================

FADE RIGHT

==================================================*/

.fade-right{

opacity:0;

transform:translateX(70px);

transition:1s ease;

}

.fade-right.active{

opacity:1;

transform:translateX(0);

}


/*==================================================

ZOOM

==================================================*/

.zoom{

opacity:0;

transform:scale(.8);

transition:1s ease;

}

.zoom.active{

opacity:1;

transform:scale(1);

}


/*==================================================

HERO ANIMATIONS

==================================================*/

.hero-content h4{

animation:fadeTop .9s ease forwards;

}

.hero-content h1{

animation:fadeTop 1.2s ease forwards;

}

.hero-content h3{

animation:fadeTop 1.4s ease forwards;

}

.hero-content p{

animation:fadeTop 1.6s ease forwards;

}

.hero-buttons{

animation:fadeTop 1.8s ease forwards;

}

.hero-image{

animation:fadeRightHero 1.5s ease forwards;

}


/*==================================================

FLOATING IMAGE

==================================================*/

@keyframes floatImage{

0%{

transform:translateY(0px);

}

50%{

transform:translateY(-18px);

}

100%{

transform:translateY(0px);

}

}


/*==================================================

FADE TOP

==================================================*/

@keyframes fadeTop{

0%{

opacity:0;

transform:translateY(50px);

}

100%{

opacity:1;

transform:translateY(0);

}

}


/*==================================================

HERO IMAGE

==================================================*/

@keyframes fadeRightHero{

0%{

opacity:0;

transform:translateX(80px);

}

100%{

opacity:1;

transform:translateX(0);

}

}


/*==================================================

POPUP

==================================================*/

@keyframes popupScale{

0%{

opacity:0;

transform:scale(.6);

}

100%{

opacity:1;

transform:scale(1);

}

}


/*==================================================

BUTTON GLOW

==================================================*/

.btn{

position:relative;

overflow:hidden;

}

.btn::before{

content:"";

position:absolute;

top:0;

left:-100%;

width:100%;

height:100%;

background:rgba(255,255,255,.25);

transition:.6s;

}

.btn:hover::before{

left:100%;

}


/*==================================================

CARD HOVER

==================================================*/

.feature-card,
.programme-card,
.news-card,
.stat{

transition:.35s ease;

}

.feature-card:hover,
.programme-card:hover,
.news-card:hover,
.stat:hover{

transform:translateY(-10px);

box-shadow:0 25px 60px rgba(0,0,0,.12);

}


/*==================================================

SOCIAL ICONS

==================================================*/

.social-icons a{

transition:.3s;

}

.social-icons a:hover{

transform:translateY(-6px) rotate(8deg);

}


/*==================================================

NAVIGATION

==================================================*/

#menu li{

opacity:0;

animation:menuFade .6s forwards;

}

#menu li:nth-child(1){

animation-delay:.1s;

}

#menu li:nth-child(2){

animation-delay:.2s;

}

#menu li:nth-child(3){

animation-delay:.3s;

}

#menu li:nth-child(4){

animation-delay:.4s;

}

#menu li:nth-child(5){

animation-delay:.5s;

}

#menu li:nth-child(6){

animation-delay:.6s;

}

#menu li:nth-child(7){

animation-delay:.7s;

}

#menu li:nth-child(8){

animation-delay:.8s;

}


@keyframes menuFade{

0%{

opacity:0;

transform:translateY(-20px);

}

100%{

opacity:1;

transform:translateY(0);

}

}


/*==================================================

COUNTER

==================================================*/

.counter{

transition:.2s;

}


/*==================================================

WHATSAPP

==================================================*/

.whatsapp{

animation:whatsappPulse 2s infinite;

}

@keyframes whatsappPulse{

0%{

box-shadow:0 0 0 0 rgba(37,211,102,.5);

}

70%{

box-shadow:0 0 0 18px rgba(37,211,102,0);

}

100%{

box-shadow:0 0 0 0 rgba(37,211,102,0);

}

}


/*==================================================

BACK TO TOP

==================================================*/

#topButton{

animation:floatButton 3s infinite;

}

@keyframes floatButton{

0%{

transform:translateY(0);

}

50%{

transform:translateY(-6px);

}

100%{

transform:translateY(0);

}

}


/*==================================================

PRELOADER SPIN

==================================================*/

.loader-content img{

animation:

loaderRotate 10s linear infinite,

floatImage 4s ease-in-out infinite;

}

@keyframes loaderRotate{

0%{

transform:rotate(0deg);

}

100%{

transform:rotate(360deg);

}

}


/*==================================================

TEXT HIGHLIGHT

==================================================*/

.section-title h2{

position:relative;

}

.section-title h2::after{

content:"";

display:block;

width:90px;

height:4px;

background:#D4AF37;

margin:18px auto 0;

border-radius:10px;

}


/*==================================================

END

assets/css/animations.css

==================================================*/