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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

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

@keyframes float {
    0% {  }
    50% {  }
    100% {  }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

@keyframes floatGradient {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-10px, 30px) rotate(-5deg);
    }
    75% {
        transform: translate(-25px, -15px) rotate(3deg);
    }
}

@keyframes colorShift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(15deg);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes morphGradient {
    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: 40% 60% 30% 70% / 70% 30% 50% 40%;
    }
    75% {
        border-radius: 60% 40% 70% 30% / 30% 70% 40% 60%;
    }
}

@keyframes floatGradient {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(8deg);
    }
    50% {
        transform: translate(-20px, 40px) rotate(-8deg);
    }
    75% {
        transform: translate(-35px, -25px) rotate(5deg);
    }
}

@keyframes colorPulse {
    0%, 100% {
        opacity: 0.1;
        filter: hue-rotate(0deg) brightness(1.05);
    }
    50% {
        opacity: 0.2;
        filter: hue-rotate(15deg) brightness(1.1);
    }
}

@keyframes backgroundShimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease forwards;
}

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

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    
}

/* Button styles and animations */
.btn {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: linear-gradient(90deg, #2296A8, #25c4db);
    color: white !important;
}

.btn-primary:hover {
    color: white !important;
}

/* Override header nav hover for buttons */
.header-nav .btn:hover {
    color: white !important;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
}

.btn:hover::after {
    animation: shimmer 1.5s infinite;
}

/* Image hover effects */
.image-hover {
    transition: transform 0.6s ease;
}

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

/* Navigation link animations */
.header-nav a:not(.btn) {
    position: relative;
    transition: color 0.3s ease;
}

.header-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2296A8;
    transition: width 0.3s ease;
}

.header-nav a:not(.btn):hover {
    color: #2296A8;
}

.header-nav a:not(.btn):hover::after {
    width: 100%;
}

.header-nav a {
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #2296A8;
}

/* Performance-Optimized Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    backface-visibility: hidden;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Optimized section scaling - only transform, no opacity changes */
section {
    transform-origin: center center;
    backface-visibility: hidden;
}

/* Simplified card animations - remove will-change for better performance */
.solution-card,
.project-card,
.process-card {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    transform-origin: center center;
    backface-visibility: hidden;
}

/* Reduced hover scaling for better performance */
.solution-card:hover,
.project-card:hover,
.process-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(34, 150, 168, 0.1);
}

/* Optimized directional variants */
.scroll-animate.from-left.opacity-0 {
    transform: translate3d(-30px, 10px, 0) scale(0.98);
}

.scroll-animate.from-right.opacity-0 {
    transform: translate3d(30px, 10px, 0) scale(0.98);
}

.scroll-animate.from-left.animate-in,
.scroll-animate.from-right.animate-in {
    transform: translate3d(0, 0, 0) scale(1);
}

/* Reduced stagger delays for smoother experience */
.stagger-group .scroll-animate:nth-child(1) { transition-delay: 0s; }
.stagger-group .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.stagger-group .scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.stagger-group .scroll-animate:nth-child(4) { transition-delay: 0.3s; }

/* Modern Loading Animation */
@keyframes modernSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: modernSpin 1s linear infinite;
}

/* Pulse Animation */
@keyframes modernPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: modernPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce Animation */
@keyframes modernBounce {
    0%, 100% {
        
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: modernBounce 1s infinite;
}

/* Hover effects */
.feature-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
}

/* Modern Hero Intro Animations */
@keyframes modernSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modernFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Optimized Hero Animations */
.hero {
    transform-origin: center center;
    backface-visibility: hidden;
}

.hero .grid {
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform;
}

/* Hero elements with Apple-style entrance */
.hero-badge {
    opacity: 0;
    will-change: opacity, transform;
    animation: appleSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

.hero-title {
    opacity: 0;
    will-change: opacity, transform;
    animation: appleSlideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.hero-description {
    opacity: 0;
    will-change: opacity, transform;
    animation: appleSlideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.hero-buttons {
    opacity: 0;
    will-change: opacity, transform;
    animation: appleSlideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

/* Apple-style slide up animation */
@keyframes appleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-button {
    position: relative;
    overflow: hidden;
}

.hero-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
}

.hero-button:hover::after {
    animation: shimmer 1.5s infinite;
}

.hero-underline {
    position: relative;
    display: inline-block;
}

.hero-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #2296A8, #25c4db);
    animation: expandWidth 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1s;
}

.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 20%, rgba(34, 150, 168, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 196, 219, 0.03) 0%, transparent 50%);
    animation: backgroundShimmer 15s linear infinite;
    background-size: 200% 200%;
}

.gradient-orb {
    position: absolute;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(100px);
    mix-blend-mode: normal;
    will-change: transform, opacity, filter, border-radius;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: morphGradient 20s ease-in-out infinite;
    opacity: 0.5;
}

.gradient-orb-1 {
    width: 1200px;
    height: 1200px;
    background: 
        radial-gradient(circle at 30% 40%, 
            rgba(34, 150, 168, 0.08) 0%,
            rgba(34, 150, 168, 0.04) 30%,
            rgba(34, 150, 168, 0) 70%
        );
    top: -400px;
    left: -300px;
    animation: 
        morphGradient 25s ease-in-out infinite,
        floatGradient 30s ease-in-out infinite,
        colorPulse 8s ease-in-out infinite;
}

.gradient-orb-2 {
    width: 1000px;
    height: 1000px;
    background: 
        radial-gradient(circle at 70% 60%, 
            rgba(37, 196, 219, 0.06) 0%,
            rgba(37, 196, 219, 0.03) 40%,
            rgba(37, 196, 219, 0) 70%
        );
    bottom: -300px;
    right: -200px;
    animation: 
        morphGradient 28s ease-in-out infinite reverse,
        floatGradient 35s ease-in-out infinite reverse,
        colorPulse 10s ease-in-out infinite 1s;
}

.gradient-orb-3 {
    width: 900px;
    height: 900px;
    background: 
        radial-gradient(circle at 40% 50%, 
            rgba(34, 150, 168, 0.05) 0%,
            rgba(34, 150, 168, 0.025) 40%,
            rgba(34, 150, 168, 0) 70%
        );
    top: 20%;
    left: 60%;
    animation: 
        morphGradient 22s ease-in-out infinite 1s,
        floatGradient 28s ease-in-out infinite,
        colorPulse 9s ease-in-out infinite 2s;
}

.gradient-orb-4 {
    width: 800px;
    height: 800px;
    background: 
        radial-gradient(circle at 60% 30%, 
            rgba(37, 196, 219, 0.08) 0%,
            rgba(37, 196, 219, 0.04) 40%,
            rgba(37, 196, 219, 0) 70%
        );
    top: 50%;
    left: 30%;
    animation: 
        morphGradient 26s ease-in-out infinite 2s,
        floatGradient 32s ease-in-out infinite reverse,
        colorPulse 11s ease-in-out infinite;
}

.gradient-orb-5 {
    width: 700px;
    height: 700px;
    background: 
        radial-gradient(circle at 50% 50%, 
            rgba(34, 150, 168, 0.07) 0%,
            rgba(34, 150, 168, 0.035) 40%,
            rgba(34, 150, 168, 0) 70%
        );
    top: 40%;
    left: 50%;
    animation: 
        morphGradient 24s ease-in-out infinite 1.5s,
        floatGradient 29s ease-in-out infinite,
        colorPulse 12s ease-in-out infinite 1s;
}

.gradient-orb-6 {
    width: 600px;
    height: 600px;
    background: 
        radial-gradient(circle at 45% 45%, 
            rgba(37, 196, 219, 0.06) 0%,
            rgba(37, 196, 219, 0.03) 40%,
            rgba(37, 196, 219, 0) 70%
        );
    top: 25%;
    left: 15%;
    animation: 
        morphGradient 27s ease-in-out infinite 3s,
        floatGradient 33s ease-in-out infinite reverse,
        colorPulse 10s ease-in-out infinite 2s;
}
/* Progress bar animations for floating cards */
@keyframes progressPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scaleX(1) scaleY(1);
        filter: brightness(1);
    }
    20% { 
        opacity: 0.75;
        transform: scaleX(1.02) scaleY(1.2);
        filter: brightness(1.1);
    }
    40% { 
        opacity: 0.9;
        transform: scaleX(1.05) scaleY(1.3);
        filter: brightness(1.2);
    }
    60% { 
        opacity: 0.95;
        transform: scaleX(1.08) scaleY(1.4);
        filter: brightness(1.3);
    }
    80% { 
        opacity: 0.8;
        transform: scaleX(1.04) scaleY(1.25);
        filter: brightness(1.15);
    }
}

@keyframes progressFlow {
    0% { 
        background-position: 0% 50%;
        transform: skewX(0deg);
    }
    25% { 
        background-position: 25% 50%;
        transform: skewX(2deg);
    }
    50% { 
        background-position: 100% 50%;
        transform: skewX(0deg);
    }
    75% { 
        background-position: 75% 50%;
        transform: skewX(-2deg);
    }
    100% { 
        background-position: 0% 50%;
        transform: skewX(0deg);
    }
}

/* Simplified progress bar animations for performance */
.float-card-1 .h-2,
.float-card-2 .h-2 {
    animation: none; /* Disable heavy animations */
    background: linear-gradient(90deg, 
        rgba(34, 150, 168, 0.4), 
        rgba(37, 196, 219, 0.8), 
        rgba(34, 150, 168, 0.4),
        rgba(37, 196, 219, 0.6),
        rgba(34, 150, 168, 0.4)
    );
    background-size: 300% 100%;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(34, 150, 168, 0.2);
}

.float-card-1 .h-2:first-child {
    will-change: opacity, background-position, transform;
    animation: progressPulse 2.5s ease-in-out infinite, 
               progressFlow 3s linear infinite;
    box-shadow: 0 2px 8px rgba(34, 150, 168, 0.3);
}

.float-card-2 .h-2:first-child {
    will-change: opacity, background-position, transform;
    animation: progressPulse 2.5s ease-in-out infinite 0.5s, 
               progressFlow 4s linear infinite;
    box-shadow: 0 2px 8px rgba(34, 150, 168, 0.3);
}

/* Staggered animation delays for multiple progress bars */
.float-card-1 .h-2:nth-child(2) { animation-delay: 0.3s; }
.float-card-1 .h-2:nth-child(3) { animation-delay: 0.6s; }
.float-card-2 .h-2:nth-child(2) { animation-delay: 0.4s; }
.float-card-2 .h-2:nth-child(3) { animation-delay: 0.8s; }

/* Card entrance animations */
@keyframes modernCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Simplified card animations for better performance */
.float-card-1 {
    opacity: 0;
    will-change: opacity, transform;
    animation: modernCardEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

.float-card-2 {
    opacity: 0;
    will-change: opacity, transform;
    animation: modernCardEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s forwards;
}

/* Delayed floating animations - start after entrance is complete */
.float-card-1.loaded {
    animation: modernCardEntrance 0.8s ease-out 0.8s forwards;
}

.float-card-2.loaded {
    animation: modernCardEntrance 0.8s ease-out 1s forwards;
}





/* Optimized glow effect */
@keyframes subtleGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(34, 150, 168, 0.08);
    }
    50% {
        box-shadow: 0 6px 25px rgba(34, 150, 168, 0.12);
    }
}

/* Status indicator pulse */
@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.float-card-1 .bg-green-400,
.float-card-2 .bg-orange-400 {
    animation: statusPulse 2s ease-in-out infinite;
}

/* Responsive adjustments for floating cards */
@media (max-width: 768px) {
    .float-card-1,
    .float-card-2 {
        width: 200px !important;
        height: 120px !important;
        padding: 1rem !important;
    }
    
    .float-card-1 {
        top: 1rem !important;
        right: 1rem !important;
    }
    
    .float-card-2 {
        bottom: 1rem !important;
        left: 1rem !important;
    }
    
    /* Reduce animation intensity on mobile */
    @keyframes floatCard1Mobile {
        0%, 100% { 
            transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        }
        50% { 
            transform: translateY(-10px) translateX(0px) rotate(1deg) scale(1.02);
        }
    }
    
    @keyframes floatCard2Mobile {
        0%, 100% { 
            transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        }
        50% { 
            transform: translateY(-8px) translateX(0px) rotate(-0.5deg) scale(1.015);
        }
    }
    
    .float-card-1 {
        animation: cardEntrance 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both,
                   floatCard1Mobile 6s ease-in-out 1.5s infinite,
                   subtleGlow 4s ease-in-out 2s infinite;
    }
    
    .float-card-2 {
        animation: cardEntrance 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both,
                   floatCard2Mobile 8s ease-in-out 1.8s infinite,
                   subtleGlow 4s ease-in-out 2.3s infinite;
    }
}

/* Optimized central glow animation */
@keyframes centralGlow {
    0%, 100% {
        transform: translate3d(-50%, -50%, 0) scale(1);
        opacity: 0.25;
    }
    50% {
        transform: translate3d(-50%, -50%, 0) scale(1.1);
        opacity: 0.35;
    }
}

.central-glow {
    will-change: transform, opacity;
    animation: centralGlow 8s ease-in-out infinite;
}

/* Interactive hero section effects */
.hero:hover .float-card-1 {
    animation-duration: 6s; /* Speed up animation on hover */
}

.hero:hover .float-card-2 {
    animation-duration: 8s;
}

.hero:hover .central-glow {
    animation-duration: 4s;
    opacity: 0.6;
}

/* Add a subtle breathing effect to the entire hero visual container */
@keyframes heroBreathing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

.hero .relative.w-full.h-96 {
    animation: heroBreathing 15s ease-in-out infinite;
}

/* Click animation for floating cards */
@keyframes cardClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.float-card-1:active,
.float-card-2:active {
    animation: cardClick 0.2s ease;
}

/* Improve logo visibility on hover */
.tappix-logo {
    z-index: 10;
    pointer-events: none;
}

.tappix-logo img {
    transition: all 0.3s ease;
}

.float-card-1:hover .tappix-logo img,
.float-card-2:hover .tappix-logo img {
    transform: scale(1.1);
}

/* Performance optimizations */
.float-card-1,
.float-card-2 {
    backface-visibility: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero-badge,
    .hero-title,
    .hero-description,
    .hero-buttons,
    .float-card-1,
    .float-card-2 {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Ensure smooth loading on slower devices */
.page-loaded .float-card-1,
.page-loaded .float-card-2 {
    will-change: auto;
}

/* Optimize progress bar animations */
.float-card-1 .h-2,
.float-card-2 .h-2 {
    will-change: opacity, transform;
}

/* Smooth entrance for all hero elements */
.hero-section-loaded .hero-badge,
.hero-section-loaded .hero-title,
.hero-section-loaded .hero-description,
.hero-section-loaded .hero-buttons {
    will-change: auto;
}

/* Disabled heavy morphing effects for performance */

@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(34, 150, 168, 0.1),
                    0 0 0 0 rgba(34, 150, 168, 0.1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(34, 150, 168, 0.2),
                    0 0 0 10px rgba(34, 150, 168, 0.05);
    }
}

@keyframes backgroundShift {
    0%, 100% {
        background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.9) 100%);
    }
    33% {
        background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(248,250,252,0.9) 100%);
    }
    66% {
        background: linear-gradient(135deg, rgba(248,250,252,0.9) 0%, rgba(255,255,255,0.85) 100%);
    }
}

/* Simplified card effects for performance */

/* Cool status dot animations */
@keyframes statusDotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 currentColor;
    }
    25% {
        transform: scale(1.1);
        box-shadow: 0 0 0 2px rgba(34, 150, 168, 0.3);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 4px rgba(34, 150, 168, 0.2);
    }
    75% {
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(34, 150, 168, 0.1);
    }
}

@keyframes statusDotGlow {
    0%, 100% {
        filter: brightness(1) saturate(1);
    }
    50% {
        filter: brightness(1.3) saturate(1.2);
    }
}

/* Simplified status dot effects */
.float-card-1 .status-dot,
.float-card-2 .status-dot {
    position: relative;
}

/* Add shimmer effect to progress bars */
.float-card-1 .h-2::after,
.float-card-2 .h-2::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmerProgress 3s infinite;
}

@keyframes shimmerProgress {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Disabled particle effects for performance */

@keyframes particleFloat {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: rotate(90deg) scale(1.05);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.7;
    }
    75% {
        transform: rotate(270deg) scale(1.05);
        opacity: 0.5;
    }
}

/* Solutions Section Animations */
@keyframes solutionCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.solution-card {
    animation: solutionCardEntrance 0.6s ease-out forwards;
}

/* Staggered animation delays */
.scroll-animate:nth-child(1) .solution-card { animation-delay: 0.1s; }
.scroll-animate:nth-child(2) .solution-card { animation-delay: 0.2s; }
.scroll-animate:nth-child(3) .solution-card { animation-delay: 0.3s; }
.scroll-animate:nth-child(4) .solution-card { animation-delay: 0.4s; }

/* Icon pulse animation */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.solution-card:hover .w-16 {
    animation: iconPulse 2s ease-in-out infinite;
}

/* Learn more link animation */
@keyframes linkGlow {
    0%, 100% {
        text-shadow: none;
    }
    50% {
        text-shadow: 0 0 8px rgba(34, 150, 168, 0.3);
    }
}

.solution-card:hover .text-primary {
    animation: linkGlow 2s ease-in-out infinite;
}

/* Project image hover animations for light theme */
.project-card:hover .aspect-video img {
    transform: scale(1.05);
}



/* Badge animation on hover */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.project-card:hover .absolute.top-4.left-4 {
    animation: badgePulse 2s ease-in-out infinite;
}

/* External link icon animation */
@keyframes iconFloat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.project-card:hover .absolute.top-4.right-4 {
    animation: iconFloat 2s ease-in-out infinite;
}

/* Header entrance animation */
@keyframes headerSlideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-nav {
    animation: headerSlideDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Enhanced navigation link hover effects */
.nav-link:hover {
    transform: translateY(-1px);
}

/* Logo hover animation */
.header-nav .group:hover img {
    filter: drop-shadow(0 4px 8px rgba(34, 150, 168, 0.2));
}

/* Mobile menu button pulse on hover */
@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

#menuButton:hover {
    animation: buttonPulse 0.6s ease-in-out;
}

/* Performance optimizations for fast scrolling */
body.fast-scroll .float-card-1,
body.fast-scroll .float-card-2 {
    animation-play-state: paused;
}

body.fast-scroll .gradient-orb {
    animation-play-state: paused;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-animate {
        transition-duration: 0.01ms !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize for 60fps animations */
@media (min-resolution: 2dppx) {
    .scroll-animate {
        transform: translateZ(0); /* Force hardware acceleration */
    }
}

/* Smooth scroll snap for sections */
.hero,
#solutions,
#work,
#process,
#contact {
    scroll-margin-top: 80px;
}

/* Process Section Animations */
@keyframes processCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.process-card {
    animation: processCardEntrance 0.8s ease-out forwards;
}

/* Staggered animation delays for process cards */
.process-grid .scroll-animate:nth-child(1) .process-card { animation-delay: 0.1s; }
.process-grid .scroll-animate:nth-child(2) .process-card { animation-delay: 0.3s; }
.process-grid .scroll-animate:nth-child(3) .process-card { animation-delay: 0.5s; }

/* Step number pulse animation */
@keyframes stepPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(34, 150, 168, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(34, 150, 168, 0.4);
    }
}

.process-card:hover .absolute.top-4 {
    animation: stepPulse 2s ease-in-out infinite;
}

/* Icon hover animation */
@keyframes iconBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(2deg);
    }
    75% {
        transform: scale(1.1) rotate(-2deg);
    }
}

.process-card:hover .w-20 svg {
    animation: iconBounce 1s ease-in-out infinite;
}

/* Feature list animation */
@keyframes checkmarkGlow {
    0%, 100% {
        color: #2296A8;
        filter: drop-shadow(0 0 0 rgba(34, 150, 168, 0));
    }
    50% {
        color: #25c4db;
        filter: drop-shadow(0 0 4px rgba(34, 150, 168, 0.3));
    }
}

.process-card:hover ul li svg {
    animation: checkmarkGlow 2s ease-in-out infinite;
}

/* Process connection lines */
.process-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(34, 150, 168, 0.2) 20%, 
        rgba(34, 150, 168, 0.4) 50%, 
        rgba(34, 150, 168, 0.2) 80%, 
        transparent 100%
    );
    z-index: -1;
}

@media (max-width: 768px) {
    .process-grid::before {
        display: none;
    }
}
/* Apple-St
yle Floating Cards */
.float-card-1,
.float-card-2 {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
    transform-origin: center center;
}

/* Enhanced floating animations */
@keyframes appleFloat1 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-15px) translateX(5px) rotate(1deg) scale(1.02);
    }
    50% { 
        transform: translateY(-8px) translateX(-3px) rotate(0deg) scale(1.01);
    }
    75% { 
        transform: translateY(-12px) translateX(2px) rotate(-0.5deg) scale(1.015);
    }
}

@keyframes appleFloat2 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-10px) translateX(-4px) rotate(-0.8deg) scale(1.015);
    }
    50% { 
        transform: translateY(-18px) translateX(2px) rotate(0deg) scale(1.025);
    }
    75% { 
        transform: translateY(-6px) translateX(-1px) rotate(0.5deg) scale(1.01);
    }
}

.float-card-1.loaded {
    animation: appleSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards,
               appleFloat1 12s ease-in-out 1.5s infinite;
}

.float-card-2.loaded {
    animation: appleSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards,
               appleFloat2 14s ease-in-out 1.7s infinite;
}

/* Interactive hover scaling */
.float-card-1:hover,
.float-card-2:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 25px 50px rgba(34, 150, 168, 0.2);
}

/* Apple-style header scaling */
.header-nav {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                backdrop-filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center top;
}

/* Enhanced gradient orb movements */
.gradient-orb {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Performance optimizations for fast scrolling */
body.fast-scroll * {
    animation-play-state: paused !important;
    transition-duration: 0.1s !important;
}

body.fast-scroll .gradient-orb {
    animation: none !important;
}

body.fast-scroll .float-card-1,
body.fast-scroll .float-card-2 {
    animation: none !important;
}

/* Apple-style smooth scaling for all interactive elements */
.btn,
.solution-card,
.project-card,
.process-card,
.float-card-1,
.float-card-2 {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced scroll-based scaling */
@media (min-width: 768px) {
    .hero .grid {
        transform-style: preserve-3d;
    }
    
    section {
        transform-style: preserve-3d;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .float-card-1,
    .float-card-2,
    .gradient-orb,
    section,
    .header-nav {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Performance-first approach - disable heavy animations */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition-duration: 0.2s !important;
    }
    
    .gradient-orb {
        display: none;
    }
}

/* CPU-intensive animation disabling */
.gradient-orb {
    animation: none !important;
}

/* Simplified floating card hover */
.float-card-1:hover,
.float-card-2:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease-out;
}

/* Remove will-change after animations complete */
.animation-complete * {
    will-change: auto !important;
}/* F
lat Minimal Cards */
.flat-card {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease-out;
    backface-visibility: hidden;
}

.flat-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entrance animations */
.flat-card-1 {
    transition-delay: 0.1s;
}

.flat-card-2 {
    transition-delay: 0.3s;
}

.flat-card-3 {
    transition-delay: 0.5s;
}

/* Hover effects - minimal and clean */
.flat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 150, 168, 0.08);
}

/* Metric bar animations */
.metric-bar {
    width: 0;
    transition: width 1.5s ease-out;
    transition-delay: 0.8s;
}

.flat-card.loaded .metric-bar {
    width: var(--target-width);
}

/* Activity bar animations */
.activity-bar {
    position: relative;
    overflow: hidden;
}

.activity-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #2296A8, #25c4db);
    height: 0;
    transition: height 0.8s ease-out;
    transition-delay: calc(var(--index) * 0.1s + 1s);
}

.flat-card.loaded .activity-bar::after {
    height: var(--target-height);
}

/* Code line typing animation */
.code-line {
    width: 0;
    transition: width 1s ease-out;
    transition-delay: calc(var(--index) * 0.2s + 1.2s);
}

.flat-card.loaded .code-line {
    width: var(--target-width);
}

/* Typing line special animation */
.typing-line {
    position: relative;
}

.typing-line::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #2296A8;
    animation: blink 1s infinite;
    animation-delay: 2s;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Pulse dot animations */
.pulse-dot {
    animation: pulse 2s ease-in-out infinite;
}

.typing-dot {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Subtle floating animation for loaded cards */
.flat-card.loaded {
    animation: subtleFloat 8s ease-in-out infinite;
}

.flat-card-1.loaded {
    animation-delay: 0s;
}

.flat-card-2.loaded {
    animation-delay: 2s;
}

.flat-card-3.loaded {
    animation-delay: 4s;
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .flat-card {
        transform: scale(0.95);
    }
    
    .flat-card.loaded {
        transform: scale(0.95);
    }
    
    .flat-card:hover {
        transform: scale(0.97);
    }
    
    /* Disable floating animation on mobile */
    .flat-card.loaded {
        animation: none;
    }
}

/* Performance optimizations */
.flat-card {
    will-change: transform, opacity;
}

.flat-card.animation-complete {
    will-change: auto;
}

/* Clean border styling */
.flat-card .border-gray-200 {
    border-color: rgba(229, 231, 235, 0.8);
}

.flat-card:hover .border-gray-200 {
    border-color: rgba(34, 150, 168, 0.2);
}/* Inter
active hover states for flat cards */
.flat-card:hover .metric-bar {
    background: linear-gradient(90deg, #2296A8, #25c4db);
    box-shadow: 0 0 8px rgba(34, 150, 168, 0.3);
}

.flat-card:hover .activity-bar::after {
    box-shadow: 0 0 4px rgba(34, 150, 168, 0.4);
}

.flat-card:hover .code-line {
    background: linear-gradient(90deg, rgba(34, 150, 168, 0.4), rgba(37, 196, 219, 0.4));
}

.flat-card:hover .pulse-dot,
.flat-card:hover .typing-dot {
    animation-duration: 0.8s;
    box-shadow: 0 0 6px rgba(34, 150, 168, 0.5);
}

/* Smooth transitions for all interactive elements */
.flat-card * {
    transition: all 0.3s ease-out;
}

/* Focus states for accessibility */
.flat-card:focus-within {
    outline: 2px solid #2296A8;
    outline-offset: 2px;
}

/* Loading skeleton effect before cards appear */
.flat-card:not(.loaded) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}/* Ongoing
 Animation - Desktop Terminal */
.ongoing-animation {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 1s ease-out 2s forwards;
}

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

/* Realistic Terminal Typing */
.terminal-line {
    white-space: nowrap;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    position: relative;
}

/* Terminal Output */
.terminal-output {
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* Typing cursor effect
.terminal-line::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    animation: none;
    opacity: 0;
} */

.terminal-line.typing::after {
    opacity: 1;
    animation: blink 1s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terminal Cursor Blink */
.terminal-cursor {
    animation: blink 1s infinite;
    color: #10b981;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Floating Code Snippets */
.code-snippet {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    animation: floatIn 1s ease-out forwards;
}

.code-snippet-1 {
    animation-delay: 3s;
    animation-duration: 1.2s;
}

.code-snippet-2 {
    animation-delay: 4s;
    animation-duration: 1.2s;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Continuous floating animation for code snippets */
.code-snippet.loaded {
    animation: gentleFloat 6s ease-in-out infinite;
}

.code-snippet-1.loaded {
    animation-delay: 0s;
}

.code-snippet-2.loaded {
    animation-delay: 3s;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

/* Animated Dots */
.animate-dot {
    opacity: 0;
    animation: dotPulse 3s ease-in-out infinite;
}

.animate-dot-1 {
    animation-delay: 0s;
}

.animate-dot-2 {
    animation-delay: 1s;
}

.animate-dot-3 {
    animation-delay: 2s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Terminal Scroll Effect */
.ongoing-animation .terminal-content {
    animation: terminalScroll 20s linear infinite;
    animation-delay: 15s;
}

@keyframes terminalScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100px);
    }
}

/* Hover Effects for Terminal */
.ongoing-animation:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease-out;
}

.ongoing-animation:hover .code-snippet {
    animation-duration: 4s;
}

/* Performance Optimizations */
.ongoing-animation * {
    will-change: transform, opacity;
}

.ongoing-animation.animation-complete * {
    will-change: auto;
}

/* Responsive - Hide on smaller screens */
@media (max-width: 1279px) {
    .ongoing-animation {
        display: none !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .ongoing-animation,
    .terminal-line,
    .code-snippet,
    .animate-dot {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}/* E
nhanced Terminal Realism */
.terminal-line[data-text] {
    position: relative;
}

.terminal-line[data-text]::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    animation: revealText 2s steps(40) forwards;
}

@keyframes revealText {
    to {
        width: 100%;
    }
}

/* Terminal Glow Effect */
.ongoing-animation .bg-gray-900 {
    box-shadow: 
        0 0 20px rgba(34, 150, 168, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Code Syntax Highlighting Animation */
.code-snippet .text-blue-600,
.code-snippet .text-purple-600 {
    animation: syntaxGlow 3s ease-in-out infinite;
}

@keyframes syntaxGlow {
    0%, 100% {
        text-shadow: none;
    }
    50% {
        text-shadow: 0 0 8px currentColor;
    }
}

/* Terminal Screen Flicker Effect */
.ongoing-animation .bg-gray-900::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 0, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 4px;
    }
}/* 
Pricing Section Animations */
.pricing-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.pricing-card.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered pricing card animations */
.pricing-card.from-left {
    transform: translateY(20px) translateX(-20px);
}

.pricing-card.from-right {
    transform: translateY(20px) translateX(20px);
}

.pricing-card.from-left.animate-in,
.pricing-card.from-right.animate-in {
    transform: translateY(0) translateX(0);
}

/* Pricing card hover effects */
.pricing-card:hover {
    transform: translateY(-5px);
}

/* Popular badge animation */
.pricing-card .bg-primary.text-white {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

/* Icon hover animations */
.pricing-card .group-hover\:scale-110:hover {
    animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Button hover effects */
.pricing-card .btn {
    position: relative;
    overflow: hidden;
}

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

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

/* Feature list animations */
.pricing-card li {
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInFeature 0.5s ease-out forwards;
}

.pricing-card li:nth-child(1) { animation-delay: 0.1s; }
.pricing-card li:nth-child(2) { animation-delay: 0.2s; }
.pricing-card li:nth-child(3) { animation-delay: 0.3s; }
.pricing-card li:nth-child(4) { animation-delay: 0.4s; }

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

/* Price number animation */
.pricing-card .text-4xl {
    animation: countUp 1s ease-out 0.5s both;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pricing adjustments */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card:hover {
        transform: translateY(-2px);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .pricing-card,
    .pricing-card li,
    .pricing-card .text-4xl {
        animation: none !important;
        transition-duration: 0.2s !important;
    }
}/* Mo
bile Hero Section Improvements */
@media (max-width: 1024px) {
    /* Hero section mobile layout - no animations */
    .hero {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%) !important;
    }

    /* Remove all hero animations on mobile */
    .hero-badge,
    .hero-title,
    .hero-buttons {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Flat cards - immediately visible, no animations */
    .flat-card {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .flat-card-1,
    .flat-card-2,
    .flat-card-3 {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Remove hover effects on mobile */
    .flat-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Disable all animations on mobile */
    .metric-bar,
    .activity-bar,
    .code-line {
        animation: none !important;
        transition: none !important;
        width: var(--target-width, 100%) !important;
        height: var(--target-height, 100%) !important;
    }

    /* Remove pulse animations */
    .pulse-dot,
    .typing-dot {
        animation: none !important;
        opacity: 1 !important;
    }

    /* Remove all scroll animations on mobile */
    .scroll-animate {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .scroll-animate.from-left,
    .scroll-animate.from-right {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Ensure all text is visible immediately */
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
    }
}

/* Mobile button improvements */
@media (max-width: 1024px) {
    .btn-hero {
        background: linear-gradient(135deg, #2296A8 0%, #25c4db 100%) !important;
        border: none !important;
        color: white !important;
        font-weight: 600 !important;
        letter-spacing: 0.025em !important;
        box-shadow: 0 4px 14px rgba(34, 150, 168, 0.3) !important;
        transition: all 0.3s ease !important;
    }

    .btn-hero:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 20px rgba(34, 150, 168, 0.4) !important;
    }

    .btn-hero:active {
        transform: translateY(0) !important;
    }
}

/* Mobile typography improvements */
@media (max-width: 1024px) {
    .hero-gradient-text {
        background: linear-gradient(135deg, #2296A8 0%, #25c4db 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

    /* Ensure text is readable */
    .text-gray-900 {
        color: #111827 !important;
    }

    .text-gray-600 {
        color: #4b5563 !important;
    }

    .text-gray-500 {
        color: #6b7280 !important;
    }
}/* 
Contact Form Success Animations */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 150, 168, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(34, 150, 168, 0);
    }
}

@keyframes successCheckmark {
    0% {
        stroke-dasharray: 0 50;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dasharray: 50 0;
        stroke-dashoffset: 0;
    }
}

@keyframes successSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes successFadeIn {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes formClearAnimation {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success overlay styles */
.success-overlay {
    animation: successFadeIn 0.3s ease-out forwards;
}

.success-card {
    animation: successSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.success-icon {
    animation: successPulse 2s ease-in-out infinite;
}

.success-checkmark {
    animation: successCheckmark 0.6s ease-in-out 0.2s forwards;
    stroke-dasharray: 0 50;
}

.form-clearing {
    animation: formClearAnimation 1.5s ease-in-out forwards;
}

/* Enhanced button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form field success state */
.field-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.field-success:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

/* Success message enhanced styling */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: successSlideUp 0.5s ease-out forwards;
}

/* Confetti animation for extra celebration */
@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti-piece {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #2296A8;
    animation: confetti 3s ease-out forwards;
    z-index: 1000;
}

/* Mobile optimizations for success animation */
@media (max-width: 768px) {
    .success-overlay {
        padding: 1rem !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .success-card {
        margin: 0 !important;
        padding: 1.5rem !important;
        max-width: calc(100vw - 2rem) !important;
        width: 100% !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }
    
    .success-icon {
        width: 3rem !important;
        height: 3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .success-icon svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
    
    /* Reduce confetti size on mobile */
    .confetti-piece {
        width: 6px !important;
        height: 6px !important;
    }
    
    /* Faster animations on mobile */
    .success-card {
        animation-duration: 0.3s !important;
    }
    
    .success-overlay {
        animation-duration: 0.2s !important;
    }
    
    /* Prevent horizontal scroll */
    body.success-modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .success-card {
        padding: 1rem !important;
        border-radius: 0.75rem !important;
    }
    
    .success-card h3 {
        font-size: 1.125rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .success-card p {
        font-size: 0.875rem !important;
        margin-bottom: 1rem !important;
    }
    
    .success-icon {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    .success-icon svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .success-card {
        max-height: 90vh !important;
        padding: 1rem !important;
    }
    
    .success-icon {
        width: 2.5rem !important;
        height: 2.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .success-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .success-card p {
        font-size: 0.875rem !important;
        margin-bottom: 0.75rem !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .success-overlay,
    .success-card,
    .success-icon,
    .success-checkmark,
    .form-clearing {
        animation: none !important;
        transition: none !important;
    }
    
    .success-overlay {
        opacity: 1;
    }
    
    .success-card {
        transform: scale(1);
    }
}