/* Home Page Styles - Add this to your assets folder as home_styles.css */

/* Feature Card Hover Effects */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2) !important;
}

/* Use Case Card Hover Effects */
.use-case-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.15) !important;
}

/* Animated gradient backgrounds */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Pulse animation for stats */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Add subtle animations to badges */
.mantine-Badge-root {
    transition: transform 0.2s ease;
}

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

/* FIXED: Button hover enhancements - prevents shadow misalignment */
.mantine-Button-root {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative;
    z-index: 1;
}

.mantine-Button-root:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3) !important;
}

/* ThemeIcon hover effects */
.mantine-ThemeIcon-root {
    transition: transform 0.3s ease;
}

.feature-card:hover .mantine-ThemeIcon-root {
    animation: float 2s ease-in-out infinite;
}

/* Timeline bullet hover */
.mantine-Timeline-item:hover .mantine-ThemeIcon-root {
    transform: scale(1.1);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Card border glow on hover */
.feature-card:hover,
.use-case-card:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* Responsive animations - disable on mobile for performance */
@media (max-width: 768px) {
    .feature-card:hover,
    .use-case-card:hover {
        transform: none;
    }

    .feature-card:hover .mantine-ThemeIcon-root {
        animation: none;
    }
}

/* Add subtle background patterns */
.mantine-Container-root {
    position: relative;
}

/* Improve text readability on colored backgrounds */
.mantine-Text-root {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading state for interactive elements */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Add depth to cards with multiple shadows */
.mantine-Card-root {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 1px 2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.mantine-Card-root:hover {
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 6px 12px rgba(59, 130, 246, 0.15);
}

/* Enhance focus states for accessibility */
.mantine-Button-root:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Smooth color transitions */
* {
    transition-property: color, background-color, border-color;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

/* Override for elements that shouldn't have transitions */
.mantine-ThemeIcon-root *,
.mantine-Button-root *,
input,
textarea {
    transition: none;
}

/* Ensure proper scrolling */
html, body {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}
