
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}


.animate-on-scroll.animated {
    opacity: 1 !important;
    animation-fill-mode: forwards !important;
    animation-iteration-count: 1 !important;
}


.animate-on-scroll.animated.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-on-scroll.animated.animate-fade-down {
    animation: fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-on-scroll.animated.animate-fade-left {
    animation: fadeInLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-on-scroll.animated.animate-fade-right {
    animation: fadeInRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-on-scroll.animated.animate-scale {
    animation: scaleIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-on-scroll.animated.animate-fade {
    animation: fadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}


.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-800 {
    animation-delay: 800ms;
}

.delay-900 {
    animation-delay: 900ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

.delay-1200 {
    animation-delay: 1200ms;
}

.delay-1500 {
    animation-delay: 1500ms;
}


.animate-stagger .animate-on-scroll {
    opacity: 0;
}

.animate-stagger.animated .animate-on-scroll {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-stagger.animated > *:nth-child(1) {
    animation-delay: 100ms;
}

.animate-stagger.animated > *:nth-child(2) {
    animation-delay: 200ms;
}

.animate-stagger.animated > *:nth-child(3) {
    animation-delay: 300ms;
}

.animate-stagger.animated > *:nth-child(4) {
    animation-delay: 400ms;
}

.animate-stagger.animated > *:nth-child(5) {
    animation-delay: 500ms;
}

.animate-stagger.animated > *:nth-child(6) {
    animation-delay: 600ms;
}

.animate-stagger.animated > *:nth-child(7) {
    animation-delay: 700ms;
}

.animate-stagger.animated > *:nth-child(8) {
    animation-delay: 800ms;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.hover-zoom {
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-zoom img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
    box-shadow: 0 12px 32px rgba(1, 110, 239, 0.5) !important;
}


@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}


@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}


@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-slow {
    animation: rotateSlow 20s linear infinite;
}


.counter {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    transition: all 0.3s ease;
}

.btn-primary,
.btn-login {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before,
.btn-login::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    transform: translateX(-100%) rotate(25deg);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before,
.btn-login:hover::before {
    transform: translateX(100%) rotate(25deg);
}

.shine-active::before {
    animation: shine 0.6s ease-out;
}

@keyframes shine {
    from {
        transform: translateX(-100%) rotate(25deg);
    }
    to {
        transform: translateX(100%) rotate(25deg);
    }
}

.btn-primary:hover,
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(1, 110, 239, 0.5) !important;
}

.btn-primary:active,
.btn-login:active {
    transform: translateY(0);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.service-card,
.service-detailed-card,
.benefit-card,
.industry-card,
.review-card,
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.service-detailed-card:hover,
.benefit-card:hover,
.industry-card:hover,
.review-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(1, 110, 239, 0.2) !important;
}


.service-card:hover .service-icon,
.service-detailed-card:hover .service-icon-large,
.benefit-card:hover .benefit-icon,
.industry-card:hover .industry-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon,
.service-icon-large,
.benefit-icon,
.industry-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.feature-card {
    animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.scroll-indicator {
    transition: opacity 0.3s ease;
}

.scroll-line {
    position: relative;
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0.5rem auto 0;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--primary-blue);
    animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollLineMove {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(400%);
    }
}


@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50px);
    }
}

.animated-grid {
    animation: gridMove 20s linear infinite;
}


@keyframes sphereFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-15px, -50px) scale(0.95);
    }
    75% {
        transform: translate(25px, -25px) scale(1.02);
    }
}

.blur-sphere {
    animation: sphereFloat 20s ease-in-out infinite;
}


.page-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}


.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.about-image img,
.why-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img,
.why-image:hover img {
    transform: scale(1.05);
}


.form-group input,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 110, 239, 0.15);
}


.quote-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover .quote-icon {
    transform: scale(1.1) rotate(-5deg);
}


.dd-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dd-item:hover {
    transform: translateX(8px);
    background: rgba(1, 110, 239, 0.08);
}

.dd-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dd-item:hover .dd-icon {
    transform: scale(1.1);
}


@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .float,
    .pulse,
    .rotate-slow,
    .feature-card,
    .blur-sphere,
    .animated-grid {
        animation: none !important;
    }
}


@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover,
    .hover-zoom:hover,
    .hover-glow:hover,
    .btn:hover,
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .dd-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    .btn-primary:hover::before,
    .btn-login:hover::before {
        transform: translateX(-100%);
    }
}

.animate-on-scroll,
.hover-lift,
.hover-zoom,
.btn,
.service-card,
.review-card,
.feature-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.blur-sphere,
.animated-grid,
.scroll-line::after {
    will-change: transform;
}

.animate-on-scroll.animated {
    will-change: auto;
}
