/* ==========================================
   GLOBAL TRANSITIONS
========================================== */

.fade-transition{

transition:
opacity var(--transition-base),
transform var(--transition-base);

}

/* ==========================================
   SCROLL REVEAL
========================================== */

.reveal{

opacity:0;

transform:
translateY(40px);

transition:
opacity .8s ease,
transform .8s ease;

will-change:
opacity,
transform;

}

.reveal.active{

opacity:1;

transform:
translateY(0);

}

/* ==========================================
   REVEAL LEFT
========================================== */

.reveal-left{

opacity:0;

transform:
translateX(-60px);

transition:
opacity .8s ease,
transform .8s ease;

}

.reveal-left.active{

opacity:1;

transform:
translateX(0);

}

/* ==========================================
   REVEAL RIGHT
========================================== */

.reveal-right{

opacity:0;

transform:
translateX(60px);

transition:
opacity .8s ease,
transform .8s ease;

}

.reveal-right.active{

opacity:1;

transform:
translateX(0);

}

/* ==========================================
   ZOOM IN
========================================== */

.zoom-in{

opacity:0;

transform:
scale(.94);

transition:
opacity .8s ease,
transform .8s ease;

}

.zoom-in.active{

opacity:1;

transform:
scale(1);

}

/* ==========================================
   HERO ENTRY
========================================== */

.hero-copy > *{

animation:
heroFadeUp
1s ease forwards;

opacity:0;

}

.hero-copy > *:nth-child(1){

animation-delay:.1s;

}

.hero-copy > *:nth-child(2){

animation-delay:.25s;

}

.hero-copy > *:nth-child(3){

animation-delay:.4s;

}

.hero-copy > *:nth-child(4){

animation-delay:.55s;

}

/* ==========================================
   HERO IMAGE
========================================== */

.hero-visual img{

animation:
heroImageReveal
1.2s ease forwards;

opacity:0;

}

/* ==========================================
   SERVICE CARDS
========================================== */

.service-card{

transition:
transform .35s ease,
box-shadow .35s ease,
border-color .35s ease;

}

.service-card:hover{

transform:
translateY(-8px);

}

.service-card.active{

animation:
activePulse
2.5s infinite;

}

/* ==========================================
   BENEFIT CARDS
========================================== */

.benefit-card{

transition:
transform .35s ease,
box-shadow .35s ease;

}

.benefit-card:hover{

transform:
translateY(-8px);

}

/* ==========================================
   METRIC COUNTERS
========================================== */

.metric{

transition:
transform .3s ease;

}

.metric:hover{

transform:
translateY(-6px);

}

/* ==========================================
   BUTTONS
========================================== */

.btn-primary,
.btn-secondary{

position:relative;

overflow:hidden;

}

.btn-primary::before{

content:"";

position:absolute;

top:0;

left:-150%;

width:100%;

height:100%;

background:

linear-gradient(
90deg,
transparent,
rgba(255,255,255,.3),
transparent
);

transition:
left .8s ease;

}

.btn-primary:hover::before{

left:150%;

}

/* ==========================================
   FRAMEWORK ICONS
========================================== */

.framework-badges img{

transition:
transform .35s ease,
box-shadow .35s ease;

}

.framework-badges img:hover{

transform:
translateY(-8px);

box-shadow:
var(--shadow-glow);

}

/* ==========================================
   GALLERY IMAGES
========================================== */

.slide{

overflow:hidden;

}

.slide img{

transition:
transform .7s ease;

}

.slide:hover img{

transform:
scale(1.08);

}

/* ==========================================
   LOGO HOVER
========================================== */

.logo img{

transition:
transform .4s ease;

}

.logo:hover img{

transform:
scale(1.05);

}

/* ==========================================
   FLOATING WHATSAPP
========================================== */

.float,
.whatsapp-float{

animation:
floatPulse
3s ease infinite;

}

/* ==========================================
   NAVIGATION UNDERLINE
========================================== */

.nav-menu a::after{

transition:
width .35s ease;

}

/* ==========================================
   GLASS CARD SHIMMER
========================================== */

.card{

position:relative;

overflow:hidden;

}

.card::before{

content:"";

position:absolute;

top:0;

left:-120%;

width:80%;

height:100%;

background:

linear-gradient(
90deg,
transparent,
rgba(255,255,255,.04),
transparent
);

transition:
left 1.2s ease;

}

.card:hover::before{

left:140%;

}

/* ==========================================
   TIMELINE ITEMS
========================================== */

.timeline div{

transition:
transform .35s ease,
border-color .35s ease;

}

.timeline div:hover{

transform:
translateY(-6px);

border-color:
var(--color-accent);

}

/* ==========================================
   FORM STATES
========================================== */

.contact-form input,
.contact-form textarea,
.contact-form select{

transition:
border-color .3s ease,
box-shadow .3s ease,
background .3s ease;

}

.contact-form button{

transition:
transform .3s ease,
box-shadow .3s ease;

}

.contact-form button:hover{

transform:
translateY(-2px);

}

/* ==========================================
   PRELOADER
========================================== */

.splash-screen{

position:fixed;

inset:0;

background:
var(--color-background);

display:flex;

align-items:center;

justify-content:center;

z-index:9999;

transition:
opacity .8s ease,
visibility .8s ease;

}

.splash-screen.hidden{

opacity:0;

visibility:hidden;

}

/* ==========================================
   KEYFRAMES
========================================== */

@keyframes heroFadeUp{

from{

opacity:0;

transform:
translateY(35px);

}

to{

opacity:1;

transform:
translateY(0);

}

}

@keyframes heroImageReveal{

from{

opacity:0;

transform:
translateX(40px)
scale(.95);

}

to{

opacity:1;

transform:
translateX(0)
scale(1);

}

}

@keyframes activePulse{

0%{

box-shadow:
0 0 0 rgba(0,229,255,0);

}

50%{

box-shadow:
0 0 35px rgba(0,229,255,.18);

}

100%{

box-shadow:
0 0 0 rgba(0,229,255,0);

}

}

@keyframes floatPulse{

0%{

transform:
translateY(0);

}

50%{

transform:
translateY(-6px);

}

100%{

transform:
translateY(0);

}

}

/* ==========================================
   STAGGER HELPERS
========================================== */

.stagger-1{

transition-delay:.1s;

}

.stagger-2{

transition-delay:.2s;

}

.stagger-3{

transition-delay:.3s;

}

.stagger-4{

transition-delay:.4s;

}

.stagger-5{

transition-delay:.5s;

}

/* ==========================================
   SCROLL PROGRESS
========================================== */

.scroll-progress{

position:fixed;

top:0;
left:0;

height:3px;

width:0;

background:
var(--gradient-primary);

z-index:
var(--z-toast);

}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce){

*,
*::before,
*::after{

animation:none !important;

transition:none !important;

scroll-behavior:auto !important;

}

.reveal,
.reveal-left,
.reveal-right,
.zoom-in{

opacity:1 !important;

transform:none !important;

}

}