/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0; transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

.reveal-left { opacity: 0; transform: translateX(-60px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* ===== HERO ANIMATIONS ===== */
.animate-slide-up { opacity: 0; transform: translateY(40px); animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* ===== MORPHING SHAPES ===== */
@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 30% 60% 40% / 60% 40% 30% 70%; }
}
.shape-1 { animation: morph 8s ease-in-out infinite, floatSlow 12s ease-in-out infinite; }
.shape-2 { animation: morph 10s ease-in-out infinite 2s, floatSlow 15s ease-in-out infinite 1s; }
.shape-3 { animation: morph 12s ease-in-out infinite 4s, floatSlow 18s ease-in-out infinite 2s; }
.shape-4 { animation: morph 9s ease-in-out infinite 1s; }
.shape-5 { animation: morph 11s ease-in-out infinite 3s; }

@keyframes floatSlow { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -20px); } }

/* ===== GRADIENT SHIMMER ===== */
.hero-line-2 { background-size: 200% auto; animation: gradientMove 4s ease infinite; }

/* ===== NEON GLOW PULSE ===== */
@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(108, 99, 255, 0.3), 0 0 20px rgba(108, 99, 255, 0.1); }
    50% { box-shadow: 0 0 20px rgba(108, 99, 255, 0.5), 0 0 40px rgba(108, 99, 255, 0.2), 0 0 60px rgba(108, 99, 255, 0.1); }
}
.process-dot { animation: neonPulse 3s ease-in-out infinite; }

/* ===== COLOR CYCLE ===== */
@keyframes colorCycle {
    0% { color: var(--accent-1); text-shadow: 0 0 10px var(--accent-1); }
    25% { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }
    50% { color: var(--accent-3); text-shadow: 0 0 10px var(--accent-3); }
    75% { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }
    100% { color: var(--accent-1); text-shadow: 0 0 10px var(--accent-1); }
}

/* ===== 3D CARD TILT ===== */
.service-premium-card { transform-style: preserve-3d; perspective: 1000px; }
.service-premium-card:hover { transform: translateY(-8px) rotateX(2deg) rotateY(-2deg); }

/* ===== CARD SHINE SWEEP ===== */
.service-premium-card::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.05), transparent);
    transition: left 0.7s;
}
.service-premium-card:hover::after { left: 100%; }

/* ===== BORDER GLOW ON HOVER ===== */
@keyframes borderGlow {
    0%, 100% { border-color: rgba(108, 99, 255, 0.2); }
    50% { border-color: rgba(247, 37, 133, 0.3); }
}

/* ===== STAGGER EFFECTS ===== */
.services-showcase .service-premium-card:nth-child(1) { transition-delay: 0.05s; }
.services-showcase .service-premium-card:nth-child(2) { transition-delay: 0.15s; }
.services-showcase .service-premium-card:nth-child(3) { transition-delay: 0.25s; }
.services-showcase .service-premium-card:nth-child(4) { transition-delay: 0.35s; }

.country-grid-fancy .country-fancy-card:nth-child(1) { transition-delay: 0.05s; }
.country-grid-fancy .country-fancy-card:nth-child(2) { transition-delay: 0.1s; }
.country-grid-fancy .country-fancy-card:nth-child(3) { transition-delay: 0.15s; }
.country-grid-fancy .country-fancy-card:nth-child(4) { transition-delay: 0.2s; }
.country-grid-fancy .country-fancy-card:nth-child(5) { transition-delay: 0.25s; }
.country-grid-fancy .country-fancy-card:nth-child(6) { transition-delay: 0.3s; }
.country-grid-fancy .country-fancy-card:nth-child(7) { transition-delay: 0.35s; }
.country-grid-fancy .country-fancy-card:nth-child(8) { transition-delay: 0.4s; }

/* ===== FLOATING ANIMATION ===== */
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-14px); } }
@keyframes floatRotate { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-10px) rotate(2deg); } 75% { transform: translateY(10px) rotate(-2deg); } }

/* ===== BLOB ANIMATION ===== */
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}
.blob-1 { animation: blobFloat 15s ease-in-out infinite; }
.blob-2 { animation: blobFloat 20s ease-in-out infinite 3s; }

/* ===== SVG PATH ANIMATION ===== */
.loader-path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: lineDraw 2s ease infinite; }
@keyframes lineDraw { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }

/* ===== SPRING BOUNCE ===== */
@keyframes spring { 0% { transform: scale(0.8); } 50% { transform: scale(1.08); } 75% { transform: scale(0.97); } 100% { transform: scale(1); } }
.sh-card:hover .sh-icon { animation: spring 0.6s ease; }
.point-item:hover .point-icon { animation: spring 0.6s ease; }

/* ===== RIPPLE ON BUTTONS ===== */
.btn-glow::before {
    content: ''; position: absolute; inset: 0; border-radius: 50px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2), transparent 70%);
    opacity: 0; transform: scale(0); transition: all 0.5s;
}
.btn-glow:hover::before { opacity: 1; transform: scale(2); }

/* ===== GRADIENT BORDER ON COUNTRY CARDS ===== */
.country-fancy-card::before {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius-sm);
    padding: 1px;
    background: linear-gradient(135deg, rgba(108,99,255,0), rgba(108,99,255,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    transition: background 0.4s;
}
.country-fancy-card:hover::before {
    background: linear-gradient(135deg, rgba(108,99,255,0.5), rgba(247,37,133,0.5), rgba(76,201,240,0.5));
}

/* ===== FOOTER LINK UNDERLINES ===== */
.footer-col a { position: relative; }
.footer-col a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--gradient-accent); transition: width 0.3s; }
.footer-col a:hover::after { width: 100%; }

/* ===== NOISE TEXTURE ===== */
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 2;
}

/* ===== AURORA BACKGROUND GLOW ===== */
@keyframes aurora {
    0% { background-position: 0% 50%; opacity: 0.3; }
    25% { opacity: 0.5; }
    50% { background-position: 100% 50%; opacity: 0.3; }
    75% { opacity: 0.5; }
    100% { background-position: 0% 50%; opacity: 0.3; }
}

.stats-section::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(45deg, rgba(108,99,255,0.05), rgba(247,37,133,0.03), rgba(76,201,240,0.05), rgba(6,214,160,0.03));
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
    pointer-events: none;
}

/* ===== TYPING CURSOR ===== */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ===== SMOOTH SCALE IN ===== */
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ===== ORBIT ANIMATION FOR GLOBE ===== */
@keyframes orbit {
    from { transform: rotate(0deg) translateX(10px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(10px) rotate(-360deg); }
}

/* ===== GLITCH TEXT EFFECT (subtle) ===== */
@keyframes glitch {
    0%, 100% { clip-path: inset(0 0 0 0); }
    10% { clip-path: inset(20% 0 60% 0); }
    20% { clip-path: inset(60% 0 20% 0); }
    30% { clip-path: inset(0 0 0 0); }
}
