/* ==========================================================================
   Park Now — Premium 3D Interactive Icon & Motion Graphics System
   International Standard • Zero Emojis • Vector Isometric Depth
   ========================================================================== */

/* --- 3D Icon Container & Canvas --- */
.icon3d-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    vertical-align: middle;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
    user-select: none;
}

/* Sizing presets */
.icon3d-xs { width: 20px; height: 20px; }
.icon3d-sm { width: 28px; height: 28px; }
.icon3d-md { width: 44px; height: 44px; }
.icon3d-lg { width: 64px; height: 64px; }
.icon3d-xl { width: 88px; height: 88px; }

.icon3d-wrap svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(36, 37, 54, 0.12));
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Interactive 3D Hover & Motion Physics --- */
.icon3d-interactive:hover {
    transform: perspective(600px) translateY(-5px) rotateX(8deg) rotateY(-8deg) scale(1.08);
}

.icon3d-interactive:hover svg {
    filter: drop-shadow(0 12px 24px rgba(75, 63, 114, 0.30));
}

.icon3d-interactive:active {
    transform: perspective(600px) translateY(-1px) scale(0.98);
}

/* Floating Idle Animation */
.icon3d-floating {
    animation: icon3dFloat 3.6s ease-in-out infinite;
}

@keyframes icon3dFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(1.5deg);
    }
}

/* Laser Scan Animation for QR Scanner */
@keyframes icon3dScanline {
    0% { transform: translateY(10px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(60px); opacity: 0; }
}

.icon3d-scan-laser {
    animation: icon3dScanline 2.2s ease-in-out infinite;
}

/* Pulse Radar Ring for GPS */
@keyframes icon3dPulseRing {
    0% { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.icon3d-pulse-ring {
    transform-origin: center;
    animation: icon3dPulseRing 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* Shimmer Light Sweep */
@keyframes icon3dShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Glow Accent Variants */
.icon3d-glow-purple:hover svg {
    filter: drop-shadow(0 8px 20px rgba(89, 70, 143, 0.45));
}

.icon3d-glow-emerald:hover svg {
    filter: drop-shadow(0 8px 20px rgba(22, 133, 103, 0.45));
}

.icon3d-glow-amber:hover svg {
    filter: drop-shadow(0 8px 20px rgba(229, 163, 64, 0.45));
}

.icon3d-glow-red:hover svg {
    filter: drop-shadow(0 8px 20px rgba(199, 62, 80, 0.45));
}

/* Glassmorphism pedestal badge for hero / role cards */
.icon3d-pedestal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 236, 248, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    box-shadow: 0 10px 25px -5px rgba(75, 63, 114, 0.12),
                inset 0 1px 2px rgba(255, 255, 255, 0.9);
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon3d-pedestal:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -4px rgba(75, 63, 114, 0.22),
                inset 0 1px 2px rgba(255, 255, 255, 1);
}
