/* Custom styles for Biztonic Automation */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    animation: pageFadeIn 0.6s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Base State */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Scroll Reveal Active State */
.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grids */
.grid>div:nth-child(2) {
    transition-delay: 0.1s;
}

.grid>div:nth-child(3) {
    transition-delay: 0.2s;
}

.grid>div:nth-child(4) {
    transition-delay: 0.3s;
}

.grid>div:nth-child(5) {
    transition-delay: 0.4s;
}

/* 3D Tilt Preserve */
.preserve-3d {
    transform-style: preserve-3d;
}

.perspective-1000 {
    perspective: 1000px;
}

.translate-z-12 {
    transform: translateZ(30px);
}

/* --- UI Magic Effects --- */

/* Ripple Effect */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 100;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Card Shuffle/Pop Animation */
.card-shuffle {
    animation: cardPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(0.97) rotate(-1deg);
    }

    80% {
        transform: scale(1.02) rotate(1deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #cbd5e1;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #2563eb;
}

.breadcrumb-item.active {
    color: #2563eb;
    font-weight: 500;
}