/* 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;
}

/* Home hero logo (ai-agent-buzz.png) — gentle float above the buzzing bees. */
.home-hero-logo { will-change: transform; }
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero-logo { animation: none !important; }
}

/* ── 404 (pages/not_found_404.py) — "4 👁 4", the eyeball watches the full-screen bee swarm ── */
.nf-wrap {
    position: relative; min-height: 100vh; overflow: hidden;
    background: radial-gradient(ellipse at 50% 35%, #1E2533 0%, #141922 45%, #0A0E17 100%);
    color: #e8eefc;
}
.nf-content {
    position: relative; z-index: 2; min-height: 100vh;
    justify-content: center; padding: 24px;
}
.nf-404 { line-height: 1; }
.nf-digit {
    font-size: clamp(96px, 22vw, 240px); font-weight: 800; color: #f5c842;
    text-shadow: 0 0 44px rgba(245, 200, 66, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1; user-select: none;
}
/* The eyeball renders into this box (Three.js sizes to clientWidth/Height) — keep it tall like a "0". */
.nf-eye {
    width: clamp(120px, 20vw, 210px);
    height: clamp(150px, 26vw, 250px);
    position: relative;
    margin: 0 -0.04em;   /* nudge the eye snug between the two 4s */
}
