/* Mouse Glow Effect */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.07), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    /* Removed transform here, handled via JS */
    mix-blend-mode: screen;
    will-change: transform;
}

/* Decoded Text Cursor */
.decoded-text {
    position: relative;
    cursor: default;
    display: inline-block;
    min-width: 0.5em; /* Prevent layout shift */
}

/* 3D Tilt Card Styles */
.tilt-card-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tilt-card-inner {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
    height: 100%;
    width: 100%;
    position: relative;
    border-radius: 20px;
}

.tilt-card-inner.resetting {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Adjust card front/back to work with inner wrapper */
.tilt-card-inner .team-card-front,
.tilt-card-inner .team-card-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Removed transition here as parent handles it for tilt */
    transform-style: preserve-3d;
}

/* Make sure back is rotated */
.tilt-card-inner .team-card-back {
    transform: rotateY(180deg);
}

/* When flipped, rotate the inner container instead of just front/back */
.team-card.flipped .tilt-card-inner {
    transform: rotateY(180deg);
}

/* Enhanced Glitch for Decoded Text if needed */
.decoded-text:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}
