/* ==========================================
   KINATIQLAB FANCY ANIMATIONS
   ========================================== */

/* Page Load Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Text Reveal Animation */
@keyframes revealText {
    from {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

.reveal-text {
    display: inline-block;
    animation: revealText 0.8s ease forwards;
}

.reveal-delay-1 { animation-delay: 0.2s; opacity: 0; }
.reveal-delay-2 { animation-delay: 0.4s; opacity: 0; }
.reveal-delay-3 { animation-delay: 0.6s; opacity: 0; }
.reveal-delay-4 { animation-delay: 0.8s; opacity: 0; }

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float3D {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-15px) rotateX(5deg); }
}

.float-3d {
    animation: float3D 4s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Scroll Indicator Animation */
@keyframes scrollBounce {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px);
    }
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47, 132, 237, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(47, 132, 237, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47, 132, 237, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Pulse Ring */
@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(245, 180, 0, 0.6);
    animation: pulseRing 1.5s ease-out infinite;
    z-index: -1;
}

/* 3D Tilt Card Effect */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tilt-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* Service Card Hover Effects */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.service-card .icon-box {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .icon-box {
    transform: translateY(-8px) rotateY(360deg);
    background-color: #f5b400 !important;
}

/* Testimonial Card 3D Effect */
.testimonial-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: translateY(-15px) rotateY(5deg) rotateX(5deg);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.15);
}

.testimonial-card .fa-quote-right {
    transition: all 0.3s ease;
}

.testimonial-card:hover .fa-quote-right {
    transform: translateY(-10px) scale(1.2);
    color: #f5b400;
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(47, 128, 237, 0.4);
}

.btn-warning {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-warning:hover::before {
    left: 100%;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 180, 0, 0.5);
}

/* Glow Effect */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(47, 132, 237, 0.5); }
    50% { box-shadow: 0 0 30px rgba(47, 132, 237, 0.8), 0 0 60px rgba(47, 132, 237, 0.4); }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Gradient Border Animation */
@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-border {
    background: linear-gradient(-45deg, #2fb4ff, #f5b400, #2fb4ff);
    background-size: 400% 400%;
    animation: gradientBorder 3s ease infinite;
}

/* Feature Item Animation */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-item:hover .icon {
    transform: rotate(360deg) scale(1.1);
}

/* Process Step Animation */
.process-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease;
}

.process-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.process-item:hover {
    transform: scale(1.05);
}

.process-item .step {
    transition: all 0.3s ease;
}

.process-item:hover .step {
    background: #f5b400;
    transform: rotate(360deg);
}

/* Stats Counter Animation */
.stat-counter {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stat-counter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Info Card Hover */
.info-card {
    position: relative;
    overflow: hidden;
}

.info-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(47, 128, 237, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.info-card:hover::after {
    width: 400px;
    height: 400px;
}

.info-card:hover {
    transform: translateY(-12px);
}

.info-card:hover .icon {
    animation: bounce 0.6s ease;
}

/* Social Icons */
.social-icons a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px) rotate(360deg);
    background: #f5b400;
    color: #000 !important;
}

/* Navbar Animation */
.navbar {
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Nav Link Underline Animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f5b400;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Image Reveal Animation */
@keyframes imageReveal {
    from {
        clip-path: inset(50% 0 50% 0);
        opacity: 0;
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

.image-reveal {
    animation: imageReveal 1s ease forwards;
}

/* Map Point Animation */
@keyframes mapPointPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 180, 0, 0.7);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(245, 180, 0, 0);
    }
}

.map-point .dot {
    animation: mapPointPulse 2s infinite;
}

.map-point:hover .tooltip-box {
    transform: translateY(-10px) scale(1.05);
}

/* SVG Curve Drawing Animation */
@keyframes drawCurve {
    to {
        stroke-dashoffset: 0;
    }
}

.curve-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawCurve 3s ease forwards;
}

/* Loading Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(47, 132, 237, 0.1);
    border-top-color: #2fb4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Cursor Effect */
.cursor-dot {
    width: 10px;
    height: 10px;
    background: #2fb4ff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-ring {
    width: 30px;
    height: 30px;
    border: 2px solid #2fb4ff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

/* Scroll Progress Bar */
@keyframes progressGrow {
    from { width: 0; }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #2fb4ff, #f5b400);
    width: 0;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Stagger Animation Classes */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-item.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-delay-1 { animation-delay: 0.1s; }
.stagger-delay-2 { animation-delay: 0.2s; }
.stagger-delay-3 { animation-delay: 0.3s; }
.stagger-delay-4 { animation-delay: 0.4s; }
.stagger-delay-5 { animation-delay: 0.5s; }
.stagger-delay-6 { animation-delay: 0.6s; }

/* Hover Scale */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Text Gradient */
@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-gradient {
    background: linear-gradient(-45deg, #2fb4ff, #f5b400, #2fb4ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 3s ease infinite;
}

/* Box Shadow Hover */
.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Flip Animation */
@keyframes flipInX {
    from {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateX(0);
        opacity: 1;
    }
}

.flip-in-x {
    animation: flipInX 0.8s ease forwards;
}

/* Zoom In */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-in {
    animation: zoomIn 0.6s ease forwards;
}

/* Slide Up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Elastic Bounce */
@keyframes elasticBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.25); }
    50% { transform: scale(0.95); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.elastic-bounce {
    animation: elasticBounce 0.8s ease;
}

/* Wobble */
@keyframes wobble {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.wobble:hover {
    animation: wobble 0.5s ease;
}

/* Entrance Animations for Sections */
.section-enter {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section-enter.active {
    opacity: 1;
    transform: translateY(0);
}

/* Form Input Animation */
.form-control, .form-select {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-control:focus, .form-select:focus {
    border-color: #2fb4ff;
    box-shadow: 0 0 0 4px rgba(47, 180, 255, 0.15);
    transform: translateY(-2px);
}

/* Footer Links Hover */
.footer-links li {
    position: relative;
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(10px);
    color: #f5b400;
}

.footer-links li::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #f5b400;
}

.footer-links li:hover::before {
    left: -15px;
    opacity: 1;
}

/* CTA Box Animation */
.cta-box {
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: rotate(45deg);
    animation: rotateGradient 10s linear infinite;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Why List Animation */
.why-list li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInList 0.5s ease forwards;
}

.why-list li:nth-child(1) { animation-delay: 0.1s; }
.why-list li:nth-child(2) { animation-delay: 0.2s; }
.why-list li:nth-child(3) { animation-delay: 0.3s; }
.why-list li:nth-child(4) { animation-delay: 0.4s; }
.why-list li:nth-child(5) { animation-delay: 0.5s; }
.why-list li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInList {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stagger-item {
        transform: translateY(20px);
    }
    
    .cursor-dot, .cursor-ring {
        display: none;
    }
}

/* AOS Custom Overrides */
[data-aos] {
    transition-duration: 0.8s !important;
}

[data-aos="fade-up"] {
    transform: translate3d(0, 50px, 0) !important;
}

[data-aos="fade-down"] {
    transform: translate3d(0, -50px, 0) !important;
}

[data-aos="zoom-in"] {
    transform: scale(0.8) !important;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

